/* ============================================================
   Pikarta Landing v3 — Light theme, full-width, scroll-driven
   Brand: #0E9F6E  App-bg: #EEF0ED  Surface: #FFF
   ============================================================ */

:root {
  --bg:     #EEF0ED;
  --bg2:    #E6EAE6;
  --srf:    #ffffff;
  --srf2:   #F7F8F6;

  --tx:     #111827;
  --txS:    #6B7280;
  --txF:    #9CA3AF;

  --gr:     #0E9F6E;
  --grB:    #3DBA8A;
  --grD:    #0A5C3A;
  --gr50:   rgba(14,159,110,.10);
  --gr100:  #C8EEDC;
  --grShad: rgba(14,159,110,.35);

  --brd:    rgba(0,0,0,.08);
  --brdB:   rgba(0,0,0,.14);

  --shd:    0 1px 3px rgba(0,0,0,.07), 0 6px 18px rgba(0,0,0,.06);
  --shd-gr: 0 4px 20px rgba(14,159,110,.32), 0 1px 4px rgba(0,0,0,.08);

  --r:   12px;
  --rL:  20px;
  --rXL: 32px;

  --ease: cubic-bezier(.22,.68,.18,1);
  --maxw: 1560px;
  --pad:  clamp(20px, 5vw, 80px);

  --font: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font);
  background: var(--bg); color: var(--tx);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { margin: 0; font-family: var(--font); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

:focus-visible { outline: 2px solid rgba(14,159,110,.5); outline-offset: 4px; }

.skip {
  position: fixed; top: 16px; left: 16px; z-index: 999;
  padding: 10px 18px; border-radius: 12px;
  background: var(--gr); color: #fff; font-weight: 700;
  transform: translateY(-200%); transition: transform .2s; white-space: nowrap;
}
.skip:focus { transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(238,240,237,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--brd);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 24px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--txS); transition: color .2s; }
.nav-links a:hover { color: var(--tx); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-help {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 12px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--txS);
  transition: color .2s, background .2s;
}
.nav-help:hover { color: var(--tx); background: rgba(0,0,0,.05); }

.lang-toggle { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--brdB);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-weight: 700; font-size: 13px; color: var(--tx);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.lang-current:hover { border-color: var(--gr); box-shadow: 0 2px 8px rgba(14,159,110,.16); }
.lang-toggle.open .lang-current { border-color: var(--gr); color: var(--grD); }
.lang-chevron { transition: transform .2s; flex-shrink: 0; color: var(--gr); }
.lang-toggle.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  display: flex; flex-direction: column; gap: 2px; min-width: 92px; padding: 4px;
  border-radius: 12px; background: #fff; border: 1px solid var(--brd);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.lang-toggle.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  background: transparent; padding: 8px 12px; border-radius: 8px;
  font-weight: 700; font-size: 13px; color: var(--txF); text-align: left;
  transition: background .2s, color .2s;
}
.lang-menu button:hover { background: rgba(0,0,0,.06); }
.lang-menu button.active { background: var(--gr); color: #fff; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none; width: 40px; height: 40px;
  background: transparent; padding: 0;
  align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--brd);
  flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--tx); border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 50;
  background: var(--bg); padding: 100px var(--pad) 48px;
  flex-direction: column; gap: 32px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1; transform: none; pointer-events: auto;
}
.mobile-menu a {
  font-size: 28px; font-weight: 800; color: var(--tx);
  letter-spacing: -.02em; transition: color .2s;
}
.mobile-menu a:hover { color: var(--gr); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 24px; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.975) !important; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }

.btn-primary {
  background: var(--gr); color: #fff;
  box-shadow: var(--shd-gr);
}
.btn-primary:hover {
  background: var(--grB);
  box-shadow: 0 8px 32px rgba(14,159,110,.45), 0 2px 8px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--srf); border: 1.5px solid var(--brdB); color: var(--tx);
  box-shadow: var(--shd);
}
.btn-ghost:hover { border-color: var(--gr); color: var(--gr); transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(40px, 4vw, 64px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
/* Subtle mesh gradient background */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(14,159,110,.12), transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(14,159,110,.08), transparent 60%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto;
  gap: 0 clamp(48px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 28px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: clamp(17px, 1.5vw, 20px); color: var(--tx);
}
.eyebrow-bar {
  width: 3px; height: 16px; border-radius: 2px;
  background: var(--gr); flex-shrink: 0;
}

.hero-h1 {
  font-weight: 800;
  font-stretch: 112.5%;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--tx);
  text-wrap: balance;
}
.hero-h1 .gr { color: var(--gr); }

.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65;
  color: var(--txS); max-width: 540px; font-weight: 420;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--txS);
}
.trust-icon {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--gr50); border: 1px solid rgba(14,159,110,.28);
  display: flex; align-items: center; justify-content: center;
}
.trust-icon svg { width: 11px; height: 11px; stroke: var(--gr); stroke-width: 2.8; fill: none; }

/* ============================================================
   PHONE MOCKUP DEVICE
   ============================================================ */
.phone-wrap { position: relative; width: 390px; flex-shrink: 0; }

.phone-shadow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 50px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.2), transparent 70%);
  filter: blur(12px); z-index: -1; pointer-events: none;
}
.phone-frame {
  position: relative; width: 390px; border-radius: 60px;
  background: #1e1e1e;
  padding: 16px;
  box-shadow:
    0 60px 120px rgba(0,0,0,.22),
    0 20px 40px rgba(0,0,0,.12),
    0 0 0 1.5px rgba(255,255,255,.12),
    inset 0 0 0 1px rgba(255,255,255,.06);
}
/* Dynamic island */
.phone-frame::before {
  content: "";
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 126px; height: 36px;
  background: #1e1e1e; border-radius: 0 0 24px 24px; z-index: 10;
}
/* Side button highlights */
.phone-frame::after {
  content: "";
  position: absolute; top: 0; right: -3px; bottom: 0; width: 3px;
  background: linear-gradient(to bottom,
    transparent 5%, rgba(255,255,255,.08) 15%,
    rgba(255,255,255,.05) 50%, rgba(255,255,255,.08) 85%, transparent 95%);
  border-radius: 0 60px 60px 0;
}
.phone-screen {
  background: #fff; border-radius: 46px; overflow: hidden;
  height: 740px; position: relative;
}
/* Hero phone shows the home screen — match the in-app gray-green bg
   so the empty area below the stats row doesn't look like a blank slate. */
.hero .phone-screen { background: #EEF0ED; }

/* Idle float — hero only; the story phone stays still so it doesn't fight
   the scroll-driven screen transitions. Shadow breathes in counter-phase. */
.hero .phone-frame  { animation: phone-float 6s ease-in-out infinite; }
.hero .phone-shadow { animation: shadow-breathe 6s ease-in-out infinite; }
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes shadow-breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 1; }
  50%      { transform: translateX(-50%) scale(.92);  opacity: .7; }
}


/* Screen transitions */
.p-screens { position: relative; width: 100%; height: 100%; }
.p-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(.99);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none; overflow: hidden;
}
/* from-above is a JS-committed start position for backward navigation;
   it is removed in the same frame is-active is added, so is-active must win
   the cascade — keep this rule above it. */
.p-screen.from-above  { opacity: 0; transform: translateY(-16px) scale(.99); }
.p-screen.is-active   { opacity: 1; transform: none; pointer-events: auto; }
.p-screen.is-out      { opacity: 0; transform: translateY(-16px) scale(.99); }
.p-screen.is-out-down { opacity: 0; transform: translateY(16px) scale(.99); }

/* Shared status bar */
.p-sbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px; flex-shrink: 0;
  font-size: 12px; font-weight: 700; color: #111827;
}
.p-sbar.on-dark { color: rgba(255,255,255,.9); }

/* ====================================================
   SCREEN 0 — REGISTER / CREATE ACCOUNT
   ==================================================== */
.s0 { background: #fff; }
.s0-body {
  flex: 1; overflow-y: auto; padding: 4px 22px 24px;
  display: flex; flex-direction: column;
}
.s0-body::-webkit-scrollbar { display: none; }

.s0-back {
  display: flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 600; color: #0E9F6E;
  padding: 2px 0 8px; flex-shrink: 0;
}
.s0-back svg { width: 18px; height: 18px; stroke: #0E9F6E; stroke-width: 2.5; fill: none; }

.s0-heading { font-size: 28px; font-weight: 900; color: #111827; letter-spacing: -.03em; margin-bottom: 5px; }
.s0-sub { font-size: 14px; color: #6B7280; line-height: 1.5; margin-bottom: 22px; }

.s0-form { display: flex; flex-direction: column; gap: 14px; }
.s0-field { display: flex; flex-direction: column; gap: 5px; }
.s0-lbl { font-size: 11px; font-weight: 800; color: #6B7280; letter-spacing: .08em; text-transform: uppercase; }
.s0-inp {
  background: #fff; border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 14px; padding: 13px 16px;
  font-size: 15px; font-weight: 600; color: #111827;
  font-family: inherit; min-height: 50px;
  position: relative; display: flex; align-items: center;
  transition: border-color .25s, box-shadow .25s;
}
.s0-inp.focused {
  border-color: #0E9F6E;
  box-shadow: 0 0 0 4px rgba(14,159,110,.12);
}
.s0-inp .cursor {
  display: inline-block; width: 2px; height: 18px;
  background: #0E9F6E; margin-left: 1px; vertical-align: middle;
  animation: blink .8s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.s0-inp.pass-field { letter-spacing: .2em; }

.s0-btn {
  margin-top: 16px; padding: 16px;
  background: #0E9F6E; color: #fff; border: 0;
  border-radius: 16px; font-size: 16px; font-weight: 800;
  font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 18px rgba(14,159,110,.38), 0 1px 4px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.s0-btn.pulse { animation: btn-pulse 1.4s ease 3; }
@keyframes btn-pulse {
  0%,100% { transform: scale(1); box-shadow: 0 4px 18px rgba(14,159,110,.38); }
  40% { transform: scale(1.03); box-shadow: 0 8px 30px rgba(14,159,110,.55); }
}
.s0-btn svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.5; fill: none; }

.s0-signin {
  text-align: center; margin-top: 16px;
  font-size: 13px; color: #9CA3AF;
}
.s0-signin span { color: #0E9F6E; font-weight: 700; }

/* Terms row */
.s0-terms {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 2px;
}
.s0-checkbox {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  background: #0E9F6E; display: flex; align-items: center; justify-content: center;
}
.s0-checkbox svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; }
.s0-terms-txt { font-size: 12px; color: #6B7280; line-height: 1.5; }
.s0-terms-txt a, .s0-terms-link { color: #0E9F6E; font-weight: 600; }

/* ====================================================
   SCREEN 1 — DESIGN CARD
   ==================================================== */
.s1 { background: #fff; }
.s1-body { flex: 1; overflow-y: auto; padding: 0 20px 16px; }
.s1-body::-webkit-scrollbar { display: none; }

.s1-progress {
  height: 4px; background: rgba(0,0,0,.08);
  margin: 0 20px 0; flex-shrink: 0;
}
.s1-prog-fill {
  height: 100%; background: #0E9F6E;
  border-radius: 0 2px 2px 0;
  transition: width .6s var(--ease);
}

.s1-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 12px; flex-shrink: 0;
}
.s1-back { display: flex; align-items: center; gap: 3px; font-size: 15px; font-weight: 600; color: #0E9F6E; }
.s1-back svg { width: 17px; height: 17px; stroke: #0E9F6E; stroke-width: 2.5; fill: none; }
.s1-title { font-size: 16px; font-weight: 800; color: #111827; }

/* Wallet card preview */
.wcard {
  border-radius: 22px; padding: 18px 18px 14px; color: #fff;
  position: relative; overflow: hidden;
  margin-bottom: 16px;
  transition: background .5s var(--ease);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.wcard::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 80% at 80% 0%, rgba(255,255,255,.25), transparent 55%);
  pointer-events: none;
}
.wc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wc-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.wc-name { font-size: 14px; font-weight: 700; flex: 1; margin-left: 10px; }
.wc-type { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.wc-count { font-size: 30px; font-weight: 900; line-height: 1; margin-bottom: 9px; }
.wc-stamps { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.wc-stamp { width: 19px; height: 19px; border-radius: 50%; background: rgba(255,255,255,.88); }
.wc-stamp.e { background: transparent; border: 2px solid rgba(255,255,255,.5); }
.wc-reward { font-size: 11px; opacity: .78; margin-bottom: 10px; }
.wc-bar {
  background: rgba(255,255,255,.12); border-radius: 6px; padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.wc-bar-val { font-size: 11px; font-weight: 700; }
.wc-barcode {
  width: 50px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.9); padding: 5px;
  overflow: hidden; flex-shrink: 0;
}
.wc-barcode-lines {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    90deg, #333 0, #333 2px, transparent 2px, transparent 3px,
    #333 3px, #333 4px, transparent 4px, transparent 6px,
    #333 6px, #333 7px, transparent 7px, transparent 9px
  );
}

/* Card name input */
.s1-field { margin-bottom: 14px; }
.s1-lbl { font-size: 11px; font-weight: 800; color: #6B7280; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.s1-inp {
  background: #F7F8F6; border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 13px; padding: 12px 14px;
  font-size: 15px; font-weight: 600; color: #111827; font-family: inherit;
}

/* Color swatches */
.s1-colors-lbl { font-size: 11px; font-weight: 800; color: #6B7280; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.s1-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sw {
  width: 28px; height: 28px; border-radius: 50%;
  position: relative; cursor: pointer;
  transition: transform .2s;
  flex-shrink: 0;
}
.sw:hover { transform: scale(1.12); }
.sw.active::after {
  content: "✓";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* Card type tabs */
.s1-types-lbl { font-size: 11px; font-weight: 800; color: #6B7280; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.s1-types { display: flex; gap: 7px; margin-bottom: 16px; }
.s1-type {
  flex: 1; padding: 9px 4px; border-radius: 11px;
  border: 1.5px solid rgba(0,0,0,.1);
  background: #F7F8F6; font-size: 11px; font-weight: 700;
  color: #9CA3AF; text-align: center; font-family: inherit;
  transition: all .2s;
}
.s1-type.active { border-color: #0E9F6E; color: #0E9F6E; background: rgba(14,159,110,.08); }

/* Logo/emoji row */
.s1-logo-row { display: flex; gap: 10px; margin-bottom: 16px; }
.s1-logo-btn {
  flex: 1; padding: 11px 10px; border-radius: 13px;
  border: 1.5px solid rgba(0,0,0,.1);
  background: #F7F8F6; font-size: 12px; font-weight: 700;
  color: #6B7280; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.s1-logo-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.s1-btn {
  width: 100%; padding: 15px; border: 0;
  background: #0E9F6E; color: #fff; border-radius: 16px;
  font-size: 15.5px; font-weight: 800; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 18px rgba(14,159,110,.38);
}
.s1-btn svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.5; fill: none; }

/* ====================================================
   SCREEN 2 — HOME (TODAY)
   ==================================================== */
.s2 { background: #EEF0ED; }
.s2-scroll { flex: 1; overflow-y: auto; }
.s2-scroll::-webkit-scrollbar { display: none; }

.s2-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 18px 10px; background: #EEF0ED;
}
.s2-appic {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(145deg, #3DBA8A, #0E9F6E);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff; letter-spacing: -.02em;
}
.s2-greet { font-size: 10.5px; color: #6B7280; }
.s2-biz { font-size: 14px; font-weight: 800; color: #111827; }
.s2-bell {
  margin-left: auto; width: 36px; height: 36px; border-radius: 11px;
  background: #fff; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.s2-bell svg { width: 16px; height: 16px; stroke: #6B7280; fill: none; stroke-width: 1.9; stroke-linecap: round; }
.s2-bell-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #F0584F; border: 2px solid #EEF0ED;
}

/* Trial banner */
.s2-trial {
  margin: 0 18px 10px; padding: 10px 14px; border-radius: 12px;
  background: #FFF6E6; border: 1px solid rgba(244,183,64,.3);
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: #92400E;
}
.s2-trial svg { width: 15px; height: 15px; stroke: #E0921E; fill: none; stroke-width: 2; stroke-linecap: round; }

.s2-slbl {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #9CA3AF;
  padding: 0 18px; margin-bottom: 8px;
}

/* Wallet card in home screen */
.s2-card {
  margin: 0 18px 10px; border-radius: 20px; padding: 16px 18px 13px; color: #fff;
  background: linear-gradient(145deg, #1C0B3C, #2A1360);
  box-shadow: 0 12px 28px rgba(28,11,60,.4), 0 4px 8px rgba(0,0,0,.12);
  position: relative; overflow: hidden;
}
.s2-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 80% at 80% 0%, rgba(255,255,255,.15), transparent 55%);
}
.s2c-top { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.s2c-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.s2c-name { font-size: 14px; font-weight: 700; }
.s2c-type { font-size: 8.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .65; margin-bottom: 3px; }
.s2c-count { font-size: 26px; font-weight: 900; line-height: 1; margin-bottom: 7px; }
.s2c-stamps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 9px; }
.s2c-s { width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.85); }
.s2c-s.e { background: transparent; border: 2px solid rgba(255,255,255,.4); }
.s2c-reward { font-size: 11px; opacity: .7; }

/* Home action buttons */
.s2-btns { display: flex; gap: 8px; padding: 0 18px; margin-bottom: 8px; }
.s2-btn-ol {
  flex: 1; height: 36px; border-radius: 11px;
  border: 1.5px solid #0E9F6E; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #0E9F6E; font-family: inherit;
}
.s2-btn-ol svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.s2-scan {
  margin: 0 18px 12px; height: 48px; border-radius: 14px;
  background: #0E9F6E; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(14,159,110,.38);
}
.s2-scan svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Stats chips */
.s2-stats-hdr { display: flex; justify-content: space-between; padding: 0 18px; margin-bottom: 7px; }
.s2-stats-title { font-size: 14px; font-weight: 800; color: #111827; }
.s2-stats-link { font-size: 11px; font-weight: 700; color: #0E9F6E; }
.s2-stats { display: flex; gap: 7px; padding: 0 18px; margin-bottom: 11px; }
.s2-stat {
  flex: 1; background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px; padding: 10px 8px; text-align: center;
}
.s2-stat-n { font-size: 20px; font-weight: 900; color: #111827; line-height: 1; }
.s2-stat-l { font-size: 9.5px; color: #9CA3AF; margin-top: 2px; font-weight: 600; }

/* Recent activity */
.s2-act-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #9CA3AF;
  padding: 0 18px; margin-bottom: 7px;
}
.s2-act-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 18px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.s2-act-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.s2-act-info { flex: 1; }
.s2-act-name { font-size: 13.5px; font-weight: 700; color: #111827; }
.s2-act-sub { font-size: 11.5px; color: #9CA3AF; }
.s2-act-badge {
  font-size: 11px; font-weight: 700; color: #0A5C3A;
  background: #C8EEDC; border-radius: 99px; padding: 3px 8px;
  white-space: nowrap;
}

/* Tab bar */
.s2-tabs {
  display: flex; padding: 8px 6px 12px;
  background: rgba(255,255,255,.95);
  border-top: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(12px); flex-shrink: 0;
}
.s2-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 700; color: #9CA3AF;
  padding: 4px 0; border-radius: 8px;
}
.s2-tab.active { color: #0E9F6E; }
.s2-tab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.s2-tab.active svg { stroke-width: 2.4; }

/* ====================================================
   SCREEN 3 — SCAN → STAMP ADDED
   ==================================================== */
.s3-scan { background: #0b1410; flex: 1; display: flex; flex-direction: column; }
.s3-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 6px; flex-shrink: 0;
}
.s3-back { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.55); }
.s3-back svg { width: 17px; height: 17px; stroke: rgba(255,255,255,.55); stroke-width: 2.5; fill: none; }
.s3-head { font-size: 16px; font-weight: 800; color: #fff; }
.s3-sp { width: 50px; }

.s3-view {
  flex: 1; position: relative; overflow: hidden;
  background: #0b1410;
  display: flex; align-items: center; justify-content: center;
}

/* Camera simulation — softer warm gradient so you can see the "viewfinder" */
.s3-cam {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 35%, rgba(76, 110, 95, .25), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(14, 159, 110, .12), transparent 65%),
    linear-gradient(160deg, #14211a, #060d09);
}
.s3-cam-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 80% at 50% 50%, #000 30%, transparent 75%);
}

/* The "table" stage that holds the customer card the camera sees */
.s3-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  perspective: 900px;
}
.s3-client-card {
  width: 240px; padding: 14px 16px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1C0B3C 0%, #2D1668 50%, #190834 100%);
  color: #fff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .55),
    0 6px 14px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: rotate3d(1, -.4, 0, 8deg) translateY(-6px);
  animation: s3-card-float 4s ease-in-out infinite;
  position: relative;
  isolation: isolate;
}
.s3-client-card::after {
  /* moving sheen so the card looks alive */
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  animation: s3-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes s3-card-float {
  0%,100% { transform: rotate3d(1, -.4, 0, 8deg) translateY(-6px); }
  50%     { transform: rotate3d(1, -.4, 0, 10deg) translateY(0); }
}
@keyframes s3-sheen {
  0%   { transform: translateX(-110%); }
  60%,100% { transform: translateX(110%); }
}
.s3-cc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.s3-cc-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.s3-cc-name { font-size: 12px; font-weight: 800; line-height: 1; }
.s3-cc-holder { font-size: 10px; opacity: .7; margin-top: 2px; font-weight: 600; }
.s3-cc-type {
  font-size: 8.5px; font-weight: 800; letter-spacing: .14em;
  opacity: .55; margin-bottom: 3px;
}
.s3-cc-count { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 9px; line-height: 1; }
.s3-cc-stamps { display: flex; gap: 3px; margin-bottom: 11px; }
.s3-cc-stamps > span {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
}
.s3-cc-stamps > span.e { background: transparent; border: 1.5px solid rgba(255,255,255,.35); }
.s3-cc-bar {
  background: #fff; border-radius: 6px; padding: 6px 8px;
  display: flex; align-items: center; justify-content: center;
}
.s3-cc-bar-lines { display: flex; gap: 1px; align-items: end; height: 24px; }
.s3-cc-bar-lines > span {
  display: block; width: 1.5px; background: #111;
  height: 100%;
}
.s3-cc-bar-lines > span:nth-child(3n)   { width: 1px; }
.s3-cc-bar-lines > span:nth-child(4n+1) { width: 2.5px; }
.s3-cc-bar-lines > span:nth-child(5n)   { width: 1px; }
.s3-cc-bar-lines > span:nth-child(7n+2) { width: 3px; }

.s3-frame { position: relative; width: 260px; height: 170px; z-index: 3; }
.s3-corner { position: absolute; width: 32px; height: 32px; }
.s3-tl { top: 0; left: 0; border-top: 3.5px solid #36E3A1; border-left: 3.5px solid #36E3A1; border-radius: 8px 0 0 0; box-shadow: -2px -2px 14px rgba(54, 227, 161, .35); }
.s3-tr { top: 0; right: 0; border-top: 3.5px solid #36E3A1; border-right: 3.5px solid #36E3A1; border-radius: 0 8px 0 0; box-shadow:  2px -2px 14px rgba(54, 227, 161, .35); }
.s3-br { bottom: 0; right: 0; border-bottom: 3.5px solid #36E3A1; border-right: 3.5px solid #36E3A1; border-radius: 0 0 8px 0; box-shadow:  2px  2px 14px rgba(54, 227, 161, .35); }
.s3-bl { bottom: 0; left: 0; border-bottom: 3.5px solid #36E3A1; border-left: 3.5px solid #36E3A1; border-radius: 0 0 0 8px; box-shadow: -2px  2px 14px rgba(54, 227, 161, .35); }
.s3-beam {
  position: absolute; left: 6px; right: 6px; height: 3px;
  background: linear-gradient(90deg, transparent, #36E3A1 25%, #ECFFF5 50%, #36E3A1 75%, transparent);
  box-shadow: 0 0 18px rgba(54, 227, 161, .9), 0 0 36px rgba(54, 227, 161, .55);
  border-radius: 2px;
  animation: s3-sweep 1.6s ease-in-out infinite;
}
@keyframes s3-sweep {
  0%,100% { top: 8px; opacity: .15; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  50% { top: calc(100% - 11px); opacity: 1; }
}
.s3-focus-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #36E3A1;
  box-shadow: 0 0 12px rgba(54, 227, 161, .9);
  animation: s3-focus-pulse 1.8s ease-in-out infinite;
}
.s3-fd1 { top: 18%; left: 22%; animation-delay: 0s; }
.s3-fd2 { top: 64%; right: 18%; animation-delay: .6s; }
.s3-fd3 { bottom: 24%; left: 38%; animation-delay: 1.2s; }
@keyframes s3-focus-pulse {
  0%,100% { transform: scale(.6); opacity: .35; }
  50%     { transform: scale(1.2); opacity: 1; }
}

/* Status pill at the bottom */
.s3-status {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
  border: 1px solid rgba(54, 227, 161, .35);
  font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .92);
  z-index: 4;
  white-space: nowrap;
}
.s3-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #36E3A1;
  box-shadow: 0 0 8px rgba(54, 227, 161, .9);
  animation: s3-blink 1s ease-in-out infinite;
}
@keyframes s3-blink {
  0%,100% { opacity: .35; transform: scale(.8); }
  50%     { opacity: 1; transform: scale(1.15); }
}

/* The card briefly snaps to centre + bright glow at the moment of detection */
.s3-view.detecting .s3-client-card {
  animation: s3-card-detect .6s var(--ease) forwards;
}
@keyframes s3-card-detect {
  0%   { transform: rotate3d(1, -.4, 0, 8deg) translateY(-6px); }
  60%  { transform: rotate3d(0, 0, 0, 0deg) translateY(0) scale(1.04); box-shadow: 0 0 0 4px rgba(54, 227, 161, .5), 0 20px 50px rgba(0,0,0,.6); }
  100% { transform: rotate3d(0, 0, 0, 0deg) translateY(0) scale(1); box-shadow: 0 0 0 4px rgba(54, 227, 161, .35), 0 20px 50px rgba(0,0,0,.6); }
}
.s3-view.detecting .s3-client-card::after { animation-play-state: paused; opacity: 0; }
.s3-view.detecting .s3-frame { animation: s3-frame-lock .6s var(--ease) forwards; }
@keyframes s3-frame-lock {
  0%   { transform: scale(1); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Stamp Added success overlay */
.s3-success {
  position: absolute; inset: 0; z-index: 10;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease);
}
.s3-success.show { opacity: 1; pointer-events: auto; }
.s3-ok-ring {
  width: 80px; height: 80px; border-radius: 50%;
  background: #C8EEDC; border: 3px solid #0E9F6E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(14,159,110,.1), 0 8px 24px rgba(14,159,110,.28);
}
.s3-ok-ring svg { width: 40px; height: 40px; stroke: #0E9F6E; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s3-ok-title { font-size: 24px; font-weight: 900; color: #111827; letter-spacing: -.02em; }
.s3-ok-sub { font-size: 15px; color: #6B7280; font-weight: 600; }

/* Progress card inside success */
.s3-prog-card {
  width: 100%; background: #F7F8F6; border-radius: 16px; padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.08);
}
.s3-pc-name { font-size: 12px; font-weight: 700; color: #6B7280; margin-bottom: 8px; }
.s3-pc-stamps { display: flex; gap: 4px; margin-bottom: 6px; }
.s3-pc-s { width: 22px; height: 22px; border-radius: 50%; background: #0E9F6E; }
.s3-pc-s.e { background: transparent; border: 2px solid rgba(0,0,0,.15); }
/* Filled stamps cascade in, the new (pop) one lands last */
.s3-success.show .s3-pc-s:not(.e):not(.pop) { animation: s3-pop .4s var(--ease) both; }
.s3-success.show .s3-pc-s:nth-child(1) { animation-delay: .05s; }
.s3-success.show .s3-pc-s:nth-child(2) { animation-delay: .10s; }
.s3-success.show .s3-pc-s:nth-child(3) { animation-delay: .15s; }
.s3-success.show .s3-pc-s:nth-child(4) { animation-delay: .20s; }
.s3-success.show .s3-pc-s:nth-child(5) { animation-delay: .25s; }
.s3-success.show .s3-pc-s:nth-child(6) { animation-delay: .30s; }
.s3-success.show .s3-pc-s:nth-child(7) { animation-delay: .35s; }
.s3-success.show .s3-pc-s.pop {
  animation: s3-pop .55s var(--ease) .55s both;
  transform-origin: center;
}
@keyframes s3-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.s3-pc-count { font-size: 12px; color: #6B7280; }
.s3-pc-count strong { color: #111827; font-weight: 800; }

.s3-done-btn {
  width: 100%; padding: 14px; border: 0;
  background: #0E9F6E; color: #fff; border-radius: 14px;
  font-size: 15px; font-weight: 800; font-family: inherit;
  box-shadow: 0 4px 16px rgba(14,159,110,.35);
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story-section { padding: 80px 0 100px; }
.story-intro { text-align: center; max-width: 680px; margin: 0 auto var(--pad); padding: 0 var(--pad); }

.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gr); margin-bottom: 14px;
}
.sec-h2 {
  font-size: clamp(34px, 4.6vw, 60px); font-weight: 900;
  line-height: .96; letter-spacing: -.034em; color: var(--tx);
  text-wrap: balance;
}
.sec-lead {
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65;
  color: var(--txS); margin-top: 16px; font-weight: 420;
}

/* Story layout */
.story-outer { padding: 0 var(--pad); max-width: var(--maxw); margin: 0 auto; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 0 clamp(48px, 7vw, 96px);
  align-items: start;
}
.story-col-left { }
/* Sticky phone: centered when viewport is tall, otherwise pinned just below
   the 72px nav with a 24px breathing gap. max() guarantees we never go above
   the nav and clip the device's top. */
.story-phone-col { position: sticky; top: max(96px, calc(50vh - 386px)); align-self: start; }

/* Progress bar */
.story-progress {
  display: flex; gap: 8px; margin-bottom: 64px;
}
.prog-seg {
  height: 3px; flex: 1; border-radius: 2px;
  background: var(--brd); cursor: pointer;
  position: relative; overflow: hidden;
}
/* Scroll-linked fill: --p (0..1) is set from JS on every scroll frame */
.prog-seg::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gr); border-radius: 2px;
  transform: scaleX(var(--p, 0)); transform-origin: left;
  transition: transform .2s linear;
}
.prog-seg.is-active::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: seg-shine 1.4s var(--ease) 1 forwards;
}
@keyframes seg-shine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Chapters */
.chapter {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 0 60px;
  position: relative;
}
.chapter::before {
  content: ""; position: absolute; left: 0; top: calc(50% - 78px);
  width: 3px; height: 0; background: var(--gr); border-radius: 2px;
  transform: translateY(-50%);
  transition: height .5s var(--ease);
}
.chapter.is-active::before { height: 80px; }

.step-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding-left: 20px;
}
.step-n {
  font-size: 11px; font-weight: 900; color: var(--txF);
  background: rgba(0,0,0,.06); border-radius: 8px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  transition: background .4s, color .4s;
}
.chapter.is-active .step-n { background: var(--gr); color: #fff; }
.step-tag-text {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txF); transition: color .4s;
}
.chapter.is-active .step-tag-text { color: var(--gr); }

.ch-h3 {
  font-size: clamp(26px, 2.8vw, 42px); font-weight: 900;
  line-height: 1.02; letter-spacing: -.025em;
  color: var(--txS); margin-bottom: 16px; text-wrap: balance;
  padding-left: 20px;
  transition: color .4s var(--ease);
}
.chapter.is-active .ch-h3 { color: var(--tx); }

.ch-p {
  font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.72;
  color: var(--txF); max-width: 520px; padding-left: 20px;
  transition: color .4s var(--ease);
}
.chapter.is-active .ch-p { color: var(--txS); }

.ch-feats {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px; padding-left: 20px;
}
.ch-feat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--srf); border: 1px solid var(--brd);
  box-shadow: var(--shd);
  transition: border-color .4s, opacity .4s;
  opacity: .5;
}
.chapter.is-active .ch-feat { opacity: 1; border-color: rgba(14,159,110,.2); }
.ch-feat-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--gr50);
  display: flex; align-items: center; justify-content: center;
}
.ch-feat-ic svg { width: 18px; height: 18px; stroke: var(--gr); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ch-feat-t { font-size: 13.5px; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.ch-feat-d { font-size: 12.5px; color: var(--txS); line-height: 1.5; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section { padding: 60px 0 100px; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px;
}
.feat-card {
  background: var(--srf); border: 1px solid var(--brd); border-radius: var(--rL);
  padding: 28px 22px 32px; box-shadow: var(--shd);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  border-color: rgba(14,159,110,.28);
}
.feat-ic {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gr50); border: 1px solid rgba(14,159,110,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background .3s, border-color .3s, transform .3s;
}
.feat-card:hover .feat-ic { background: var(--gr); border-color: var(--gr); transform: scale(1.05); }
.feat-ic svg { width: 24px; height: 24px; stroke: var(--gr); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feat-card:hover .feat-ic svg { stroke: #fff; }
.feat-h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 9px; }
.feat-p { font-size: 14.5px; line-height: 1.65; color: var(--txS); }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.cta-section { padding: 0 0 100px; }
.cta-box {
  border-radius: var(--rXL); padding: clamp(48px, 6.5vw, 88px);
  background: linear-gradient(155deg, #062B1A 0%, #0A4E30 45%, #0A7C56 120%);
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px -20px rgba(6,43,26,.4);
}
.cta-box::before {
  content: ""; position: absolute; top: -30%; right: -6%;
  width: 50%; height: 140%;
  background: radial-gradient(circle, rgba(61,186,138,.38), transparent 60%);
  filter: blur(50px); pointer-events: none;
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.cta-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #3DBA8A; margin-bottom: 14px; }
.cta-h2 {
  font-size: clamp(34px, 5vw, 64px); font-weight: 900;
  line-height: .96; letter-spacing: -.034em; color: #fff;
  text-wrap: balance; margin-bottom: 16px;
}
.cta-lead { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; color: rgba(255,255,255,.62); max-width: 460px; }
.cta-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 13px 22px; color: #fff;
  transition: all .25s var(--ease);
}
.store-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); transform: translateY(-2px); }
.store-btn-vote { border-style: dashed; opacity: .72; }
.store-btn-vote:hover { opacity: 1; }
.store-btn .si { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .sl { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .sl small { font-size: 10.5px; opacity: .65; }
.store-btn .sl strong { font-size: 16px; font-weight: 700; }

.cta-stats { display: flex; flex-direction: column; gap: 10px; }
.cta-stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 20px 24px;
  backdrop-filter: blur(6px);
}
.cta-stat-n { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: #fff; margin-bottom: 4px; }
.cta-stat-l { font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--brd); padding: 50px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; font-weight: 600; color: var(--txS); transition: color .2s; }
.footer-links a:hover { color: var(--tx); }
.footer-copy { font-size: 14.5px; color: var(--txF); }

/* ============================================================
   REVEALS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
body.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .s3-beam { animation: none !important; }
  .hero .phone-frame, .hero .phone-shadow { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr 360px; }
  .phone-frame, .phone-wrap { width: 360px; }
  .phone-screen { height: 700px; }
}
@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone-col { display: none; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .cta-stats { flex-direction: row; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { align-items: center; text-align: center; max-width: none; }
  .hero-cta, .trust-row { justify-content: center; }
  .phone-wrap { margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
  .chapter { min-height: auto; padding: 40px 0; }
  .story-progress { margin-bottom: 32px; }
  .cta-stats { flex-direction: column; }
  .cta-inner { grid-template-columns: 1fr; }
  .hero-h1 { text-align: center; }
  .hero-sub { text-align: center; }
}

/* ── Phones (≤ 560px) ── */
@media (max-width: 560px) {
  :root { --pad: 18px; }

  /* Nav: hide secondary CTA button — primary is in hamburger menu */
  .nav-right .btn-primary { display: none; }
  .nav-inner { height: 64px; gap: 12px; }
  .logo img { height: 22px; }

  /* Hero typography */
  .hero { padding: 64px 0 56px; min-height: auto; }
  .hero-grid { gap: 40px; }
  .hero-h1 {
    font-size: clamp(32px, 9.5vw, 46px);
    line-height: 1.02;
    letter-spacing: -.028em;
  }
  /* On narrow screens our hard <br>'s create awkward orphans —
     let the browser wrap naturally instead. */
  .hero-h1 br { display: none; }
  .hero-h1 span { display: inline; }
  .hero-h1 .gr { display: inline; }

  .hero-sub {
    font-size: 15.5px; line-height: 1.6;
    max-width: 100%;
  }
  .hero-copy { gap: 22px; }
  .hero-eyebrow { font-size: 15.5px; }

  /* CTA — full-width stack on phones */
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .trust-row {
    width: 100%; gap: 6px 14px; row-gap: 6px;
    justify-content: center;
  }
  .trust-item { font-size: 12.5px; }

  /* Section headings */
  .sec-h2 {
    font-size: clamp(28px, 7.5vw, 38px);
    letter-spacing: -.028em;
  }
  .sec-lead { font-size: 15.5px; }

  /* Story chapters tighter */
  .story-section { padding: 56px 0 72px; }
  .story-intro { padding: 0; margin-bottom: 24px; }
  .chapter { min-height: auto; padding: 28px 0; }
  .step-label, .ch-h3, .ch-p, .ch-feats { padding-left: 0; }
  .chapter::before { display: none; }
  .ch-h3 { font-size: clamp(22px, 6.5vw, 30px); }
  .ch-p { font-size: 15px; line-height: 1.65; }
  .ch-feats { gap: 8px; margin-top: 20px; }

  /* Features */
  .features-section { padding: 40px 0 72px; }
  .features-grid { gap: 14px; margin-top: 32px; }
  .feat-card { padding: 22px 20px 26px; }

  /* CTA box */
  .cta-section { padding: 0 0 72px; }
  .cta-box { padding: 40px 24px 44px; border-radius: 24px; }
  .cta-stores { gap: 10px; }
  .store-btn { padding: 12px 16px; flex: 1 1 100%; }
  .cta-stat { padding: 16px 20px; }
  .cta-stat-n { font-size: 28px; }

  .footer { padding: 36px 0; }
  .footer-links { gap: 18px 22px; font-size: 14px; }

  /* Phone mockup must fit viewport. Use realistic iPhone aspect (9 : 19.5)
     so the screen stays tall, not squat. */
  .phone-wrap { width: 100%; max-width: 400px; }
  .phone-frame {
    width: 100%; max-width: 400px;
    border-radius: 52px; padding: 12px;
  }
  .phone-frame::before { width: 118px; height: 30px; top: 16px; }
  .phone-screen {
    height: auto;
    aspect-ratio: 9 / 17;
    min-height: 600px;
    border-radius: 40px;
  }
}

/* ── Tiny phones (≤ 380px: iPhone SE, mini, Galaxy A) ── */
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .hero-h1 { font-size: clamp(28px, 9vw, 34px); }
  .nav-inner { gap: 8px; }
  .nav-help { min-height: 34px; padding: 0 8px; font-size: 12px; }
  .lang-current { padding: 5px 10px; font-size: 12px; }
  .lang-menu button { padding: 6px 10px; font-size: 12px; }
  .ch-h3 { font-size: 22px; }
  .cta-h2 { font-size: clamp(28px, 8vw, 36px); }
  .phone-frame { border-radius: 42px; padding: 10px; }
  .phone-screen { border-radius: 34px; }
}

/* ── Landscape phones: keep nav compact, prevent hero overflow ── */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding: 48px 0; }
  .phone-wrap { display: none; }
}
