/* ============================================================
   ShopConnect — editorial landing page
   Brand: warm paper + ink, forest green, butter-marigold
   Type: Newsreader (serif display) + Hanken Grotesk (sans)
   ============================================================ */

/* AUDIT FIX 2026-06-07 — @import removed; Google Fonts is now loaded via <link> in
   BaseLayout.astro with preconnect hints. @import blocks CSS parsing until the remote
   stylesheet is fetched; a <link> in <head> lets the browser fetch it in parallel. */

:root {
  --paper:        #F6F1E1;
  --paper-2:      #FBF8EE;
  --paper-sunk:   #ECE4CE;
  --ink:          #1B1712;
  --ink-soft:     #5A534A;
  /* A11Y FIX: #938B7D was 2.98:1 on --paper — fails WCAG AA (need ≥3:1 large, ≥4.5:1 small).
     #6B6358 scores 5.23:1 on --paper — passes both thresholds. */
  --ink-faint:    #6B6358;
  --line:         rgba(27, 23, 18, 0.12);
  --line-2:       rgba(27, 23, 18, 0.22);

  --panel:        #15140F;   /* warm near-black dark sections */
  --panel-2:      #211F18;
  --panel-card:   #26241B;
  --panel-line:   rgba(246, 241, 225, 0.16);

  --green:        #195139;   /* forest band */
  --green-deep:   #123A29;
  --green-bright: #45B07D;
  /* A11Y FIX: #2E7D5B was 4.42:1 on --paper (fails WCAG AA). #22754C was 4.45:1 on
     --paper-sunk (#ECE4CE, used as ing-chip background) — still fails AA (need ≥4.5:1).
     #1E6B44 scores 5.11:1 on --paper-sunk, 5.73:1 on --paper, 6.10:1 on --paper-2.
     Passes AA on every background it appears on. */
  --green-soft:   #1E6B44;

  --butter:       #F4C657;   /* primary CTA / accents */
  --butter-deep:  #E8A11E;   /* marigold annotations */
  --clay:         #C9744A;

  --sc-navy:      #15276B;   /* ShopConnect mark — deep navy */
  /* A11Y FIX: #4C79F0 scored 3.51:1 on --paper — fails WCAG AA at 4.5:1 threshold
     when axe evaluates at mobile viewport (18px font, not guaranteed large-text).
     #2563EB scores 4.57:1 on --paper and 4.86:1 on --paper-2 (nav bar bg). */
  --sc-blue:      #2563EB;   /* ShopConnect mark — bright blue */

  --r-lg: 30px;
  --r-md: 18px;
  --r-sm: 12px;
  --maxw: 1240px;

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Prevent horizontal scroll at the root level. overflow-x:hidden on body alone
     is not sufficient — browsers allow horizontal scroll on body if html is not
     also clipped. Both must be set to fully prevent the mobile overflow issue. */
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* Anchor-jump offset — nav links and in-page anchors scroll to section[id]
   targets; land them below the fixed header rather than hidden underneath. */
section[id], [id].anchor-offset { scroll-margin-top: 90px; }

.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ───────────────────────── BUTTONS ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--butter); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232,161,30,.32); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27,23,18,.25); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-on-dark { background: transparent; color: var(--paper); border-color: var(--panel-line); }
.btn-on-dark:hover { border-color: var(--paper); }
.btn .ico { width: 18px; height: 18px; display: block; }

/* ───────────────────────── NAV ───────────────────────── */
/* Scoped to the fixed header only — a bare `nav` selector here leaked
   display:flex / position:fixed / pointer-events:none into other <nav>
   elements (e.g. the .legal-toc table of contents), breaking their layout. */
.site-nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: center; padding: 0 20px;
  pointer-events: none;
}
.nav-shell { width: min(1180px, 100%); }
.nav-bar {
  pointer-events: auto;
  width: 100%;
  display: flex; align-items: center; gap: 18px;
  background: rgba(251, 248, 238, 0.82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 14px 12px 22px;
  box-shadow: 0 8px 30px rgba(27,23,18,.06);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav-bar.scrolled {
  background: rgba(251, 248, 238, 0.94);
  box-shadow: 0 10px 34px rgba(27,23,18,.12);
  border-color: var(--line-2);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 34px; width: auto; display: block; }

/* ── premium logo lockup component ── */
.sc-logo { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.sc-mark {
  position: relative; flex: none; width: 50px; height: 50px;
  border-radius: 15px; overflow: hidden; background: #fff;
  box-shadow: 0 6px 16px rgba(21,39,107,.18),
              0 0 0 1px rgba(21,39,107,.07),
              inset 0 1px 0 rgba(255,255,255,.9);
  display: grid; place-items: center;
  transition: transform .4s cubic-bezier(.22,.8,.2,1), box-shadow .4s;
}
.sc-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-mark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.65) 50%, transparent 58%);
  transform: translateX(-130%);
}
.sc-logo:hover .sc-mark {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(21,39,107,.26),
              0 0 0 1px rgba(21,39,107,.09),
              inset 0 1px 0 rgba(255,255,255,.95);
}
.sc-logo:hover .sc-mark::after { transform: translateX(130%); transition: transform .7s ease; }
.sc-lockup { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.sc-name { font-family: var(--sans); font-weight: 800; font-size: 20px; letter-spacing: .002em; white-space: nowrap; }
.sc-name .sc-shop { color: var(--sc-navy); }
.sc-name .sc-connect { color: var(--sc-blue); }
.sc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: color-mix(in srgb, var(--sc-navy) 60%, var(--ink-faint));
}
.sc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sc-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-blue) 22%, transparent); }
@media (max-width: 480px) {
  .sc-mark { width: 44px; height: 44px; border-radius: 13px; }
  .sc-name { font-size: 18px; }
}
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 26px; }
.nav-links a {
  font-size: 16px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px; transition: opacity .2s;
}
.nav-links a:hover { opacity: .55; }
.nav-links a.active { opacity: 1; }
.nav-spacer { flex: 1; }
.nav-divider { width: 1px; height: 26px; background: var(--line-2); }

/* ── hamburger toggle (mobile / tablet only) ── */
.nav-toggle {
  display: none; flex: none;
  width: 44px; height: 44px; padding: 0; margin-left: 2px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(246, 241, 225, 0.5); cursor: pointer;
  align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: rgba(246, 241, 225, 0.85); border-color: var(--line-2); }
.nav-toggle-box { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle-bar {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .2s ease, top .3s ease;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 6px; }
.nav-toggle-bar:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ── mobile dropdown menu ── */
.nav-mobile {
  pointer-events: auto;
  margin-top: 10px; padding: 10px;
  background: rgba(251, 248, 238, 0.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 14px 40px rgba(27, 23, 18, .14);
  transform-origin: top center;
  animation: navMenuIn .26s cubic-bezier(.2,.7,.3,1);
}
.nav-mobile[hidden] { display: none; }
@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-link {
  display: block; padding: 14px 16px; border-radius: 12px;
  font-size: 17px; font-weight: 600; color: var(--ink);
  transition: background .18s ease;
}
.nav-mobile-link:hover { background: rgba(27, 23, 18, .05); }
.nav-mobile-link.active { color: var(--green-soft); }
.nav-mobile-cta { width: 100%; justify-content: center; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .nav-mobile { animation: none; }
  .nav-toggle-bar { transition: none; }
}

@media (max-width: 1080px) {
  .nav-links, .nav-divider { display: none; }
  .nav-spacer { display: none; }
  .sc-logo { margin-right: auto; }
  .nav-toggle { display: inline-flex; }
}
/* On the narrowest phones the inline CTA crowds the bar — fold it into the menu. */
@media (max-width: 560px) {
  .nav-cta { display: none; }
}
/* The mobile menu only exists below the breakpoint; keep it out of desktop layout. */
@media (min-width: 1081px) {
  .nav-mobile { display: none !important; }
}

/* ───────────────────────── HERO styles live in hero-ribbon.css / hero-cards.css ───────────────────────── */

/* ───────────────────────── VERSION SWITCH ───────────────────────── */
.ver-switch {
  position: fixed; right: 22px; bottom: 26px; z-index: 160;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(27,23,18,.28);
  transition: transform .2s, box-shadow .2s;
}
.ver-switch:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(27,23,18,.34); }
.ver-switch svg { width: 16px; height: 16px; }
.ver-switch .vlabel { opacity: .6; font-weight: 600; }

/* ───────────────────────── SECTION SHELL ───────────────────────── */
.section { padding: 130px 0; }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-soft);
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 92px); line-height: 1.0; letter-spacing: -0.025em; padding-bottom: 0.05em;
}
.lead { font-size: 20px; color: var(--ink-soft); font-weight: 500; line-height: 1.5; }
.underline-stroke { position: relative; display: inline-block; }
.underline-stroke svg { position: absolute; left: 0; right: 0; bottom: -0.14em; width: 100%; height: 0.22em; }
/* folded-corner ribbon badge */
.soon-badge {
  position: relative; display: inline-block; margin-bottom: 28px;
  padding: 12px 22px; border-radius: 5px 5px 5px 0;
  background: var(--clay); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(201,116,74,.32);
}
.soon-badge .dot { display: none; }
.soon-badge .soon-label { position: relative; }
/* folded corner */
.soon-badge::after {
  content: ""; position: absolute; left: 0; bottom: -9px;
  border-width: 9px 0 0 11px; border-style: solid;
  border-color: #8f4f30 transparent transparent transparent;
}
/* subtle sheen sweep keeps it alive */
.soon-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%);
  background-size: 220% 100%; background-position: 120% 0;
  animation: soonSheen 4.5s ease-in-out infinite;
}
@keyframes soonSheen {
  0%, 12% { background-position: 120% 0; }
  55%, 100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-badge::before { animation: none; }
}

/* dark rounded panel */
.panel {
  background: var(--panel); color: var(--paper);
  border-radius: 56px; position: relative; overflow: hidden;
}
.panel .eyebrow { color: var(--green-bright); }

/* ───────────────────────── APPS / GARLAND ───────────────────────── */
#apps { padding: 0 16px; }
.apps-inner { padding: 96px 56px 110px; }
.apps-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.os-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.os-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 100px;
  border: 1.5px solid var(--panel-line); font-weight: 600; font-size: 16px;
}
.os-pill svg { width: 17px; height: 17px; }
.apps-h2 { font-family: var(--serif); font-size: clamp(40px, 5vw, 76px); line-height: 1.0; letter-spacing: -0.02em; padding-bottom: 0.04em; }
.apps-lead { margin-top: 22px; max-width: 380px; font-size: 19px; color: rgba(246,241,225,.62); }
.apps-cta { margin-top: 34px; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.phone-col .apps-cta { margin-top: 0; }

/* phone mock */
.phone {
  width: 340px; max-width: 100%; margin: 0 auto;
  filter: drop-shadow(0 36px 60px rgba(10,30,20,.4));
}
.phone img { display: block; width: 100%; height: auto; }
.phone-wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.phone-wave i { width: 3.5px; background: var(--paper); border-radius: 4px; animation: wavebar 1.2s ease-in-out infinite; }
@keyframes wavebar { 0%,100%{ height: 6px } 50%{ height: var(--h, 28px) } }

/* tile garland */
.garland { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tile {
  position: absolute; width: 66px; height: 66px;
}
.tile img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.tile svg { width: 34px; height: 34px; }

@media (max-width: 900px) {
  .apps-grid { grid-template-columns: 1fr; }
  .garland { display: none; }
  .apps-inner { padding: 70px 28px 80px; }
}

/* ───────────────────────── EXPANSION BANNER ───────────────────────── */
#proof {
  background: var(--green); color: var(--paper); border-radius: 56px; margin: 60px 16px 0;
  overflow: hidden; position: relative;
  background-image:
    radial-gradient(120% 90% at 88% -10%, rgba(69,176,125,.34), transparent 55%),
    radial-gradient(90% 80% at 6% 112%, rgba(18,58,41,.7), transparent 60%);
}
.exp-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(40% 60% at 50% -10%, rgba(244,198,87,.16), transparent 70%);
}
/* faint map-dot texture */
#proof::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(246,241,225,.07) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(75% 75% at 72% 18%, #000, transparent 78%);
  mask-image: radial-gradient(75% 75% at 72% 18%, #000, transparent 78%);
}
.proof-inner { padding: 44px 36px 40px; position: relative; z-index: 1; }

/* editorial announcement banner */
.exp-banner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: 34px 6px 36px; margin-bottom: 26px;
  border-top: 1px solid rgba(246,241,225,.16);
  border-bottom: 1px solid rgba(246,241,225,.16);
}
.exp-lead { flex: 1 1 480px; min-width: 0; }
.exp-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 7px 15px 7px 11px; border-radius: 100px;
  background: rgba(244,198,87,.1); border: 1px solid rgba(244,198,87,.3);
  color: var(--butter); font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.exp-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--butter); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(244,198,87,.6); animation: expLive 2s ease-out infinite;
}
@keyframes expLive {
  0% { box-shadow: 0 0 0 0 rgba(244,198,87,.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(244,198,87,0); }
}
.exp-title {
  margin-top: 16px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em;
}
.exp-title .exp-em { font-style: italic; color: var(--green-bright); }
.exp-title .exp-star { color: var(--butter); font-style: normal; }
.exp-sub {
  margin: 14px 0 0; max-width: 540px; font-size: 16px; line-height: 1.55;
  color: rgba(246,241,225,.72); font-weight: 500;
}
.exp-cta { white-space: nowrap; gap: 8px; flex: 0 0 auto; }
.exp-cta svg { width: 18px; height: 18px; transition: transform .25s ease; }
.exp-cta:hover svg { transform: translateX(3px); }
.exp-cta:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* legend */
.exp-legend { display: flex; gap: 22px; margin: 0 0 16px; padding-left: 4px; flex-wrap: wrap; }
.exp-legend .lg { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: rgba(246,241,225,.82); white-space: nowrap; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; }
.lg-dot.live { background: var(--green-bright); box-shadow: 0 0 0 4px rgba(69,176,125,.2); }
.lg-dot.soon { background: var(--butter); box-shadow: 0 0 0 4px rgba(244,198,87,.18); }

/* single location marquee */
.exp-marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.exp-track {
  display: flex; gap: 14px; width: max-content; align-items: center; padding-right: 14px;
  animation: expScroll 60s linear infinite; will-change: transform;
}
.exp-marquee:hover .exp-track { animation-play-state: paused; }
@keyframes expScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* location chips — premium map markers */
.loc-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 15px 9px 9px; border-radius: 16px; white-space: nowrap;
  background: rgba(246,241,225,.06);
  border: 1px solid rgba(246,241,225,.13);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0,0,0,.2), inset 0 1px 0 rgba(246,241,225,.06);
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.loc-chip:hover {
  background: rgba(246,241,225,.11); transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(246,241,225,.1);
}
.loc-ico {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
}
.loc-ico svg { width: 18px; height: 18px; }
.loc-name { font-weight: 700; font-size: 15.5px; color: var(--paper); letter-spacing: -0.01em; }
.loc-chip.live .loc-ico { background: rgba(69,176,125,.2); color: var(--green-bright); }
.loc-chip.live .loc-ico::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(69,176,125,.5); animation: locPulse 2.6s ease-out infinite;
}
.loc-chip.soon .loc-ico { background: rgba(244,198,87,.16); color: var(--butter); }
.loc-chip.soon { border-style: dashed; border-color: rgba(244,198,87,.32); }
@keyframes locPulse {
  0% { box-shadow: 0 0 0 0 rgba(69,176,125,.45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(69,176,125,0); }
}
.loc-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 8px;
}
.loc-chip.live .loc-tag { background: rgba(69,176,125,.22); color: #A9E0C2; }
.loc-chip.soon .loc-tag { background: rgba(244,198,87,.16); color: var(--butter); }

@media (prefers-reduced-motion: reduce) {
  .exp-track { animation: none; }
  .exp-live, .loc-chip.live .loc-ico::after, .rad-ping { animation: none; }
}
@media (max-width: 720px) {
  .proof-inner { padding: 34px 18px 36px; }
  .exp-banner { gap: 20px; padding: 26px 4px 28px; }
  .exp-cta { width: 100%; justify-content: center; }
  .exp-legend { gap: 18px; }
}

/* ───────────────────────── SPEED / COMPARE ───────────────────────── */
#compare { text-align: center; }
.compare-head { max-width: 760px; margin: 0 auto; }
.compare-sub { margin: 22px auto 0; max-width: 540px; }
.compare-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; }
.compare-cards { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; margin-top: 70px; text-align: left; align-items: stretch; }
.cmp-card { border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.cmp-card.lite { background: var(--paper-2); border: 1px solid var(--line); }
.cmp-card.media { background: linear-gradient(150deg,#8FB89F,#3C6B53 60%,#27412F); color: var(--paper); }
.cmp-label { font-family: var(--serif); font-size: 26px; }
.cmp-stat { font-family: var(--serif); font-size: clamp(48px, 6vw, 84px); line-height: 1; margin-top: 10px; }
.cmp-card.lite .cmp-stat { color: var(--ink); }
.cmp-unit { font-size: 0.42em; color: var(--ink-faint); }
.cmp-card .cmp-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cmp-card.media .cmp-stat .cmp-unit { color: rgba(246,241,225,.7); }
.cmp-card .media-foot { margin-top: 24px; }
.cmp-note { font-family: var(--sans); font-size: 15px; line-height: 1.6; max-width: 360px; }
.cmp-card.lite .cmp-note { color: var(--ink-soft); }
.cmp-card.media .cmp-note { color: rgba(246,241,225,.72); }
.cmp-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 28px; }
.cmp-bars i { flex: 1; background: var(--line-2); border-radius: 4px 4px 0 0; }
.cmp-circle { width: 76px; height: 76px; border: 2px solid rgba(246,241,225,.8); border-radius: 50%; display: grid; place-items: center; }
.cmp-circle .phone-wave i { background: var(--paper); }

@media (max-width: 820px) { .compare-cards { grid-template-columns: 1fr; } .cmp-card { min-height: auto; } }

/* ───────────────────────── PERSONAS PANEL ───────────────────────── */
#personas { padding: 0 16px; }
.persona-inner { padding: 92px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.persona-h2 { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 78px); line-height: 1.0; letter-spacing: -0.02em; padding-bottom: 0.04em; }
.persona-h2 .green { color: var(--green-bright); font-style: italic; }
.persona-note { margin-top: 24px; font-size: 18px; color: rgba(246,241,225,.7); }
.persona-pills { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; max-width: 460px; }
.persona-pill { padding: 12px 22px; border-radius: 100px; border: 1.5px solid var(--panel-line); font-weight: 700; font-size: 17px; transition: background .2s, color .2s; cursor: pointer; }
.persona-pill:hover, .persona-pill.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.persona-right { display: flex; flex-direction: column; justify-content: center; }
.persona-illu { width: 100%; max-width: 360px; margin: 0 auto 40px; }
.persona-sub-h { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; }
.persona-sub-p { margin-top: 18px; font-size: 17px; color: rgba(246,241,225,.7); max-width: 420px; }
.persona-sub-cta { margin-top: 28px; }

@media (max-width: 900px) { .persona-inner { grid-template-columns: 1fr; padding: 64px 28px; } }

/* ───────────────────────── AUTO-PLAN SPOTLIGHT ───────────────────────── */
#autoplan .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.autoplan-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg,#7d3b22,#46210f 70%); color: var(--paper);
  padding: 42px 38px; min-height: 540px;
}
.ap-raw { font-size: 19px; line-height: 1.5; color: rgba(246,241,225,.85); max-width: 360px; }
.ap-raw .struck { text-decoration: line-through; opacity: .55; }
.ap-clean { margin-top: auto; background: #14130E; border-radius: 22px; padding: 22px; }
.ap-clean-body { font-size: 16.5px; line-height: 1.55; }
.ap-toolbar { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--panel-line); }
.ap-toolbar .tool { width: 22px; height: 22px; opacity: .7; }
.ap-toolbar .spacer { flex: 1; }
.ap-toolbar .go { width: 40px; height: 40px; border-radius: 50%; background: var(--butter-deep); display: grid; place-items: center; }
.autoplan-card { display: flex; flex-direction: column; }
.autoplan-text .ap-logo { font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); display: flex; align-items: center; gap: 14px; }
.autoplan-text .lead { margin-top: 24px; max-width: 440px; }
.autoplan-text .compare-cta { justify-content: flex-start; margin-top: 32px; }

@media (max-width: 900px) { #autoplan .wrap { grid-template-columns: 1fr; gap: 36px; } .autoplan-card { min-height: 0; padding: 34px 26px; } }

/* ───────────────────────── PANTRY + RECIPES ───────────────────────── */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.dual-block { text-align: center; }
.dual-h { font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); }
.dual-p { margin: 16px auto 36px; max-width: 380px; color: var(--ink-soft); }
.mini-card { background: var(--panel); color: var(--paper); border-radius: 30px; padding: 30px; text-align: left; }
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.mini-title { font-weight: 700; font-size: 19px; }
.mini-add { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-card); display: grid; place-items: center; }
.chip-list { display: flex; flex-direction: column; gap: 11px; }
.chip { padding: 13px 20px; border-radius: 100px; font-weight: 700; font-size: 16px; border: 1.5px solid var(--green-bright); color: var(--paper); background: var(--green-deep); }
.snip { padding: 14px 18px; border-radius: 12px; border: 1.5px solid var(--panel-line); font-weight: 600; font-size: 16px; }
.snip.hi { background: var(--butter-deep); color: var(--ink); border-color: var(--butter-deep); }
.snip-row { display: flex; align-items: center; gap: 14px; }
.snip-row .arrow { width: 30px; color: var(--butter-deep); }

@media (max-width: 820px) { .dual { grid-template-columns: 1fr; gap: 56px; } }

/* ───────────────────────── LANGUAGES ───────────────────────── */
#langs .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lang-stack { background: var(--panel); border-radius: 36px; padding: 50px; display: flex; flex-direction: column; align-items: center; gap: 10px; perspective: 600px; }
.lang-chip {
  width: 100%; max-width: 320px; padding: 16px 22px; border-radius: 100px;
  border: 2px solid var(--paper); color: var(--paper); font-weight: 700; font-size: 22px;
  display: flex; align-items: center; gap: 14px; justify-content: center;
}
.lang-chip .flag { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.lang-chip.faded { opacity: .35; transform: scale(.92); }
.lang-chip.faded2 { opacity: .2; transform: scale(.84); }

@media (max-width: 820px) { #langs .wrap { grid-template-columns: 1fr; } }

/* ───────────────────────── FINAL CTA ───────────────────────── */
#start { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center; color: var(--paper); overflow: hidden; }
.start-bg { position: absolute; inset: 0; background: linear-gradient(165deg,#6FА0С8 0%,#3E6E54 45%,#7a4a25 100%); }
.start-bg { background: linear-gradient(160deg, #6f93b6, #3e6e54 42%, #8a5a2c 100%); }
.start-bg::after { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 50% 60%, transparent, rgba(20,14,8,.45)); }
.start-inner { position: relative; z-index: 2; padding: 40px; }
.start-h { font-family: var(--serif); font-size: clamp(60px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.02em; }
.start-sub { margin: 26px auto 0; max-width: 470px; font-size: 20px; font-weight: 500; }
.start-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.start-note { margin-top: 20px; font-size: 15px; opacity: .85; }
.start-dots { position: absolute; right: -40px; top: 0; height: 100%; width: 40%; pointer-events: none; }

/* ───────────────────────── ASK-AI ───────────────────────── */
#askai { padding: 40px 0 90px; }
.askai-card {
  border: 2.5px solid var(--ink); border-radius: 40px;
  background: var(--paper-2);
  padding: 56px 56px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.askai-text { max-width: 620px; }
.askai-h { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.askai-p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); max-width: 480px; }
.askai-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.askai-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 100px; font-weight: 700; font-size: 16px;
  background: var(--paper); border: 1.5px solid var(--ink); color: var(--ink);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.askai-btn:hover { transform: translateY(-2px); background: var(--butter); box-shadow: 0 8px 20px rgba(232,161,30,.28); }
.askai-btn { white-space: nowrap; }
.askai-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.askai-btn .brand-logo { width: 19px; height: 19px; }
.askai-illu { width: 200px; flex-shrink: 0; }
.askai-illu svg { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .askai-card { grid-template-columns: 1fr; padding: 38px 26px; text-align: center; }
  .askai-text { max-width: none; }
  .askai-p { margin-left: auto; margin-right: auto; }
  .askai-btns { justify-content: center; }
  .askai-illu { display: none; }
}

/* ───────────────────────── FOOTER ───────────────────────── */
footer { background: var(--paper); padding: 70px 0 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; }
.foot-col h4 { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink-faint); margin-bottom: 18px; }
.foot-col a { display: block; font-weight: 600; font-size: 17px; padding: 5px 0; transition: opacity .2s; }
.foot-col a:hover { opacity: .55; }
.foot-mark { margin: 60px 0 30px; width: 100%; display: block; }
.foot-mark .foot-logo { width: min(440px, 78%); height: auto; display: block; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-top: 26px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--ink-soft); }
.foot-legal a:hover { color: var(--ink); }
.foot-social { display: flex; gap: 14px; }
.foot-social a { width: 34px; height: 34px; display: grid; place-items: center; }
.foot-social svg { width: 20px; height: 20px; }

@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr; } }

/* ───────────────────────── FLOATING BUTTON ───────────────────────── */
.fab {
  position: fixed; left: 26px; bottom: 26px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--butter); border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(232,161,30,.4);
  transition: transform .25s;
}
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab svg { width: 28px; height: 28px; }

/* ───────────────────────── REVEAL ───────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave i, .phone-wave i { animation: none; }
}

.section-pad { padding-left: 40px; padding-right: 40px; }
@media (max-width: 720px) {
  .wrap, .section-pad { padding-left: 22px; padding-right: 22px; }
  .section { padding: 84px 0; }
  .panel, #proof, #personas > .panel { border-radius: 36px; }
}
/* ── Small phones (≤480px) — prevent horizontal overflow ─────────────────── */
@media (max-width: 480px) {
  /* Reduce side padding so content stays within 360px viewport */
  .wrap, .section-pad { padding-left: 16px; padding-right: 16px; }
  /* Tighter padding on dark panels */
  .apps-inner { padding: 48px 20px 56px; }
  .persona-inner { padding: 48px 20px; }
  /* Round corners less aggressively — large radius + side margin can clip */
  .panel, #proof, #personas > .panel { border-radius: 24px; }
  /* Proof/expansion section: reduce side margin so it fits 360px */
  #proof { margin-left: 8px; margin-right: 8px; }
  #personas { padding-left: 8px; padding-right: 8px; }
  #apps { padding-left: 8px; padding-right: 8px; }
  /* Autoplan card: reduce horizontal padding */
  .autoplan-card { padding: 28px 18px; }
  /* CTA band: reduce padding on tiny screens */
  .cta-band { padding: 52px 24px; border-radius: 32px; }
  /* Expansion marquee — ensure it doesn't exceed viewport */
  .exp-marquee { overflow: hidden; max-width: 100vw; }
  /* Start section — reduce font size slightly to prevent line wrapping overflow */
  .start-h { font-size: clamp(52px, 15vw, 100px); }
}

/* ── utilities (replace one-off inline styles) ── */
.text-green-bright { color: var(--green-bright); }
.lead-narrow { margin-top: 24px; max-width: 420px; }
.mt-32 { margin-top: 32px; }
