/* Isovist design tokens for the website (SPEC-006).
   Source of truth: 03_Design/approved/design-system/Isovist Design System/tokens/ (D-017).
   This replaces the round 2b canvas's own tokens file: same colours, spacing and radii;
   the type scale is the design system's fixed one (the canvas's larger fluid headings were the
   drift flagged in round 2 NOTES). Light only: the canvas has no dark website yet.
   Fonts: IBM Plex Sans 400/600 + IBM Plex Mono 500 (SIL OFL), self-hosted WOFF2, latin subset. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;

  /* Colour (monochrome; ink is the accent) */
  --wt-ink: #111111; --wt-paper: #FFFFFF;
  --wt-accent: #111111; --wt-accent-press: #3A3A3F; --wt-accent-wash: #F4F4F5; --wt-on-accent: #FFFFFF;
  --wt-exit: #B3261E; /* reserved: EXIT + escape route on sheets and plans */
  --wt-n-900: #111111; --wt-n-800: #2A2A2E; --wt-n-700: #3A3A3F; --wt-n-600: #55555B; --wt-n-500: #76767C;
  --wt-n-400: #A1A1A6; --wt-n-300: #C8C8CC; --wt-n-200: #E4E4E7; --wt-n-100: #F4F4F5; --wt-n-0: #FFFFFF;
  --wt-bg: var(--wt-paper); --wt-surface: var(--wt-paper); --wt-wash: var(--wt-n-100);
  --wt-text: var(--wt-ink); --wt-text-2: var(--wt-n-700); --wt-text-3: var(--wt-n-600); --wt-rule: var(--wt-n-200);
  --wt-success: #1A7F37; --wt-warning: #9A6700; --wt-error: #B3261E; --wt-info: #3A3A3F;
  --host-accent: var(--wt-ink); /* hosted tour pages: a manager's colour replaces this */
  --wt-focus: 0 0 0 2px var(--wt-paper), 0 0 0 4px var(--wt-ink);

  /* Type (design system scale, D-017) */
  --wt-font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wt-font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --wt-display: 600 56px/60px var(--wt-font-sans);  --wt-display-tracking: -0.02em;
  --wt-h1: 600 40px/46px var(--wt-font-sans);       --wt-h1-tracking: -0.015em;
  --wt-h2: 600 28px/34px var(--wt-font-sans);       --wt-h2-tracking: -0.01em;
  --wt-h3: 600 20px/28px var(--wt-font-sans);
  --wt-body-l: 400 18px/28px var(--wt-font-sans);
  --wt-body: 400 16px/24px var(--wt-font-sans);
  --wt-small: 400 14px/20px var(--wt-font-sans);
  --wt-label: 500 12px/16px var(--wt-font-mono);    --wt-label-tracking: 0.08em; /* uppercase */

  /* Spacing (4 px base), radii, rules */
  --wt-space-1: 4px; --wt-space-2: 8px; --wt-space-3: 12px; --wt-space-4: 16px; --wt-space-5: 24px;
  --wt-space-6: 32px; --wt-space-7: 48px; --wt-space-8: 64px; --wt-space-9: 96px;
  --wt-radius-0: 0; --wt-radius-control: 6px; --wt-radius-card: 12px;
  --wt-rule-heavy: 2.5px; --wt-rule-mid: 1.5px; --wt-rule-hair: 1px; --wt-rule-table: 0.5px;
}

/* Phones: one step down for the three largest sizes (Decisions I made, build pass 7). */
@media (max-width: 599px) {
  :root {
    --wt-display: 600 40px/44px var(--wt-font-sans);
    --wt-h1: 600 32px/38px var(--wt-font-sans);
    --wt-h2: 600 24px/30px var(--wt-font-sans);
  }
}

/* isovist.app pre-launch waitlist page (SPEC-007), built from website v2's components (design round 4).
   v2's full stylesheet is in the git tag website-v2.
   Tokens: isovist-tokens.css. One DOM per page serves both widths; the canvas's two layouts are the
   breakpoints below (header 720 px, hero 1000 px). */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  --header-h: 73px;
  scroll-padding-top: calc(var(--header-h) + 16px); /* anchors land below the sticky header */
}
@media (max-width: 719px) { html { --header-h: 61px; } }
body { margin: 0; background: var(--wt-bg); color: var(--wt-text); font: var(--wt-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
a { color: var(--wt-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wt-text-2); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--wt-ink); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--wt-n-200); }
[hidden] { display: none !important; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 30; background: var(--wt-ink); color: var(--wt-on-accent); padding: 10px 14px; border-radius: var(--wt-radius-control); font-weight: 600; text-decoration: none; }
.skip:focus-visible { top: 12px; color: var(--wt-on-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nojs-note { display: none; }

/* Layout */
.wrap { --gutter: clamp(20px, 5vw, 64px); width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, calc(50px + 3.6vw), 96px); }
.section--wash { background: var(--wt-wash); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.grid { display: grid; gap: var(--gap, 16px); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.measure { max-width: 880px; }

/* Type */
.display { font: var(--wt-display); letter-spacing: var(--wt-display-tracking); text-wrap: balance; }
.h1 { font: var(--wt-h1); letter-spacing: var(--wt-h1-tracking); text-wrap: balance; }
.h2 { font: var(--wt-h2); letter-spacing: var(--wt-h2-tracking); text-wrap: balance; }
.h3 { font: var(--wt-h3); }
.lead { font: var(--wt-body-l); color: var(--wt-text-2); text-wrap: pretty; }
.muted { color: var(--wt-text-2); }
.small { font: var(--wt-small); }
.label, .kicker { font: var(--wt-label); letter-spacing: var(--wt-label-tracking); text-transform: uppercase; color: var(--wt-text-3); }
.kicker { letter-spacing: 0.1em; }
.mono { font-family: var(--wt-font-mono); font-weight: 500; }
.strong { font-weight: 600; }

/* Controls: Join the waitlist is the only filled one; everything else is paper, a border or a link. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--wt-radius-control); background: var(--wt-accent); color: var(--wt-on-accent);
  font: 600 15px/20px var(--wt-font-sans); text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: var(--wt-accent-press); color: var(--wt-on-accent); }
.btn--outline { background: var(--wt-paper); color: var(--wt-text); box-shadow: inset 0 0 0 var(--wt-rule-mid) var(--wt-ink); }
.btn--outline:hover { background: var(--wt-n-200); color: var(--wt-text); }
.link44 { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; }
.link44--bare { font-weight: 600; text-decoration: none; }
.link44--bare span:not([aria-hidden]) { text-decoration: underline; text-underline-offset: 3px; }

/* Header: one row at every width, the logo and Join the waitlist (SPEC-007). */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--wt-paper); border-bottom: 1px solid var(--wt-rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--wt-text); text-decoration: none; }
.brand svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 719px) { .site-header .wrap { min-height: 60px; } .header-cta { padding-inline: 14px; } }

/* Home hero: copy, the pinned sheet, then the list. Two columns from 1000 px. */
.hero { padding-block: 28px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "figure" "list"; gap: 28px; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font: var(--wt-display); letter-spacing: var(--wt-display-tracking); text-wrap: balance; }
.hero .lead { max-width: 30em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--wt-rule); max-width: 30em; }
.sheet-figure { grid-area: figure; display: flex; flex-direction: column; gap: 8px; }
.sheet-list { grid-area: list; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
@media (min-width: 1000px) {
  .hero { padding-block: 64px 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "copy figure" "list figure"; gap: 36px 64px; align-items: start; }
  .hero-copy { gap: 20px; padding-top: 4px; }
  .sheet-figure { gap: 10px; }
}
@media (min-width: 600px) and (max-width: 999px) { .sheet-figure { max-width: 560px; } }

.pinned { position: relative; border: 1px solid var(--wt-rule); background: var(--wt-paper); }
.pinned img { width: 100%; height: auto; }
.pin, .num {
  display: block; border-radius: 50%; background: var(--wt-ink); color: var(--wt-on-accent);
  font: 600 12px/22px var(--wt-font-sans); text-align: center;
}
.pin { position: absolute; left: var(--x); top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; box-shadow: 0 0 0 2px var(--wt-paper); }
.num { flex: none; width: 22px; height: 22px; }
@media (min-width: 600px) { .pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 13px; line-height: 26px; } }
@media (max-width: 599px) { .pin--6 { --x: 93% !important; } }

/* Movement (SPEC-007 revision 2). Only transform and opacity move; nothing moves after it first appears; with no
   script everything is visible; prefers-reduced-motion turns all of it off (the block at the end). */
/* The pins appear in order, 1 to 6, in CSS only. `backwards` holds the first frame during the delay and lets go
   at the end, so the hover link below can scale them. */
.pin { animation: pin-in 320ms cubic-bezier(.2, .7, .3, 1) calc(250ms + var(--i, 0) * 110ms) backwards; }
@keyframes pin-in { from { opacity: 0; transform: scale(.4); } }
/* The desktop hover link: an item enlarges its pin and dims the rest; a pin enlarges its item's number.
   Visual only: the pins stay aria-hidden and the list stays a plain list. */
@media (hover: hover) and (pointer: fine) {
  .pin, .num { transition: transform 150ms ease-out, opacity 150ms ease-out; }
  .hero:has(.items li:hover) .pin { opacity: .35; }
  .hero:has(.items li:nth-child(1):hover) .pin:nth-of-type(1),
  .hero:has(.items li:nth-child(2):hover) .pin:nth-of-type(2),
  .hero:has(.items li:nth-child(3):hover) .pin:nth-of-type(3),
  .hero:has(.items li:nth-child(4):hover) .pin:nth-of-type(4),
  .hero:has(.items li:nth-child(5):hover) .pin:nth-of-type(5),
  .hero:has(.items li:nth-child(6):hover) .pin:nth-of-type(6) { opacity: 1; transform: scale(1.3); }
  .hero:has(.pin:nth-of-type(1):hover) .items li:nth-child(1) .num,
  .hero:has(.pin:nth-of-type(2):hover) .items li:nth-child(2) .num,
  .hero:has(.pin:nth-of-type(3):hover) .items li:nth-child(3) .num,
  .hero:has(.pin:nth-of-type(4):hover) .items li:nth-child(4) .num,
  .hero:has(.pin:nth-of-type(5):hover) .items li:nth-child(5) .num,
  .hero:has(.pin:nth-of-type(6):hover) .items li:nth-child(6) .num { transform: scale(1.3); }
}

.items { border-bottom: 1px solid var(--wt-rule); }
.items li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--wt-rule); }
.qa > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 600;
}
.qa > summary::after { content: "+" / ""; flex: none; font-family: var(--wt-font-mono); font-weight: 500; }
.qa[open] > summary::after { content: "−" / ""; }

/* What you get */
.lines { border-bottom: 1px solid var(--wt-n-300); }
.lines li { padding: 14px 0; border-top: 1px solid var(--wt-n-300); }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.download .link44 { font-weight: 600; }

/* The sample pack's 7 sheets: a row that swipes with snap (with or without JavaScript); motion.js adds the
   counter and the Previous/Next buttons. No autoplay, no loop. The row runs to the edges of .wrap, so the first
   sheet lines up with the text and the next one peeks in. */
.carousel { display: flex; flex-direction: column; gap: 12px; }
.carousel-bar { display: flex; align-items: center; gap: 8px; }
.carousel-count { margin-right: auto; font-size: 13px; line-height: 20px; color: var(--wt-text-2); font-variant-numeric: tabular-nums; }
.btn--icon { min-width: 44px; padding: 0; font: 500 18px/1 var(--wt-font-mono); }
.btn--icon[aria-disabled="true"] { opacity: .4; cursor: default; background: var(--wt-paper); }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72vw; gap: 16px;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
.carousel[data-ready] .carousel-track { scrollbar-width: none; }
.carousel[data-ready] .carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -2px; }
.slide { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.slide img { width: 100%; height: auto; aspect-ratio: 612 / 792; background: var(--wt-paper); box-shadow: 0 0 0 1px var(--wt-rule); }
.caption { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption .mono { color: var(--wt-text-3); margin-right: 4px; }
@media (min-width: 720px) { .carousel-track { grid-auto-columns: 300px; gap: 20px; } }

/* Sections below the first screen rise in once as they come into view (motion.js adds .rise, then .in). */
.rise { opacity: 0; transform: translateY(16px); }
.rise.in { opacity: 1; transform: none; transition: opacity 500ms ease-out, transform 500ms cubic-bezier(.2, .7, .3, 1); }

/* Questions */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 0 48px; border-bottom: 1px solid var(--wt-n-300); }
.qa { border-top: 1px solid var(--wt-n-300); }
.qa > summary { min-height: 56px; padding-block: 12px; font-size: 17px; line-height: 24px; }
.qa > p { padding-bottom: 18px; color: var(--wt-text-2); }
.qa[open] > p { animation: qa-in 220ms ease-out; } /* opening only: a native <details> closes at once */
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* Page heads */
.page-head { padding-block: clamp(40px, calc(30px + 2.6vw), 64px) 0; }
.page-head .wrap > div { display: flex; flex-direction: column; gap: 14px; max-width: 880px; }

/* Privacy */
.groups { display: flex; flex-direction: column; max-width: 1000px; }
.group { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 20px 0; border-top: 1px solid var(--wt-rule); }
.group:last-child { border-bottom: 1px solid var(--wt-rule); }
.group h2 { flex: 0 0 220px; font: var(--wt-h3); }
.group ul { flex: 1 1 360px; list-style: disc; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; color: var(--wt-n-800); }

/* Forms */
.form-section { border-top: 1px solid var(--wt-rule); }
.form-section .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px 64px; align-items: start; }
.form-intro { display: flex; flex-direction: column; gap: 10px; }
.form-intro .mono { font-size: 13px; line-height: 20px; color: var(--wt-text-2); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; line-height: 20px; font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--wt-radius-control);
  background: var(--wt-paper); box-shadow: inset 0 0 0 1px var(--wt-n-500); color: var(--wt-text); font: 400 16px/24px var(--wt-font-sans);
}
select.input {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.input:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--wt-paper), 0 0 0 4px var(--wt-ink), inset 0 0 0 1px var(--wt-ink); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--wt-ink); }
.input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 2px var(--wt-paper), 0 0 0 4px var(--wt-ink), inset 0 0 0 2px var(--wt-ink); }
.err, .fail { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; color: var(--wt-ink); }
.err { font-size: 14px; line-height: 20px; }
.err::before, .fail::before {
  content: "!" / ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--wt-ink); color: var(--wt-paper); font-size: 12px; line-height: 18px; text-align: center;
}
.fail::before { margin-top: 3px; }
.err:empty, .hint:empty, .fail:empty { display: none; }
.hint { font-size: 14px; line-height: 20px; color: var(--wt-text-2); }
.fail { grid-column: 1 / -1; }
.form .submit { grid-column: 1 / -1; min-height: 48px; font-size: 16px; line-height: 22px; }
.form .submit[disabled] { background: var(--wt-text-3); cursor: progress; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sent { border-radius: var(--wt-radius-card); box-shadow: inset 0 0 0 var(--wt-rule-mid) var(--wt-ink); padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.sent::before { content: "✓" / ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--wt-ink); color: var(--wt-paper); font-size: 15px; line-height: 28px; text-align: center; }
.sent div { display: flex; flex-direction: column; gap: 4px; }
.sent .title { font: var(--wt-h3); }

/* 404 */
.notfound .wrap { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-height: 300px; }

/* Footer */
.site-footer { background: var(--wt-ink); color: var(--wt-n-200); padding: 36px 0 40px; font-size: 14px; line-height: 20px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 18px; }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.site-footer .top a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--wt-n-200); }
.site-footer a:hover { color: var(--wt-paper); }
.site-footer :focus-visible { outline-color: var(--wt-paper); }
.site-footer .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--wt-n-400); font-size: 13px; line-height: 18px; }
.site-footer .fine a { color: var(--wt-n-400); }

/* Reduced motion: every movement above is off. The pins are just there, nothing rises, answers appear without
   moving, the hover link changes without animating and the carousel jumps instead of gliding. */
@media (prefers-reduced-motion: reduce) {
  .pin, .qa[open] > p { animation: none; }
  .pin, .num, .rise, .rise.in { transition: none; }
  .rise { opacity: 1; transform: none; }
  .carousel-track { scroll-behavior: auto; }
}
