/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: brand · redesign: full · draw: 6fe810 · job: listen (the weekly guide), action: diagnose
 * paper: oklch(97.6% 0.008 140) · accent: oklch(42.5% 0.12 144) · display: Lexend · body: Inter · hero: Poster (/, swapped from Counter: the kept 3D drone canvas is the signature), Banner (/lawn/*, /thanks) · nav: floating pill · footer: letter close · signature: the spray drone treating weeds row by row, full-bleed behind the head
 * axes: light/geometric-sans/chromatic-green · posture: Restrained · contrast: pass · fold: pass · imagery: the user's 3D canvas and headshot, no library photos · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P and H, the old page argued nothing and every section looked the same; the four numbered stages (diagnose, read, check the evidence, ask) now carry one argument and each stage holds a different object */
/* Hallmark · reworded "Every week, one real lawn or turf problem, explained by a turfgrass weed scientist. What is causing it, what actually works, and what the research says." to "One turf problem a week: the cause, the fix, the evidence." · 58 and the hero rule cap the hero at one sentence; the promise of the old lede kept */
/* Hallmark · hero-review: folded into the finish review (render tier unavailable) · finish-review: subagent · fix · 8 findings · 6 resolved (research eyebrow, guide video box, lead tile, numbering as asides, logo blend, phone hero) · 2 dismissed (guide nav never had Lawn Doctor; tech labels are the owner's badges) */
/* Hallmark · dropped the eyebrows "Turf · Technology · Weeds", "Lawn Doctor", "Start here", "Lawn problems", "What the research says", "Turf tech", "About", "Ask a question", "Message received" and the guide category labels over headings · 54 and 63 name them; the tagline lives in the logo and the footer, "Lawn Doctor" captions the tool, "One study is a clue" is that stage's heading again, the categories moved after each title */
/* Hallmark · dismissed F7 · the skip link, nav links and pause button are controls, the progress bar and the video note are pill-shaped by nature */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- page ---------- */
body { line-height: 1.6; }
h1, h2, h3, h4 { color: var(--color-ink); }
h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); line-height: 1.25; }
a:hover { text-decoration-thickness: 2px; }
.muted { color: var(--color-muted); }
.lead { color: var(--color-ink-2); }
section[id], main[id] { scroll-margin-top: calc(var(--nav-height) + var(--space-xl)); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-display); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn.ghost { background: transparent; color: var(--color-accent); }
.btn.ghost:hover { background: var(--color-paper-2); color: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.more { font-family: var(--font-display); font-weight: var(--display-weight); color: var(--color-accent); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.more:hover { color: var(--color-accent-hover); text-decoration-color: currentColor; }
.more:active { color: var(--color-ink); }

/* ---------- nav: a floating pill ---------- */
.site-header { position: fixed; inset: var(--space-md) 0 auto; z-index: var(--z-sticky-nav); pointer-events: none; }
.pill { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--nav-height); padding: 0 var(--space-xs) 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-pill); box-shadow: var(--shadow-pill), 0 0 0 1px var(--color-pill-edge); }
.brand { display: block; flex-shrink: 0; width: 204px; aspect-ratio: 1000 / 270; overflow: hidden; border-radius: var(--radius-inner); }
.brand img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.nav { display: flex; align-items: center; gap: var(--space-2xs); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.nav a:active { background: var(--color-paper-3); }
.nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav a.nav-ask { color: var(--color-accent); }
.nav-toggle { display: none; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.nav-toggle:hover { background: var(--color-paper-2); }
.nav-toggle:active { background: var(--color-paper-3); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- hero: Poster, the drone canvas full-bleed ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 100dvh; overflow: hidden; background: var(--color-sky); }
.hero canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.hero.ready canvas { opacity: 1; }
.hero.no-webgl { background: linear-gradient(160deg, var(--color-sky), var(--color-turf)); }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--color-scrim) 0%, var(--color-scrim-soft) 36%, var(--color-scrim-clear) 62%); }
.hero-content { position: relative; z-index: 2; padding-block: calc(var(--nav-height) + var(--space-3xl)) var(--space-2xl); }
.hero h1 { max-width: 16ch; text-wrap: wrap; }
.hero .lead { margin-top: var(--space-lg); max-width: 30ch; }
.hero .actions { margin-top: var(--space-xl); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-3xl); }
.hero-caption { max-width: 44ch; font-size: var(--text-sm); color: var(--color-ink-2); }
.hero-pause { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-pill); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.hero-pause:hover { background: var(--color-paper); }
.hero-pause:active { background: var(--color-paper-2); }
.hero-pause:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap); }
.section.tight { padding-block: var(--section-gap-s); }
.section.roomy { padding-block: var(--section-gap-l); }
.ruled { border-top: var(--rule-hair) solid var(--color-rule); }
.head-block > * + * { margin-top: var(--space-lg); }
.head-block .lead { max-width: 40ch; }

/* stage 1: Lawn Doctor, text beside the working tool */
.doctor .head-block { grid-column: 1 / span 5; }
.doctor .tool { grid-column: 7 / span 6; margin: 0; }
.facts { list-style: none; margin: var(--space-xl) 0 0; padding: 0; max-width: 44ch; }
.facts li { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.facts li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.tool figcaption { margin-bottom: var(--space-sm); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.doctor-panel { min-height: 520px; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.doctor-panel h3 { outline: none; margin-bottom: var(--space-lg); font-size: var(--text-xl); }
.doc-progress { display: flex; gap: var(--space-2xs); margin-bottom: var(--space-lg); }
.doc-progress span { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--color-paper-3); }
.doc-progress span.on { background: var(--color-accent); }
.doc-options { display: grid; gap: var(--space-xs); }
.doc-opt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3xs); width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-inner); background: var(--color-paper); color: var(--color-ink); text-align: left; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.doc-opt:hover { border-color: var(--color-accent); }
.doc-opt:active { transform: translateY(1px); }
.doc-opt:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.doc-opt.sel { border-color: var(--color-accent); background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-accent); }
.doc-opt-label { font-weight: 600; }
.doc-opt-hint { font-size: var(--text-sm); color: var(--color-muted); }
.doc-back { margin-top: var(--space-md); min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-accent); font-weight: 600; cursor: pointer; }
.doc-back:hover { color: var(--color-accent-hover); text-decoration: underline; }
.doc-back:active { color: var(--color-ink); }
.doc-back:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.doc-summary { margin-bottom: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.doc-results { display: grid; }
.doc-card { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.doc-card.top { padding: var(--space-lg); border-top: 0; border-radius: var(--radius-inner); background: var(--color-paper); }
.doc-card h4 { margin-bottom: var(--space-2xs); }
.doc-card p { margin-bottom: var(--space-xs); color: var(--color-ink-2); }
.doc-card ul { margin: 0 0 var(--space-xs); padding-left: var(--space-lg); }
.doc-rank { margin-bottom: var(--space-xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); }
.doc-note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* who it is for: a table */
.audience-head { grid-column: 1 / span 4; }
.audience-table { grid-column: 5 / span 8; width: 100%; border-collapse: collapse; }
.audience-table th, .audience-table td { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.audience-table tr:last-child > * { border-bottom: var(--rule-hair) solid var(--color-rule); }
.audience-table th { width: 30%; font-weight: 400; }
.audience-table td { color: var(--color-ink-2); }
.audience-table td:last-child { width: 22%; padding-right: 0; text-align: right; white-space: nowrap; }

/* stage 2: the guides, one lead and two */
.guides-head { grid-column: 1 / span 7; }
.guides { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: var(--gap-columns); }
.guide { display: flex; flex-direction: column; gap: var(--space-md); min-height: 260px; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.guide:first-child { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.guide:first-child p { font-size: var(--text-lead); }
.guide:nth-child(2), .guide:nth-child(3) { grid-column: 8 / span 5; }
.guide:first-child h3 { max-width: 14ch; font-size: var(--text-display-s); line-height: 1.05; }
.aside h2 { font-size: var(--text-3xl); }
.guide p { color: var(--color-ink-2); }
.guide-foot { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-top: auto; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.guide:first-child .guide-foot { margin-top: var(--space-lg); }
.topic { font-size: var(--text-sm); color: var(--color-muted); }

/* stage 3: the research, a statement then the digest */
.statement { grid-column: 1 / span 10; max-width: 22ch; margin: 0; font: var(--display-weight) var(--text-display)/1.04 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.research-text { grid-column: 1 / span 6; }
.research-text p + p { margin-top: var(--space-md); }
.digest { grid-column: 8 / span 5; }
.digest h3 { margin-bottom: var(--space-lg); }
.digest ol { counter-reset: d; list-style: none; margin: 0; padding: 0; }
.digest li { counter-increment: d; display: grid; grid-template-columns: var(--space-xl) minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.digest li::before { content: counter(d); font: var(--display-weight) var(--text-xl)/1.1 var(--font-display); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.digest strong { color: var(--color-ink); }

/* turf tech: rows */
.tech-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-height) + var(--space-2xl)); }
.tech-rows { grid-column: 6 / span 7; margin: 0; }
.tech-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-columns); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.tech-rows > div:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.tech-rows dt { padding-top: var(--space-2xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.tech-rows dd { margin: 0; }
.tech-rows dd p { margin-top: var(--space-xs); color: var(--color-ink-2); }

/* about: the headshot beside the letter */
.about .cols { align-items: center; }
.about-photo { grid-column: 1 / span 5; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-card); outline: 1px solid var(--color-pill-edge); outline-offset: -1px; }
.about-text { grid-column: 7 / span 6; }
.about-text p { margin-top: var(--space-md); }
.about-text h2 + p { margin-top: var(--space-lg); }
.about-text .facts { margin-top: var(--space-xl); }

/* stage 4: the ask form */
.ask-head { grid-column: 1 / span 5; }
.ask-head p { margin-top: var(--space-lg); }
.form-note { font-size: var(--text-sm); color: var(--color-muted); }
#ask-form { grid-column: 7 / span 6; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { margin-bottom: var(--space-md); }
label { display: block; margin-bottom: var(--space-2xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
input, textarea, select { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-inner); background: var(--color-paper); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; }
textarea { resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--color-ink-2); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: var(--color-focus); }
input:disabled, textarea:disabled, select:disabled { opacity: 0.55; cursor: not-allowed; }
input:user-invalid, textarea:user-invalid, input[aria-invalid], textarea[aria-invalid] { border-color: var(--color-error); }
.form-msg { min-height: 1lh; margin-top: var(--space-sm); font-weight: 600; color: var(--color-accent); }

/* ---------- footer: a letter close ---------- */
.site-footer { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.signoff { grid-column: 1 / span 6; }
.signoff .name { font: var(--display-weight) var(--text-2xl)/1.15 var(--font-display); letter-spacing: var(--tracking-display); }
.signoff p + p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.tagline { grid-column: 8 / span 5; margin: 0; font: var(--display-weight) var(--text-2xl)/1.15 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-accent); }
.colophon { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- guide and thanks pages: a long document under a banner ---------- */
.page-top { padding-block: calc(var(--nav-height) + var(--space-3xl)) var(--space-2xl); }
.article { max-width: 68ch; margin-inline: auto; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: var(--space-lg); font-weight: 600; color: var(--color-accent); text-decoration: none; }
.back:hover { text-decoration: underline; color: var(--color-accent-hover); }
.back:active { color: var(--color-ink); }
.article h1 { max-width: 18ch; font-size: var(--text-display-s); line-height: 1.06; }
.article .meta { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.article > p:not([class]) { margin-top: var(--space-md); line-height: 1.7; }
.article h2 { margin-top: var(--space-2xl); font-size: var(--text-2xl); line-height: 1.15; }
.article h2 + p { margin-top: var(--space-sm); }
.article ul, .article ol { margin: var(--space-md) 0 0; padding-left: var(--space-lg); line-height: 1.7; }
.article li + li { margin-top: var(--space-xs); }
.article a:not([class]) { color: var(--color-accent); }
.article a:not([class]):hover { color: var(--color-accent-hover); }
.callout { margin-block: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.callout strong { color: var(--color-ink); }
.video-slot { display: inline-block; margin-top: var(--space-sm); padding: var(--space-2xs) var(--space-sm); border: 1px dashed var(--color-muted); border-radius: var(--radius-pill); color: var(--color-muted); font-size: var(--text-sm); }
.article .actions { margin-top: var(--space-xl); }

/* ---------- under 60rem ---------- */
@media (max-width: 60rem) {
  .cols { row-gap: var(--space-xl); }
  .cols > *, .doctor .head-block, .doctor .tool, .audience-head, .audience-table, .guides-head, .research h2, .statement, .research-text, .digest, .tech-head, .tech-rows, .about-photo, .about-text, .ask-head, #ask-form, .signoff, .tagline { grid-column: 1 / -1; }
  .tech-head { position: static; }
  .guide:first-child, .guide:nth-child(2), .guide:nth-child(3) { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .about-photo { max-width: 360px; }
  .doctor-panel { min-height: 0; padding: var(--space-lg); }
  .js .nav { display: none; }
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: calc(100% + var(--space-xs)); left: 0; right: 0; padding: var(--space-xs); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-pill), 0 0 0 1px var(--color-pill-edge); }
  .js .site-header.open .nav a { min-height: 48px; font-size: var(--text-md); }
  html:not(.js) .pill { flex-wrap: wrap; border-radius: var(--radius-card); padding-block: var(--space-xs); }
  html:not(.js) .nav { flex-wrap: wrap; }
}
@media (max-width: 47.5rem) {
  .hero { display: block; min-height: 0; padding-top: calc(var(--nav-height) + var(--space-xl)); }
  .hero canvas { position: relative; height: 38svh; }
  .hero-shade { display: none; }
  .hero-content { padding-block: var(--space-xl) var(--space-2xl); }
  .hero-foot { margin-top: var(--space-xl); align-items: flex-start; flex-direction: column; }
  .brand { width: 148px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .audience-table, .audience-table tbody, .audience-table tr, .audience-table th, .audience-table td { display: block; width: auto; }
  .audience-table tr { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
  .audience-table th, .audience-table td, .audience-table tr:last-child > * { padding: 0; border: 0; text-align: left; }
  .audience-table td { margin-top: var(--space-xs); }
  .tech-rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
}
