/* "Village Green", the app's design tokens (apps/mobile/lib/theme.ts) */
:root {
  --bg: #F5F2EA;
  --surface: #FFFFFF;
  --surface-soft: #EDE8DC;
  --border: #E3DDCF;
  --text: #1D2620;
  --text-2: #59625B;
  --primary: #1E6A48;
  --primary-deep: #154D34;
  --primary-soft: #DDEEE3;
  --accent: #F4A261;
  --accent-soft: #FDE6CF;
  --accent-ink: #8A4513;
  --on-primary-muted: #CFE6D8;
  --accent-on-primary: #FBC896;
  --display: "Sansita", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.06; color: var(--primary-deep); }
h3 { line-height: 1.1; }
/* The decorative circles hang off the edges; keep them from making the page scroll sideways */
main { overflow-x: clip; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.stack-md { display: flex; flex-direction: column; gap: 40px; }
.stack-lg { display: flex; flex-direction: column; gap: 56px; }
.stack-xl { display: flex; flex-direction: column; gap: 120px; }
.muted { color: var(--text-2); }
.muted-label { font-size: 0.9rem; font-weight: 600; color: var(--text-2); }

/* Header: just the wordmark and a way back in */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { display: inline-flex; line-height: 0; }
/* The logo is 1em tall at the size its letters would be set, so these heights match the old text wordmark. */
.wordmark img, img.wordmark { display: block; height: 2rem; width: auto; }
img.wordmark-small { height: 1.5rem; }
.top-signin { font-weight: 700; color: var(--primary-deep); text-decoration: none; }
.top-signin:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--accent); color: var(--text);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 4px 0 #D9844A;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #D9844A; }
.text-link { font-weight: 600; color: var(--primary-deep); text-underline-offset: 4px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.section { padding: 112px 0; }
.section-soft { background: var(--surface-soft); }
.section-tight-top { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.section-head p { font-size: 1.2rem; color: var(--text-2); }

/* How it works: the video, square, with what it shows written out underneath */
.demo-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.demo-inner .section-head { align-items: center; }
.demo-video { width: 100%; max-width: 640px; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 28px; background: var(--bg); box-shadow: 0 20px 50px rgba(21, 77, 52, 0.12); }
.demo-steps { max-width: 640px; width: 100%; text-align: left; color: var(--text-2); }
.demo-steps summary { cursor: pointer; font-weight: 600; color: var(--primary); text-align: center; }
.demo-steps ol { margin: 16px 0 8px; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }

/* Two cards side by side, stacking on a phone */
.pair { display: flex; flex-wrap: wrap; gap: 28px; }
.pair > * { flex: 1 1 420px; min-width: 0; }
.kicker { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--accent-ink); }

/* Shared rows: a line of hours, and a total with a big £0 */
.line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; }
.line b:last-child { white-space: nowrap; }
.line-plus { background: var(--primary-soft); color: var(--primary-deep); }
.line-minus { background: var(--accent-soft); color: var(--accent-ink); }
.line-cream { background: var(--bg); }
.line .plus { color: var(--primary); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px dashed var(--border); padding-top: 16px; }
.big-zero { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--primary); }

/* Hero: the outcome, beside a Friday request that's already answered */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 0.95rem; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); line-height: 0.98; color: var(--primary-deep); }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--text-2); max-width: 34ch; }
.hero .cta-row { margin-top: 4px; }

.hero-art { flex: 1 1 400px; min-width: 0; position: relative; padding: 24px 0 40px; }
.hero-ring { position: absolute; right: -40px; top: -20px; width: 260px; height: 260px; border-radius: 50%; border: 34px solid var(--primary-soft); }
.request-card {
  position: relative; max-width: 420px; margin: 0 auto; padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border-radius: 28px;
  box-shadow: 0 30px 60px rgba(21, 77, 52, 0.16);
  transform: rotate(-1.5deg);
}
.request-head { display: flex; flex-direction: column; gap: 4px; }
.request-when { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--primary-deep); }
.offers { display: flex; flex-direction: column; gap: 10px; }
.offer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.offer > span:last-child { flex: 1; min-width: 0; }
.offer-picked { background: var(--primary-soft); color: var(--primary-deep); }
.offer-note { font-size: 0.9rem; color: var(--text-2); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; }
.avatar-apricot { background: var(--accent); color: var(--text); }
.paid-pill {
  position: absolute; left: 0; bottom: 0; padding: 12px 18px; border-radius: 999px;
  background: var(--primary-deep); color: #fff; font-weight: 600;
  box-shadow: 0 12px 24px rgba(21, 77, 52, 0.25); transform: rotate(2deg);
}

/* The problem: a bill and a chat */
.problem { background: var(--surface); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.problem h3 { font-size: 2rem; color: var(--text); }
.problem > p { font-size: 1.1rem; color: var(--text-2); }
.bill { background: var(--bg); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; font-variant-numeric: tabular-nums; }
.bill-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.bill-row { display: flex; justify-content: space-between; gap: 16px; }
.bill-sitter { padding: 8px 12px; margin: 0 -12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.bill-total { border-top: 2px solid var(--border); padding-top: 12px; font-weight: 700; }
.chat { background: var(--bg); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 12px 16px; line-height: 1.4; }
.bubble-me { align-self: flex-end; background: var(--primary-soft); color: var(--primary-deep); border-radius: 18px 18px 4px 18px; }
.bubble-them { align-self: flex-start; background: var(--surface); border-radius: 18px 18px 18px 4px; }
.bubble-draft { align-self: flex-end; border: 2px dashed var(--border); color: var(--text-2); font-style: italic; border-radius: 18px 18px 4px 18px; }
.chat-meta { align-self: flex-end; font-size: 0.8rem; color: var(--text-2); }
.chat-unsent { color: var(--accent-ink); font-weight: 600; }

/* The turn: the idea in one sentence, on green */
.turn { position: relative; overflow: hidden; padding: 104px 0; background: var(--primary-deep); color: #fff; }
.turn-ring { position: absolute; left: -90px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid var(--primary); }
.turn-dot { position: absolute; right: 8%; top: -60px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); opacity: 0.9; }
.turn-inner { position: relative; max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.turn-kicker { font-weight: 600; font-size: 1.1rem; color: var(--on-primary-muted); }
.turn h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.04; color: #fff; }
.turn p { font-size: 1.25rem; color: var(--on-primary-muted); max-width: 40ch; }

/* The fixes: copy beside a picture, alternating sides */
.fixes { padding-top: 120px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-flip { flex-direction: row-reverse; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.split-copy p { font-size: 1.15rem; line-height: 1.6; color: var(--text-2); max-width: 44ch; }
.split-copy strong { color: var(--text); }
.split-art { display: flex; justify-content: center; padding: 20px 0; }
.tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem; }
.card { background: var(--surface); border-radius: 28px; padding: 28px; box-shadow: 0 20px 50px rgba(21, 77, 52, 0.10); }
.hours { display: flex; flex-direction: column; gap: 14px; }
.hours .total-row { padding-left: 4px; padding-right: 4px; }
.hours .big-zero { font-size: 2rem; }
.dark-card {
  width: 100%; max-width: 380px; padding: 22px 24px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--primary-deep); color: #fff; box-shadow: 0 24px 48px rgba(21, 77, 52, 0.25);
}
.dark-label { font-size: 0.9rem; font-weight: 600; color: var(--on-primary-muted); }
.dark-when { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.dark-offers { font-weight: 600; color: var(--accent-on-primary); }
.wallet {
  position: relative; overflow: hidden; width: 100%; max-width: 380px; padding: 28px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--primary-deep); color: #fff; border-radius: 28px;
  box-shadow: 0 30px 60px rgba(21, 77, 52, 0.28); transform: rotate(2deg);
}
.wallet-label { font-weight: 600; color: var(--on-primary-muted); }
.wallet-num { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 1.05; letter-spacing: -0.04em; }
.wallet-ring {
  position: absolute; right: -50px; top: -60px; width: 150px; height: 150px; border-radius: 50%;
  border: 22px solid var(--accent-on-primary); opacity: 0.35;
}

/* Covered too: school runs and new arrivals */
.covered { border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.covered h3 { font-size: 1.9rem; }
.covered > p { font-size: 1.1rem; }
.covered-mint { background: var(--primary-soft); color: var(--primary-deep); }
.covered-mint .kicker { color: var(--primary); }
.covered-dark { background: var(--primary-deep); color: #fff; }
.covered-dark .kicker { color: var(--accent-on-primary); }
.covered-dark > p { color: var(--on-primary-muted); }
.covered-card { margin-top: auto; background: var(--surface); color: var(--text); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.plan-card { gap: 4px; padding: 20px 22px; }
.plan-from { font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }
.plan-title { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--primary-deep); }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.plan-going { font-weight: 600; color: var(--primary); }
.plan-btn { padding: 8px 16px; border-radius: 999px; background: var(--accent); font-weight: 700; }

/* Trust */
.trust-title { max-width: 18ch; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.trust-item { background: var(--surface); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.trust-item svg { color: var(--primary); }
.trust-item h3 { font-family: var(--body); font-weight: 700; letter-spacing: 0; font-size: 1.15rem; }
.trust-item p { color: var(--text-2); }

/* Pricing */
.price { background: var(--surface); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.price-who { font-weight: 600; color: var(--text-2); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.price-num { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 1; letter-spacing: -0.04em; }
.price-free { color: var(--primary); }
.price-per { font-size: 1.1rem; color: var(--text-2); }
.price p { font-size: 1.1rem; color: var(--text-2); }
.price-dark { background: var(--primary-deep); color: #fff; }
.price-dark .price-who, .price-dark .price-per, .price-dark p { color: var(--on-primary-muted); }

/* FAQ: cards that open */
.faq-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 36px 20px 0;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; color: var(--accent-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--text-2); line-height: 1.6; }

/* Closer */
.closer { position: relative; overflow: hidden; padding: 120px 0; text-align: center; }
.closer-dot { position: absolute; left: 6%; top: 40px; width: 90px; height: 90px; border-radius: 50%; background: var(--primary-soft); }
.closer-ring { position: absolute; right: 8%; bottom: 50px; width: 120px; height: 120px; border-radius: 50%; border: 24px solid var(--accent-soft); }
.closer-inner { position: relative; max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closer h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; }
/* Keep each sentence whole, so the line only breaks between them */
.closer h2 .phrase { display: inline-block; }
.closer p { font-size: 1.2rem; color: var(--text-2); }
.closer .cta-row { justify-content: center; }

.footer { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 56px; border-top: 1px solid var(--border); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.footer a:hover { color: var(--primary); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { height: 64px; }
  .hero { padding-top: 24px; padding-bottom: 72px; gap: 40px; }
  .hero-ring { width: 180px; height: 180px; border-width: 26px; right: -30px; }
  .btn { width: 100%; }
  /* Buttons go full width, so the link under them sits in the middle rather than off to one side */
  .cta-row { justify-content: center; }
  .section { padding: 80px 0; }
  .section-tight-top { padding-top: 0; }
  .fixes { padding-top: 80px; }
  .stack-xl { gap: 80px; }
  .problem, .covered, .price { padding: 26px 22px; }
  .problem h3, .covered h3 { font-size: 1.6rem; }
  .split, .split-flip { flex-direction: column; align-items: stretch; gap: 32px; }
  .split > * { flex-basis: auto; }
  .split-flip .split-copy { order: -1; }
  .wallet-num, .price-num { font-size: 3.2rem; }
  .turn { padding: 80px 0; }
  .closer { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Schools page: a mock poster in the hero, and plain cards that stay open */
.poster {
  position: relative; max-width: 380px; margin: 0 auto; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border-radius: 28px;
  box-shadow: 0 30px 60px rgba(21, 77, 52, 0.16);
  transform: rotate(1.5deg);
}
.poster-offer { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--primary-deep); }
.poster-foot { display: flex; align-items: center; gap: 18px; margin-top: 10px; padding: 16px; border-radius: 18px; background: var(--bg); }
.poster-qr { flex: none; width: 96px; height: 96px; border-radius: 8px; }
.poster-code { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.poster-code b { font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.04em; color: var(--accent-ink); }
.poster-link { font-size: 0.85rem; color: var(--text-2); overflow-wrap: anywhere; }
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }
.point { background: var(--surface); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.point h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.point p { color: var(--text-2); line-height: 1.6; }
@media (max-width: 420px) { .poster-offer { font-size: 2.2rem; } }
