/* Growing Sprouts website: dark and calm, in the app's Forest palette.
   Everything comes from this site: no fonts, scripts or images from anywhere else. */

/* ---------- Fonts: the same files the app ships (fonts/, SIL Open Font License, see fonts/OFL-*.txt) ---------- */
/* Atkinson Hyperlegible: body text, 400 and 700 */
@font-face {
  font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque: headings. One variable file per subset, weight 600 to 800. */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-stretch: 100%; font-display: swap;
  src: url(fonts/bricolage-grotesque-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-stretch: 100%; font-display: swap;
  src: url(fonts/bricolage-grotesque-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Mono: tags and numbers, 400 and 500 */
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/dm-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/dm-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/dm-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/dm-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (Forest palette, as the app builds them) ---------- */
:root {
  --bg: #0F2119; --surface: #172A21; --surface-2: #1F342A; --line: #2B4237; --line-strong: #3C5649;
  --ink: #EEF1EF; --ink-2: #B7C4BC; --ink-3: #94A69B;
  --leaf: #5BD08E; --leaf-strong: #80DBA7; --leaf-tint: #1F4632; --on-leaf: #08120E;
  --star: #F2BE4A; --danger: #F08A7E; --stage-glow: #1D3A2B;
  --font-body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-tag: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font-body);
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
a { color: var(--leaf-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--leaf-strong); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0 0 .45em; }
h1 { font-size: clamp(30px, 7vw, 50px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 4.5vw, 28px); font-weight: 700; margin-top: 1.9em; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: .2em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
b, strong { color: var(--ink); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.tag { font-family: var(--font-tag); font-size: 13px; letter-spacing: .02em; color: var(--ink-3); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--leaf); color: var(--on-leaf); padding: 10px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Header and footer ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
@media (max-width: 440px) {
  .brand { font-size: 18px; } .brand svg { width: 28px; height: 28px; }
  .nav { gap: 2px; } .nav a { padding: 6px 10px; font-size: 15px; }
}
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 16px 44px; color: var(--ink-3); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot nav a { color: var(--ink-2); }
.foot p { margin: 0 0 6px; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; padding: 32px 0 16px; }
.hero-art { display: grid; place-items: center; border-radius: 32px; background: radial-gradient(closest-side, var(--stage-glow), transparent); padding: 12px; }
.hero-art svg { width: min(280px, 70vw); height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .hero-art { order: -1; } .hero-art svg { width: min(190px, 52vw); }
}
.feature { display: flex; gap: 14px; align-items: flex-start; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; background: var(--leaf); }
.dot.water { background: #62A8EE; } .dot.move { background: #EDB35B; } .dot.breathe { background: #A991EE; } .dot.sleep { background: #8EA3EC; }

/* ---------- Cards, prices, buttons ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card p { margin: 0; }
.card.is-best { border-color: var(--leaf); }
.price { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.2; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--leaf-tint); color: var(--leaf-strong); font-family: var(--font-tag); font-size: 13px; font-weight: 500; justify-self: start; }
.badge.soon { background: var(--surface-2); color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--leaf); color: var(--on-leaf); }
.btn-primary:hover { background: var(--leaf-strong); color: var(--on-leaf); }
.btn-quiet { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.list { padding-left: 22px; }
.list li { margin: 6px 0; color: var(--ink-2); }
.note { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; color: var(--ink-2); }
.note p:last-child { margin: 0; }
.err { background: var(--surface-2); border-left: 3px solid var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.ok { border-left: 3px solid var(--leaf); }
.draft { display: block; border-left: 3px solid var(--star); background: var(--surface); color: var(--ink-2); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin: 8px 0 24px; }

/* ---------- Forms (sign-in, once it opens) ---------- */
.field { display: grid; gap: 6px; }
.field span { font-weight: 700; font-size: 15px; }
input[type="email"], input[type="text"], select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: inherit;
}
.code-input { font-family: var(--font-tag); font-size: 26px; letter-spacing: .35em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--leaf); }
.stack { display: grid; gap: 12px; }
.panel { max-width: 460px; }
.rows { display: grid; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows > div span:first-child { color: var(--ink-2); }
.spaced { margin-top: 24px; }

/* ---------- Policy pages ---------- */
.doc h2 { font-size: 22px; }
.doc h3 { margin-top: 1.2em; }
.doc li, .doc p { color: var(--ink-2); }
.doc li { margin: 6px 0; }
.doc .meta { margin-top: -4px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; list-style: none; font-size: 15px; }

/* The pot's leaves sway a little, only when the person allows motion. */
@media (prefers-reduced-motion: no-preference) {
  .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
  @keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
}
