/* DeckMark — drafting-sheet visual system (v3). Self-hosted fonts only. */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F2F1EC;      /* drafting paper */
  --grid: #E4E2DA;       /* faint grid lines (decorative) */
  --sheet: #FFFFFF;
  --ink: #1B1F24;
  --muted: #50565D;
  --rule: #C9C6BD;
  --paint: #F2C230;      /* garage line paint: "your row" only */
  --teal-deep: #0B6456;  /* DM teal, deep: bands, header, footer (white text 7:1) */
  --teal-btn: #0E7263;   /* buttons (white text 5.8:1) */
  --dm: #1BBFA6;         /* DM Automations teal: lines and marks */
  --dm-dark: #148F7D;    /* lines on paper (3:1+) */
  --mint: #D9F2EC;       /* soft text on deep teal (6:1) */
  --signal: var(--teal-deep);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.55;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
img, svg { max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--dm-dark); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Header band */
.topbar { background: var(--teal-deep); color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: #fff; text-decoration: none; }
.wordmark:hover { color: #fff; }
.wordmark__mark { display: inline-flex; gap: 3px; }
.wordmark__stripe { width: 10px; height: 26px; background: var(--paint); transform: skewX(-12deg); }
.wordmark__stripe--dm { width: 4px; background: var(--dm); }
.topbar__join { color: #fff; font-weight: 600; font-size: 1rem; text-decoration-color: var(--dm); }
.topbar__join:hover { color: var(--mint); }
.topbar :focus-visible, .band :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* Shared type */
.kicker { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 6px; }
.kicker--band { color: var(--mint); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.9rem, 8vw, 5rem); line-height: 0.95; letter-spacing: -0.5px; margin: 0 0 18px; }
.section h2, .band h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.05; margin: 0 0 22px; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 4px; background: var(--teal-btn); color: #fff; font-family: var(--body); font-size: 1.0625rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--teal-deep); color: #fff; }
.button:disabled { opacity: 0.6; cursor: default; }
.textlink { font-weight: 600; }

/* Hero */
.hero { display: grid; gap: 40px; padding: 40px 0 56px; }
.hero__text { max-width: 36rem; }
.hero__lede { font-size: 1.25rem; margin: 0 0 28px; max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__fine { margin: 14px 0 0; color: var(--muted); font-size: 1rem; }

/* Drafting sheet */
.sheet { margin: 0; background: var(--sheet); border: 2px solid var(--ink); padding: 10px; width: 100%; max-width: 440px; justify-self: start; }
.sheet__drawing { border: 1px solid var(--ink); background: #EDEBE4; }
.sheet__drawing svg { display: block; width: 100%; height: auto; }
.sheet__drawing text { font-family: var(--body); }
.titleblock { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.95rem; }
.titleblock td { border: 1px solid var(--ink); padding: 6px 8px; font-weight: 600; vertical-align: top; }
.tb__label { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.titleblock .tb__row { background: var(--paint); }
.titleblock .tb__row .tb__label { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 2px 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend__row, .legend__core { width: 12px; height: 12px; display: inline-block; }
.legend__row { background: var(--paint); border: 1.5px solid var(--ink); }
.legend__core { background: var(--ink); }
.legend__walk { width: 18px; height: 0; border-top: 3px dotted var(--dm-dark); display: inline-block; }
.sheet__caption { margin: 8px 2px 2px; font-size: 0.875rem; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }

/* Detail callouts (a real sequence) */
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: step; }
.callouts li { counter-increment: step; position: relative; padding-left: 66px; max-width: 40rem; }
.callouts li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border: 2px solid var(--teal-deep); border-radius: 50%; background: var(--sheet); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: 1.15rem; color: var(--teal-deep); }
.callouts li::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: -28px; border-left: 2px dashed var(--dm-dark); }
.callouts li:last-child::after { display: none; }
.callouts h3 { margin: 8px 0 4px; font-size: 1.25rem; font-weight: 600; }
.callouts p { margin: 0; }

/* Pricing schedule */
.table-scroll { overflow-x: auto; }
.schedule { border-collapse: collapse; width: 100%; max-width: 48rem; background: var(--sheet); border: 2px solid var(--ink); }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--rule); }
.schedule thead th { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--teal-deep); border-color: var(--teal-deep); }
.schedule tbody th { font-weight: 600; }
.schedule td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.schedule__note { margin: 14px 0 0; color: var(--muted); max-width: 48rem; }

/* Teal band */
.band { background: var(--teal-deep); color: #fff; padding: 64px 0; }
.band h2 { color: #fff; }
.band a { color: #fff; text-decoration-color: var(--dm); }
.band a:hover { color: var(--mint); }
.band__grid { display: grid; gap: 40px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 42rem; }
.promises li { padding-left: 18px; border-left: 3px solid var(--dm); }
.band__local p { margin: 0 0 12px; color: var(--mint); }
.band__local p a { font-weight: 600; }

/* Signup */
.signup { background: var(--sheet); border: 2px solid var(--ink); padding: 28px; max-width: 34rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="email"], .field select { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid #8E8C85; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.field .check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 400; margin-bottom: 0; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--teal-deep); }
.signup__notice { font-size: 1rem; margin: 4px 0 14px; }
.signup__notice a { font-weight: 600; }
.status { margin: 16px 0 0; padding: 12px 14px; background: #E3F3EF; border-left: 4px solid var(--dm-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* General notes (FAQ) */
.notes { counter-reset: note; }
.notes details { counter-increment: note; border-bottom: 1px solid var(--rule); padding: 16px 0; max-width: 44rem; }
.notes summary { cursor: pointer; font-weight: 600; font-size: 1.125rem; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::before { content: counter(note) "."; font-family: var(--mono); font-weight: 500; color: var(--teal-deep); min-width: 1.6em; }
.notes summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--teal-deep); }
.notes details[open] summary::after { content: "\2212"; }
.notes details p { margin: 10px 0 0 calc(1.6em + 12px); }

/* Footer band */
.footer { background: var(--teal-deep); color: var(--mint); padding: 28px 0 36px; font-size: 1rem; }
.footer p { margin: 0 0 6px; }
.footer a { color: #fff; text-decoration-color: var(--dm); }
.footer a:hover { color: var(--mint); }
.dm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dm); margin-right: 8px; vertical-align: 1px; }

/* Confirm page */
.confirm { padding: 40px 0 72px; }
.confirm__card { background: var(--sheet); border: 2px solid var(--ink); padding: 32px 28px; max-width: 34rem; }
.confirm__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; margin: 0 0 14px; }
.confirm__title:focus { outline: none; }
.confirm__card p { margin: 0 0 22px; }
.confirm__card .status { margin-top: 18px; }

/* Legal pages */
.legal { padding: 28px 0 56px; max-width: 44rem; }
.legal h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; margin: 12px 0 6px; }
.legal__date { color: var(--muted); margin: 0 0 20px; font-size: 1rem; font-family: var(--mono); font-size: 0.85rem; }
.legal__lede { font-size: 1.2rem; margin: 0 0 8px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.75rem; margin: 36px 0 10px; }
.legal ul { padding-left: 1.2rem; margin: 0; }
.legal li { margin: 0 0 10px; }
.legal p { margin: 0 0 12px; }
.glance { background: var(--sheet); border: 2px solid var(--ink); border-left: 6px solid var(--teal-deep); padding: 16px 20px; margin: 8px 0 12px; }
.legal .glance__title { margin: 0 0 8px; font-size: 1.4rem; }
.table-wrap { overflow-x: auto; margin: 8px 0 14px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 1rem; min-width: 34rem; background: var(--sheet); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--rule); }
.legal th { font-weight: 600; background: #E8F3F0; }
.legal__caps { font-weight: 600; letter-spacing: 0.2px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 56px; }
  .sheet { justify-self: end; }
  .callouts { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .callouts li { padding-left: 0; padding-top: 62px; }
  .callouts li::after { left: 54px; right: -26px; top: 22px; bottom: auto; border-left: 0; border-top: 2px dashed var(--dm-dark); }
  .band__grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}

/* v3 adjustments: tighter band, local section, stacked schedule on phones */
.band { padding: 48px 0; }
.promises { gap: 12px; }
.promises li { font-size: 1.05rem; }
.local h2 { margin-bottom: 12px; }
.local__text { max-width: 40rem; margin: 0; padding-left: 16px; border-left: 4px solid var(--dm-dark); }
@media (max-width: 640px) {
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; width: 100%; }
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .schedule tr { border-bottom: 2px solid var(--ink); }
  .schedule tr:last-child { border-bottom: 0; }
  .schedule tbody th { background: var(--teal-deep); color: #fff; border: 0; padding: 10px 14px; }
  .schedule td { border: 0; border-top: 1px solid var(--rule); padding: 10px 14px; white-space: normal !important; }
  .schedule td::before { content: attr(data-label); display: block; font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}
@media (max-width: 640px) {
  .schedule tbody th { background: #E3F3EF; color: var(--ink); border-left: 6px solid var(--teal-deep); }
}
.footer { padding: 22px 0 28px; }
