/* ============================================================
 * liway marketing site — styles
 * Locked palette in tokens.css; this layer is type + layout.
 * ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400;1,6..72,500&family=Instrument+Serif:ital@0;1&family=Fraunces:ital,opsz,wght@0,9..144,500;1,9..144,500&display=swap");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Smooth-scroll for in-page anchor nav clicks */
html { scroll-behavior: smooth; }

/* ─── ACCESSIBILITY ──────────────────────────────────────── */

/* Skip link — visually hidden until focused with Tab */
.skip-link {
  position: absolute;
  top: -40px; left: 12px;
  background: var(--slate-950);
  color: var(--cream-100);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--euc-500); outline-offset: 2px; }

/* Focus rings — keyboard-only (mouse clicks don't trigger) */
:focus-visible {
  outline: 2px solid var(--euc-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav-cta:focus-visible,
.btn-primary:focus-visible { outline-offset: 4px; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── SCROLL PROGRESS BAR ────────────────────────────────── */
/* 3px strip pinned to the top. Faint cream-tint track is visible on
 * both light and dark sections; fill is a soft eucalyptus gradient
 * that grows left-to-right as the user scrolls. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 50;
  pointer-events: none;
  background: rgba(226, 216, 200, 0.35); /* cream-300 @ 35% — hairline track */
}
.scroll-progress > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--euc-500), var(--euc-400));
  border-radius: 0 1.5px 1.5px 0; /* soft right cap on the fill */
  transition: width 0.08s linear;
}

/* ─── SECTION REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-default);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── SHARED ─────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--euc-700);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--euc-500);
  display: inline-block;
}
.eyebrow-on-dark { color: var(--euc-300); }

/* serif accent options for the display word */
.serif-newsreader {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  color: var(--euc-700);
}
.serif-instrument {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--euc-700);
}
.serif-fraunces-soft {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--euc-700);
}
.serif-none { font-style: normal; color: var(--euc-700); font-weight: 700; }

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0;
  background: rgba(249, 246, 242, 0.78);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--cream-300);
  z-index: 40;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  color: var(--slate-950);
  display: flex; align-items: center;
}

/* Desktop: hide the nav logo until the hero wordmark scrolls out of view.
 * Toggle is driven by IntersectionObserver in app.jsx (Nav component).
 * Mobile keeps the logo always visible since the rest of the nav is empty. */
@media (min-width: 721px) {
  .nav-logo {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }
  .nav-logo.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  color: var(--slate-700); text-decoration: none;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--slate-950); }
.nav-cta {
  background: var(--euc-500); color: var(--cream-100) !important;
  padding: 9px 16px 9px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--euc-600); transform: translateY(-1px); }

@media (max-width: 720px) {
  /* Mobile nav: hide the regular text links (How it works / Why liway / Download)
     but KEEP the "My liway" CTA pill — returning users on phones still want a
     fast path to their account on my.liway.app. The hero badges below remain
     the primary CTA for new users (Download). */
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
  background: var(--slate-950);
  color: var(--cream-100);
}
.hero::before {
  /* eucalyptus wash behind the inverted hero */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(93,149,131,0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(93,149,131,0.10), transparent 60%);
  pointer-events: none;
}
.hero .hero-wordmark svg { color: var(--cream-100); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

.hero-wordmark {
  display: block;
  margin: 0 0 24px -8px;
  line-height: 0;
}
.hero-wordmark svg {
  height: clamp(80px, 11vw, 140px);
  width: auto;
  display: block;
}
@media (max-width: 540px) {
  .hero-wordmark svg { height: 72px; }
}

.display {
  font-family: "Geist", sans-serif;
  font-size: clamp(48px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--cream-100);
  margin: 0 0 24px;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  white-space: nowrap;
}
.display .serif-newsreader,
.display .serif-instrument,
.display .serif-fraunces-soft {
  font-size: 1.05em;
  line-height: 0.9;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--cream-300);
  max-width: 480px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero .display em { color: var(--euc-300); }
.hero .display .serif-newsreader,
.hero .display .serif-instrument,
.hero .display .serif-fraunces-soft { color: var(--euc-300); }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-badge img {
  height: 48px; width: auto;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.store-badge:hover img { transform: translateY(-2px); }
.store-badge-lg img { height: 56px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--euc-500);
  color: var(--cream-100);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 12px rgba(93,149,131,0.18);
}
.btn-primary:hover { background: var(--euc-600); transform: translateY(-1px); }
.btn-ghost {
  color: var(--slate-950);
  background: transparent;
  border: 1.5px solid var(--slate-200);
}
.btn-ghost:hover { background: var(--cream-200); border-color: var(--slate-300); }
.btn-link {
  color: var(--euc-700);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 4px;
  position: relative;
}
.btn-link::after {
  content: ""; position: absolute; left: 4px; right: 26px; bottom: 6px; height: 1px;
  background: var(--euc-700); opacity: 0.4;
  transition: opacity 0.15s ease;
}
.btn-link:hover::after { opacity: 1; }

.hero-meta {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--slate-500);
  display: inline-flex; align-items: center; gap: 8px;
}
.meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--euc-500);
  box-shadow: 0 0 0 3px rgba(93,149,131,0.18);
  display: inline-block;
}

/* hero visual */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-mark {
  width: 100%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(93,149,131,0.18));
}
.hero .eyebrow { color: var(--euc-300); }
.hero .eyebrow-dot { background: var(--euc-300); }
.hero .hero-meta { color: var(--cream-300); }
.hero .hero-meta .meta-dot { background: var(--euc-300); box-shadow: 0 0 0 3px rgba(146,184,168,0.22); }
.hero .hero-wordmark svg { color: var(--cream-100); }
.hero .btn-ghost { color: var(--cream-100); border-color: rgba(255,255,255,0.18); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.32); }
.hero .btn-link { color: var(--euc-300); }
.hero .btn-link::after { background: var(--euc-300); }
.hero-leeway-link {
  margin: -16px 0 24px;
  font-size: 13px;
}
.hero-leeway-link a {
  color: var(--euc-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-leeway-link a:hover {
  border-bottom-color: var(--euc-300);
}
@media (max-width: 720px) {
  .hero-leeway-link { display: none; }
}

/* dot grid behind hero mark uses brighter color on dark bg */
.hero-mark rect[fill^="url"] { opacity: 0.4; }
.hero-mark circle[fill="var(--cream-100)"] { fill: var(--slate-950); }
.hero-mark text {
  font-family: "Geist", sans-serif;
}

/* ─── LEEWAY METER ───────────────────────────────────────── */
.leeway-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: 14px;
  padding: 18px 20px 16px;
  margin: 8px 0 28px;
  max-width: 520px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(53,62,70,0.12);
}
.leeway-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.leeway-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--slate-500);
}
.leeway-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--safe-fg);
}
.leeway-track {
  height: 8px;
  background: var(--cream-200);
  border-radius: 999px;
  position: relative;
  margin-bottom: 32px;
}
.leeway-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--euc-400), var(--euc-500));
  border-radius: 999px;
  transition: width 0.4s ease-out;
}
.leeway-marker {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  margin-left: -8px; margin-top: -8px;
  background: var(--cream-50);
  border: 3px solid var(--euc-600);
  border-radius: 50%;
  transition: left 0.4s ease-out;
  z-index: 2;
}
.leeway-bill {
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 1;
}
.leeway-bill-tick {
  position: absolute;
  top: -7px; left: -1px;
  width: 2px; height: 14px;
  background: var(--slate-700);
  opacity: 0.45;
  border-radius: 1px;
}
.leeway-bill-label {
  position: absolute;
  top: 12px; left: 0;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--euc-700);
  background: var(--euc-100);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.leeway-marker-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--slate-950);
  color: var(--cream-100);
  font-size: 12px; font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.leeway-marker-bubble::after {
  content: ""; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--slate-950);
}
.leeway-marker-today {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--cream-100);
  background: var(--slate-950);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.leeway-foot {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--slate-500);
  letter-spacing: 0.02em;
}
.leeway-foot strong {
  color: var(--slate-950);
  font-weight: 600;
}

/* ─── SECTION SCAFFOLD ───────────────────────────────────── */
.section { padding: 120px 0; }
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-title {
  font-family: "Geist", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--slate-950);
  margin: 0 0 16px;
}
.section-intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--slate-700);
  margin: 0;
  max-width: 540px;
  text-wrap: pretty;
}
.section-intro em { font-style: italic; color: var(--slate-950); font-weight: 500; }

/* ─── WHAT IS LIWAY (feature cards) ──────────────────────── */
.section-what { padding-bottom: 80px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--slate-950);
  border: 1px solid var(--slate-900);
  border-radius: 18px;
  padding: 28px 26px 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--euc-500);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 18px 40px -24px rgba(29,33,38,0.45);
}
.feature-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.feature-num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--euc-300);
}
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--euc-900);
  color: var(--euc-300);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream-100);
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate-300);
  margin: 0;
}

/* ─── FEATURE SHOWCASE (PRIME) ───────────────────────────── */
.stat-section {
  padding: 96px 0;
  background: var(--cream-200);
  border-top: 1px solid var(--cream-300);
  border-bottom: 1px solid var(--cream-300);
}
.stat-section .section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.stat-section .section-head .eyebrow { justify-content: center; }

.prime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prime-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: 18px;
  padding: 28px 26px 26px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.prime-card:hover {
  transform: translateY(-3px);
  border-color: var(--euc-300);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 18px 36px -20px rgba(53,62,70,0.18);
}
.prime-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.prime-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--euc-100);
  color: var(--euc-700);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-right: 2px;
}
.prime-icon svg { width: 18px; height: 18px; }
.prime-num {
  font-family: "Newsreader", serif;
  font-style: italic; font-weight: 500;
  font-size: 24px; color: var(--euc-700);
  line-height: 1;
}
.prime-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate-500);
}
.prime-title {
  font-family: "Geist", sans-serif;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 600;
  color: var(--slate-950);
  margin: 0 0 12px;
  text-wrap: balance;
}
.prime-title em {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--euc-700);
  font-size: 1.05em;
  line-height: 0.95;
}
.prime-body {
  font-size: 15px; line-height: 1.55;
  color: var(--slate-700);
  margin: 0;
}

/* visual: depletion date */
.prime-vis {
  margin-top: auto;
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.pv-date-cap {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--slate-500); text-transform: uppercase;
  margin-bottom: 6px;
}
.pv-date {
  font-family: "Newsreader", serif;
  font-style: italic; font-weight: 500;
  font-size: 26px; line-height: 1.1;
  color: var(--slate-950);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pv-pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 999px;
}
.pv-pill-tight { background: rgba(217,151,40,0.14); color: #8a5a14; }
.pv-pill-risk  { background: rgba(196,86,75,0.16); color: #8a3329; }

/* visual: detection rows */
.prime-vis-detect { display: flex; flex-direction: column; gap: 8px; }
.pv-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  padding: 8px 10px;
  background: var(--cream-50);
  border-radius: 8px;
}
.pv-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.pv-row-yes .pv-dot { background: var(--euc-500); }
.pv-row-likely .pv-dot { background: #d99728; }
.pv-row-ask .pv-dot { background: var(--slate-300); }
.pv-row-name { flex: 1; color: var(--slate-950); font-weight: 500; }
.pv-row-amt { color: var(--slate-700); font-variant-numeric: tabular-nums; }
.pv-row-actions { display: flex; gap: 4px; }
.pv-mini {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  border: none; cursor: pointer;
  background: var(--euc-500); color: var(--cream-100);
}
.pv-mini-ghost {
  background: transparent; color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

/* visual: simulator */
.pv-sim-cap {
  font-size: 12px; color: var(--slate-700);
  margin-bottom: 10px; font-style: italic;
}
.pv-sim-track {
  position: relative; height: 6px;
  background: var(--cream-300); border-radius: 999px;
  margin-bottom: 14px;
}
.pv-sim-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 68%;
  background: linear-gradient(90deg, var(--euc-400), #d99728);
  border-radius: 999px;
}
.pv-sim-thumb {
  position: absolute; left: 68%; top: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  background: var(--cream-50);
  border: 3px solid var(--euc-600);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.pv-sim-result {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.pv-sim-old { color: var(--slate-500); text-decoration: line-through; }
.pv-sim-arrow { color: var(--slate-500); }
.pv-sim-new { color: var(--slate-950); font-weight: 600; }
.pv-sim-result .pv-pill { margin-left: auto; }

@media (max-width: 960px) {
  .prime-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.section-how {
  background: var(--cream-100);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  /* connecting line behind the numbers — visible in gap between cards */
  content: "";
  position: absolute;
  top: 56px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--euc-300) 0 6px, transparent 6px 12px);
}
.step {
  position: relative;
  background: var(--euc-50);
  border: 1px solid var(--euc-200);
  border-radius: 18px;
  padding: 28px 26px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-2px);
  border-color: var(--euc-400);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 18px 40px -24px rgba(62,97,87,0.20);
}
.step-num {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--euc-500);
  color: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px -4px rgba(62,97,87,0.35);
}
.steps-closer {
  margin: 64px auto 0;
  max-width: 760px;
  padding: 28px 36px;
  background: var(--slate-950);
  border-radius: 16px;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream-100);
}
.steps-closer strong {
  color: var(--euc-300);
  font-weight: 700;
}
.steps-closer em {
  color: var(--cream-100);
  font-style: italic;
  font-weight: 500;
}
.step h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-950);
  margin: 0 0 8px;
}
.step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-700);
  margin: 0 0 14px;
}
.step-meta {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate-500);
  background: var(--cream-200);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── PRODUCT SHOWCASE ───────────────────────────────────── */
.section-showcase {
  padding-top: 120px;
  padding-bottom: 80px;
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.phone-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
  gap: 56px;
}
.phone {
  position: relative;
  background: var(--slate-950);
  border-radius: 36px;
  padding: 7px;
  aspect-ratio: 9 / 17;
  box-shadow:
    inset 0 0 0 1.5px var(--slate-700),
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 48px -24px rgba(53,62,70,0.35);
  transition: transform 0.25s ease;
}
.phone:hover { transform: translateY(-4px); }
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px;
  background: var(--slate-950);
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--cream-100);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  padding: 12px 14px 14px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
}
.phone-image .phone-screen { padding: 0; }
.phone-image .phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ps { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
.phone-label {
  position: absolute;
  bottom: -32px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  text-transform: uppercase;
  white-space: nowrap;
}

/* phone screens — Results */
.ps-bar {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600; color: var(--slate-700);
  padding: 4px 6px 12px;
  letter-spacing: 0.04em;
}
.ps-greet {
  font-size: 12px;
  color: var(--slate-700);
  margin-bottom: 8px;
}
.ps-status {
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 12px;
}
.ps-status-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}
.ps-status-pill.safe { background: var(--safe-bg); color: var(--safe-fg); }
.ps-status-sub { font-size: 11px; color: var(--slate-500); white-space: nowrap; }
.ps-headline {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 12px;
}
.ps-amount {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--slate-950);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ps-amount-cap {
  font-size: 13px; color: var(--slate-500);
}
.ps-track {
  height: 6px;
  background: var(--cream-200);
  border-radius: 999px;
  margin-bottom: 8px;
}
.ps-track-fill {
  height: 100%;
  background: var(--euc-500);
  border-radius: 999px;
}
.ps-row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--slate-500);
  margin-bottom: 12px;
  white-space: nowrap;
  gap: 8px;
}
.ps-cards {
  display: grid; gap: 8px;
}
.ps-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 1px;
}
.ps-card-cap {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--slate-500); text-transform: uppercase;
}
.ps-card-val { font-size: 12px; font-weight: 600; color: var(--slate-950); }
.ps-card-sub { font-size: 10px; color: var(--slate-500); }

/* phone screens — Onboarding */
.ps-back { font-size: 16px; color: var(--slate-700); margin-bottom: 14px; }
.ps-step-cap {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--euc-700); margin-bottom: 6px;
}
.ps-step-h {
  font-size: 16px; font-weight: 600; color: var(--slate-950);
  margin: 0 0 4px; letter-spacing: -0.01em; line-height: 1.2;
}
.ps-step-p {
  font-size: 11px; color: var(--slate-700);
  margin: 0 0 12px;
}
.ps-bills {
  display: grid; gap: 5px; margin-bottom: 12px;
}
.ps-bill {
  display: flex; justify-content: space-between;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
}
.ps-bill-name { color: var(--slate-950); font-weight: 500; }
.ps-bill-amt { color: var(--slate-700); }
.ps-bill-add {
  justify-content: flex-start;
  color: var(--euc-700);
  font-weight: 600;
  border-style: dashed;
  background: transparent;
  white-space: nowrap;
}
.ps-result {
  margin-top: auto;
  background: var(--euc-100);
  border: 1px solid var(--euc-200);
  border-radius: 10px;
  padding: 10px 12px;
}
.ps-cta {
  margin-top: auto;
  background: var(--euc-500);
  color: var(--cream-100);
  font-size: 12px; font-weight: 600;
  padding: 11px;
  border-radius: 10px;
  text-align: center;
}
.ps-onboarding .ps-cta { margin-top: 8px; }

/* phone screens — Edit / Simulate */
.ps-slider { margin-bottom: 14px; }
.ps-slider-cap {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--slate-700);
  margin-bottom: 6px;
  white-space: nowrap;
  gap: 8px;
}
.ps-slider-cap span:last-child {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.ps-slider-track {
  height: 6px;
  background: var(--cream-200);
  border-radius: 999px;
  position: relative;
}
.ps-slider-fill {
  height: 100%; background: var(--euc-500);
  border-radius: 999px;
}
.ps-slider-thumb {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  margin-left: -7px; margin-top: -7px;
  background: var(--cream-50);
  border: 2px solid var(--euc-600);
  border-radius: 50%;
}
.ps-section-cap {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--slate-500); text-transform: uppercase;
  margin: 14px 0 6px;
}
.ps-tx { display: flex; flex-direction: column; gap: 6px; }
.ps-tx-row {
  display: flex; align-items: center;
  font-size: 11px; color: var(--slate-700);
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-200);
}
.ps-tx-row > span:first-child {
  color: var(--slate-500); font-size: 10px;
  width: 40px; flex-shrink: 0;
  white-space: nowrap;
}
.ps-tx-row > span:nth-child(2) {
  flex: 1; color: var(--slate-950); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-tx-amt {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--slate-700);
  white-space: nowrap;
}
.ps-tx-pos .ps-tx-amt { color: var(--euc-700); font-weight: 600; }
.ps-tx-row:last-child { border-bottom: none; }

.ps-detected {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--euc-100);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px; color: var(--slate-700);
  margin: 10px 0;
  line-height: 1.4;
}
.ps-detected-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--euc-500);
  flex-shrink: 0; margin-top: 5px;
}
.ps-detected-link { color: var(--euc-700); font-weight: 600; }

.ps-spark {
  height: 36px; margin: 4px 0 8px;
  border-radius: 6px;
  overflow: hidden;
}
.ps-spark svg { width: 100%; height: 100%; display: block; }
.ps-result-cap {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--euc-700); text-transform: uppercase;
  margin-bottom: 4px;
}
.ps-result-val {
  font-size: 18px; font-weight: 600; color: var(--slate-950);
  display: flex; align-items: baseline; gap: 6px;
}
.ps-delta {
  font-size: 11px; font-weight: 700; color: var(--euc-700);
}
.ps-result-sub {
  font-size: 10px; color: var(--slate-700); margin-top: 2px;
}

/* ─── TESTIMONIAL ────────────────────────────────────────── */
.testimonial-section {
  background: var(--cream-100);
  padding: 128px 0;
}
.testimonial-inner {
  max-width: 800px;
  text-align: center;
}
.quote-mark {
  margin: 0 auto 32px;
  display: block;
}
.testimonial-quote {
  font-family: "Newsreader", serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--slate-950);
  font-weight: 400;
  margin: 0 0 32px;
  text-wrap: balance;
}
.testimonial-quote em {
  font-style: italic;
  color: var(--euc-700);
}
.testimonial-byline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--euc-500);
  color: var(--cream-100);
  font-weight: 600;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-950);
}
.testimonial-role {
  font-size: 13px;
  color: var(--slate-500);
}

/* ─── FINAL CTA — INVERTED ───────────────────────────────── */
.cta-block {
  background: var(--slate-950);
  color: var(--cream-100);
  padding: 128px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-bg-mark {
  width: 720px;
  height: 720px;
  color: var(--euc-700);
  opacity: 0.18;
  transform: translateY(60px);
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(93,149,131,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: "Geist", sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--cream-100);
  margin: 0 0 20px;
  text-wrap: balance;
}
.cta-title em {
  font-style: italic;
}
.cta-block .serif-newsreader {
  color: var(--euc-300);
  font-size: 1.05em;
}
.cta-sub {
  font-size: 18px;
  color: var(--cream-300);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.cta-actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta-meta {
  font-size: 14px;
  color: var(--cream-300);
  margin: 0;
}
.cta-link {
  color: var(--euc-300);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--cream-100);
  padding: 64px 0 32px;
  border-top: 1px solid var(--cream-300);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-lockup {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0;
  max-width: 320px;
  line-height: 1.55;
}
.footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 14px;
}
.footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer a {
  font-size: 14px;
  color: var(--slate-700);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer a:hover { color: var(--slate-950); }
.footer-bottom {
  border-top: 1px solid var(--cream-300);
  padding-top: 24px;
  font-size: 13px;
  color: var(--slate-500);
  display: flex; justify-content: space-between;
}
.footer-tag {
  font-family: "Newsreader", serif;
  font-style: italic;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .phone-grid { grid-template-columns: 1fr; gap: 56px; max-width: 360px; margin: 0 auto; }
  .phone-accent { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 56px; }
}
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .testimonial-section { padding: 80px 0; }
  .cta-block { padding: 88px 0; }
}

/* ============================================================
 * MOBILE-FIRST PASS — purpose-built for phone viewports
 *
 * Desktop styling above is untouched. Below ≤720px the page
 * stops being a "shrunken desktop" and adopts mobile-native
 * design choices:
 *   1. Hero leads with a phone screenshot (the product itself
 *      is mobile — show it on the device the user is holding,
 *      not an abstract subway-map mark).
 *   2. Section bg alternation (cream / cream-200) gives the
 *      scroll clear edges instead of one long beige tunnel.
 *   3. Bigger CTAs, more breathing room in cards, larger touch
 *      targets — one-thumb friendly.
 *   4. Headline floor bumped to 52px so hero punches at small
 *      widths.
 * ============================================================ */

/* mobile-only phone screenshot in the hero — hidden on desktop */
.hero-phone-mobile { display: none; }

/* Mobile hero — leads with the phone screenshot */
@media (max-width: 720px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { gap: 28px; grid-template-columns: 1fr; }
  .hero-visual { display: none; } /* hide the desktop subway-map L */

  .hero-phone-mobile {
    display: block;
    max-width: 260px;
    margin: 8px auto 12px;
    aspect-ratio: 9 / 19;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
  }
  .hero-phone-mobile img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  .leeway-card { display: none; } /* dropped on mobile — phone screen replaces it */

  .display {
    font-size: 52px;
    line-height: 1.04;
  }
  .hero .display em { font-size: 1em; }
  .hero .lede {
    font-size: 17px;
    margin: 0 0 24px;
    max-width: none;
  }

  .hero-ctas {
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .hero-ctas .store-badge img { height: 52px; }
  .hero-ctas .btn-link {
    flex-basis: 100%;
    justify-content: center;
  }

  .hero-meta {
    font-size: 12px;
    line-height: 1.55;
    flex-wrap: wrap;
    margin-top: 24px;
  }
}

/* Mobile section rhythm — alternating bg shifts give clear scroll breaks */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }

  /* shifts: cream-100 (default) → cream-200 → cream-100 → cream-200 */
  .section-showcase { background: var(--cream-200); padding: 56px 0; }
  .section-what     { background: var(--cream-100); }
  .stat-section     { background: var(--cream-200); padding: 56px 0; }
  .section-how      { background: var(--cream-100); }
  .testimonial-section { background: var(--cream-200); padding: 56px 0; }

  /* tighten the section copy lockup */
  .section-title { font-size: 30px; line-height: 1.12; }
  .section-intro { font-size: 16px; }
}

/* Mobile cards — more breathing room, bigger headlines */
@media (max-width: 720px) {
  .feature-card,
  .prime-card {
    padding: 26px 22px 22px;
    border-radius: 16px;
  }
  .feature-card h3 { font-size: 20px; margin-bottom: 10px; }
  .feature-card p { font-size: 15px; }
  .feature-grid { gap: 14px; }

  .prime-grid { gap: 14px; }
  .prime-title { font-size: 22px; line-height: 1.2; }
  .prime-meta { margin-bottom: 18px; }
  .prime-num { font-size: 28px; }
}

/* Mobile showcase — single column, Results hidden, frameless screenshot */
@media (max-width: 720px) {
  .section-showcase .phone-grid-2 {
    grid-template-columns: 1fr;
    max-width: 280px;
    gap: 56px;
  }
  /* Results is already shown in the mobile hero — drop the duplicate here */
  .section-showcase .phone-grid-2 > :first-child { display: none; }
  .phone-accent,
  .phone-accent:hover { transform: none; }
  .phone:hover { transform: none; }

  /* Drop the iPhone-frame chrome on mobile — phone-in-phone reads as meta */
  .section-showcase .phone {
    background: transparent;
    padding: 0;
    aspect-ratio: 9 / 19;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.45);
  }
  .section-showcase .phone-notch { display: none; }
  .section-showcase .phone-screen {
    border-radius: 24px;
    padding: 0;
  }
  .section-showcase .phone-image .phone-screen img {
    border-radius: 24px;
  }
}

/* Mobile steps — compressed inline number+title row, no stacked circle */
@media (max-width: 720px) {
  .steps { gap: 24px; grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 4px;
  }
  .step-num {
    grid-column: 1; grid-row: 1;
    width: 36px; height: 36px;
    font-size: 18px;
    margin-bottom: 0;
  }
  .step h3 {
    grid-column: 2; grid-row: 1;
    font-size: 19px;
    align-self: center;
    margin: 0;
  }
  .step p {
    grid-column: 2; grid-row: 2;
    font-size: 15px; line-height: 1.5;
    margin: 0;
  }
  .step-meta {
    grid-column: 2; grid-row: 3;
    justify-self: start;
    margin-top: 6px;
  }
}

/* Mobile testimonial — quieter quote */
@media (max-width: 720px) {
  .testimonial-quote { font-size: 23px; line-height: 1.35; }
  .testimonial-section { padding: 64px 0; }
}

/* Mobile final CTA — bigger badges, drop the "open on web" line (context mismatch) */
@media (max-width: 720px) {
  .cta-block { padding: 80px 0 64px; }
  .cta-bg-mark {
    width: 460px; height: 460px;
    transform: translateY(40px);
    opacity: 0.14;
  }
  .cta-title { font-size: 40px; line-height: 1.05; }
  .cta-sub { font-size: 16px; max-width: none; margin-bottom: 32px; }
  .cta-actions .store-badge img { height: 60px; }
  /* Hide the "Or open liway.app on the web" line — user is already on a phone */
  .cta-meta { display: none; }
}

/* Mobile footer — brand centered on top, link columns 3-up below */
@media (max-width: 720px) {
  .footer { padding: 48px 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "brand brand brand"
      "p     c     l";
    gap: 36px 20px;
    margin-bottom: 36px;
  }
  .footer-brand {
    grid-area: brand;
    text-align: center;
  }
  .footer-brand .footer-lockup {
    justify-content: center;
  }
  .footer-brand p {
    margin: 0 auto;
    max-width: 320px;
  }
  .footer-grid > div:nth-child(2) { grid-area: p; }
  .footer-grid > div:nth-child(3) { grid-area: c; }
  .footer-grid > div:nth-child(4) { grid-area: l; }
  .footer h4 { margin-bottom: 12px; font-size: 10px; }
  .footer ul { gap: 8px; }
  .footer a { font-size: 13px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding-top: 28px;
  }
}

/* Very small phones: footer columns get cramped — fall back to 1-col */
@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "p     c"
      "l     l";
    gap: 28px 16px;
  }
}

/* iOS tap targets — store badges enforce 44px (Apple HIG); nav CTA runs
 * leaner since it's a low-stakes secondary action (returning users only). */
@media (max-width: 720px) {
  .nav-cta {
    padding: 6px 11px 6px 13px;
    font-size: 13px;
    min-height: 34px;
    gap: 4px;
  }
  .nav-cta svg { width: 10px; height: 10px; }
  .store-badge { display: inline-flex; min-height: 44px; align-items: center; }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 380px) {
  .display { font-size: 46px; }
  .section-title { font-size: 26px; }
  .cta-title { font-size: 34px; }
  .hero-phone-mobile { max-width: 220px; }
  .container { padding: 0 18px; }
}
