/*
  irriflow.app — straight out of packages/design, nothing invented.

  Soil #0B0F0D · turf #2FA84F · turf-bright #57D97B · turf-deep #197437 · mist #E8F0EA ·
  ground #F4F7F4 · line #D3DCD5 · dim #5A6B5E · brass #C9A227 / #7A5F12. Geist for everything,
  Geist Mono for meta and prices. Two greens and soil; no third hue, no gradient, no glow — the
  mark's own rule ("a mark that needs a gradient does not survive a stencil on a truck door").

  The fonts are served from this origin (web/build.mjs copies them into /assets/fonts), so the page loads
  nothing from anyone else's servers and the CSP can be 'self' for everything.
*/
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Geist_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Geist_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Geist_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Geist"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/Geist_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/GeistMono_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/GeistMono_500Medium.ttf") format("truetype"); }

:root {
  --bg: #F4F7F4;
  --surface: #FFFFFF;
  --sunken: #E8EDE9;
  --line: #D3DCD5;
  --line-strong: #7E8D82;
  --text: #0B0F0D;
  --dim: #5A6B5E;
  --faint: #65756A;
  --accent: #197437;
  --on-accent: #FFFFFF;
  --accent-text: #197437;
  --accent-subtle: #EAF5ED;
  --turf: #2FA84F;
  --turf-bright: #57D97B;
  --mist: #E8F0EA;
  --brass: #C9A227;
  --brass-text: #7A5F12;
  --brass-subtle: #FBF3D6;
  --soil: #0B0F0D;
  --soil-raised: #141A16;
  --draft: #FBF3D6;
  --draft-text: #7A5F12;
  --shadow: 0 1px 0 rgba(11, 15, 13, 0.04), 0 18px 40px -24px rgba(11, 15, 13, 0.35);
  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F0D;
    --surface: #141A16;
    --sunken: #080B09;
    --line: #253028;
    --line-strong: #6C7F72;
    --text: #E8F0EA;
    --dim: #8FA396;
    --faint: #73867A;
    --accent: #2FA84F;
    --on-accent: #0B0F0D;
    --accent-text: #57D97B;
    --accent-subtle: #16301F;
    --brass-text: #E3C452;
    --brass-subtle: #2A2410;
    --draft: #2A2410;
    --draft-text: #E3C452;
    --shadow: none;
  }
}

/* ------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--turf); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 74px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--sunken); padding: 0.1em 0.42em; border-radius: 5px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.eyebrow.accent { color: var(--accent-text); }
.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: min(100% - 32px, 1180px); } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ------------------------------------------------------------------------------ */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; font-weight: 700; font-size: 22px; letter-spacing: -0.035em; }
.brand .mark { width: 30px; height: 30px; display: block; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--dim); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav .pill { color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.site-nav .pill:hover { background: var(--surface); }
@media (max-width: 720px) { .site-nav a:not(.pill) { display: none; } }

/* ---- buttons ----------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none !important; border: 1px solid transparent; transition: transform 160ms ease, background 160ms ease; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--turf); color: #0B0F0D; transform: translateY(-1px); }
.btn.quiet { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.quiet:hover { background: var(--surface); transform: translateY(-1px); }
.btn.dark { background: var(--soil); color: #E8F0EA; }
.btn.dark:hover { background: #1B241E; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---- hero -------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(52px, 8vw, 112px) clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 22px; max-width: 640px; position: relative; z-index: 1; }
.hero-copy h1 em { font-style: normal; color: var(--accent-text); }
.hero-copy .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--dim); max-width: 44ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--dim); margin-top: 6px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof i { width: 8px; height: 8px; border-radius: 50%; background: var(--turf); display: inline-block; }
.arcs { position: absolute; left: -8%; bottom: -34%; width: min(78vw, 880px); height: auto; color: var(--accent); opacity: 0.11; pointer-events: none; }
@media (prefers-color-scheme: dark) { .arcs { opacity: 0.18; } }
@media (max-width: 900px) { .arcs { width: 120vw; left: -30%; bottom: -20%; } }
.arcs path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s cubic-bezier(.2,.7,.2,1) forwards; }
.arcs path:nth-child(2) { animation-delay: 120ms; }
.arcs path:nth-child(3) { animation-delay: 240ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { animation: rise 720ms cubic-bezier(.2,.7,.2,1) both; }
.rise:nth-child(2) { animation-delay: 80ms; }
.rise:nth-child(3) { animation-delay: 160ms; }
.rise:nth-child(4) { animation-delay: 240ms; }
.rise:nth-child(5) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise, .arcs path { animation: none; stroke-dashoffset: 0; } }

/* ---- phone illustration ------------------------------------------------------------------ */
.phone-wrap { position: relative; z-index: 1; display: grid; place-items: center; }
.phone { width: min(100%, 340px); aspect-ratio: 9 / 18.6; background: var(--soil); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(11, 15, 13, 0.55), 0 0 0 1px rgba(11, 15, 13, 0.08); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 999px; z-index: 2; }
.screen { width: 100%; height: 100%; background: #F4F7F4; color: #0B0F0D; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
@media (prefers-color-scheme: dark) { .screen { background: #F4F7F4; color: #0B0F0D; } }
.screen .top { padding: 58px 18px 12px; display: grid; gap: 8px; }
.screen .top .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #5A6B5E; }
.screen .top .t { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.field { margin: 0 18px; background: #fff; border: 1px solid #D3DCD5; border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.field .v { font-family: var(--mono); font-size: 16px; letter-spacing: 0.06em; }
.field .l { font-size: 11px; color: #197437; font-weight: 500; }
.cards { padding: 12px 18px 18px; display: grid; gap: 10px; }
.tcard { background: #fff; border: 1px solid #D3DCD5; border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.tcard .row { display: flex; align-items: center; gap: 10px; }
.mono-gram { width: 38px; height: 38px; border-radius: 50%; background: #0B0F0D; color: #57D97B; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; flex: none; }
.tcard .name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.tcard .sub { font-size: 11.5px; color: #5A6B5E; }
.tcard .line { font-size: 12px; color: #0B0F0D; }
.tcard .line b { color: #197437; font-weight: 600; }
.tcard .go { margin-top: 2px; background: #197437; color: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600; text-align: center; }
.tcard.quiet { opacity: 0.86; }
.tag { display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #197437; background: #EAF5ED; padding: 3px 7px; border-radius: 999px; }
.days { padding: 6px 18px 18px; display: grid; gap: 8px; }
.day { background: #fff; border: 1px solid #D3DCD5; border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; }
.day .d { font-weight: 700; font-size: 13px; line-height: 1.1; letter-spacing: -0.02em; }
.day .d small { display: block; font-weight: 500; font-size: 10px; color: #5A6B5E; letter-spacing: 0.08em; text-transform: uppercase; }
.day .why { font-size: 11.5px; color: #0B0F0D; }
.day.pick { border-color: #197437; box-shadow: inset 0 0 0 1px #197437; }
.day.pick .why b { color: #197437; }
.day.no { opacity: 0.62; }

/* ---- sections ---------------------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--dim); font-size: 18px; max-width: 56ch; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); }
.step .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-text); }
.step .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-subtle); color: var(--accent-text); display: grid; place-items: center; }
.step .ico svg { width: 22px; height: 22px; }
.step p { color: var(--dim); font-size: 15.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split .phone-wrap { order: -1; } }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; gap: 6px; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.feature h3 { font-size: 16.5px; }
.feature p { color: var(--dim); font-size: 14.5px; }
.feature .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-subtle); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 6px; }
.feature .ico svg { width: 18px; height: 18px; }

.dark-band { background: var(--soil); color: #E8F0EA; }
.dark-band .eyebrow { color: #8FA396; }
.dark-band .section-head p { color: #8FA396; }
.dark-band .feature { background: #141A16; border-color: #253028; }
.dark-band .feature p { color: #8FA396; }
.dark-band .feature .ico { background: #16301F; color: #57D97B; }
.dark-band a { color: #57D97B; }
.dark-band .btn.primary { background: #2FA84F; color: #0B0F0D; }
.dark-band .btn.primary:hover { background: #57D97B; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.price.tech { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.price .amount { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.price .amount small { font-size: 15px; letter-spacing: 0; color: var(--dim); }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.price li svg { width: 18px; height: 18px; flex: none; color: var(--accent-text); margin-top: 3px; }
.price .fine { font-size: 13.5px; color: var(--dim); }

.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 14px; }
.areas .more { color: var(--dim); border-style: dashed; }

.faq { display: grid; gap: 0; max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--dim); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 20px; color: var(--dim); max-width: 64ch; }

/* ---- footer ------------------------------------------------------------------------------ */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-foot .col { display: grid; gap: 8px; align-content: start; font-size: 14.5px; }
.site-foot .col a { color: var(--text); }
.site-foot .col .h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.site-foot .fine { color: var(--dim); font-size: 13.5px; max-width: 40ch; }
.site-foot .brand { font-size: 20px; }

/* ---- documents --------------------------------------------------------------------------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: clamp(32px, 5vw, 64px) 40px; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.doc-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
@media (max-width: 860px) { .doc-nav { position: static; } }
.doc-nav .eyebrow { margin-bottom: 8px; }
.doc-nav a { color: var(--dim); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.doc-nav a:hover { color: var(--text); border-left-color: var(--accent); text-decoration: none; }
.doc-head { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.doc-head h1 { font-size: clamp(34px, 4.6vw, 54px); }
.doc-head .summary { font-size: 19px; color: var(--dim); max-width: 58ch; }
.doc-head .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.draft { background: var(--draft); color: var(--draft-text); border-radius: 12px; padding: 14px 18px; font-size: 15px; line-height: 1.5; max-width: 72ch; }
.draft b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.doc-body { max-width: 68ch; display: grid; gap: 36px; }
.doc-body section { display: grid; gap: 14px; scroll-margin-top: 96px; }
.doc-body h2 { font-size: 26px; padding-top: 4px; }
.doc-body ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.callout { background: var(--accent-subtle); color: var(--text); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 16px; }
.placeholder { background: var(--draft); color: var(--draft-text); padding: 0 5px; border-radius: 4px; font-family: var(--mono); font-size: 0.86em; }
.doc-body code, .doc-body a, .placeholder, .card code, .card a, .narrow a, .site-foot a { overflow-wrap: anywhere; }

/* ---- support / return / 404 -------------------------------------------------------------- */
.narrow { max-width: 720px; display: grid; gap: 22px; padding-block: clamp(32px, 5vw, 64px) 40px; }
.narrow h1 { font-size: clamp(36px, 5vw, 56px); }
.narrow .lede { font-size: 19px; color: var(--dim); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.card h2 { font-size: 22px; }
.card ol, .card ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.done { display: grid; place-items: center; gap: 18px; text-align: center; padding-block: clamp(48px, 10vw, 120px) 40px; }
.done .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent-text); display: grid; place-items: center; }
.done .tick svg { width: 36px; height: 36px; }
.done h1 { font-size: clamp(36px, 5vw, 56px); }
.done p { color: var(--dim); max-width: 46ch; }
.done .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* On a phone the contents list is a row of chips, not fourteen lines above the title. */
@media (max-width: 860px) {
  .doc-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-nav .eyebrow { width: 100%; margin-bottom: 4px; }
  .doc-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
  .doc-nav a:hover { border-color: var(--accent); }
}

.section-head.tight { margin-bottom: 0; }
