/* Master stock take landing page. A count sheet, not a brochure: paper, ink, a highlighter, red pencil.
   Wording lives in ../_src/locales/, the page in ../_src/page.html; build with scripts/build-master-stock-take.py. */

:root {
  --paper: #f5f2e9;
  --paper-2: #ebe7d9;
  --sheet: #fffdf8;
  --ink: #14251c;
  --ink-2: #47554c;
  --rule: #d5cfbd;
  --green: #019b5f;
  --green-deep: #0a6a46;
  --lime: #d9f36b;
  --red: #c23b2a;
  --amber: #9a6a00;
  --amber-bg: #fbe9b8;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --stack: 5px 5px 0 #d8d2c0, 10px 10px 0 #e6e1d2;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, pre, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.1; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--sheet); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #e6fb8a; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sheet); }
.btn-small { padding: 11px 18px; font-size: 14.5px; }
.cta-short { display: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgb(245 242 233 / 90%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
}
.top.is-stuck { border-bottom-color: var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo img { height: 48px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.top-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.langs { display: inline-flex; gap: 2px; font-family: var(--mono); font-size: 12.5px; }
.langs a { padding: 5px 7px; border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.langs a:hover { color: var(--ink); background: var(--paper-2); }
.langs a[aria-current='page'] { color: var(--ink); background: var(--lime); }

/* Hero: the first question, on ruled paper */
.hero {
  padding: 56px 0 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, rgb(20 37 28 / 5.5%) 43px 44px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .tally { height: 17px; stroke-width: 3.2; }
.eyebrow-light { color: var(--lime); }

h1 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 800; font-size: clamp(3.1rem, 7.6vw, 6.4rem);
  line-height: .94; letter-spacing: -.035em; text-wrap: balance;
}
mark {
  color: inherit; padding: 0 .1em; margin: 0 -.04em;
  background: linear-gradient(101deg, transparent 1.5%, var(--lime) 4%, var(--lime) 95%, transparent 98.5%);
  border-radius: .18em .5em .22em .42em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { margin-top: 26px; max-width: 34em; font-size: 1.16rem; line-height: 1.5; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }

/* The count board */
.board-fig { min-width: 0; }
.board {
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: var(--stack);
  overflow: hidden;
}
.board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1.5px solid var(--ink);
}
.board-where { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.board-where strong { font-family: var(--display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.board-where span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }

.pill {
  flex: none; padding: 5px 11px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.pill.is-differs, .pill.is-recount { background: var(--amber-bg); border-color: var(--amber); color: #5d4000; }
.pill.is-done { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

.board-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board-table th, .board-table td { padding: 12px 10px; border-bottom: 1px dashed var(--rule); text-align: right; }
.board-table th:first-child { padding-left: 18px; text-align: left; }
.board-table td:last-child, .board-table thead th:last-child { padding-right: 18px; }
.board-table thead th {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1.5px solid var(--ink); padding-block: 9px;
}
.board-table tbody th { font-weight: 500; }
.board-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; min-width: 3.6em; }
.board-table td[data-f] { font-weight: 700; }
.board-table tbody tr { transition: background-color .35s ease; }
.board-table tr.is-flag { background: #fdf3d3; }
.board-table tr.is-flag td[data-a], .board-table tr.is-flag td[data-b] { color: var(--red); }
.board-table tr.is-ok td[data-f] { color: var(--green-deep); }
.board-table tr[data-clash] td[data-b] { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.board-table tr.is-flag[data-clash] td[data-b] { text-decoration: none; }
.board-table tr td.is-empty, .board-table tr[data-clash] td[data-b].is-empty { color: var(--rule); text-decoration: none; }
.board-table td.is-pop { animation: pop .42s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop {
  0% { transform: scale(.55); background: var(--lime); }
  60% { background: var(--lime); }
  100% { transform: scale(1); background: transparent; }
}
.chip {
  display: block; width: fit-content; margin-top: 4px; padding: 2px 7px; border-radius: 5px;
  background: var(--lime); font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.4;
}
.chip.is-out { background: var(--amber-bg); color: #5d4000; }
.chip[hidden] { display: none; }

.board-feed {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 18px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); background: var(--paper);
}
.feed-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.board.is-live .feed-dot { animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.board-cap { margin-top: 26px; padding-left: 4px; }
.answer {
  font-family: var(--display); font-size: 1.28rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
  transition: opacity .5s ease;
}
.answer::before { content: '\21B3\00A0'; color: var(--green); }
.answer.is-waiting { opacity: .22; }
.board-tools { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.replay {
  padding: 0; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px;
}
.replay::before { content: '\21BB\00A0'; }

/* Four numbers, read in code */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  margin-top: 64px; padding: 26px 0 30px; border-top: 1.5px solid var(--ink);
}
.facts dt { font-family: var(--mono); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.facts dd { margin-top: 8px; max-width: 16em; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }

/* The other questions */
.story { padding: 84px 0 40px; background: var(--paper); border-top: 1.5px solid var(--ink); }
.story-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: .98; letter-spacing: -.03em;
}
.q {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center;
  padding: 64px 0; border-top: 1px dashed #b9b29d;
}
.story-title + .q { margin-top: 56px; }
.tally { height: 32px; width: auto; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.q h3 {
  margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
.q-copy p { margin-top: 18px; max-width: 31em; color: var(--ink-2); }

.screen {
  min-width: 0; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 12px;
  overflow: hidden; font-size: 15px;
}
.screen-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
}
.screen-note { padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); background: var(--paper); }

.sites li {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px dashed var(--rule);
}
.sites li:last-child { border-bottom: 0; }
.s-name { font-weight: 600; }
.s-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.stage {
  padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.st-retained { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.st-pending { background: var(--lime); }
.st-progress { background: var(--amber-bg); border-color: var(--amber); color: #5d4000; }
.st-sent { color: var(--ink-2); border-color: #a9a391; }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode { padding: 18px 16px 20px; }
.mode + .mode { border-left: 1px dashed var(--rule); }
.mode-name { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.mode-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-top: 14px; font-weight: 600; }
.mode-line .mono { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.mode-counts { display: flex; gap: 18px; margin-top: 10px; color: var(--ink-2); }
.mode-counts b { margin-left: 4px; font-weight: 500; color: var(--ink); }
.flag {
  display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 6px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
}
.flag-amber { background: var(--amber-bg); color: #5d4000; }
.flag-red { background: #f9ddd7; color: #8c2415; }

.table-scroll { overflow-x: auto; }
.cmp { width: 100%; min-width: 430px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 12px 10px; border-bottom: 1px dashed var(--rule); text-align: right; white-space: nowrap; }
.cmp th:first-child { padding-left: 16px; text-align: left; }
.cmp td:last-child, .cmp thead th:last-child { padding-right: 16px; }
.cmp thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.cmp tbody th { font-weight: 500; }
.cmp td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .is-short td:nth-last-child(-n + 2) { color: var(--red); font-weight: 700; }
.cmp .is-over td:nth-last-child(-n + 2) { color: var(--amber); font-weight: 700; }

.recount-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px dashed var(--rule); font-size: 14px; color: var(--ink-2); }
.recount-ctl b { padding: 3px 12px; border: 1.5px solid var(--ink); border-radius: 7px; font-weight: 500; color: var(--ink); }
.recount-rule { padding: 14px 16px 6px; font-weight: 600; }
.ticks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; padding: 10px 16px; border-bottom: 1px dashed var(--rule); }
.res { padding: 2px 8px; border-radius: 5px; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.res-ok { background: #dcefe3; color: var(--green-deep); }
.res-chg { background: var(--amber-bg); color: #5d4000; }
.tick { position: relative; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--lime); }
.tick::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.neg { color: var(--red); font-weight: 700; }
.pos { color: var(--amber); font-weight: 700; }
.recount-out { padding: 12px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); background: var(--paper); }
.recount-back { padding: 12px 16px 14px; font-weight: 600; color: var(--green-deep); }

.screen-report .screen-bar { flex-wrap: wrap; row-gap: 10px; }
.screen-report .screen-bar .mono { min-width: 0; overflow-wrap: anywhere; }
.stamp {
  padding: 3px 9px; border: 2px solid var(--red); border-radius: 5px; color: var(--red);
  font-weight: 500; letter-spacing: .08em; transform: rotate(-3deg); white-space: nowrap;
}
.report-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px dashed var(--rule); }
.report-lines b { font-weight: 500; }
.report-lines .is-short b { color: var(--red); font-weight: 700; }
.sheets { display: flex; flex-wrap: wrap; gap: 0 2px; padding: 0 10px; background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.sheets li {
  padding: 7px 12px 9px; border: 1.5px solid transparent; border-top: 0; border-radius: 0 0 8px 8px;
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.sheets .is-on { margin-top: -1.5px; background: var(--sheet); border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* The four steps */
.how { padding: 84px 0 88px; background: var(--ink); color: var(--paper); }
.how h2, .demo h2, .fit h2, .need h2, .access h2, .faq h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance;
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-top: 48px; }
.step-n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--lime); border-radius: 50%;
  font-size: 15px; color: var(--lime);
}
.steps h3 { margin-top: 18px; font-family: var(--display); font-size: 1.32rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.steps p { margin-top: 10px; font-size: 15.5px; color: #c4cec3; }

/* The demo */
.demo { padding: 88px 0; background: var(--paper-2); }
.demo-copy { max-width: 720px; }
.demo-copy p { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.demo-frame { margin-top: 40px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.demo-frame .screen-bar { background: var(--paper); text-transform: none; letter-spacing: 0; }
.demo-frame .screen-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-poster { display: grid; justify-items: center; gap: 18px; padding: 64px 24px 60px; text-align: center; }
.demo-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.demo-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1.5px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.demo-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.demo-steps .is-on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.demo-steps .is-on b { background: var(--green-deep); color: #fff; }
.demo-tab { font-size: 14px; color: var(--ink-2); text-underline-offset: 4px; }
.demo-frame iframe { display: block; width: 100%; height: min(800px, 86vh); border: 0; background: #fff; }

/* Who it is for */
.fit { padding: 88px 0; }
.fit-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; margin-top: 44px; align-items: start; }
.fit-yes, .fit-no { padding: 28px 30px 30px; border: 1.5px solid var(--ink); border-radius: 12px; }
.fit-yes { background: var(--sheet); }
.fit-no { border-style: dashed; border-color: #a9a391; }
.fit h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.fit ul { margin-top: 16px; }
.fit li { position: relative; padding: 11px 0 11px 34px; border-top: 1px dashed var(--rule); }
.fit-yes li { font-weight: 500; }
.fit-yes li::before { content: ''; position: absolute; left: 6px; top: 13px; width: 7px; height: 14px; border: solid var(--green); border-width: 0 2.6px 2.6px 0; transform: rotate(42deg); }
.fit-no li { color: var(--ink-2); }
.fit-no li::before { content: ''; position: absolute; left: 3px; top: 23px; width: 14px; height: 2.4px; border-radius: 2px; background: #a9a391; }

/* What you need */
.need { padding: 0 0 92px; }
.need-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.need h3 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
.need p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.need a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }

/* Early access and the request */
.access { padding: 92px 0; background: var(--ink); color: var(--paper); }
.access-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.access h2 { margin-top: 18px; }
.access-copy p { margin-top: 20px; max-width: 30em; color: #c4cec3; }
.access-copy .access-alt { font-size: 15px; }
.access-alt a { color: var(--lime); text-underline-offset: 4px; }

.req {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px;
  padding: 26px; background: var(--paper); color: var(--ink); border-radius: 14px;
}
.req-wide, .req-note, .req-send, .req-status, .req-privacy { grid-column: 1 / -1; }
.req label, .req-note-title { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.req input, .req select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--sheet); font-size: 16px;
}
.req input[type='number'] { font-family: var(--mono); }
.req-note { padding: 14px 16px 16px; background: var(--sheet); border: 1.5px dashed #a9a391; border-radius: 9px; }
.req-note pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.req-send { display: flex; flex-wrap: wrap; gap: 10px; }
.req-status { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--green-deep); }
.req-privacy { margin-top: -8px; font-size: 13.5px; color: var(--ink-2); }

/* Questions and answers */
.faq { padding: 92px 0 96px; }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-list { border-bottom: 1.5px solid var(--ink); }
.faq details { border-top: 1.5px solid var(--ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-family: var(--mono); font-size: 1.3rem; font-weight: 500; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 2px 22px; max-width: 40em; color: var(--ink-2); }
.faq details a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* Footer */
.foot { padding: 30px 0 38px; border-top: 1.5px solid var(--ink); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.foot .logo img { height: 42px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-copy { display: flex; align-items: center; gap: 18px; color: var(--ink-2); }

/* Narrower screens */
@media (max-width: 1020px) {
  .hero-grid, .q, .access-grid, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 44px; }
  .q { gap: 32px; padding: 52px 0; }
  .access-grid, .faq-in { gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .board { box-shadow: 4px 4px 0 #d8d2c0, 8px 8px 0 #e6e1d2; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, 100% - 36px); }
  .top-in { min-height: 62px; }
  .logo img { height: 40px; }
  .top-nav { gap: 10px; }
  .top-link { display: none; }
  .btn-small { padding: 10px 14px; font-size: 13.5px; white-space: nowrap; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .top .langs a { padding: 5px; }
  .ticks li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .res { grid-column: 2 / -1; justify-self: start; }
  .hero { padding-top: 36px; }
  .lead { font-size: 1.06rem; }
  .actions .btn { flex: 1 1 100%; }
  .board-table { font-size: 13.5px; }
  .board-table th, .board-table td { padding: 11px 6px; }
  .board-table th:first-child { padding-left: 12px; }
  .board-table td:last-child, .board-table thead th:last-child { padding-right: 12px; }
  .board-table td { min-width: 0; }
  .board-head, .board-feed { padding-inline: 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-top: 48px; }
  .story { padding-top: 64px; }
  .sites li { grid-template-columns: minmax(0, 1fr) auto; }
  .s-meta { grid-column: 1 / -1; grid-row: 2; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode + .mode { border-left: 0; border-top: 1px dashed var(--rule); }
  .steps, .need-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how, .demo, .fit, .access { padding-block: 64px; }
  .need { padding-bottom: 64px; }
  .faq { padding-block: 64px 72px; }
  .stamp { font-size: 10.5px; letter-spacing: .05em; }
  .demo-poster { padding: 40px 16px; }
  .demo-steps li:not(.is-on) { display: none; }
  .req { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .req-send .btn { flex: 1 1 100%; }
  .fit-yes, .fit-no { padding: 22px 20px 24px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 350px) {
  .top .langs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
