:root {
  /* --- Light (default) --- */
  --bg: #f7f6f0;
  --bg-alt: #efece0;
  --surface: #ffffff;
  --surface-2: #fbfaf5;
  --ink: #172319;
  --ink-muted: #59685c;
  --ink-faint: #8b9689;
  --line: #e5e1d2;
  --line-strong: #d3cdb8;

  --brand: #2f7f34;      /* deep green — headings/icons on light */
  --brand-fill: #4faf53; /* app's primary green — buttons/fills */
  --brand-fill-dark: #349838;
  --brand-tint: #e9f5e8;
  --on-brand: #ffffff;

  --cat-catering: #0e7490;
  --cat-photo:    #4f46e5;
  --cat-decor:    #db2777;
  --cat-venue:    #b45309;
  --cat-ent:      #7c3aed;
  --cat-car:      #dc2626;
  --cat-bike:     #ea580c;

  --shadow: 0 1px 2px rgba(23,35,25,.04), 0 12px 32px -16px rgba(23,35,25,.18);
  --shadow-lg: 0 24px 60px -24px rgba(23,35,25,.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10160f;
    --bg-alt: #161d14;
    --surface: #171f18;
    --surface-2: #1c241b;
    --ink: #edf1e9;
    --ink-muted: #a3af9f;
    --ink-faint: #6d7a6a;
    --line: #283027;
    --line-strong: #33402f;

    --brand: #7fd984;
    --brand-fill: #4faf53;
    --brand-fill-dark: #3fa245;
    --brand-tint: #1b2a1c;
    --on-brand: #06210a;

    --cat-catering: #35b6d6;
    --cat-photo:    #8b85f5;
    --cat-decor:    #f472b6;
    --cat-venue:    #e0a44f;
    --cat-ent:      #a992fb;
    --cat-car:      #f2726d;
    --cat-bike:     #f6944f;

    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -20px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #10160f;
  --bg-alt: #161d14;
  --surface: #171f18;
  --surface-2: #1c241b;
  --ink: #edf1e9;
  --ink-muted: #a3af9f;
  --ink-faint: #6d7a6a;
  --line: #283027;
  --line-strong: #33402f;

  --brand: #7fd984;
  --brand-fill: #4faf53;
  --brand-fill-dark: #3fa245;
  --brand-tint: #1b2a1c;
  --on-brand: #06210a;

  --cat-catering: #35b6d6;
  --cat-photo:    #8b85f5;
  --cat-decor:    #f472b6;
  --cat-venue:    #e0a44f;
  --cat-ent:      #a992fb;
  --cat-car:      #f2726d;
  --cat-bike:     #f6944f;

  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -20px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--ink); margin: 0; text-wrap: balance; }
em { font-style: italic; color: var(--brand); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font: 700 .72rem/1 "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--brand);
}

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1140px; margin: 0 auto; gap: 20px;
}
.brand-mark { display: flex; align-items: center; gap: 10px; }
/* website/assets/logo-badge.png is the mark alone (no wordmark) on a
   transparent background, pre-cropped to Android's adaptive-icon safe
   zone -- same source used for every app/favicon icon, so this nav badge
   and the actual app icons are pixel-consistent. */
.brand-mark .glyph {
  width: 34px; height: 34px; border-radius: 10px;
  background-color: #0b1220;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
/* logo-badge.png already carries its own safe-zone margin (cropped for
   Android's adaptive-icon mask), so it can fill almost the whole box here
   without adding a second layer of padding on top of that -- at 22px it
   read as too small inside a 34px badge. */
.brand-mark .glyph img { width: 30px; height: 30px; }
.brand-mark .word { font: 600 1.2rem/1 "Fraunces", serif; color: var(--ink); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font: 500 .92rem/1 "Inter", sans-serif; color: var(--ink-muted);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-color: var(--line-strong); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font: 600 .92rem/1 "Inter", sans-serif;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-fill { background: var(--brand-fill); color: #fff; }
.btn-fill:hover { background: var(--brand-fill-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 88px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 3.6vw + 1rem, 3.55rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.01em;
  margin: 14px 0 20px;
}
.hero .lede {
  font-size: 1.1rem; color: var(--ink-muted); max-width: 46ch; margin-bottom: 30px;
}
.hero .lede b { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  display: flex; align-items: center; gap: 7px;
  font: 500 .82rem/1 "Inter", sans-serif; color: var(--ink-muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px;
}
.trust-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-fill); flex-shrink:0; }

/* --- Hero mock stack (in-universe UI recreation, not a stock photo) --- */
.mock-stack { position: relative; height: 430px; }
.mock-card {
  position: absolute; left: 0; right: 0; margin: 0 auto;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.mock-1 { top: 0; width: 92%; padding: 18px 18px 20px; z-index: 1; transform: rotate(-2.2deg); }
.mock-2 { top: 168px; width: 100%; z-index: 2; transform: rotate(1.4deg); }
.mock-3 { top: 358px; width: 84%; right: 0; left: auto; padding: 13px 16px; z-index: 3; transform: rotate(-1deg); }

.mock-label { font: 700 .68rem/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 12px; }
.mock-chiprow { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font: 600 .78rem/1 "Inter", sans-serif;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-muted);
}
.mock-chip.on { background: var(--brand-tint); border-color: var(--brand-fill); color: var(--brand); }
.mock-chip .sw { width: 8px; height: 8px; border-radius: 50%; }

.mock-vendor-photo {
  height: 108px;
  background: linear-gradient(135deg, var(--cat-decor), var(--cat-photo));
}
.mock-vendor-body { padding: 14px 16px 16px; }
.mock-vendor-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mock-vendor-name { font: 700 .98rem/1.2 "Inter", sans-serif; color: var(--ink); }
.mock-badge {
  font: 700 .64rem/1 "Inter", sans-serif; color: var(--brand); background: var(--brand-tint);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.mock-rating { font: 500 .8rem/1 "Inter", sans-serif; color: var(--ink-muted); margin-top: 4px; }
.mock-star { color: #f5b301; }

.mock-3 .mock-confirm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mock-check {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-fill);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink:0;
}
.mock-confirm-title { font: 700 .88rem/1.2 "Inter", sans-serif; color: var(--ink); }
.mock-confirm-sub { font: 500 .76rem/1.3 "Inter", sans-serif; color: var(--ink-muted); margin-left: 34px; }

/* ---------- Section shell ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 2.2vw + .8rem, 2.35rem); font-weight: 600; margin-top: 10px; }
.section-head p { color: var(--ink-muted); margin-top: 14px; font-size: 1.02rem; max-width: 58ch; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step .num {
  font: 600 1rem/1 "Fraunces", serif; color: var(--brand-fill);
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step h3 { font-size: 1.18rem; font-weight: 600; }
.step p { color: var(--ink-muted); font-size: .96rem; }
.step-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.step-tag {
  font: 500 .74rem/1 "Inter", sans-serif; color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
}

/* ---------- Categories ---------- */
.cat-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; flex: 1 1 200px;
}
.cat-pill .sw {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.cat-pill .sw svg { width: 19px; height: 19px; }
.cat-pill .t strong { display: block; font: 600 .95rem/1.2 "Inter", sans-serif; }
.cat-pill .t span { display: block; font: 400 .78rem/1.3 "Inter", sans-serif; color: var(--ink-muted); margin-top: 1px; }

/* ---------- Two-sided ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 32px; box-shadow: var(--shadow);
}
.split-card .tag {
  display: inline-block; font: 700 .7rem/1 "Inter", sans-serif; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand); background: var(--brand-tint);
  padding: 6px 11px; border-radius: 999px; margin-bottom: 16px;
}
.split-card h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: 18px; }
.split-card li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-muted); }
.split-card li:first-of-type { border-top: none; }
.split-card li .b { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-fill); margin-top: 8px; flex-shrink: 0; }
.split-card li b { color: var(--ink); font-weight: 600; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fact { background: var(--surface); padding: 30px 24px; text-align: center; }
.fact .num { font: 600 2.3rem/1 "Fraunces", serif; color: var(--brand); font-variant-numeric: tabular-nums; }
.fact .lbl { margin-top: 8px; font-size: .86rem; color: var(--ink-muted); }

/* ---------- Scenarios ---------- */
.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scenario { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.scenario .eyebrow { display: block; margin-bottom: 10px; }
.scenario h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 12px; }
.scenario p { color: var(--ink-muted); font-size: .97rem; }
.scenario .fee { display: inline-block; margin-top: 16px; font: 700 .8rem/1 "Inter", sans-serif; color: var(--brand); background: var(--brand-tint); padding: 6px 11px; border-radius: 999px; }

/* ---------- Final CTA ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--brand-fill-dark), var(--brand-fill));
  border-radius: 26px; padding: 56px 48px; color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 2vw + .8rem, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 12px; max-width: 44ch; }
.cta-apps { display: flex; flex-direction: column; gap: 12px; }
.app-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 13px;
  padding: 12px 16px;
}
.app-btn .ic { width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--brand-fill-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-btn .ic svg { width: 19px; height: 19px; }
.app-btn .tx div:first-child { font: 400 .68rem/1 "Inter", sans-serif; opacity: .8; }
.app-btn .tx div:last-child { font: 700 .92rem/1.2 "Inter", sans-serif; }

/* ---------- Footer ---------- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.foot-col h4 { font: 700 .75rem/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 16px; }
.foot-col li { padding: 6px 0; }
.foot-col a { color: var(--ink-muted); font-size: .92rem; }
.foot-col a:hover { color: var(--brand); }
.foot-about p { color: var(--ink-muted); font-size: .92rem; max-width: 32ch; margin-top: 14px; }
.lang-row { display: flex; gap: 8px; margin-top: 6px; }
.lang-note { font: 500 .78rem/1 "Inter", sans-serif; color: var(--ink-faint); align-self: center; }
.lang-chip { font: 600 .78rem/1 "Inter", sans-serif; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink-muted); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  /* `.mock-stack` has no in-flow content -- every card inside it is
     `position: absolute`, so it has no intrinsic size of its own. On the
     desktop grid it gets its width from `justify-items: stretch`, but
     `margin: 0 auto` (used here to center it once the grid drops to one
     column) turns stretch off for a grid item, so without an explicit
     width it collapsed to 0 -- every card then rendered as a sliver at
     that single x-position instead of a real card. */
  .mock-stack { width: 100%; height: 380px; max-width: 440px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  /* Below this, logo + both nav buttons no longer fit one row -- "Get the
     app" was running past the edge of the screen. One clear primary
     action reads better here than two cramped ones; "Vendor sign in"
     stays reachable from the "For vendors" section and the footer. */
  .nav-cta .btn-ghost { display: none; }
  .nav { padding: 12px 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 60px; }
  .cta-band { padding: 40px 26px; }
}

@media (max-width: 420px) {
  /* One more step down (small phones in portrait), the brand wordmark
     plus even a single nav button gets tight -- drop the button label
     down in size before it wraps awkwardly. */
  .brand-mark .word { font-size: 1.05rem; }
  .nav-cta .btn { padding: 8px 14px; font-size: .82rem; }
}
