/* Hallmark · shape: Feature Stack · genre: modern-minimal · theme: Furrow (by request) · redesign: full · colours: Plantito brand (kept)
 * hero: Stage (survey map with the app's own plan screen as the open card) · nav: edge-aligned wordmark, three links, Support · footer: a ruled mast, wordmark over the links · imagery: the product (real app screens) · signature: the garden drawn as a survey sheet, care jobs pinned on its plants, the real plan screen open on it
 * axes: light/grotesk-sans/cool-green · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R1 V2 · weakest: R (the Range), the plans read as two sheets on the green field rather than a third card grid */
@import url("./tokens.css");
@import url("./base.css");

/* Page shell: one container, capped and centred (the gutters grow at 1920, the measure does not). */
:root { --container: 1200px; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
body { color: var(--color-ink); }
p { color: var(--color-muted); }
a { color: var(--color-accent); }
a:hover { color: var(--color-ink); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-modal); padding: var(--space-xs) var(--space-sm); background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-pill); box-shadow: 0 0 0 1px var(--color-ink); }
.skip:focus-visible { top: var(--space-md); }

/* Nav: an ink rule under the bar, as the theme's ruled lists. */
.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-ink); }
.top .wrap { display: flex; align-items: center; gap: var(--space-lg); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); letter-spacing: var(--tracking-display); }
.brand img { width: 28px; height: 28px; border-radius: var(--radius-pill); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-lg); font-size: var(--text-sm); font-weight: 500; }
.top nav a { color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-xs); }
.top nav a:hover { color: var(--color-accent); }
.top nav a:active { transform: translateY(1px); }
@media (max-width: 40rem) { .top nav a:not(.keep) { display: none; } }

/* Moulded keys (the theme's controls): the primary is a green fill with paper on it. Store keys are not links yet. */
.key { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); line-height: 1.2; box-shadow: inset 0 1px 0 var(--color-sheet), 0 1px 1px var(--color-rule); text-decoration: none; }
.key small { font-size: var(--text-xs); color: var(--color-muted); }
.key strong { font-size: var(--text-md); font-weight: 500; }
.key--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: color-mix(in oklab, var(--color-accent) 78%, var(--color-ink)); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-sheet) 32%, transparent), inset 0 -1px 0 color-mix(in oklab, var(--color-ink) 12%, transparent); }
.key--primary small { color: color-mix(in oklab, var(--color-accent-ink) 82%, transparent); }
.keys { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.note { margin-top: var(--space-sm); font-size: var(--text-sm); }

/* Hero: the text on paper, the survey sheet beside it, the app's plan screen open on the sheet. */
.hero { position: relative; padding-block: 0; border-bottom: var(--rule-hair) solid var(--color-ink); background: var(--color-paper-3); color: var(--color-ink); }
.hero .wrap { position: relative; z-index: var(--z-base); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; min-height: 600px; padding-block: var(--space-2xl); }
/* The text sits on the survey sheet; a paper wash behind it keeps it readable over the contours. */
.hero-copy { padding: var(--space-lg); margin-left: calc(-1 * var(--space-lg)); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-paper-3) 82%, transparent); }
.hero h1 { font-size: var(--text-display); line-height: 1; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-muted); }
.survey { position: static; min-width: 0; align-self: stretch; }
.survey svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.survey .card-wrap { position: relative; height: 100%; }
.survey .card { position: absolute; right: 0; bottom: calc(-1 * var(--space-lg)); width: min(176px, 30%); border-radius: var(--radius-entry); overflow: hidden; background: var(--color-paper-2); color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); }
.card-head { display: flex; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-xs); font-weight: 500; }
.card-head .num { font-family: var(--font-outlier); color: color-mix(in oklab, var(--color-paper) 78%, transparent); }
@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: var(--space-lg); }
  .survey { position: relative; aspect-ratio: 720 / 560; }
  .survey svg { z-index: 0; }
  .survey .card { right: var(--space-xs); bottom: calc(-1 * var(--space-lg)); width: min(130px, 30%); z-index: 1; }
  .hero { padding-bottom: var(--space-2xl); }
}

/* The survey sheet: every line and fill is a token, so it follows light and dark. */
.map-paper { fill: var(--color-paper-3); }
.map-fold { stroke: var(--color-paper-2); stroke-width: 2; opacity: 0.8; }
.map-contour { fill: none; stroke: var(--color-contour); stroke-width: 1; }
.map-contour.major { stroke: var(--color-contour-strong); stroke-width: 1.6; }
.map-height { fill: var(--color-contour-strong); font: 500 11px var(--font-outlier); }
.map-plot { fill: var(--color-paper-2); stroke: var(--color-accent); stroke-width: 2; }
.map-plot-edge { fill: none; stroke: var(--color-accent); stroke-width: 8; opacity: 0.18; }
.map-lawn { fill: var(--color-lawn); stroke: var(--color-hedge); stroke-width: 1; }
.map-bed { fill: var(--color-bed); stroke: var(--color-hedge); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
.map-house { fill: var(--color-house); stroke: var(--color-ink); stroke-width: 1.5; }
.map-hatch { stroke: var(--color-ink); stroke-width: 0.8; opacity: 0.35; }
.map-paver { fill: var(--color-paver); stroke: var(--color-ink); stroke-width: 0.6; opacity: 0.9; }
.map-water { fill: none; stroke: var(--color-water); stroke-width: 3; }
.map-pond { fill: color-mix(in oklab, var(--color-water) 30%, transparent); stroke: var(--color-water); stroke-width: 1.5; }
.map-canopy { fill: color-mix(in oklab, var(--color-hedge) 22%, transparent); stroke: var(--color-hedge); stroke-width: 1.2; }
.map-label { fill: var(--color-ink-2); font: 500 12px var(--font-body); }
.map-route { fill: none; stroke: var(--color-ink); stroke-width: 1.4; stroke-dasharray: 5 4; }
.pin { fill: var(--color-ink); }
.pin.open { fill: var(--color-accent); }
.tag rect { fill: var(--color-paper-2); stroke: var(--color-rule); }
.tag.open rect { fill: var(--color-ink); stroke: var(--color-ink); }
.tag text { fill: var(--color-ink); font: 500 11px var(--font-body); }
.tag text .num { font-family: var(--font-outlier); }
.tag.open text { fill: var(--color-paper); }

/* Sections */
section { padding-block: var(--space-2xl); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: start; margin-top: var(--space-xl); }
@media (max-width: 60rem) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.head-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.head-pair .sub { margin-top: var(--space-md); max-width: 40ch; }
@media (max-width: 60rem) { .head-pair { grid-template-columns: minmax(0, 1fr); } }

/* Features: a ruled list, each kind of job marked with one of the theme's three pin shapes. */
.ruled { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.ruled > li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--space-md); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ruled h3 { font-size: var(--text-title); }
.ruled p { margin-top: var(--space-2xs); }
.shape { width: 12px; height: 12px; background: var(--color-ink); transform: translateY(1px); }
.shape--disc { border-radius: 50%; }
.shape--diamond { transform: translateY(1px) rotate(45deg) scale(0.86); }
.shape--triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chip { align-self: start; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-green-soft); color: var(--color-ink); font-size: var(--text-xs); font-weight: 500; }

/* Screens: the app's own screens laid on a notebook sheet. */
.sheet { border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); background: linear-gradient(var(--color-grid) 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(90deg, var(--color-grid) 1px, transparent 1px) 0 0 / 8px 8px, var(--color-paper-2); padding: var(--space-xl); }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.screens figure { margin: 0; }
.screens img { border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-card); }
.screens figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
@media (max-width: 60rem) { .sheet { padding: var(--space-lg); } }

/* Plans: two ruled sheets, Plus lifted on the green field. */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.plan { height: 100%; border-radius: var(--radius-entry); background: var(--color-paper-2); padding: var(--space-xl); box-shadow: 0 0 0 1px var(--color-ink); }
.plan--plus { border-top: 6px solid var(--color-accent); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); }
.plan h3 { font-size: var(--text-title); }
.price { margin-top: var(--space-sm); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-display-s); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.plan .ruled { margin-top: var(--space-lg); border-top-width: 2px; }
.plan .ruled > li { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-sm); color: var(--color-ink-2); }
@media (max-width: 52rem) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Privacy: the deep green band. */
.band { border-radius: var(--radius-card); background: var(--color-band); color: var(--color-band-ink); padding: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); }
.band h2 { color: var(--color-band-ink); }
.band p, .band li { color: var(--color-band-muted); }
.band p { margin-top: var(--space-md); }
.band ul { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-band-ink); }
.band li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-band-ink) 22%, transparent); }
.band a { color: var(--color-band-ink); }
.band a:hover { color: var(--color-band-muted); }
@media (max-width: 60rem) { .band { grid-template-columns: minmax(0, 1fr); padding: var(--space-xl) var(--space-lg); } }

/* Questions: a ruled list that opens. */
.faq { border-top: var(--rule-hair) solid var(--color-ink); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { cursor: pointer; padding-block: var(--space-md); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--color-accent); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--color-accent); }
.faq details p { padding-bottom: var(--space-md); }

/* Footer: a ruled mast, the wordmark over the links. */
footer { border-top: var(--rule-hair) solid var(--color-ink); padding-block: var(--space-xl) var(--space-2xl); font-size: var(--text-sm); color: var(--color-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); align-items: center; }
footer nav { display: flex; gap: var(--space-lg); margin-left: auto; }
footer a { color: var(--color-ink-2); }
footer a:hover { color: var(--color-accent); }

/* Document pages (privacy, terms, support), built from docs/store by build.ts. */
.doc { padding-block: var(--space-2xl) var(--space-3xl); }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc figure { margin: var(--space-md) 0 var(--space-lg); }
.doc figure img { display: block; width: min(300px, 100%); height: auto; border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-card); }
.doc figcaption { margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-ink-2, var(--color-ink)); }
.doc h1 { font-size: var(--text-display-s); }
.doc h2 { max-width: none; font-size: var(--text-2xl); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-ink); }
.doc p, .doc li { color: var(--color-ink-2); }
.doc p { margin-top: var(--space-sm); }
.doc em { color: var(--color-muted); }
.doc ul, .doc ol { padding-left: var(--space-lg); display: grid; gap: var(--space-xs); margin-top: var(--space-sm); }
.doc li > ul { margin-top: var(--space-2xs); }
.doc code { font-family: var(--font-outlier); font-size: 0.92em; }

/* The story: the reason the app exists, in the maker's words. */
.story { border-bottom: var(--rule-hair) solid var(--color-rule); }
.story blockquote { margin: 0; padding-left: var(--space-lg); border-left: 3px solid var(--color-accent); }
.story blockquote p { color: var(--color-ink-2); font-size: var(--text-lg); }
.story blockquote p + p { margin-top: var(--space-md); }

/* Beta waitlist (the hero's form; docs/research/validation.md). */
.join { margin-top: var(--space-lg); display: grid; gap: var(--space-xs); max-width: 34rem; }
.join > label { font-size: var(--text-sm); font-weight: 500; }
.join-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.join-row input { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); }
.join-row input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.join-row button { cursor: pointer; justify-content: center; font-weight: 500; }
.join-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-error { font-size: var(--text-sm); color: var(--color-error); }
.join .note { margin-top: 0; }
.hero .keys { margin-top: var(--space-md); }
@media (prefers-color-scheme: dark) { .join-error { color: oklch(74% 0.14 27); } }
