/* Hallmark · shape: Feature Stack · genre: modern-minimal · theme: Furrow (deal 1/3, seed yellow-card-daily-lead-45e2·8b3507fa·2026-11-21·r1) · redesign: restyle · job: sign up
 * hero: Map (the city as a survey sheet, the week's flags counted by neighbourhood, one record open as a notebook card) · nav: one bar that retracts on scroll · footer: statement · imagery: the product (the real email, the real board, the real map) · signature: Toronto drawn as a title plan, flagged neighbourhoods tinted, markers land in count order
 * axes: light/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0
 * motion: markers land once on load (0.9s in all) · ambient: the trade card in the headline flips every 3.2s (declared), the lit marker follows; paused off screen and under reduced motion · reduced-motion: everything already down, the card reads Pest control
 * accent: the theme's warm 40 moved to warm 88, the yellow of the card the product is named for; still a fill with ink on it, never type */
/* Hallmark · pre-emit critique r3: P4 H5 E5 S5 R5 V5 · weakest: P, the flipping card is the one loud thing; the copy column and the map no longer overlap, each has its own half */
/* Hallmark · note · figures set in Red Hat Text tabular, not the theme's Red Hat Mono · the client asked for no terminal faces anywhere */
/* Hallmark · dismissed 23 · .face is the headline's trade card, one word wide, about 3% of a 1440 screen · the theme's accent is a fill with ink on it, and this is that fill, once, where the page says who it is for */
/* Hallmark · waive 85 · the close form starts the free week and its button sends tomorrow’s list · it is the product’s start, not a mailing list */
/* Hallmark · note · 58 counts about 300 words inside SVG title elements on the hero map (hover text, never visible); the visible page reads at about 450 */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-accent: oklch(84% 0.17 88); --color-accent-ink: oklch(18% 0.006 60); --color-accent-soft: oklch(94% 0.07 92); --color-focus: oklch(62% 0.16 80);
  --bar-height: 64px;
}

body { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1; text-wrap: balance; }
h1 { font-size: min(var(--text-display), 5rem); }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-title); }
p, li, td, figcaption, small { color: var(--color-ink); }
.lead { font-size: var(--text-lead); color: var(--color-muted); line-height: 1.45; max-width: 36rem; }
small, figcaption, th { font-weight: 500; color: var(--color-muted); font-size: var(--text-sm); }
a { color: var(--color-ink); }
a:hover { color: var(--color-ink-2); }

/* controls: moulded keys, 48px */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 var(--color-sheet), 0 1px 1px var(--color-rule); transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--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) 10%, transparent); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn--primary:active { background: color-mix(in oklab, var(--color-accent) 80%, var(--color-ink)); }
input[type="email"] { min-height: 52px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); width: 100%; font: 400 var(--text-md)/1 var(--font-body); }
input[type="email"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
input[type="email"]:disabled { opacity: 0.55; cursor: not-allowed; }

/* nav: one bar, retracts on scroll down */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); transition: transform var(--dur-short) var(--ease-out); }
.bar.is-retracted { transform: translateY(-100%); }
.bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--bar-height); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: var(--tracking-display); text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.wordmark i { width: 22px; height: 15px; border-radius: 2px; background: var(--color-accent); border: var(--rule-hair) solid color-mix(in oklab, var(--color-accent) 70%, var(--color-ink)); }
.bar nav { display: flex; gap: var(--space-lg); align-items: center; }
.bar nav a { text-decoration: none; font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); }
.bar-end { display: flex; align-items: center; gap: var(--space-md); }
.bar .live { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.bar .btn { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); }

/* hero: the map. The sheet fills the band from the bottom right; the copy takes the corner north of Etobicoke, the record sits on the lake */
.hero { position: relative; min-height: min(90svh, 960px); padding-block: var(--space-2xl) var(--space-3xl); overflow: clip; display: grid; align-items: start; background: var(--color-paper); }
.hero .container { position: relative; z-index: 1; }
.hero .copy { display: grid; gap: var(--space-lg); max-width: 46%; }
.hero h1 { font-size: clamp(2.25rem, 3.4vw + 0.5rem, 4rem); max-width: 14ch; }
.hero .actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero .terms { font-size: var(--text-sm); color: var(--color-muted); max-width: 30rem; }
.citymap { position: absolute; inset: 0; margin: 0; }
.citymap-svg { position: absolute; inset: var(--space-lg) 0 0 48%; width: 52%; height: calc(100% - var(--space-lg)); display: block; }
.citymap figcaption { position: absolute; left: var(--gutter); bottom: var(--space-lg); max-width: 34rem; }
.water { fill: var(--color-water); opacity: 0.16; }
.watertext { fill: var(--color-water); font: 500 12px var(--font-body); text-anchor: middle; }
.edge path { fill: none; stroke: var(--color-accent); stroke-width: 5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hood { fill: var(--color-paper-2); stroke: var(--color-contour); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.hood--lit { fill: var(--color-accent-soft); }
.mark circle { fill: var(--color-ink); stroke: var(--color-paper-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mark text { fill: var(--color-paper-2); font: 500 11px var(--font-body); text-anchor: middle; }
.mark .tagbox { fill: var(--color-ink); }
.mark .tagtext { fill: var(--color-paper-2); font: 500 11px var(--font-body); text-anchor: start; }
.mark--open circle { fill: var(--color-accent); stroke: var(--color-ink); }
.mark--open text { fill: var(--color-ink); }
.mark--open .tagbox { fill: var(--color-accent); } .mark--open .tagtext { fill: var(--color-ink); }
.mark { transform-box: fill-box; transform-origin: center; animation: land var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i) * 30ms + 200ms); }
/* the trade card in the headline: a flat yellow card on a box, one face a trade with its icon, rolled up a face at a time by the script */
.flip { position: relative; display: inline-flex; align-items: center; vertical-align: bottom; height: 1.22em; }
.cube { --depth: 0.61em; position: relative; display: inline-block; height: 1.22em; width: 8em; perspective: 1400px; }
.cube-box { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--depth) * -1)); transition: transform 720ms var(--ease-in-out); }
.face { position: absolute; inset: 0; display: inline-flex; align-items: center; gap: 0.22em; padding: 0 0.34em 0 0.28em; white-space: nowrap; background: var(--color-accent); color: var(--color-ink); border-radius: 0.14em; backface-visibility: hidden; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-sheet) 40%, transparent), inset 0 -0.06em 0 color-mix(in oklab, var(--color-ink) 14%, transparent); }
.face svg { width: 0.8em; height: 0.8em; flex: none; }
.face--0 { transform: rotateX(0) translateZ(var(--depth)); }
.face--1 { transform: rotateX(-90deg) translateZ(var(--depth)); }
.face--2 { transform: rotateX(-180deg) translateZ(var(--depth)); }
.face--3 { transform: rotateX(-270deg) translateZ(var(--depth)); }
.cube-measure { position: absolute; left: 0; top: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; white-space: nowrap; }
.cube-measure .face { position: static; }
.mark .tag--open-only { display: none; }
.mark--open .tag--open-only { display: block; }
@keyframes land { from { opacity: 0; transform: translateY(-6px) scale(0.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mark { animation: none; } }

/* sections */
.section { padding-block: var(--section-gap-s); }
.section--l { padding-block: var(--section-gap); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: end; margin-bottom: var(--space-2xl); }
.head .lead { margin: 0; }
.band { background: var(--color-paper-3); }

/* feature stack: sticky left pane, captures scroll on the right */
.stack { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.stack .pane { position: sticky; top: calc(var(--bar-height) + var(--space-xl)); display: grid; gap: var(--space-lg); justify-items: start; }
.stack .captures { display: grid; gap: var(--space-3xl); min-width: 0; }
.capture { margin: 0; display: grid; gap: var(--space-md); min-width: 0; }
.capture figcaption { padding-left: var(--space-2xs); }

/* the email, on a white sheet opened flat */
.email, .board { background: var(--color-sheet); border-radius: 3px; box-shadow: var(--shadow-card); border: var(--rule-hair) solid var(--color-rule); }
.email { padding: var(--space-lg) var(--space-xl); max-width: 40rem; }
.e-wrap { font: 400 var(--text-md)/1.5 var(--font-body); color: var(--color-ink); }
.e-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: var(--tracking-display); margin: 0 0 var(--space-2xs); }
.e-sub { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.e-sec { font-weight: 500; margin: var(--space-lg) 0 var(--space-xs); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-ink); }
.e-lead { margin: 0 0 var(--space-sm); }
.e-lead strong { font-weight: 500; }
.e-closed { background: var(--color-ink); color: var(--color-paper-2); padding: 0 var(--space-xs); border-radius: 3px; font-size: var(--text-xs); font-weight: 500; margin-left: var(--space-xs); }
.e-meta { color: var(--color-muted); font-size: var(--text-sm); }
.e-inf { margin: var(--space-2xs) 0 0; padding-left: var(--space-md); font-size: var(--text-sm); }

/* the board: the book as an index, a ruled table on the sheet */
.board { padding: var(--space-sm) var(--space-lg) var(--space-xs); overflow: hidden; }
.board table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--text-sm); }
.board th { text-align: left; padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-ink); white-space: nowrap; }
.board td { padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.board tr:last-child td { border-bottom: 0; }
.board th:nth-child(1), .board td:nth-child(1) { width: 17%; } .board th:nth-child(2), .board td:nth-child(2) { width: 11%; }
.board th:nth-child(3), .board td:nth-child(3) { width: 15%; } .board th:nth-child(5), .board td:nth-child(5) { width: 19%; }
.board .trade { font-weight: 500; }
.board .cleared { color: var(--color-green); font-weight: 500; }
.board .open { font-weight: 500; }

/* the trades as ruled rows, figures with their unit */
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.rows li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows b { font-weight: 500; display: block; }
.rows .ends { font-size: var(--text-sm); color: var(--color-muted); }
.rows .fig { font-weight: 500; white-space: nowrap; }

/* pricing: one plate on the sheet */
.plate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2xl); align-items: center; padding: var(--space-xl); background: var(--color-sheet); border-radius: 18px; border: var(--rule-hair) solid var(--color-rule); box-shadow: var(--shadow-card); }
.plate-fig { display: grid; justify-items: start; }
.plate-fig .fig { font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); letter-spacing: var(--tracking-display); line-height: 1; }
.plate-fig .unit { font-size: var(--text-md); color: var(--color-muted); font-weight: 500; }
.plate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.plate-list li { padding-left: var(--space-lg); position: relative; }
.plate-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 8px; border-radius: 2px; background: var(--color-accent); border: 1px solid color-mix(in oklab, var(--color-accent) 70%, var(--color-ink)); }
@media (max-width: 60rem) { .plate { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }

/* pricing as the bill: ruled lines, the figure and its unit */
.price-table { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-ink); }
.price-table th { text-align: left; padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.price-table td { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: middle; }
.price-table .name { font-weight: 500; font-size: var(--text-lg); width: 22%; }
.price-table .fig { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); width: 16%; white-space: nowrap; }
.price-table .what { color: var(--color-muted); }
.price-table .act { text-align: right; padding-right: 0; width: 22%; }

/* questions as ruled rows */
.qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); }
.qa details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.qa details:first-child { border-top: var(--rule-hair) solid var(--color-ink); }
.qa summary { cursor: pointer; padding: var(--space-md) 0; font-weight: 500; font-size: var(--text-lg); list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.qa summary::after { content: "+"; color: var(--color-muted); }
.qa details[open] summary::after { content: "–"; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qa p { margin: 0 0 var(--space-md); color: var(--color-muted); max-width: 44rem; }

/* the close: the form, on the notebook card */
.signup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.signup form { display: grid; gap: var(--space-lg); border-radius: var(--radius-entry); background: var(--color-paper-2); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); padding: var(--space-lg); }
.signup fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.signup legend { font-weight: 500; margin-bottom: var(--space-sm); padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
.choices label { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-sheet); cursor: pointer; font-weight: 500; }
.choices label:hover { border-color: var(--color-muted); }
.choices label:has(:checked) { background: var(--color-accent-soft); border-color: color-mix(in oklab, var(--color-accent) 70%, var(--color-ink)); }
.choices input { accent-color: var(--color-ink); width: 18px; height: 18px; margin: 0; }
.choices input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); }
.msg { margin: 0; min-height: 1.5em; font-size: var(--text-sm); color: var(--color-muted); }
.msg.err { color: var(--color-error); font-weight: 500; }
.signup .terms { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.signup .done { display: none; border-radius: var(--radius-entry); background: var(--color-green-soft); padding: var(--space-lg); }
.signup.sent form { display: none; }
.signup.sent .done { display: block; }
.signup .done p { color: var(--color-ink); }

/* privacy and terms: one measure of prose */
.legal { max-width: 44rem; display: grid; gap: var(--space-md); }
.legal h1 { margin-bottom: var(--space-xs); }
.legal h2 { font-size: var(--text-lg); margin-top: var(--space-lg); }
.legal p { margin: 0; line-height: 1.55; }
.legal .lead { margin-bottom: var(--space-md); }

/* footer: a statement */
footer { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-ink); }
footer .statement { font-size: var(--text-xl); font-weight: 500; max-width: 60ch; line-height: 1.35; }
footer .links { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-2xl); font-size: var(--text-sm); }
footer .links a { font-weight: 500; }
footer .credit { margin-top: var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); max-width: 70ch; }


@media (max-width: 60rem) {
  .head, .stack, .qa, .signup { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-bottom: var(--space-xl); }
  .citymap { position: relative; inset: auto; order: 2; margin-top: var(--space-xl); display: grid; gap: var(--space-md); padding-inline: var(--gutter); }
  .citymap-svg { position: relative; inset: auto; width: 100%; height: auto; }
  .flip { height: 1.3em; }
  .citymap figcaption { position: static; max-width: none; text-align: left; }
  .hero .copy { max-width: none; }
  .board th:nth-child(2), .board td:nth-child(2), .board th:nth-child(3), .board td:nth-child(3) { display: none; }
  .board th:nth-child(1), .board td:nth-child(1) { width: 32%; } .board th:nth-child(5), .board td:nth-child(5) { width: 28%; }
  .board { padding-inline: var(--space-md); }
  .board th { white-space: normal; }
  .price-table .name, .price-table .fig, .price-table .act { width: 100%; }
  .email { padding: var(--space-md) var(--space-lg); }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tr { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .price-table td { padding: var(--space-2xs) 0; border: 0; }
  .price-table td.act { text-align: left; padding-top: var(--space-sm); }
  .price-table td.what { display: none; }
  .stack .pane { position: static; }
  .bar nav, .bar .live { display: none; }
}
@media (max-width: 40rem) {
  .choices { grid-template-columns: 1fr; }
  .field { grid-template-columns: 1fr; }
  .signup form { padding: var(--space-md); }
}
@media (max-width: 22rem) { .bar .btn { display: none; } }
