/* ============================================================
   ReferBro — landing styles (round 2)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --cream:      #FAF7F0;
  --cream-2:    #F3EEE3;
  --cream-3:    #EAE2D2;
  --white:      #FFFFFF;
  --ink:        #1A1A1A;
  --ink-soft:   #595751;
  --ink-faint:  #8A877F;
  --emerald:    #047857;
  --emerald-d:  #036249;
  --emerald-dd: #053A2B;
  --green:      #10B981;
  --green-d:    #0E9E70;
  --green-tint: #DEF7EC;
  --green-tint2:#EAFBF3;
  --gold:       #E3A434;
  --line:       rgba(26,26,26,.09);
  --line-soft:  rgba(26,26,26,.06);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm:  0 1px 2px rgba(26,26,26,.05), 0 8px 22px -14px rgba(26,26,26,.18);
  --shadow:     0 2px 4px rgba(26,26,26,.04), 0 22px 48px -22px rgba(26,26,26,.22);
  --shadow-pop: 0 30px 70px -28px rgba(4,120,87,.5);
  --shadow-btn: 0 8px 20px -8px rgba(16,185,129,.55);

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; }
::selection { background: var(--green); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 2; }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-text);
  font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.eyebrow.on-dark { color: #6EE7B7; }
.eyebrow.on-dark::before { background: #6EE7B7; box-shadow: 0 0 0 4px rgba(110,231,183,.18); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 5.6vw, 4rem); margin-top: 18px; text-wrap: balance; overflow-wrap: break-word; }
.section-head p { margin-top: 20px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }

/* dark sections */
.dark { background: linear-gradient(165deg, var(--emerald-dd) 0%, #064E3B 52%, #0A6B4E 100%); color: var(--cream); }
.dark h2 { color: #fff; }
.dark .section-head p { color: rgba(255,255,255,.86); }

/* source line */
.src { margin-top: 22px; font-size: 13.5px; color: var(--ink-faint); }
.src a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: rgba(26,26,26,.2); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.src a:hover { color: var(--emerald); text-decoration-color: var(--emerald); }
.src.on-dark { color: rgba(255,255,255,.55); }
.src.on-dark a { color: rgba(255,255,255,.8); text-decoration-color: rgba(255,255,255,.3); }
.src.on-dark a:hover { color: #6EE7B7; text-decoration-color: #6EE7B7; }

/* grain + patterns (replace blobs) */
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 120% at 70% 10%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 120% at 70% 10%, #000 30%, transparent 80%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap; letter-spacing: -.01em;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn-primary { background: var(--green); color: #053024; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(16,185,129,.6); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { font-size: 18px; padding: 18px 32px; }
.btn-ghost { background: var(--ink); color: var(--cream); }
.btn-ghost:hover { background: #000; transform: translateY(-2px); }
.tg-ico { width: 19px; height: 19px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--emerald); position: relative;
}
.link-arrow::after { content: ""; position: absolute; left: 0; right: 22px; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--cream) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--cream) 92%, transparent); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; box-shadow: var(--shadow-sm); background: var(--white); }
.brand b { color: var(--emerald); font-weight: 700; }

/* role switch */
.roleswitch {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px;
  background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  position: relative;
}
.roleswitch button {
  position: relative; z-index: 1;
  font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  transition: color .25s var(--ease);
}
.roleswitch button[aria-pressed="true"] { color: #053024; }
.roleswitch .thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  border-radius: 999px; background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .34s var(--ease), width .34s var(--ease);
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-weight: 500; font-size: 15.5px; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header .btn { padding: 11px 20px; font-size: 15px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; margin-left: auto; align-items: center; justify-content: center; background: var(--white); box-shadow: var(--shadow-sm); }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* role text swap */
body[data-role="candidate"] .role-referrer.role-block,
body[data-role="referrer"] .role-candidate.role-block { display: none; }
body[data-role="candidate"] .only-referrer { display: none !important; }
body[data-role="referrer"] .only-candidate { display: none !important; }
/* transform-only entrance so content is never hidden if the anim is paused/throttled */
.role-swap { animation: roleIn .5s var(--ease) both; }
@keyframes roleIn { from { transform: translateY(12px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .role-swap { animation: none; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(52px, 7vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 46px); align-items: center; min-height: clamp(400px, 46vw, 560px); }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(1.9rem, 3.1vw, 2.85rem); font-weight: 800; line-height: 1.06; letter-spacing: -.022em; text-wrap: balance; overflow-wrap: break-word; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); box-shadow: var(--shadow-sm);
  padding: 8px 15px 8px 9px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 26px; white-space: nowrap;
}
.hero-badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; color: var(--emerald); }
.hero-badge .dot svg { width: 13px; height: 13px; }
.hero h1 .accent { color: var(--emerald); }
.hero-sub { margin-top: 24px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: flex-start; gap: 9px; margin-top: 26px; font-size: 14px; color: var(--ink-faint); }
.hero-trust span { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 48ch; text-wrap: pretty; line-height: 1.4; }
.hero-trust svg { width: 17px; height: 17px; color: var(--emerald); flex: none; margin-top: 1px; }

/* ---------- Hero scene (3-actor placeholder) ---------- */
.hero-scene {
  position: relative; z-index: 2; width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow), 0 0 0 1px var(--line-soft);
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  animation: heroShadow 20s ease-in-out infinite;
}
.hs-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 52% 58%;
  will-change: transform;
  animation: kenBurns 20s ease-in-out infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .hs-img { animation: kenBurns 20s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene, .hs-img { animation: none; }
}
@keyframes kenBurns {
  0%   { transform: scale(1.04) translate(0, 0); }
  50%  { transform: scale(1.10) translate(-0.8%, -1%); }
  100% { transform: scale(1.04) translate(0, 0); }
}
@keyframes heroShadow {
  0%,100% { box-shadow: 0 22px 46px -22px rgba(26,26,26,.24), 0 0 0 1px var(--line-soft); }
  50%     { box-shadow: 0 30px 60px -20px rgba(26,26,26,.32), 0 0 0 1px var(--line-soft); }
}

/* ============================================================
   Problem (light)
   ============================================================ */
.problem { background: var(--cream-2); }
.prob-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prob-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 16px; text-wrap: balance; }
.prob-body { padding-top: 6px; }
.prob-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.prob-list li { position: relative; padding-left: 34px; font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--ink); line-height: 1.42; text-wrap: pretty; }
.prob-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 20px; height: 2.5px; border-radius: 2px; background: var(--emerald); }
.prob-body .src { margin-top: 26px; }
.prob-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-top: 16px; }
.prob-copy > p { margin-top: 22px; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-soft); text-wrap: pretty; }

/* candidate figure — stack of grey rows */
.prob-figure { position: relative; }
.pf-stack { display: flex; flex-direction: column; gap: 9px; background: var(--white); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.pf-row { height: 22px; border-radius: 6px; background: var(--cream-3); }
.pf-row:nth-child(even) { width: 88%; }
.pf-row:nth-child(3n) { width: 94%; }
.pf-you {
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  height: 30px; background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 13px; width: 100% !important;
}
.pf-you em { font-style: normal; font-family: var(--font-display); font-weight: 700; color: #fff; }
.pf-tag { position: absolute; right: 18px; bottom: -14px; background: var(--white); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 13px; color: var(--ink-soft); }

/* referrer figure — idle bonus */
.pf-bonus { background: var(--white); border-radius: var(--r-lg); padding: 38px 32px; box-shadow: var(--shadow-sm); text-align: center; position: relative; }
.pf-bonus .pf-coin {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px;
  background: radial-gradient(circle at 35% 30%, #F6CB6B, var(--gold)); color: #6B4A06;
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  box-shadow: 0 10px 22px -8px rgba(227,164,52,.7), inset 0 0 0 3px rgba(255,255,255,.45);
  opacity: .55; filter: grayscale(.35);
}
.pf-bonus b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); letter-spacing: -.04em; }
.pf-bonus span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 15px; max-width: 26ch; margin-inline: auto; }

/* ============================================================
   Solution / Value (dark)
   ============================================================ */
/* big accent thesis (candidate) */
.big-thesis { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; line-height: 1.0; font-size: clamp(2.5rem, 6.4vw, 4.8rem); text-wrap: balance; margin-bottom: clamp(26px, 3.4vw, 40px); }
.big-thesis .muted { color: rgba(255,255,255,.5); }
.big-thesis .hl { color: #6EE7B7; }
/* lead thesis sentence (referrer) */
.lead-thesis { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-size: clamp(1.55rem, 3.1vw, 2.5rem); color: #fff; max-width: 26ch; text-wrap: balance; margin-bottom: clamp(24px, 3vw, 38px); }
.lead-thesis .hl { color: #6EE7B7; }
/* dark bullet list */
.sol-list { list-style: none; display: grid; gap: 16px 44px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 940px; }
.sol-list li { position: relative; padding-left: 30px; color: rgba(255,255,255,.9); font-size: clamp(1.04rem, 1.4vw, 1.2rem); line-height: 1.42; text-wrap: pretty; }
.sol-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 18px; height: 2.5px; border-radius: 2px; background: #6EE7B7; }
/* what-referbro-does callout */
.sol-do { margin-top: clamp(28px, 3.5vw, 42px); display: flex; align-items: center; gap: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 22px 30px; max-width: 840px; backdrop-filter: blur(4px); }
.sol-do img { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: var(--shadow-sm); }
.sol-do p { color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 1.45vw, 1.18rem); line-height: 1.45; text-wrap: pretty; }
.sol-do b { color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 32px 28px 30px; backdrop-filter: blur(4px);
}
.stat-card b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; letter-spacing: -.04em; line-height: 1; display: block; }
.stat-card p { margin-top: 16px; color: rgba(255,255,255,.82); font-size: 16px; text-wrap: pretty; }
.stat-card p span { color: #6EE7B7; font-weight: 600; }

/* referrer value viz */
.value-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.value-viz { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 30px 28px; position: relative; overflow: hidden; }
.vv-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 16px; margin-bottom: 22px; }
.vv-row:last-of-type { margin-bottom: 0; }
.vv-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: rgba(255,255,255,.85); }
.vv-track { display: flex; gap: 7px; align-items: center; }
.vv-track i { height: 14px; border-radius: 4px; background: rgba(255,255,255,.2); flex: 1; }
.vv-new .vv-track i { background: var(--green); box-shadow: 0 4px 12px -4px rgba(16,185,129,.6); }
.vv-old .vv-track i { max-width: 22px; }
.vv-note { grid-column: 2; font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: -14px; }
.vv-new .vv-note { color: #6EE7B7; }
.vv-coins { display: flex; gap: 8px; margin-top: 22px; }
.vv-coins span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #F6CB6B, var(--gold)); color: #6B4A06;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 14px -5px rgba(227,164,52,.6), inset 0 0 0 2px rgba(255,255,255,.4);
}

/* ============================================================
   How it works — phones + 5 steps
   ============================================================ */
.how { background: var(--cream); }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 30px); max-width: 880px; margin: 0 auto clamp(44px, 6vw, 64px); }
.phone {
  background: var(--cream); border-radius: 30px; padding: 12px; position: relative;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line-soft);
  border: 7px solid #15110C;
}
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 5px; border-radius: 4px; background: #15110C; }
.ph-top { display: flex; align-items: center; gap: 9px; padding: 14px 6px 12px; border-bottom: 1px solid var(--line-soft); }
.ph-top img { width: 30px; height: 30px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.ph-top span { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; display: flex; flex-direction: column; line-height: 1.1; }
.ph-top span i { font-style: normal; font-family: var(--font-text); font-weight: 500; font-size: 11px; color: var(--emerald); }
.ph-chat { padding: 16px 6px 10px; display: flex; flex-direction: column; gap: 10px; min-height: 176px; }
.bub { font-size: 13px; line-height: 1.4; padding: 10px 13px; border-radius: 15px; max-width: 90%; }
.bub.bot { background: var(--white); box-shadow: var(--shadow-sm); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--ink); }
.bub.me { background: var(--green); color: #053024; border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 600; }
.bub.file { display: inline-flex; align-items: center; gap: 8px; }
.bub.file .fic { width: 22px; height: 22px; flex: none; }
.bub.file .fic svg { width: 100%; height: 100%; }
.bub.ok { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-family: var(--font-display); color: var(--emerald); }
.bub.ok .okic { width: 24px; height: 24px; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; flex: none; }
.bub.ok .okic svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 100%; }
.chip { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.chip.on { background: var(--green-tint); color: var(--emerald-d); box-shadow: inset 0 0 0 1.5px var(--green); }

/* 5 steps */
.steps5 { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.step5 {
  background: var(--white); border-radius: var(--r-lg); padding: 24px 20px 26px;
  box-shadow: var(--shadow-sm); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step5:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.s-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--green-tint); color: var(--emerald); font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.step5.is-accent { background: linear-gradient(165deg, var(--emerald-dd), #0A6B4E); color: var(--cream); box-shadow: var(--shadow-pop); }
.step5.is-accent .s-num { background: var(--green); color: #053024; }
.step5 h3 { font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.16; }
.step5.is-accent h3 { color: #fff; }
.step5 p { margin-top: 11px; color: var(--ink-soft); font-size: 14.5px; text-wrap: pretty; }
.step5.is-accent p { color: rgba(255,255,255,.85); }

.fineprint { margin-top: 28px; font-size: 13.5px; color: var(--ink-faint); max-width: 80ch; line-height: 1.5; }
.commit {
  margin-top: 30px; display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--r); padding: 18px 24px 18px 18px;
  box-shadow: var(--shadow-sm); font-weight: 600; font-size: 15.5px; color: var(--ink); max-width: 760px; text-wrap: pretty;
}
.commit .ic { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--green-tint); color: var(--emerald); display: grid; place-items: center; }
.commit .ic svg { width: 18px; height: 18px; }

/* ============================================================
   Pricing (info-style)
   ============================================================ */
.pricing { background: var(--cream-2); }
.price-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.pcard {
  background: var(--white); border-radius: var(--r-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm); position: relative; border: 1.5px solid transparent;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pcard.popular { background: linear-gradient(165deg, var(--emerald-dd), #0A6B4E); color: var(--cream); box-shadow: var(--shadow-pop); border-color: rgba(16,185,129,.4); }
.pcard .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #053024; font-weight: 700; font-size: 12px; letter-spacing: .03em; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-btn); white-space: nowrap; }
.pc-head { display: flex; flex-direction: column; gap: 4px; }
.pc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.pcard.popular .pc-name { color: #fff; }
.pc-credits { font-size: 14px; color: var(--ink-faint); font-weight: 500; }
.pcard.popular .pc-credits { color: rgba(255,255,255,.72); }
.pc-price { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink-soft); margin-top: auto; }
.pc-price b { font-weight: 800; font-size: 2.1rem; color: var(--ink); letter-spacing: -.04em; }
.pcard.popular .pc-price { color: rgba(255,255,255,.78); }
.pcard.popular .pc-price b { color: #fff; }
.price-cta { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-note { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq-aside { position: sticky; top: 100px; }
.faq-cta { margin-top: 24px; background: linear-gradient(165deg, var(--emerald-dd), #0A6B4E); color: var(--cream); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-pop); display: flex; gap: 16px; align-items: center; }
.faq-cta img { width: 60px; height: 60px; border-radius: 15px; box-shadow: var(--shadow-sm); flex: none; }
.faq-cta h3 { font-size: 1.12rem; color: #fff; margin-bottom: 14px; line-height: 1.15; text-wrap: balance; }
.faq-cta .btn { background: var(--green); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; padding: 22px 24px; font-family: var(--font-text); font-weight: 600; font-size: 1.06rem; color: var(--ink); letter-spacing: -.01em; }
.faq-q .qmark { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--green-tint); color: var(--emerald); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.faq-q .chev { margin-left: auto; flex: none; width: 22px; height: 22px; color: var(--ink-faint); transition: transform .3s var(--ease); }
.faq-item.open .chev { transform: rotate(180deg); color: var(--emerald); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 24px 68px; color: var(--ink-soft); font-size: 16px; text-wrap: pretty; }
.faq-legal-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald); background: var(--green-tint); padding: 4px 10px; border-radius: 999px; margin: 0 0 14px 68px; }

/* ============================================================
   Final CTA (dark)
   ============================================================ */
.final { padding-block: clamp(40px, 6vw, 80px); }
.final-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #053827 0%, #0A5C42 60%, #0E7553 100%);
  border-radius: var(--r-xl); padding: clamp(44px, 6vw, 80px);
  box-shadow: var(--shadow-pop); color: var(--cream);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; align-items: center;
}
.final-copy { position: relative; z-index: 2; min-width: 0; }
.final-card h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); color: #fff; overflow-wrap: break-word; }
.final-card p { margin-top: 18px; color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 46ch; }
.final-card .cta-row { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.final-mascot { position: relative; z-index: 2; justify-self: center; }
.final-mascot .card {
  position: relative; background: #FEF6E7; border-radius: 30px; padding: 16px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); transform: rotate(-2deg);
}
.final-mascot .card::after {
  content: ""; position: absolute; top: -14px; right: 22px; width: 44px; height: 18px;
  background: rgba(16,185,129,.5); border-radius: 4px; transform: rotate(6deg);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.3);
}
.final-mascot img { width: clamp(190px, 25vw, 280px); display: block; }
.final-mascot .ring { position: absolute; inset: -7%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.22); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .final-mascot .ring { animation: spin 26s linear infinite; }
  .final-mascot .card { animation: bob2 4s ease-in-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob2 { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding-block: clamp(48px, 6vw, 76px) 36px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.footer .brand { margin-bottom: 16px; }
.footer-top > div p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }
.footer h4 { font-family: var(--font-text); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--ink-soft); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--emerald); }
.footer-tg { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-weight: 600; color: var(--emerald); }
.footer-tg svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-faint); font-size: 14px; }
.footer-legal { max-width: 78ch; font-size: 13px; color: var(--ink-faint); line-height: 1.6; margin-top: 18px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* mobile menu base */
.mobile-menu { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .steps5 { grid-template-columns: repeat(3, 1fr); }
  .step5:nth-child(4), .step5:nth-child(5) { grid-column: span 1; }
  .price-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .header .header-cta { display: none; }
  .burger { display: flex; }
  .header-inner { gap: 12px; }
  .roleswitch button { padding: 8px 12px; font-size: 13.5px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-scene { order: 2; max-width: 640px; width: 100%; margin-inline: auto; }
  .prob-grid, .value-grid { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr; max-width: 360px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-aside { position: static; }
  .final-card { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .final-mascot { justify-self: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .steps5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .roleswitch { width: 100%; }
  .roleswitch button { flex: 1; }
  .header-inner { flex-wrap: wrap; height: auto; padding-block: 12px; row-gap: 10px; }
  .brand { order: 1; } .burger { order: 2; } .roleswitch { order: 3; width: 100%; }
  .steps5 { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .pcard.popular { order: -1; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-cta { gap: 14px; }
  .hero-cta .btn { width: 100%; }
  .price-cta { gap: 14px; }
  .price-cta .btn { width: 100%; }
  /* long CTA labels must wrap instead of blowing out the narrow card
     (hero/pricing buttons span the full viewport and still fit on one
     line — scope the wrap to the padded final card only) */
  .final-card .btn-lg { white-space: normal; text-align: center; width: 100%; }
  .final-card { padding: 32px 22px; }
}

/* mobile menu panel */
.mobile-menu.show { display: block; position: fixed; inset: 0; z-index: 100; }
.mobile-menu .scrim { position: absolute; inset: 0; background: rgba(26,26,26,.4); backdrop-filter: blur(3px); }
.mobile-menu .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: var(--cream); padding: 24px; box-shadow: -20px 0 60px -20px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 6px; animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.mobile-menu .panel .close { align-self: flex-end; width: 42px; height: 42px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 22px; margin-bottom: 8px; }
.mobile-menu .panel a { padding: 14px 8px; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .panel .btn { margin-top: 16px; }
