/* Grassly — site styles. Tokens first; components only read tokens. */
:root {
  --turf: #1d7a51;
  --turf-strong: #145e40;
  --turf-deep: #0e3a28;
  --dew: #e7f3ec;
  --dew-strong: #d3eadc;
  --paper: #fafbf8;
  --surface: #ffffff;
  --ink: #15201a;
  --stone: #56625b;
  --line: rgba(21, 32, 26, 0.11);
  --sun: #e0922a;
  --sky: #2a7fc1;
  --stripe-a: #2a8a5c;
  --stripe-b: #237a51;
  --on-turf: #ffffff;
  --shadow: 0 24px 60px -24px rgba(14, 58, 40, 0.35);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --turf: #4cc28a;
    --turf-strong: #6fd6a3;
    --turf-deep: #081f16;
    --dew: #13291f;
    --dew-strong: #1a3629;
    --paper: #0c1510;
    --surface: #121d17;
    --ink: #e9f1ec;
    --stone: #a3b3aa;
    --line: rgba(233, 241, 236, 0.12);
    --stripe-a: #16553a;
    --stripe-b: #124a32;
    --on-turf: #06140d;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --turf: #4cc28a;
  --turf-strong: #6fd6a3;
  --turf-deep: #081f16;
  --dew: #13291f;
  --dew-strong: #1a3629;
  --paper: #0c1510;
  --surface: #121d17;
  --ink: #e9f1ec;
  --stone: #a3b3aa;
  --line: rgba(233, 241, 236, 0.12);
  --stripe-a: #16553a;
  --stripe-b: #124a32;
  --on-turf: #06140d;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--turf); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font: 500 13px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turf);
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--stone); max-width: 36rem; }

/* Icons: the app's own pictograms, tinted by CSS. */
.icon { display: inline-block; width: 24px; height: 24px; background: currentColor; flex: none;
  -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  mask-position: center; mask-size: contain; mask-repeat: no-repeat; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { 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: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #30a36b, #1e7a52 55%, #145e40); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.brand-mark .icon { width: 22px; height: 22px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--stone); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--ink); }

.store-button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 12px 20px;
  font: 600 16px/1.1 var(--body); white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease;
}
.store-button small { display: block; font: 500 11px/1.1 var(--body); opacity: .75; letter-spacing: .02em; }
.store-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.store-button .icon { width: 22px; height: 22px; }
.site-header .store-button { padding: 10px 16px; font-size: 15px; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--turf); }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.hero-note { font-size: 15px; color: var(--stone); }
.grass-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding: 0; list-style: none; }
.grass-list li { font: 500 13px/1 var(--mono); letter-spacing: .02em; padding: 8px 11px; border-radius: 999px; background: var(--dew); color: var(--turf-strong); }

/* The specimen: phone over a mown-stripe lawn. */
.specimen { position: relative; display: grid; place-items: center; padding: clamp(28px, 4vw, 52px) 0; }
.lawn {
  position: absolute; inset: 0 4% 0 4%; border-radius: 36px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 56px, var(--stripe-b) 56px 112px);
}
.lawn::after { /* one mower pass of light across the stripes on load */
  content: ""; position: absolute; inset: -20% -60%; transform: translateX(-70%);
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  animation: mow 2.4s cubic-bezier(.45,.05,.2,1) .4s 1 both;
}
@keyframes mow { to { transform: translateX(70%); } }

.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 507 / 1100; max-width: 100%;
  border-radius: 46px; padding: 11px; background: #0f1512;
  box-shadow: var(--shadow), inset 0 0 0 2px #2b332e;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .island { position: absolute; top: 20px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%); background: #0f1512; border-radius: 999px; z-index: 2; }
.status { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 26px; z-index: 1;
  font: 600 13px/28px -apple-system, "SF Pro Text", var(--body); color: #111; }
.status.solid { top: 0; padding-top: 18px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.status i { display: inline-block; width: 16px; height: 9px; border: 1.5px solid #111; border-radius: 3px; margin-left: 5px; vertical-align: -1px; position: relative; }
.status i::after { content: ""; position: absolute; inset: 1px; right: 4px; background: #111; border-radius: 1px; }

.tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 12px; font: 500 13px/1.25 var(--mono); box-shadow: 0 12px 30px -16px rgba(14,58,40,.45);
}
.tag b { font-weight: 600; color: var(--turf); }
.tag .icon { width: 20px; height: 20px; color: var(--turf); }
.tag.water .icon { color: var(--sky); }
.tag.sun .icon { color: var(--sun); }
.tag.t1 { top: 16%; left: -2%; }
.tag.t2 { top: 47%; right: -3%; }
.tag.t3 { bottom: 13%; left: 2%; }

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 44rem; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; font-weight: 800; margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding: 0; list-style: none; }
.steps li { position: relative; padding: 26px 24px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); font: 500 13px/1 var(--mono); color: var(--stone); letter-spacing: .08em; }
.steps .icon { width: 36px; height: 36px; color: var(--turf); margin-top: 18px; }
.steps h3 { font-size: 24px; line-height: 1.15; margin-top: 16px; font-weight: 700; }
.steps p { color: var(--stone); margin-top: 8px; font-size: 17px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; font-weight: 800; margin-top: 12px; }
.feature-copy p { margin-top: 16px; color: var(--stone); max-width: 32rem; }
.facts { display: grid; gap: 12px; margin-top: 26px; padding: 0; list-style: none; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .icon { width: 26px; height: 26px; color: var(--turf); margin-top: 1px; }
.facts li span { color: var(--ink); }
.feature-media { position: relative; display: grid; place-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.feature-media .pad { position: absolute; inset: 0 8%; border-radius: 32px; background: var(--dew); }
.feature-media .phone { width: min(280px, 70vw); }

.readout { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.readout span { font: 500 13px/1 var(--mono); padding: 9px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.readout span b { color: var(--turf); font-weight: 600; }

/* Region band */
.region { background: var(--turf-deep); color: #eaf5ee; }
.region .eyebrow { color: #9fd9b8; }
.region h2 { color: #fff; }
.region .lede { color: #c2dccd; }
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 48px; background: rgba(255,255,255,.12); border-radius: 24px; overflow: hidden; }
.region-grid div { background: var(--turf-deep); padding: 24px 22px 26px; }
.region-grid dt { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #9fd9b8; }
.region-grid dd { margin: 10px 0 0; font-size: 17px; color: #eaf5ee; }
.region-grid dd strong { display: block; font: 700 22px/1.2 var(--display); color: #fff; letter-spacing: -0.02em; margin-bottom: 4px; }

/* Privacy */
.privacy-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; padding: 0; list-style: none; }
.privacy-points .icon { width: 32px; height: 32px; color: var(--turf); }
.privacy-points h3 { font-size: 22px; font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; }
.privacy-points p { color: var(--stone); margin-top: 8px; font-size: 17px; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 700 21px/1.3 var(--display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--turf); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--stone); max-width: 44rem; }

/* Closing call */
.closing { text-align: left; }
.closing .card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 32px;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 56px, var(--stripe-b) 56px 112px); color: #fff; }
.closing h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; font-weight: 800; color: #fff; }
.closing p { color: rgba(255,255,255,.86); margin-top: 12px; max-width: 32rem; }
.closing .store-button { background: #fff; color: #0e3a28; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--stone); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--stone); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Legal and support pages */
.doc { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 800; }
.doc .updated { font: 500 13px/1.4 var(--mono); color: var(--stone); margin-top: 16px; letter-spacing: .02em; }
.doc .summary { margin-top: 26px; padding: 22px 24px; border-radius: 20px; background: var(--dew); color: var(--ink); }
.doc .summary ul { margin: 10px 0 0; padding-left: 20px; }
.doc article { max-width: 44rem; }
.doc article h2 { font-size: 28px; line-height: 1.15; font-weight: 700; margin-top: 52px; scroll-margin-top: 90px; }
.doc article h3 { font-size: 20px; font-weight: 700; margin-top: 28px; letter-spacing: -0.015em; }
.doc article p, .doc article li { color: var(--ink); }
.doc article p { margin-top: 14px; }
.doc article ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc article table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.doc article th, .doc article td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
.doc article th { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.table-scroll { overflow-x: auto; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); font-size: 15px; }
.toc p { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--stone); }
.toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.toc a { color: var(--stone); text-decoration: none; }
.toc a:hover { color: var(--turf); }
.todo { background: rgba(224, 146, 42, .18); border-radius: 4px; padding: 0 4px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .store-button { margin-left: auto; }
  .steps, .privacy-points { grid-template-columns: minmax(0, 1fr); }
  .region-grid { grid-template-columns: minmax(0, 1fr); }
  .closing .card { grid-template-columns: minmax(0, 1fr); }
  .tag { position: static; margin-top: 10px; }
  .specimen { display: flex; flex-direction: column; align-items: center; }
  .specimen .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; position: relative; z-index: 3; }
  .lawn { bottom: 128px; }
}
@media (min-width: 721px) { .specimen .tags { display: contents; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lawn::after { animation: none; display: none; }
  .store-button { transition: none; }
}
