/* www.canopychart.com. Sibling of www.lawnchart.com: the same bones (white page, dark bands, hairlines, square corners,
   no shadows, mono for short labels), its own look: Zilla Slab for headings and the wordmark, a bark-brown band, spruce
   green as the primary, rope yellow for the primary button and the marks that need attention. Source Sans 3 for body,
   IBM Plex Mono for labels. Follows docs/design/firm-app/style-guide.md sections 7 and 8. Type is never smaller than
   LawnChart's. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-sans-3-var-wght-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/zilla-slab-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/zilla-slab-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --bg-2: #f3f1ec;          /* warm paper for quiet panels */
  --ink: #16130f;
  --fg: #241f1a;
  --muted: #5c554d;
  --line: #d9d4cb;
  --line-strong: #938c80;
  --band: #26201b;          /* header and footer: bark */
  --band-fg: #f5f1ea;
  --band-muted: #b3aba0;
  --green: #1f4d3f;         /* the primary: spruce */
  --green-hover: #163a2f;
  --green-fg: #ffffff;
  --green-ink: #1f4d3f;     /* links */
  --canopy: #3f7a4f;        /* crowns on the drawings */
  --canopy-2: #6f9a5f;
  --accent: #f2c21b;        /* rope yellow: the primary button, under ink text (11:1) */
  --accent-hover: #f8cf3d;
  --accent-fg: #16130f;
  --amber: #a06f00;         /* the same accent for lines and borders on the page (flagged, won't fit) */
  --amber-fill: #8a6000;    /* the accent as a fill under white text (5.9:1) */
  --amber-ink: #7a5400;     /* the accent as text on white (7.2:1) */
  --pill: #ebe7df;          /* quiet status */
  --pill-fg: #443e36;
  --map-paper: #ffffff;
  --map-road: #e9e5dd;
  --map-line: #857d72;
  --map-house: #ddd7cc;
  --radius: 2px;
  --font-sans: "Source Sans 3", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-head: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  /* Light only: the marketing site looks the same on every device (the header and footer bands stay dark). */
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.5; overflow-x: hidden; min-height: 100%; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
/* On the dark header and footer bands a hovered link stays light (the underline or the button shows the hover). */
.band a:not(.btn):not(.button):hover { color: var(--band-fg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h1, h2 { font-family: var(--font-head); letter-spacing: 0; line-height: 1.06; }
h2 { font-size: clamp(2.1rem, 3.8vw, 2.9rem); max-width: 24ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { max-width: 100%; }
strong { font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--font-mono); font-size: 0.88rem; letter-spacing: 0.02em; }
.meta { font-size: 0.94rem; color: var(--muted); }

/* skip link */
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 10; padding: 0.5rem 0.9rem; background: var(--green); color: var(--green-fg); font-weight: 700; text-decoration: none; transition: top 0.15s ease-out; }
.skip:focus { top: 0.6rem; color: var(--green-fg); }
main:focus { outline: none; }

/* header: a dark band */
header.band { background: var(--band); color: var(--band-fg); }
.site { display: flex; align-items: center; gap: 0.5rem 0.9rem; flex-wrap: wrap; padding-block: 0.6rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; letter-spacing: 0; text-decoration: none; color: var(--band-fg); }
.wordmark img { display: block; width: 32px; height: 32px; }
.site nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 1.2rem; margin-left: auto; }
/* On a phone the nav drops to a second row under the wordmark; never a third. */
@media (max-width: 480px) {
  .site { justify-content: space-between; }
  .wordmark { font-size: 1.6rem; }
  .site nav { flex-basis: 100%; margin-left: 0; gap: 0.2rem 1rem; }
}
.site nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 600; color: var(--band-fg); text-decoration: none; }
.site nav a:hover { text-decoration: underline; }
.site nav a.btn { min-height: 40px; padding: 0 1rem; }
.site nav a.btn:hover { text-decoration: none; }

/* buttons: solid, square */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius); font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); }
.btn.ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* hero: the words, then the day's board across the whole width (the board is wide and short, so it gets the full row) */
.hero { display: grid; gap: 2rem; padding: 2.6rem 0 2.8rem; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 4.6rem); line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.hero .tagline { font-size: clamp(1.2rem, 1.9vw, 1.4rem); font-weight: 700; color: var(--ink); max-width: 34rem; margin-top: 1.1rem; line-height: 1.3; }
.hero .summary { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 36rem; margin-top: 0.8rem; line-height: 1.45; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.hero-terms { margin-top: 1.1rem; font-size: 1.1rem; font-weight: 700; color: var(--ink); max-width: 34rem; line-height: 1.4; }
.hero-note { margin-top: 0.4rem; font-size: 0.98rem; color: var(--muted); max-width: 34rem; line-height: 1.45; }
.hero > * { min-width: 0; }
.hero-figure { margin: 0; width: 100%; }
@media (min-width: 900px) {
  .hero { padding: 3.4rem 0 3.4rem; gap: 2.4rem; }
  .hero-words { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.6rem; align-items: end; }
  .hero-words .hero-aside { padding-bottom: 0.3rem; }
}

/* screens and drawings: each sits in one .shot, a hairline frame around an <img>, a <picture> or an inline svg */
.shot { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--map-paper); overflow: hidden; }
.shot svg, .shot img { display: block; width: 100%; height: auto; }
img.shot { height: auto; }
.shot text { font-family: var(--font-sans); font-weight: 600; fill: var(--ink); }
.shot .lab { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.shot .num { font-family: var(--font-sans); font-weight: 700; font-size: 14px; }

/* product screenshots (public/img/screen-*.webp, see IMAGES.md): a figure with a caption under the frame */
.screen { margin: 1.6rem 0 0; }
.screen figcaption, .hero-figure figcaption, .diagram figcaption { padding: 0.5rem 0 0; font-size: 0.94rem; color: var(--muted); }
.hero-figure.screen { margin: 0; }
.screen.phone { max-width: 320px; margin: 0; justify-self: center; }

/* drawings of what is in development: a figure like a screen, with the status on the drawing and under it; they pan sideways
   on a phone like the wide screens, so the labels stay readable */
.diagram { margin: 1.6rem 0 0; }
.diagram .shot { background: var(--bg-2); }

/* sideways scrollers (the wide screenshots on a phone): focusable regions with a visible edge fade when they overflow */
.scroll-wrap { position: relative; min-width: 0; }
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }
.scroller:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.scroll-wrap::after { content: ""; display: none; position: absolute; top: 0; bottom: 0; right: 0; width: 2.5rem; background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; }
/* Under 760px a wide screen keeps a readable size and pans sideways instead of shrinking to a thumbnail. */
@media (max-width: 760px) {
  .scroll-wrap::after { display: block; }
  .scroller .shot { width: 960px; max-width: none; }
}

/* sections: a heavy rule, a heading, space */
section.block { padding: 2.4rem 0 3rem; border-top: 3px solid var(--ink); }
.block-head { display: grid; gap: 0.7rem; margin-bottom: 1.6rem; }
.block-head p { max-width: 40rem; font-size: 1.1rem; }
@media (min-width: 900px) { .block-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; } .block-head p { padding-bottom: 0.25rem; } }

/* which firm are you: two big blocks, each one link */
.choose-grid { display: grid; gap: 0 2rem; border-top: 1px solid var(--line-strong); }
.choose-item { display: grid; gap: 0.4rem; padding: 1.3rem 0 1.4rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.choose-item .choose-h { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.08; color: var(--ink); }
.choose-item .choose-p { font-size: 1.05rem; line-height: 1.45; max-width: 30rem; }
.choose-item .choose-go { margin-top: 0.3rem; font-weight: 700; color: var(--amber-ink); }
.choose-item .choose-go::after { content: " \2192"; }
.choose-item:hover .choose-h, .choose-item:focus-visible .choose-h { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (min-width: 720px) { .choose-grid { grid-template-columns: 1fr 1fr; } .choose-item { border-bottom: 0; } .choose-item + .choose-item { border-left: 1px solid var(--line); padding-left: 2rem; } }

/* two columns */
.split { display: grid; gap: 1.8rem; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } .split.flip > :first-child { order: 2; } }

/* spec rows: term and description, a hairline between rows */
.spec { margin: 0; border-top: 1px solid var(--line-strong); }
.spec > div { display: grid; gap: 0.15rem 1.2rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--ink); }
.spec dd { margin: 0; line-height: 1.45; }
@media (min-width: 560px) { .spec > div { grid-template-columns: 11rem minmax(0, 1fr); } .spec.wide > div { grid-template-columns: 14rem minmax(0, 1fr); } }

/* status words */
.pill { display: inline-block; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.1em 0.5em; border-radius: var(--radius); background: var(--pill); color: var(--pill-fg); line-height: 1.5; white-space: nowrap; }
.pill.attn { background: transparent; color: var(--amber-ink); border: 1px solid var(--amber); }
/* "In development" next to a term: what is not in the app yet is marked where it is named */
.spec dt .pill { margin-left: 0.4em; vertical-align: 0.1em; }
@media (min-width: 560px) { .spec dt .pill { display: block; width: max-content; margin: 0.3rem 0 0; } }

/* site preview (your own website) */
.browser { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); overflow: hidden; max-width: 34rem; }
.browser figcaption { padding: 0.6rem 0.8rem; border-top: 1px solid var(--line-strong); background: var(--bg-2); font-size: 0.94rem; color: var(--muted); }
.browser .bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--line-strong); background: var(--bg-2); }
.browser .url { flex: 1; font-family: var(--font-mono); font-size: 0.88rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 0.15em 0.7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { display: block; width: 100%; height: auto; }

/* short sections */
.short { max-width: 44rem; }
.short h2 + p { margin-top: 1rem; font-size: 1.1rem; }
.short p + p { margin-top: 0.8rem; }

/* FAQ */
.faq { max-width: 46rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 0 1.1rem; max-width: 40rem; }
.faq .a p + p { margin-top: 0.6rem; }

/* early access */
.access { display: grid; gap: 1.8rem; align-items: start; }
@media (min-width: 900px) { .access { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; } }
.access .side h2 + p { margin-top: 1rem; }
.access .side p { font-size: 1.1rem; max-width: 30rem; }
.access .side p + p { margin-top: 0.8rem; }
.card { width: 100%; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); }
.card .title { font-size: 1.4rem; margin-bottom: 0.2rem; }
.card .intro { margin: 0 0 1.2rem; color: var(--muted); }
form { font-family: var(--font-sans); }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin: 0 0 0.3rem; padding: 0; border: 0; min-width: 0; }
.field label { font-weight: 700; font-size: 1rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field select {
  font: inherit; font-size: 1.05rem; color: var(--ink); width: 100%; padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg);
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out; appearance: none; -webkit-appearance: none;
}
.field .select { position: relative; }
.field .select::after { content: ""; position: absolute; right: 0.95rem; top: 50%; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { padding-right: 2.4rem; cursor: pointer; }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
/* Error slots are reserved so appearing text doesn't shift the layout. */
.field-error, .form-error { margin: 0; min-height: 1.3rem; font-size: 0.94rem; line-height: 1.3rem; color: var(--amber-ink); }
.form-error { min-height: 1.5rem; margin: 0.4rem 0; font-weight: 700; }
.field-error:empty, .form-error:empty { visibility: hidden; }
.button { display: inline-block; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--accent-fg); background: var(--accent); border: 2px solid var(--accent); border-radius: var(--radius); padding: 0.8rem 1.4rem; cursor: pointer; text-decoration: none; transition: background-color 0.15s ease-out; }
.button:hover, .button:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); }
.button:disabled { background: var(--pill); border-color: var(--pill); color: var(--pill-fg); cursor: default; }
.aside { margin: 1rem 0 0; font-size: 0.94rem; color: var(--muted); }
.aside a { font-weight: 600; }
.done-state:focus { outline: none; }
.done-state .title { margin-bottom: 0.5rem; }
.done-state .intro { margin-bottom: 1.2rem; color: var(--fg); }

/* footer: a dark band */
footer.band { background: var(--band); color: var(--band-muted); margin-top: 2rem; padding: 2.2rem 0 3rem; font-size: 0.98rem; }
footer.band .cols { display: grid; gap: 1.6rem; }
footer.band .foot-h { font-size: 0.82rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-fg); margin-bottom: 0.4rem; }
footer.band ul { margin: 0; padding: 0; list-style: none; display: grid; }
footer.band ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--band-fg); }
footer.band ul a:hover { text-decoration: underline; }
footer.band p { max-width: 36rem; }
footer.band p + p { margin-top: 0.6rem; }
footer.band p a { color: var(--band-fg); }
footer.band .built { margin-top: 1.4rem; font-size: 0.94rem; }
@media (min-width: 720px) { footer.band .cols { grid-template-columns: 1.4fr 0.6fr; gap: 2.5rem; } }

/* 404 */
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; padding: clamp(1.25rem, 5vw, 3rem) 16px clamp(2.5rem, 8vw, 5rem); max-width: 36rem; margin: 0 auto; }
.page .wordmark { color: var(--ink); }
.page .card .title { font-size: 2rem; margin-bottom: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .skip, .button { transition: none; }
}
