/* ==========================================================================
   Success Layer — Partner Success Pulse
   Design system: minimal, token-driven, light + dark
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;450;500;600;700&display=swap');

/* ---------- TOKENS: LIGHT (default) ---------- */
:root {
  --bg:            #FBFBFA;
  --bg-rgb:        251,251,250;
  --bg-elev:       #FFFFFF;
  --bg-sunk:       #F4F4F2;
  --bg-contrast:   #0C1117;
  --ink:           #0C1117;
  --ink-soft:      #4A5462;
  --ink-faint:     #8A93A0;
  --ink-oncontrast:#FFFFFF;
  --ink-oncontrast-soft: rgba(255,255,255,.68);

  --line:          #E6E7E4;
  --line-strong:   #D4D6D2;
  --line-oncontrast: rgba(255,255,255,.14);

  --accent:        #0E8F88;
  --accent-hover:  #0B7A74;
  --accent-soft:   rgba(14,143,136,.10);
  --accent-ring:   rgba(14,143,136,.22);
  --on-accent:     #FFFFFF;

  --status-green:  #1F9D63;
  --status-amber:  #B8790A;
  --status-red:    #C13F3F;
  --status-blue:   #2F5FD6;

  --nav-bg:        rgba(251,251,250,.72);
  --shadow-sm:     0 1px 2px rgba(12,17,23,.05);
  --shadow-md:     0 10px 30px -12px rgba(12,17,23,.16);
  --shadow-lg:     0 30px 70px -30px rgba(12,17,23,.28);
  --hero-glow:     radial-gradient(60% 60% at 70% 30%, rgba(14,143,136,.14), transparent 70%);

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;
  --nav-space: 96px;   /* clearance for the floating navbar */
}

/* ---------- TOKENS: DARK ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #080B11;
    --bg-rgb:        8,11,17;
    --bg-elev:       #0E141D;
    --bg-sunk:       #0B0F16;
    --bg-contrast:   #0E141D;
    --ink:           #EDF1F6;
    --ink-soft:      #9AA6B6;
    --ink-faint:     #6B7787;
    --ink-oncontrast:#EDF1F6;
    --ink-oncontrast-soft: rgba(237,241,246,.66);

    --line:          #1B2432;
    --line-strong:   #26313F;
    --line-oncontrast: rgba(255,255,255,.10);

    --accent:        #2DD4C4;
    --accent-hover:  #5BE3D6;
    --accent-soft:   rgba(45,212,196,.12);
    --accent-ring:   rgba(45,212,196,.28);
    --on-accent:     #04211E;

    --nav-bg:        rgba(8,11,17,.72);
    --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
    --shadow-md:     0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg:     0 30px 70px -30px rgba(0,0,0,.85);
    --hero-glow:     radial-gradient(60% 60% at 70% 30%, rgba(45,212,196,.16), transparent 70%);
  }
}

:root[data-theme="dark"] {
  --bg:            #080B11;
  --bg-rgb:        8,11,17;
  --bg-elev:       #0E141D;
  --bg-sunk:       #0B0F16;
  --bg-contrast:   #0E141D;
  --ink:           #EDF1F6;
  --ink-soft:      #9AA6B6;
  --ink-faint:     #6B7787;
  --ink-oncontrast:#EDF1F6;
  --ink-oncontrast-soft: rgba(237,241,246,.66);

  --line:          #1B2432;
  --line-strong:   #26313F;
  --line-oncontrast: rgba(255,255,255,.10);

  --accent:        #2DD4C4;
  --accent-hover:  #5BE3D6;
  --accent-soft:   rgba(45,212,196,.12);
  --accent-ring:   rgba(45,212,196,.28);
  --on-accent:     #04211E;

  --nav-bg:        rgba(8,11,17,.72);
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg:     0 30px 70px -30px rgba(0,0,0,.85);
  --hero-glow:     radial-gradient(60% 60% at 70% 30%, rgba(45,212,196,.16), transparent 70%);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Smooth theme cross-fade, suppressed on first paint */
body, .nav, .card, .panel, .btn, .chip, .faq-item, .tier, .step, footer, .band {
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
html.no-transitions *, html.no-transitions *::before, html.no-transitions *::after {
  transition: none !important;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
section { padding: clamp(72px, 10vw, 132px) 0; }
.band { background: var(--bg-elev); border-block: 1px solid var(--line); }
.band-sunk { background: var(--bg-sunk); border-block: 1px solid var(--line); }

/* ---------- TYPE ---------- */
.display {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: 1.04;
}
h1.display { font-size: clamp(40px, 6.2vw, 68px); }
h2.display { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.028em; }
h3 { font-family: 'Manrope', system-ui, sans-serif; font-weight: 700; letter-spacing: -.015em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 4px var(--accent-soft);
}
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); line-height: 1.65; }
.muted { color: var(--ink-soft); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 18px 0 0; }
.section-head p { margin-top: 18px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -8px var(--accent-ring); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 26px -8px var(--accent-ring); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--bg-elev); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: .88; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- FLOATING NAV ---------- */
.nav {
  position: fixed; z-index: 100;
  top: 14px; left: 50%;
  width: calc(100% - 28px); max-width: 1080px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), .55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px -14px rgba(12,17,23,.22), inset 0 1px 0 rgba(255,255,255,.35);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), top .35s var(--ease), max-width .35s var(--ease);
}
:root[data-theme="dark"] .nav { box-shadow: 0 8px 34px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nav { box-shadow: 0 8px 34px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); }
}
/* Condense a little once the page starts scrolling. */
.nav.scrolled {
  top: 10px; max-width: 1020px;
  background: rgba(var(--bg-rgb), .82);
  box-shadow: var(--shadow-md);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 20px; max-width: none; padding: 0 10px 0 22px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--accent), #0A5B56);
  position: relative;
  transition: transform .35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-mark::after {
  content: ""; position: absolute; inset: 9px 9px 9px 9px;
  border-radius: 3px; background: var(--bg);
  transition: background-color .4s var(--ease);
}
/* Name + sub-label stack as a two-line lockup (keeps the nav narrow on phones). */
.brand > span:last-of-type { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand-name { display: block; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.brand-sub { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); line-height: 1.3; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.navlink {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-links a.navlink:hover { color: var(--ink); background: var(--bg-sunk); }
.nav-links a.navlink.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- THEME TOGGLE (sun ⇄ moon) ---------- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft); background: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tt-icon { width: 20px; height: 20px; overflow: visible; }
.tt-orb {
  fill: currentColor;
  transform-origin: 12px 12px;
  transition: transform .5s var(--ease);
}
.tt-cut { transition: transform .5s var(--ease); }
.tt-rays {
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round;
  transform-origin: 12px 12px;
  transition: transform .5s var(--ease), opacity .35s var(--ease);
}
/* light mode = sun */
:root:not([data-theme="dark"]) .tt-cut { transform: translate(9px, -6px); }
:root:not([data-theme="dark"]) .tt-orb { transform: scale(.82); }
:root:not([data-theme="dark"]) .tt-rays { transform: rotate(0deg) scale(1); opacity: 1; }
/* dark mode = moon */
:root[data-theme="dark"] .tt-cut { transform: translate(0,0); }
:root[data-theme="dark"] .tt-orb { transform: scale(1.12); }
:root[data-theme="dark"] .tt-rays { transform: rotate(-45deg) scale(.35); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .tt-cut { transform: translate(0,0); }
  :root:not([data-theme]) .tt-orb { transform: scale(1.12); }
  :root:not([data-theme]) .tt-rays { transform: rotate(-45deg) scale(.35); opacity: 0; }
}

/* ---------- MOBILE MENU ---------- */
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; z-index: 99;
  top: 82px; left: 50%; width: calc(100% - 28px); max-width: 1080px;
  background: rgba(var(--bg-rgb), .88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 10px 22px 20px;
  transform: translateX(-50%) translateY(-10px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.mobile-menu a {
  display: block; padding: 14px 2px; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-space) + clamp(20px, 3vw, 44px)) 0 clamp(56px, 7vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -10%; height: 780px;
  background: var(--hero-glow); pointer-events: none; z-index: 1;
}
/* Treated brand imagery, sitting behind everything as an atmospheric field. */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 62% 45%;
  transition: opacity .6s var(--ease);
  animation: driftBg 26s ease-in-out infinite;
}
.hero-bg img.for-light { opacity: .85; }
.hero-bg img.for-dark  { opacity: 0; }
:root[data-theme="dark"] .hero-bg img.for-dark  { opacity: .9; }
:root[data-theme="dark"] .hero-bg img.for-light { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-bg img.for-dark  { opacity: .9; }
  :root:not([data-theme]) .hero-bg img.for-light { opacity: 0; }
}
/* Scrim keeps the left column type on a clean, readable field. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgb(var(--bg-rgb)) 4%, rgba(var(--bg-rgb),.86) 32%, rgba(var(--bg-rgb),.38) 60%, rgba(var(--bg-rgb),.18) 100%),
    linear-gradient(to bottom, rgba(var(--bg-rgb),.30) 0%, rgba(var(--bg-rgb),0) 22%, rgba(var(--bg-rgb),.72) 82%, rgb(var(--bg-rgb)) 100%);
}
@keyframes driftBg {
  0%, 100% { transform: scale(1.04) translate3d(0,0,0); }
  50%      { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero h1 .accent-word { color: var(--accent); }
.hero p.sub { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-soft); max-width: 520px; line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; }
.hero-note { font-size: 13.5px; color: var(--ink-faint); max-width: 460px; line-height: 1.6; }

/* ---------- SWIPE-CARD STACK (product visual) ---------- */
.hero-visual { position: relative; }
.stack { position: relative; height: 356px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-11px) }
}
.swipe-card {
  position: absolute; top: 28px; left: 0; right: 0; margin-inline: auto;
  width: min(328px, 100%);
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 20px; padding: 20px 20px 17px;
  box-shadow: var(--shadow-lg);
}
/* Back cards match the front card's height so they read as a real stack. */
.swipe-card.c1, .swipe-card.c2 { min-height: 214px; }
.swipe-card.c1 { transform: rotate(-9deg) translate(-20px, 20px); opacity: .40; z-index: 1; }
.swipe-card.c2 { transform: rotate(6deg)  translate(16px, 9px);   opacity: .66; z-index: 2; }
.swipe-card.c3 { z-index: 3; animation: settle 7s ease-in-out infinite; }
@keyframes settle {
  0%, 100% { transform: rotate(-1.2deg) translateY(-6px); }
  50%      { transform: rotate(.6deg)   translateY(-13px); }
}
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sc-name { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15.5px; letter-spacing: -.015em; line-height: 1.25; max-width: 180px; }
.sc-owner { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }
.sc-narrative { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin: 13px 0 15px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 10.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  letter-spacing: -.005em;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-amber { color: var(--status-amber); background: rgba(184,121,10,.14); }
.pill-green { color: var(--status-green); background: rgba(31,157,99,.14); }
.pill-red   { color: var(--status-red);   background: rgba(193,63,63,.14); }
.sc-dots { display: flex; gap: 6px; margin-bottom: 15px; }
.sc-dot { width: 26px; height: 5px; border-radius: 3px; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 13px; }
.sc-trend { font-size: 11.5px; font-weight: 700; color: var(--status-red); }
.sc-hint { font-size: 11px; font-weight: 600; color: var(--ink-faint); }

.hero-badge {
  position: absolute; right: 9%; bottom: 6px; z-index: 4;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 17px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
  animation: floaty 7s ease-in-out infinite reverse;
}
.hero-badge .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 24px; color: var(--accent); }
.hero-badge .lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

/* ---------- MARQUEE STRIP ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-elev); padding: 20px 0; overflow: hidden; position: relative; }
.strip::before, .strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg-elev), transparent); }
.strip::after { right: 0; background: linear-gradient(270deg, var(--bg-elev), transparent); }
.marquee { display: flex; width: max-content; animation: slide 34s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 14px; padding-right: 14px; }
@keyframes slide { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  background: var(--bg);
}

/* ---------- CARDS / GRIDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card .idx {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 12px;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; display: block;
}
.card h3 { font-size: 18px; margin-bottom: 12px; line-height: 1.35; }
.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- STEPS + PHONE MOCKUP ---------- */
.how-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 336px;
  gap: clamp(36px, 5vw, 84px); align-items: center;
}
.steps { max-width: 880px; }
.how-grid .steps { max-width: none; }

.step {
  position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 22px;
  padding: 28px 20px 28px 18px; border-top: 1px solid var(--line); align-items: start;
  cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0;
  transition: background-color .35s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
/* Accent rail that grows on the active step. */
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .4s var(--ease);
}
.step.is-active::before { transform: scaleY(1); }
.step.is-active { background: linear-gradient(90deg, var(--accent-soft), rgba(0,0,0,0) 62%); }
.step .n {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 38px;
  line-height: 1; color: var(--line-strong); letter-spacing: -.04em;
  transition: color .35s var(--ease);
}
.step.is-active .n { color: var(--accent); }
.step h3 { font-size: 19px; margin-bottom: 9px; transition: color .35s var(--ease); }
.step p { color: var(--ink-soft); font-size: 15px; line-height: 1.68; max-width: 560px; }
.step:not(.is-active) h3 { color: var(--ink-soft); }
.step:hover:not(.is-active) h3 { color: var(--ink); }

.how-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone { position: relative; width: min(336px, 100%); }
.phone::after {           /* soft pool of light under the device */
  content: ""; position: absolute; left: 50%; bottom: -6%; width: 78%; height: 16%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-ring), transparent 72%);
  filter: blur(14px); z-index: 0; pointer-events: none;
}
.phone-frame { position: relative; z-index: 2; width: 100%; height: auto; pointer-events: none; }
/* Aperture measured from the mockup: the frame PNG has a transparent screen. */
.phone-screen {
  position: absolute; z-index: 1; overflow: hidden;
  left: 5.848%; top: 2.382%; width: 88.304%; height: 95.119%;
  border-radius: 11.66% / 5.38%;
  background: #0B1320;
}
.phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.phone-screen img.is-on { opacity: 1; transform: none; }
.how-hint { font-size: 12.5px; color: var(--ink-faint); text-align: center; }

/* ---------- CONTRAST BAND (who it's for) ---------- */
.contrast { background: var(--bg-contrast); color: var(--ink-oncontrast); position: relative; overflow: hidden; }
.contrast::after {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 420px;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.contrast .wrap { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.contrast h2 { margin: 18px 0 22px; }
.contrast p { color: var(--ink-oncontrast-soft); font-size: 16.5px; line-height: 1.75; }
.contrast .chip { background: transparent; border-color: var(--line-oncontrast); color: var(--ink-oncontrast-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }

/* ---------- FEATURES ---------- */
.feature { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature .dot { width: 8px; height: 8px; border-radius: 50%; margin-bottom: 16px; }
.feature h4 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; letter-spacing: -.01em; }
.feature p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- PRICING ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; display: flex; flex-direction: column; position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tier.featured { border-color: var(--accent); box-shadow: 0 24px 60px -30px var(--accent-ring); }
.tier .tag {
  position: absolute; top: -11px; left: 30px;
  background: var(--accent); color: var(--on-accent);
  font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tier h3 { font-size: 15px; color: var(--ink-soft); font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.tier .amount { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -.035em; line-height: 1; }
.tier .amount span { font-size: 14px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.tier ul { list-style: none; margin: 26px 0 28px; flex-grow: 1; }
.tier li {
  font-size: 14px; color: var(--ink-soft); padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line); position: relative;
}
.tier li:first-child { border-top: none; }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 11px; height: 6px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- RESOURCE CARDS ---------- */
.res {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 32px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.res:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.res .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.res h3 { font-size: 21px; line-height: 1.3; }
.res p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.res .go { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.res:hover .go .arrow { transform: translateX(4px); }
.res .go .arrow { transition: transform .22s var(--ease); }

/* ---------- CLOSING CTA ---------- */
.closing { text-align: center; }
.closing .panel {
  background: var(--bg-contrast); border-radius: 28px; padding: clamp(48px, 7vw, 84px) 32px;
  position: relative; overflow: hidden; border: 1px solid var(--line);
}
.closing .panel::after {
  content: ""; position: absolute; inset: -60% 20% auto 20%; height: 480px;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.closing .panel > * { position: relative; z-index: 1; }
.closing h2 { color: var(--ink-oncontrast); margin-bottom: 18px; }
.closing p { color: var(--ink-oncontrast-soft); font-size: 16.5px; max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer .fl { font-size: 13px; color: var(--ink-faint); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer nav a { font-size: 13px; color: var(--ink-soft); transition: color .18s var(--ease); }
footer nav a:hover { color: var(--accent); }

/* ---------- PAGE HEADER (interior) ---------- */
.page-head {
  padding: calc(var(--nav-space) + clamp(14px, 2.5vw, 34px)) 0 clamp(36px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: -30% -20% auto -10%; height: 560px;
  background: var(--hero-glow); pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; max-width: 820px; }
.crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 20px; }
.crumb a { color: var(--ink-soft); font-weight: 500; }
.crumb a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.page-head p { margin-top: 20px; max-width: 600px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 26px; transition: border-color .25s var(--ease), background-color .4s var(--ease);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16.5px; letter-spacing: -.012em;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .sign {
  flex-shrink: 0; width: 24px; height: 24px; position: relative;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform .3s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.faq-item .sign::before, .faq-item .sign::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink-soft);
  transform: translate(-50%, -50%); transition: opacity .25s var(--ease), background-color .25s var(--ease);
}
.faq-item .sign::before { width: 9px; height: 1.6px; }
.faq-item .sign::after { width: 1.6px; height: 9px; }
.faq-item[open] .sign { transform: rotate(135deg); border-color: var(--accent); background: var(--accent-soft); }
.faq-item[open] .sign::before, .faq-item[open] .sign::after { background: var(--accent); }
.faq-answer { overflow: hidden; }
.faq-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.72; padding-bottom: 24px; max-width: 680px; }
.faq-item[open] .faq-answer { animation: unfold .34s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: translateY(0) } }

.faq-foot { max-width: 820px; margin: 44px auto 0; padding: 30px 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.faq-foot p { font-size: 14.5px; color: var(--ink-soft); max-width: 460px; margin: 0; }

/* ---------- ARTICLE ---------- */
.page-head.narrow .wrap { max-width: 720px; }
.article { max-width: 720px; margin-inline: auto; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 22px; }
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.article > p { font-size: 17px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 22px; }
.article > p.first { font-size: 20px; color: var(--ink); line-height: 1.65; }
.article h2 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(23px, 2.6vw, 29px); letter-spacing: -.025em; color: var(--ink); margin: 56px 0 20px; line-height: 1.25; }
.article ul { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.article ul li { font-size: 17px; color: var(--ink-soft); line-height: 1.7; padding: 7px 0 7px 24px; position: relative; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .5; }
.article strong { color: var(--ink); font-weight: 650; }
.pull {
  margin: 40px 0; padding: 26px 30px; border-left: 2px solid var(--accent);
  background: var(--bg-elev); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: -.02em; line-height: 1.4; color: var(--ink);
}
.article-cta { margin-top: 56px; padding: 34px 34px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.article-cta p { font-size: 15px; color: var(--ink-soft); max-width: 400px; margin: 0; line-height: 1.6; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- SCROLL PROGRESS (article) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 200; transition: width .1s linear; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-visual { order: 2; margin-top: 8px; }
  .phone { width: min(288px, 78%); }
  .hero .wrap { grid-template-columns: 1fr; }
  .stack { height: 372px; margin-top: 12px; }
  .hero-badge { right: 6px; bottom: 8px; }
  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(var(--bg-rgb),.55) 0%, rgba(var(--bg-rgb),.72) 40%, rgba(var(--bg-rgb),.86) 75%, rgb(var(--bg-rgb)) 100%);
  }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 14px 24px 14px; }
  .step .n { font-size: 30px; }
  .nav-actions .btn-primary { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .faq-item summary { font-size: 15.5px; }
  .article-cta, .faq-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- MOTION PREFERENCES ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
  .hero-bg img, .hero-badge { animation: none; }
  .swipe-card.c3 { animation: none; transform: rotate(-1.2deg) translateY(-6px); }
}
