/*
 * The NanoTV landing page (UI redesign, Task 12; direction doc "Showroom", "Landing page").
 *
 * A 1960s television showroom: a cream page, walnut and charcoal blocks, speaker-grille dividers and
 * the Giant Classic drawn as the hero with its screen warming up. Every colour, size and duration
 * comes from assets/tokens.css (the dashboard's own file, copied by build.mjs), so the page follows
 * the system's light or dark setting exactly as the dashboard does without JS.
 * Mobile first: the base rules are the phone; then 768 px and 1100 px. 600 px only stacks the table
 * and lays the form in a row. Motion lives only inside `prefers-reduced-motion: no-preference`.
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-soft-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: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/atkinson-hyperlegible-next-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 {
  --gutter: var(--space-5);
  /* walnut veneer, quietly (the dashboard's sidebar grain) */
  --grain: repeating-linear-gradient(94deg,
    color-mix(in srgb, var(--mask) 7%, transparent) 0 2px,
    transparent 2px 11px,
    color-mix(in srgb, var(--cabinet-ink) 4%, transparent) 11px 12px,
    transparent 12px 27px);
  --ink-soft: color-mix(in srgb, var(--cabinet-ink) 88%, var(--mask));
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font: var(--text-base)/var(--leading-body) var(--font-text);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-wood :focus-visible, .on-mask :focus-visible { outline-color: var(--focus-on-cabinet); }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--space-3);
  top: -200px;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-btn);
  background: var(--mask);
  color: var(--cabinet-ink);
  font-weight: 700;
}
.skip:focus { top: var(--space-3); }

.wrap {
  width: min(var(--col-media), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

section[id], footer [id] { scroll-margin-top: var(--space-4); }

/* ---- type ---- */
.display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 650;
  line-height: var(--leading-head);
  text-wrap: balance;
}
p { text-wrap: pretty; }                        /* no one-word last lines */
.faq summary > span:first-child { text-wrap: balance; }

.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--glow-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.kicker::before {
  content: '';
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
}
.kicker--glow { color: var(--glow); }
.kicker--glow::before, .kicker:has(.icon)::before { display: none; }
.on-wood .kicker { color: var(--cabinet-ink); }   /* amber on walnut is under 4.5:1 */

.section-head { max-width: 42rem; margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.lead { margin-top: var(--space-3); font-size: var(--text-lg); color: var(--text-2); }
.on-wood .lead, .on-mask .lead { color: var(--cabinet-ink); }

/* ---- icons ---- */
.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--tile {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--mask);
  color: var(--glow);
  box-shadow: var(--shadow-1);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font: 700 var(--text-base)/1.2 var(--font-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-accent {
  background: var(--glow);
  color: var(--on-glow);
  box-shadow: var(--shadow-1), inset 0 -2px 0 color-mix(in srgb, var(--mask) 22%, transparent);
}
.btn-accent:hover { background: color-mix(in srgb, var(--glow) 86%, var(--cabinet-ink)); }
.btn-primary {
  background: var(--mask);
  border-color: var(--line-strong);
  color: var(--cabinet-ink);
}
.btn-primary:hover { background: color-mix(in srgb, var(--mask) 86%, var(--cabinet-ink)); }
.btn-quiet {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-quiet:hover { background: var(--surface); }
.btn-head { min-height: var(--target); padding: 0 var(--space-4); font-size: var(--text-sm); }

/* ---- the header ---- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  padding-block: var(--space-3);
}
.head-actions { display: flex; align-items: center; gap: var(--space-2) var(--space-4); margin-left: auto; }
/* the way into the dashboard: "Sign in", or "Open your dashboard" when this browser is signed in (main.js) */
.head-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding-inline: var(--space-1);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.head-link:hover { color: var(--glow-ink); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  color: var(--text);
  font: 650 var(--text-xl)/1 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}
.logo--wood { color: var(--cabinet-ink); }
.logo-lamp {
  width: 10px; height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 2px var(--line), 0 0 12px var(--glow);
}
.logo--wood .logo-lamp { box-shadow: 0 0 0 2px color-mix(in srgb, var(--mask) 45%, transparent), 0 0 12px var(--glow); }

/* ---- the hero ---- */
.hero { position: relative; padding: var(--space-6) 0 var(--space-9); overflow: clip; }

.hero-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-areas: "copy" "tv" "photo";
}
.hero-copy { grid-area: copy; }
.hero-render { grid-area: tv; }
.snapshot { grid-area: photo; }

.hero-title {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight);
}
/* a stroke of phosphor under the last words */
.mark {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--glow) 45%, transparent) 62% 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-lead {
  max-width: 34ch;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.hero-actions .btn { flex: 1 1 auto; }

.hero-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-2); }

/* ---- the renders (brief U): the Giants' CAD renders, in rounded frames; the cut-out stands free ---- */
.render { display: block; }
.render img { display: block; width: 100%; height: auto; }
.render--hero img, .render--family img, .render--screen img, .render--studio img {
  border-radius: var(--radius-card);
  background: var(--surface-2);
  box-shadow: var(--shadow-3);
}
.hero-render, .model-render, .mochi-render, .specs-render { margin: 0; min-width: 0; }
.hero-render figcaption, .model-render figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: center;
}
.model-render figcaption { font-weight: 700; }

/* the set on the desk, lit warm */
.hero-render {
  justify-self: center;
  width: min(100%, 640px);
}

/* the hero's photo, a snapshot pinned beside the set (only there once there is a picture: build.mjs) */
.snapshot {
  justify-self: center;
  width: min(88%, 340px);
  padding: var(--space-3) var(--space-3) var(--space-6);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  rotate: -2deg;
}

/* ---- photos: build.mjs fills a `photo:` marker once its picture is in assets/photos/; until then the
   marker draws nothing, so no slot ever shows empty. The picture is cropped to the slot's shape. ---- */
.photo {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo[data-aspect="4/3"] { aspect-ratio: 4 / 3; }
.photo[data-aspect="3/2"] { aspect-ratio: 3 / 2; }
.photo[data-aspect="1/1"] { aspect-ratio: 1 / 1; }
.snapshot .photo { border-radius: 2px; box-shadow: none; }
/* with no picture in a place, its neighbours take the room (browsers without :has() just leave it empty) */
.hero-grid:not(:has(.photo)) { grid-template-areas: "copy" "tv"; }

/* ---- the speaker grille: a walnut band with its slots cut through ---- */
.grille {
  position: relative;
  height: 44px;
  background-color: var(--cabinet);
  background-image: var(--grain);
  border-block: 1px solid color-mix(in srgb, var(--mask) 50%, var(--cabinet));
}
.grille::before {
  content: '';
  position: absolute;
  inset: 9px 0;
  background: var(--mask);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='24'%3E%3Crect x='4' width='6' height='24' rx='3'/%3E%3C/svg%3E") center / 14px 24px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='24'%3E%3Crect x='4' width='6' height='24' rx='3'/%3E%3C/svg%3E") center / 14px 24px repeat-x;
}

/* ---- walnut and charcoal blocks ---- */
.on-wood {
  background-color: var(--cabinet);
  background-image: var(--grain);
  color: var(--cabinet-ink);
}
.on-mask {
  background: var(--mask);
  color: var(--cabinet-ink);
  color-scheme: dark;
}

/* ---- meet the family ---- */
.family { padding-bottom: var(--space-10); }
.family > .wrap { padding-top: var(--space-9); }

.models { list-style: none; display: grid; gap: var(--space-5); }

.model {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
}

.model-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-5);
  min-height: 220px;
  padding: var(--space-6) var(--space-4) var(--space-3);
  border-radius: 12px;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, color-mix(in srgb, var(--glow) 24%, var(--surface-2)), var(--surface-2));
}
.model-fig { width: min(60%, 170px); }
.model--giants .model-fig { width: min(46%, 190px); }
.model-fig--small { width: min(46%, 140px); }
.model-fig .cab { display: block; width: 100%; height: auto; }
.model-fig figcaption {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
}

.chip {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--mask);
  color: var(--cabinet-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}
.model h3 { font-size: var(--text-xl); }
.model-text p:not(.chip) { margin-top: var(--space-2); color: var(--text-2); }

/* ---- what it does ---- */
.features { padding: var(--space-10) 0; }
.features-grid { display: grid; gap: var(--space-6); }

/* Mochi's card is a screen: a charcoal bezel round a warm tube */
.mochi-card {
  padding: 12px;
  border-radius: var(--radius-sheet);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--mask) 80%, var(--cabinet-ink)), color-mix(in srgb, var(--mask) 90%, var(--cabinet-ink)) 40%, var(--mask));
  color: var(--cabinet-ink);
  box-shadow: var(--shadow-2), inset 0 1px 0 color-mix(in srgb, var(--cabinet-ink) 16%, transparent);
}
.mochi-tube {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  padding: var(--space-7) var(--space-6);
  border-radius: 34px / 28px;
  background: radial-gradient(ellipse 80% 75% at 50% 40%, color-mix(in srgb, var(--glow) 16%, var(--mask)), var(--mask));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cabinet-ink) 7%, transparent), inset 0 3px 10px color-mix(in srgb, var(--mask) 80%, transparent);
}
.mochi-tube::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cabinet-ink) 7%, transparent) 0 18%, transparent 38%);
}
.mochi-card h3 { max-width: 18ch; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.mochi-card p:not(.kicker) { max-width: 46ch; margin-top: var(--space-4); color: var(--ink-soft); }

.feature-list { list-style: none; display: grid; gap: var(--space-7); margin-top: var(--space-4); }
.feature { display: grid; gap: var(--space-3); align-content: start; }
.feature h3 { font-size: var(--text-xl); }
.feature p { color: var(--text-2); }

/* ---- how it's made ---- */
.made { padding-bottom: var(--space-10); }
.made-grid { display: grid; gap: var(--space-8); padding-top: var(--space-9); }
.made .section-head h2 { max-width: 16ch; }
.steps { list-style: none; display: grid; gap: var(--space-6); }
.step { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-4); }
.step-no {
  color: var(--glow);
  font: 600 var(--text-4xl)/.9 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-shadow: 0 0 18px color-mix(in srgb, var(--glow) 45%, transparent);
}
.step h3 { font-size: var(--text-xl); }
.step p { margin-top: var(--space-1); color: var(--ink-soft); }
.made-photos { display: grid; gap: var(--space-4); }

/* ---- the spec sheet: stacked on phones, a table from 600 px ---- */
.specs { padding: var(--space-10) 0 var(--space-9); }
.spec-plate {
  overflow: hidden;
  border-top: 6px solid var(--cab-brass);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spec-table tr { display: block; padding: var(--space-4); border-bottom: 1px solid var(--line); }
.spec-table tbody tr:last-child { border-bottom: 0; }
.spec-table th[scope="row"] {
  display: block;
  margin-bottom: var(--space-2);
  font: 650 var(--text-lg)/var(--leading-head) var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-align: left;
}
.spec-table td { display: block; padding: var(--space-1) 0 var(--space-2); }
.spec-table td::before {
  content: attr(data-label);
  display: block;
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- questions ---- */
.faq { padding: var(--space-9) 0 var(--space-10); }
.faq-grid { display: grid; }
.faq-list { max-width: var(--col-form); border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-3) 0;
  font: 650 var(--text-lg)/1.3 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.knob {
  position: relative;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--mask);
  box-shadow: 0 0 0 2px var(--cab-brass);
}
.knob::before, .knob::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--cabinet-ink);
}
.knob::after { width: 2px; height: 12px; margin: -6px 0 0 -1px; }
.faq details[open] .knob::after { opacity: 0; }
.faq-a { padding: 0 0 var(--space-5); max-width: 62ch; color: var(--text-2); }
.faq-a p + p { margin-top: var(--space-3); }

/* ---- the waitlist ---- */
.waitlist { display: grid; gap: var(--space-6); padding: var(--space-9) 0 var(--space-8); }
.waitlist h2 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); }
.waitlist-form label { display: block; margin-bottom: var(--space-2); font-weight: 700; }
.waitlist-row { display: grid; gap: var(--space-3); }
.waitlist-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-4);
  border: 2px solid var(--mask);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-lg);
}
.waitlist-form .btn { min-height: 52px; }
.waitlist-status:not(:empty) {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-btn);
  background: color-mix(in srgb, var(--mask) 40%, var(--cabinet));
  font-weight: 700;
}
.fine { font-size: var(--text-sm); }
/* who keeps the list, and how to leave it */
.list-notice { max-width: 46ch; }
/* the form's trap for bots (routes/waitlist.js): never shown, and a name no autofill knows */
.hp { display: none; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-5) 0 var(--space-7);
  border-top: 1px solid color-mix(in srgb, var(--cabinet-ink) 30%, transparent);
  font-size: var(--text-sm);
}

/* In Walnut the charcoal block sits on a dark page: give it its edge */
@media (prefers-color-scheme: dark) {
  .on-mask { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
}

/* ---- the spec sheet's studio render: above the table, beside it from 1100 px ---- */
.specs-grid { display: grid; gap: var(--space-6); }
.specs-render { justify-self: center; width: min(100%, 560px); }

/* ---- the waitlist's set: the cut-out stands beside the heading; on phones it steps aside for the form ---- */
.waitlist-set { display: none; }
.render--cutout img { filter: drop-shadow(0 12px 14px color-mix(in srgb, var(--mask) 55%, transparent)); }

/* ---- 600 px: the spec table becomes a table, the form a row ---- */
@media (min-width: 600px) {
  .spec-table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .spec-table tr { display: table-row; padding: 0; }
  .spec-table th, .spec-table th[scope="row"], .spec-table td {
    display: table-cell;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }
  .spec-table tbody tr:last-child > * { border-bottom: 0; }
  .spec-table th[scope="row"] { margin: 0; width: 10rem; font-size: var(--text-base); }
  .spec-table thead th {
    background: var(--mask);
    color: var(--cabinet-ink);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: .04em;
  }
  .spec-table td::before { content: none; }
  .spec-table tbody tr:nth-child(even) { background: var(--surface-2); }

  .waitlist-row { grid-template-columns: 1fr auto; }

  .waitlist-copy { display: flex; align-items: flex-end; gap: var(--space-5); }
  .waitlist-set { display: block; flex: none; width: 140px; }
}

/* ---- 768 px ---- */
@media (min-width: 768px) {
  :root { --gutter: var(--space-7); }

  .hero { padding-top: var(--space-7); }
  .hero-title { font-size: var(--text-4xl); }
  .hero-actions .btn { flex: none; }
  .hero-render { width: min(100%, 640px); }
  .snapshot { width: min(60%, 340px); }

  .section-head h2 { font-size: var(--text-3xl); }

  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model--giants {
    grid-column: 1 / -1;
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas: "stage text" "stage photo";
    align-items: start;
  }
  .model--giants .model-render { grid-area: stage; align-self: center; }
  .model:not(.model--giants) .model-stage { height: 280px; }
  .model--giants .model-text { grid-area: text; padding-top: var(--space-3); }
  .model--giants .photo { grid-area: photo; }
  .model--giants:not(:has(.photo)) { grid-template-areas: "stage text"; align-items: center; }

  .features-grid { grid-template-columns: 7fr 5fr; align-items: stretch; }
  .features-grid .photo { aspect-ratio: auto; min-height: 100%; }
  .features-grid:not(:has(.photo, .render)) .mochi-card { grid-column: 1 / -1; }
  /* the screen close-up fills its column beside Mochi's card, cropped to the card's height */
  .mochi-render, .mochi-render .render { height: 100%; }
  .mochi-render img { height: 100%; min-height: 280px; object-fit: cover; }
  .feature-list { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }

  .made-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .waitlist-form { max-width: 34rem; }
}

/* ---- 1100 px ---- */
@media (min-width: 1100px) {
  :root { --gutter: var(--space-8); }

  .hero { padding: var(--space-8) 0 var(--space-10); }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "copy tv" "photo tv";
    column-gap: var(--space-9);
    row-gap: var(--space-8);
    align-items: center;
  }
  .hero-title { font-size: var(--text-5xl); }
  .hero-lead { font-size: var(--text-xl); }
  .hero-render { width: 100%; }
  .snapshot { justify-self: start; align-self: start; width: 300px; margin-left: var(--space-2); }
  .hero-grid:not(:has(.photo)) { grid-template-areas: "copy tv"; }

  .section-head h2 { font-size: var(--text-4xl); }
  .waitlist h2 { font-size: var(--text-5xl); }

  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
  .model { padding: var(--space-5); }
  .model--giants .model-fig { width: min(45%, 250px); }
  .model h3 { font-size: var(--text-2xl); }

  .mochi-card h3 { font-size: var(--text-3xl); }
  .mochi-tube { padding: var(--space-8) var(--space-8); }

  .made-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: var(--space-9); align-items: start; }
  .made-photos { grid-template-columns: 1fr; }
  /* no workshop pictures yet: the three steps side by side */
  .made-grid:not(:has(.photo)) { grid-template-columns: minmax(0, 1fr); }
  .made-grid:not(:has(.photo)) .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-7); }

  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--space-9); align-items: start; }
  .faq .section-head { margin-bottom: 0; }

  .waitlist { grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--space-8); }
  .waitlist-set { width: 190px; }
  /* the studio pair is wide (16:10): it runs across above the table rather than squeezing beside it */
  .specs-render { width: min(100%, 960px); }
  .waitlist-form { max-width: none; }
  .waitlist .fine { grid-column: 2; }
}

/* ---- the waitlist's own small pages (nanotv-backend/src/services/waitlistPages.js): the header, one card
   saying what happened (and, on a link's first page, one button), the walnut footer ---- */
.notice-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.notice { flex: 1; padding-block: var(--space-6) var(--space-9); }
.notice-card {
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--space-7) var(--space-6);
  border-top: 6px solid var(--cab-brass);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.notice-title { margin-bottom: var(--space-4); font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.notice-card p { color: var(--text-2); }
.notice-card p + p { margin-top: var(--space-3); }
.notice-card form { margin-top: var(--space-6); }
.notice-card .btn { width: 100%; }
.notice-back { margin-top: var(--space-6); font-weight: 700; }
.notice-page .footer-base { border-top: 0; }
@media (min-width: 600px) {
  .notice { padding-top: var(--space-9); }
  .notice-card .btn { width: auto; }
}

/* ---- motion: only for people who have not asked for less ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .btn, .logo, .faq summary { transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .btn:active { transform: translateY(1px); }
  .knob { transition: rotate var(--dur-2) var(--ease); }
  .knob::after { transition: opacity var(--dur-2) var(--ease); }
  .faq details[open] .knob { rotate: 90deg; }

  /* the hero render comes up gently, as a set warming up */
  .hero-render .render { animation: fade-in .9s ease-out .1s both; }
  @keyframes fade-in { from { opacity: 0; } }
}
