:root {
  /* Colour tokens — must match src/global.css */
  --color-surface:        #fdfbf2;
  --color-surface-sunken: #f0ebd9;
  --color-ink:            #0e0d0a;
  --color-ink-soft:       #4d4a42;
  --color-ink-mute:       #7a7565;
  --color-rule:           #d8d2bb;
  --color-brand:          #cf3a26;
  --color-brand-soft:     #f5d6cf;
  --color-cheapest:       #1f7560;
  --color-cheapest-soft:  #c4e0d6;
  --color-sale:           #b8860b;
  --color-accent:         #f3c33d;

  /* Icon disc colours — sun-bleached pastel versions of brand+accent.
     Sampled directly from assets/icon.png. NOT used in-app — these only
     appear on the landing hero so the page reads as a sibling of the icon. */
  --color-icon-yellow:    #f7dc8e;
  --color-icon-red:       #d65745;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;  /* hero circles peek past the centred column without causing horizontal scroll on mobile */
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* Hero — echoes the app icon: cream surface with a giant sun-yellow disc
   top-right and a kangaroo-paw-red disc bottom-left, "The Shops." sitting
   between them. The circles peek past the 720px column into the cream
   margin; on mobile they shrink and tuck closer. */
.hero {
  position: relative;
  padding: 24px 0 32px;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-circle-yellow {
  background: var(--color-icon-yellow);
  width: 320px;
  height: 320px;
  top: -80px;
  right: -160px;
}

.hero-circle-red {
  background: var(--color-icon-red);
  width: 260px;
  height: 260px;
  bottom: -40px;
  left: -180px;
}

.hero-trust {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink-mute);
  margin: 16px 0 0;
}

/* Hero tagline — the H2 that carries value-prop weight under the brand H1.
   Larger than the lede; sits between H1 and lede. */
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin: 0 0 12px;
  max-width: 580px;
}

@media (max-width: 720px) {
  .hero-circle-yellow {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -100px;
  }
  .hero-circle-red {
    width: 180px;
    height: 180px;
    bottom: -20px;
    left: -110px;
  }
}

/* Monospace uppercase eyebrow — matches src/design/primitives/Heading.tsx Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink-soft);
  margin: 0 0 16px;
}

/* PageTitle — matches Heading.tsx PageTitle (40/42, -1.4 tracking) but scaled up for web */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--color-ink);
}

/* SectionTitle — 20/22, -0.4 tracking, semibold */
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-ink-soft);
  margin: 0 0 32px;
  max-width: 560px;
}

a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover { color: var(--color-ink); }

ul { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 6px; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-surface-sunken);
  border: 1px solid var(--color-rule);
  padding: 1px 6px;
  border-radius: 3px;
}

/* App Store button — Apple's badge is a complete designed artifact (black
   ground + their own inner white stroke + locked typography), so we don't
   wrap it in our own border/shadow. The earlier Trolley hard-shadow on top
   stacked three black layers around an already-black badge and turned
   Apple's mandatory inner stroke into a "filler stripe" mid-button. Keep
   the click target + subtle hover lift, drop the rest. */
.cta {
  display: inline-block;
  margin: 8px 0 40px;
}

.cta a {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  border-radius: 8px;
  transition: transform 150ms ease, filter 150ms ease;
}

.cta a:hover,
.cta a:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cta a:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 4px;
}

.cta a:active {
  transform: translateY(0);
}

.cta img { display: block; height: 56px; width: auto; }

/* Feature cards — hard 1.5px border + 5px offset shadow per Card.tsx */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0 48px;
}

@media (min-width: 560px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--color-surface);
  border: 1.5px solid var(--color-ink);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 5px 5px 0 var(--color-ink);
}

.feature h3 { margin: 0 0 6px; }
.feature p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 15px;
  line-height: 1.45;
}

/* "Cheapest" feature card uses the eucalyptus-tinted variant from Card.tsx */
.feature.cheapest {
  background: var(--color-cheapest-soft);
  border-color: var(--color-cheapest);
  box-shadow: 5px 5px 0 var(--color-cheapest);
}
.feature.cheapest h3 { color: var(--color-cheapest); }

/* =========================================================
   Section: alternating feature blocks (text + phone mockup)
   ========================================================= */

.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin: 96px 0;
}

@media (min-width: 720px) {
  .feature-block {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }
  .feature-block.reverse .feature-block-text { order: 2; }
  .feature-block.reverse .feature-block-media { order: 1; }
}

.feature-block-text .eyebrow { color: var(--color-brand); }
.feature-block-text h2 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.feature-block-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin: 0 0 12px;
}
.feature-block-text ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.feature-block-text li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--color-ink-soft);
}
.feature-block-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--color-brand);
  border-radius: 1px;
}
.feature-block.cheapest-accent .feature-block-text li::before { background: var(--color-cheapest); }

/* =========================================================
   Phone mockup — iPhone-shaped frame for screenshots
   Trolley hard offset shadow.
   ========================================================= */

.phone-frame {
  position: relative;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--color-ink);
  border-radius: 38px;
  padding: 8px;
  margin: 0 auto;
  box-shadow: 8px 8px 0 var(--color-ink);
}

.phone-frame.accent { box-shadow: 8px 8px 0 var(--color-cheapest); }

.phone-frame .notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: var(--color-ink);
  border-radius: 12px;
  z-index: 2;
}

.phone-frame .screen {
  background: var(--color-surface-sunken);
  border-radius: 32px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-frame .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder shown when no screenshot has been dropped in yet. */
.phone-frame .placeholder {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink-mute);
  text-align: center;
  padding: 24px;
  line-height: 1.6;
}

/* =========================================================
   "How it works" — 3 numbered steps
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0 64px;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  position: relative;
  padding: 20px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--color-ink);
}
.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-brand);
  margin-bottom: 8px;
  display: block;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--color-ink-soft);
  line-height: 1.45;
}

/* =========================================================
   Trust block — "Why this exists" signed founder note
   ========================================================= */

.trust-block {
  background: var(--color-surface);
  border: 1.5px solid var(--color-ink);
  border-radius: 6px;
  padding: 32px;
  margin: 64px 0;
  box-shadow: 5px 5px 0 var(--color-icon-yellow);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.trust-block .eyebrow { color: var(--color-brand); }
.trust-block h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.trust-block p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
}
.trust-block .signoff {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink-soft);
}

/* =========================================================
   Privacy callout — sunken card with shield icon
   ========================================================= */

.privacy-callout {
  background: var(--color-surface-sunken);
  border: 2px solid var(--color-ink);
  border-radius: 6px;
  padding: 32px;
  margin: 96px 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  box-shadow: 8px 8px 0 var(--color-ink);
}

.privacy-callout svg { width: 56px; height: 56px; flex-shrink: 0; }
.privacy-callout h2 { margin: 0 0 12px; font-size: 28px; }
.privacy-callout p {
  margin: 0 0 12px;
  color: var(--color-ink-soft);
}
.privacy-callout ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 560px) {
  .privacy-callout ul { grid-template-columns: 1fr 1fr; }
}
.privacy-callout li {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink);
  padding-left: 18px;
  position: relative;
}
.privacy-callout li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-cheapest);
  font-weight: 700;
}

/* =========================================================
   Privacy pills — tight 4-up guarantee strip (trimmed from the
   earlier full privacy-callout; the trust block above does the
   bigger version of the same message in founder's voice).
   ========================================================= */

.privacy-pills {
  margin: 64px auto;
  max-width: 720px;
  padding: 0 16px;
}

.privacy-pills ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .privacy-pills ul { grid-template-columns: repeat(4, 1fr); }
}

.privacy-pills li {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-ink);
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-ink);
  border-radius: 4px;
  text-align: center;
  position: relative;
}

.privacy-pills li::before {
  content: '✓ ';
  color: var(--color-cheapest);
  font-weight: 700;
}

/* =========================================================
   FAQ — native <details> accordion
   ========================================================= */

.faq { margin: 64px 0; }
.faq h2 { margin-bottom: 24px; }
.faq details {
  border-bottom: 1.5px solid var(--color-rule);
  padding: 20px 0;
}
.faq details:first-of-type { border-top: 1.5px solid var(--color-rule); }
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--color-brand);
  line-height: 1;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin: 12px 0 0;
  color: var(--color-ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* =========================================================
   Final CTA — repeats the App Store button at page bottom
   ========================================================= */

.final-cta {
  text-align: center;
  margin: 96px 0 32px;
  padding: 48px 24px;
  background: var(--color-icon-yellow);
  border: 2px solid var(--color-ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--color-ink);
}
.final-cta h2 {
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.final-cta p {
  font-size: 18px;
  color: var(--color-ink);
  margin: 0 0 24px;
}
.final-cta .cta { margin: 0; }

/* Section heading for plain sections — slightly bigger than default h2 */
section > h2.section-title {
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
section > p.section-lede {
  font-size: 18px;
  color: var(--color-ink-soft);
  margin: 0 0 24px;
  max-width: 560px;
}

/* Footer — fine rule + monospace uppercase nav */
footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1.5px solid var(--color-rule);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink-mute);
}

footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

footer a {
  color: var(--color-ink-mute);
  text-decoration: none;
}

footer a:hover { color: var(--color-ink); }

/* "Back to home" link used on /privacy /terms /support */
.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink-mute);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}

.back-link::before { content: '← '; }
.back-link:hover { color: var(--color-ink); }

.disclaimer {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-ink-mute);
  margin: 16px 0 0;
  max-width: 560px;
}

.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-mute);
  margin: 0 0 32px;
}

/* Selection in Trolley brand red */
::selection {
  background: var(--color-brand);
  color: var(--color-surface);
}
