/* ============================================================
   Pineapple Software Management — base styles
   ============================================================ */

:root {
  --ink: #0a1220;
  --ink-2: #111d33;
  --ink-3: #1b2b47;
  --slate: #5b6b82;
  --slate-light: #8494a9;
  --line: #dce5f0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --paper: #f6f8fc;
  --paper-2: #eef3fa;
  --white: #ffffff;
  --yellow: #f4c542;
  --yellow-bright: #ffd862;
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --cyan: #22d3ee;
  --orange: #f97316;
  --success: #0f9f6e;
  --danger: #c0392b;
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 6px 20px rgba(10, 18, 32, 0.06);
  --shadow-md: 0 18px 50px rgba(10, 18, 32, 0.12);
  --shadow-lg: 0 32px 90px rgba(4, 10, 20, 0.3);
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --container: 1180px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

/* Shared brand + top-bar layout (marketing, login, and portal) */
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand-name small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.narrow {
  width: min(800px, calc(100% - 44px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--yellow);
}

.lede {
  color: var(--slate);
  font-size: clamp(1.03rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.prose-p {
  color: var(--slate);
  font-size: 1.01rem;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 10px 26px rgba(244, 197, 66, 0.28);
}

.btn--primary:hover {
  color: var(--ink);
  background: var(--yellow-bright);
  box-shadow: 0 14px 34px rgba(244, 197, 66, 0.38);
}

.btn--dark {
  color: var(--white);
  background: var(--ink);
}

.btn--dark:hover {
  color: var(--white);
  background: var(--ink-3);
}

.btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline:hover {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.btn--outline-dark {
  color: var(--ink);
  border-color: #c4d1e2;
  background: transparent;
}

.btn--outline-dark:hover {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.btn--sm {
  min-height: 42px;
  padding: 9px 17px;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  gap: 11px;
  color: var(--blue);
}

.text-link--light {
  color: var(--yellow);
}

.text-link--light:hover {
  color: var(--white);
}

/* ------------------------------------------------------------
   Reveal
   ------------------------------------------------------------ */

.reveal {
  opacity: 1;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
