/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt), latin subset. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/nunito.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/fredoka.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-mono-400.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-500.woff2) format("woff2"); }

/* Layout: a bamboo grove read top to bottom; light canvas bands alternate with leaf-soft and one forest band at the end. */
:root {
  --canvas: #f6f7f0;
  --surface: #ffffff;
  --surface-sunken: #eceee3;
  --ink: #1c1f1b;
  --ink-muted: #565e53;
  --line: #d6dccb;
  --bamboo: #2e7d32;
  --on-bamboo: #ffffff;
  --leaf: #9bd06a;
  --leaf-soft: #e4f2d3;
  --forest: #1f4a2e;
  --on-forest: #f6f7f0;
  --sun: #f6c54e;
  --danger: #c2363b;
  --focus: #2e7d32;
  --shadow-soft: 0 2px 0 #d6dccb, 0 8px 24px rgba(28, 31, 27, 0.08);
  --shadow-press: 0 3px 0 #1f4a2e;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #121612; --surface: #1a201a; --surface-sunken: #0e120e; --ink: #eef1e8; --ink-muted: #a6b0a2;
    --line: #2f382e; --bamboo: #6cc15a; --on-bamboo: #0e1a0d; --leaf: #3e7a35; --leaf-soft: #1f3320;
    --forest: #2b5a3a; --on-forest: #f6f7f0; --sun: #e8b43a; --danger: #ff7a7a; --focus: #9be07f;
    --shadow-soft: 0 2px 0 #0b0e0b, 0 8px 24px rgba(0, 0, 0, 0.4); --shadow-press: 0 3px 0 #2b5a3a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #121612; --surface: #1a201a; --surface-sunken: #0e120e; --ink: #eef1e8; --ink-muted: #a6b0a2;
  --line: #2f382e; --bamboo: #6cc15a; --on-bamboo: #0e1a0d; --leaf: #3e7a35; --leaf-soft: #1f3320;
  --forest: #2b5a3a; --on-forest: #f6f7f0; --sun: #e8b43a; --danger: #ff7a7a; --focus: #9be07f;
  --shadow-soft: 0 2px 0 #0b0e0b, 0 8px 24px rgba(0, 0, 0, 0.4); --shadow-press: 0 3px 0 #2b5a3a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--canvas); }
a { color: var(--bamboo); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; }
.section { padding-block: 88px; }
.section-flush { padding-top: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 30; padding: 10px 16px; border-radius: var(--radius-md); background: var(--bamboo); color: var(--on-bamboo); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bamboo); }
.lead { font-size: 18px; color: var(--ink-muted); max-width: 60ch; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 680px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: var(--radius-md); border: 2px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.button-primary { background: var(--bamboo); color: var(--on-bamboo); box-shadow: var(--shadow-press); }
.button-primary:active { transform: translateY(2px); box-shadow: none; }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink-muted); }
.button-secondary:hover { border-color: var(--bamboo); color: var(--bamboo); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.brand svg { width: 40px; height: 40px; }
.brand b { color: var(--bamboo); font-weight: 600; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-links a:hover { color: var(--bamboo); }
.nav-end { margin-left: auto; }
.nav .button { min-height: 42px; padding: 8px 18px; font-size: 15px; }
@media (max-width: 820px) { .nav-links { display: none; } .nav .button { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding-block: 72px 120px; overflow: hidden; background: radial-gradient(ellipse 60% 75% at 66% 12%, #cdeb8f 0%, #6aa94c 30%, #2c6431 60%, #10301a 100%); }
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-scene canvas { position: absolute; left: -48px; top: -48px; width: calc(100% + 96px); height: calc(100% + 96px); }
.hero-scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 22, 11, 0.66) 0%, rgba(6, 22, 11, 0.3) 42%, rgba(6, 22, 11, 0) 68%),
    linear-gradient(to bottom, rgba(6, 22, 11, 0) 58%, rgba(4, 14, 7, 0.88) 100%);
}
.hero .eyebrow { color: #cdeea0; }
.hero h1 { color: #fbfaf5; text-shadow: 0 2px 24px rgba(4, 14, 7, 0.35); }
.hero h1 span { color: #b8e986; }
.hero .lead { color: rgba(251, 250, 245, 0.88); }
.hero .hero-note { color: rgba(251, 250, 245, 0.74); }
.hero-actions .button-primary { background: #f6c54e; color: #1c1f1b; box-shadow: 0 3px 0 #9a7a1f; }
.hero-actions .button-secondary { background: rgba(251, 250, 245, 0.08); color: #fbfaf5; border-color: rgba(251, 250, 245, 0.72); }
.hero-actions .button-secondary:hover { border-color: #fbfaf5; color: #fbfaf5; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-scene [data-depth] { transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero-scene [data-depth] { transition: none; } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 6.6vw, 72px); line-height: 1.02; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--ink-muted); }
.hero-art { position: relative; min-width: 0; min-height: 440px; }
.grove { position: absolute; inset: -10% -10% -10% 0; background: radial-gradient(closest-side, rgba(255, 248, 210, 0.28), transparent); }
.hero-pandi { position: absolute; left: 0; bottom: 0; width: 46%; max-width: 230px; height: auto; }
.till {
  position: absolute; right: 0; top: 24px; width: min(320px, 70%); background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: 18px; display: grid; gap: 12px;
}
.till-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.till-head small { font-size: 13px; color: var(--ink-muted); font-weight: 700; }
.till-lines { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.till-lines div { display: flex; justify-content: space-between; gap: 12px; }
.till-lines span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.till-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: 10px; }
.till-total strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; background: var(--surface); }
.chip-on { background: var(--bamboo); border-color: var(--bamboo); color: var(--on-bamboo); }
.till .button { width: 100%; min-height: 44px; }
.hero-bubble { position: absolute; left: 0; top: 96px; max-width: 200px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; }
}
@media (max-width: 560px) {
  .hero-art { min-height: 540px; }
  .till { top: 0; width: 82%; }
  .hero-pandi { width: 44%; }
  .hero-bubble { left: 44%; top: auto; bottom: 110px; max-width: 54%; }
}

.bubble { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-sm); padding: 12px 16px; font-size: 16px; line-height: 1.45; box-shadow: var(--shadow-soft); }
.bubble strong { font-weight: 800; }

/* Wave */
.wave { transform-box: view-box; transform-origin: 70px 205px; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(12deg); } 80% { transform: rotate(-6deg); } 90% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }

/* Facts strip */
.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.fact { display: grid; gap: 2px; min-width: 0; }
.fact strong { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.fact span { font-size: 14px; color: var(--ink-muted); }
@media (max-width: 820px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; border: 1px solid var(--line); }
.feature h3 { font-size: 21px; }
.feature p { color: var(--ink-muted); font-size: 15px; }
.icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--leaf-soft); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--bamboo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Modes */
.modes-band { background: var(--leaf-soft); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow-soft); min-width: 0; }
.mode h3 { font-size: 30px; }
.mode ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mode li { display: flex; gap: 10px; align-items: flex-start; }
.mode li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--bamboo); }
.mode-tag { justify-self: start; padding: 2px 12px; border-radius: var(--radius-pill); background: var(--sun); color: #1c1f1b; font-size: 13px; font-weight: 800; }
@media (max-width: 820px) { .modes { grid-template-columns: 1fr; } }

/* Buddy */
.buddy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.moment { display: grid; gap: 14px; align-content: start; min-width: 0; }
.moment-time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.moment-row { display: flex; align-items: flex-end; gap: 10px; }
.moment-row svg { flex: none; width: 56px; height: 56px; }
.moment .bubble { background: var(--leaf-soft); box-shadow: none; min-width: 0; }
@media (max-width: 820px) { .buddy { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius-lg); border: 2px dashed var(--line); min-width: 0; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bamboo); color: var(--on-bamboo); font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.step h3 { font-size: 21px; }
.step p { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 800px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--bamboo); }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding-bottom: 16px; color: var(--ink-muted); }

/* CTA */
.cta { background: var(--forest); color: var(--on-forest); }
.cta-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.cta-grid svg { width: 180px; height: 180px; }
.cta h2 { font-size: clamp(32px, 4.6vw, 48px); }
.cta p { color: var(--on-forest); opacity: 0.85; margin-top: 12px; max-width: 52ch; }
.cta .hero-actions { margin-top: 24px; }
.cta .button-primary { background: var(--sun); color: #1c1f1b; box-shadow: 0 3px 0 #9a7a1f; }
.cta .button-secondary { background: transparent; color: var(--on-forest); border-color: var(--on-forest); }
@media (max-width: 680px) { .cta-grid { grid-template-columns: 1fr; } .cta-grid svg { width: 120px; height: 120px; } }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.platform { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius-lg); background: rgba(251, 250, 245, 0.06); border: 1px solid rgba(251, 250, 245, 0.16); min-width: 0; }
.platform svg.platform-icon { width: 32px; height: 32px; fill: none; stroke: #f6c54e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform h3 { font-size: 22px; color: var(--on-forest); }
.platform p { margin: 0; font-size: 14px; color: var(--on-forest); opacity: 0.8; }
.platform .button { margin-top: 6px; min-height: 44px; font-size: 15px; }
.cta .platform .button-primary { background: #f6c54e; color: #1c1f1b; box-shadow: 0 3px 0 #9a7a1f; }
.cta .platform .button-secondary { background: transparent; color: var(--on-forest); border-color: rgba(251, 250, 245, 0.6); box-shadow: none; }
.cta .platform .button-secondary:hover { border-color: var(--on-forest); color: var(--on-forest); }
.platform-current { border-color: rgba(246, 197, 78, 0.7); background: rgba(251, 250, 245, 0.1); }
.platform-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-tag { padding: 2px 10px; border-radius: var(--radius-pill); background: #f6c54e; color: #1c1f1b; font-size: 12px; font-weight: 800; }
.platform-note { margin-top: 20px; font-size: 14px; color: var(--on-forest); opacity: 0.8; }
.platform-note a { color: inherit; }
.cloud-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 22px; border-radius: var(--radius-lg); border: 1px dashed rgba(251, 250, 245, 0.35); }
.cloud-card svg.platform-icon { flex: none; width: 32px; height: 32px; fill: none; stroke: #9bd06a; stroke-width: 1.8; stroke-linejoin: round; }
.cloud-card h3 { font-size: 22px; color: var(--on-forest); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cloud-card p { margin: 6px 0 0; font-size: 14px; color: var(--on-forest); opacity: 0.8; max-width: 60ch; }
.cloud-tag { padding: 2px 10px; border-radius: var(--radius-pill); background: #9bd06a; color: #1c1f1b; font-family: Nunito, sans-serif; font-size: 12px; font-weight: 800; }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding-block: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--bamboo); }
.footer small { color: var(--ink-muted); font-size: 14px; }
.footer small a { color: inherit; }
.footer small a:hover { color: var(--bamboo); }

/* Plain pages: privacy, 404 */
.page { padding-block: 64px 88px; }
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose .updated { font-size: 14px; color: var(--ink-muted); }
.not-found { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: 96px; }
.not-found svg { width: 160px; height: 160px; }
.not-found h1 { font-size: clamp(34px, 5vw, 48px); }
