/* ==========================================================================
   SerialProof — site.css
   Component and layout styles. Reads only var(--...) tokens from tokens.css —
   no colour, font or spacing literal is defined here.
   Breakpoint: 640px (mobile <= 640px, desktop > 640px), matching the design.
   ========================================================================== */

/* ---- base reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: 48px; }
h2 { font-size: 32px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* Header/footer/home container width (neuf.watch package) — its own max
   width, distinct from --content-max used by the article/doc-shell column. */
.wrap { width: min(calc(100% - 112px), var(--nav-max)); margin-inline: auto; }
@media (max-width: 1199px) and (min-width: 810px) {
  .wrap { width: min(calc(100% - 64px), var(--nav-max)); }
}
@media (max-width: 809px) {
  .wrap { width: calc(100% - 40px); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header — sticky, blurred nav bar (neuf.watch package). Identical on every
   page: see includes/header.html + build.js buildHeader(). The secondary
   "brand band" below it (wordmark + lead line, doc pages only) predates the
   package and keeps its own legacy styling further down.
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 254, 248, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 2px solid var(--nav-ink);
}
@supports not (backdrop-filter: blur(1px)) {
  .header { background: rgba(255, 254, 248, 0.96); }
}

.header__inner { height: 64px; position: relative; }

.brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font: 400 28px/35px var(--font-display);
  color: var(--nav-text);
  letter-spacing: -0.28px;
}

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  white-space: nowrap;
  font: 500 15px/28px var(--font-mono);
  text-transform: uppercase;
  color: var(--nav-text);
}
.nav__link { text-decoration: none; color: inherit; opacity: 0.72; }
.nav__link:hover { opacity: 1; }
.nav__link.is-active { opacity: 1; color: var(--nav-ink); }

.languages {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  font: 500 15px/28px var(--font-mono);
  color: var(--nav-ink);
}
.language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 42px;
  border-radius: 8px;
  opacity: 0.55;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.language:hover { opacity: 0.8; }
.language.is-active { background: var(--paper-sunk); color: var(--nav-ink); opacity: 1; }

.menu {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.menu span { display: block; width: 22px; height: 1px; background: var(--nav-ink); }

/* ---- mobile hamburger panel ---- */
.mobile-menu {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-raised);
}
.mobile-menu[data-open] { display: flex; }

.mobile-menu__item {
  display: block;
  padding: 14px 20px 14px 18px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  color: var(--faint);
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
}
.mobile-menu__item--active {
  color: var(--ink);
  background: var(--paper-sunk);
  border-left-color: var(--gold);
}

.mobile-menu__section { margin: 0; }
.mobile-menu__section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.mobile-menu__section > summary::-webkit-details-marker { display: none; }
.mobile-menu__section > summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--faint);
}
.mobile-menu__section[open] > summary::after { content: '\2013'; }
.mobile-menu__section[open] > summary:not(.mobile-menu__item--active) {
  color: var(--ink);
  background: var(--paper-sunk);
}

.mobile-menu__eyebrow {
  display: block;
  padding: 14px 20px 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--rule);
}

.mobile-menu__group {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  border-left: 1px solid var(--rule);
}

.mobile-menu__languages {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  font-family: var(--font-mono);
}
.mobile-menu__languages .language {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--faint);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.mobile-menu__languages .language.is-active { color: var(--ink); background: var(--paper-sunk); border-color: transparent; opacity: 1; }

.mobile-menu__sub {
  display: block;
  padding: 12px 20px 12px 40px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  color: var(--faint);
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
}
.mobile-menu__sub--active {
  color: var(--ink);
  background: var(--paper-sunk);
  border-left-color: var(--gold);
}
.mobile-menu__sub--last { border-bottom: none; }
.mobile-menu__sub--baton { color: var(--gold); font-style: italic; }

@media (max-width: 809px) {
  .brand { font-size: 26px; }
  .nav, .languages { display: none; }
  .menu { display: flex; }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
  display: flex;
  gap: 8px;
  padding: 12px 48px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__current { color: var(--ink); }

@media (max-width: 640px) {
  .breadcrumb { padding: 12px 20px; }
}

/* ==========================================================================
   Documentation shell: sidebar + article (registry / for-brands / legal)
   ========================================================================== */

.doc-shell {
  display: flex;
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 48px 64px;
}

.doc-sidebar { width: 260px; flex-shrink: 0; }

.doc-sidebar__eyebrow {
  padding: 0 16px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.doc-sidebar__nav { display: flex; flex-direction: column; }

.doc-sidebar__item {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  color: var(--faint);
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
}
.doc-sidebar__item--active {
  color: var(--ink);
  font-weight: 600;
  background: var(--gold-wash);
  border-left-color: var(--gold);
}
.doc-sidebar__item--last { border-bottom: none; }

.doc-sidebar__baton-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.doc-sidebar__baton {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

.doc-main { flex: 1; min-width: 0; }

@media (max-width: 640px) {
  .doc-shell { padding: 24px 20px 48px; gap: 0; }
  .doc-sidebar { display: none; }
}

/* ==========================================================================
   Article typography (inside .doc-main)
   ========================================================================== */

.article h1 { margin: 0 0 16px; color: var(--ink); }
.article h2 { margin: 0 0 12px; color: var(--ink); }
.article h3 { margin: 28px 0 12px; font-size: 22px; color: var(--ink); }
.article p {
  margin: 0 0 20px;
  line-height: 1.6;
  color: var(--ink-body);
}
.article p:last-of-type { margin-bottom: 28px; }
.article .lede { font-weight: 500; color: var(--ink); }

.article .glossary { margin: 0; }
.article .glossary dt { margin: 28px 0 4px; font-weight: 600; color: var(--ink); }
.article .glossary dfn { font-style: normal; }
.article .glossary dt:first-of-type { margin-top: 0; }
.article .glossary dd { margin: 0 0 20px; line-height: 1.6; color: var(--ink-body); }
.article .glossary dd:last-of-type { margin-bottom: 0; }

.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: disc;
}
.article-list a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.article-list a:hover { text-decoration: underline; }

.contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
}
.contact-line a { color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }

/* ---- callout box (e.g. "Additional capabilities") ---- */
.callout {
  margin: 0 0 28px;
  padding: 20px 22px;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.callout__eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.callout__title { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.callout__body { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-body); }

/* ---- info box (Imprint registered-office block) ---- */
.info-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 420px;
  padding: 22px 24px;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-body);
}
.info-box strong { color: var(--ink); }

/* ---- disclosure box ("Specific measures") — native <details>, zero JS ---- */
.disclosure {
  margin: 0 0 28px;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.disclosure summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before { content: '▸'; font-family: var(--font-mono); color: var(--gold); }
.disclosure[open] summary::before { content: '▾'; }
.disclosure__body {
  margin: 0;
  padding: 0 18px 18px 40px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-body);
}
.disclosure__body li { margin-bottom: 4px; }

/* ---- doc figure ---- */
.doc-figure { margin: 40px 0 44px; display: flex; flex-direction: column; gap: 14px; }
.doc-figure__frame {
  padding: 6px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.doc-figure__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.doc-figure__placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.doc-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--faint);
}

/* ---- Q&A accordion — native <details>, zero JS ---- */
.qa { margin: 44px 0 0; display: flex; flex-direction: column; gap: 20px; }
.qa + .qa { margin-top: 56px; }
.qa__heading { margin: 0; font-size: 22px; color: var(--ink); }
.qa__list { border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; }
.qa__row { border-bottom: 1px solid var(--rule); }
.qa__row:last-child { border-bottom: none; }
.qa__row[open] { background: var(--paper-sunk); }
.qa__row summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.qa__row summary::-webkit-details-marker { display: none; }
.qa__row summary::before { content: '▸'; font-family: var(--font-mono); color: var(--gold); flex-shrink: 0; }
.qa__row[open] summary::before { content: '▾'; }
.qa__answer { margin: 0; padding: 0 18px 18px 44px; font-size: 14px; line-height: 1.7; color: var(--ink-body); }
.qa__link {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
}
.qa__link:hover { text-decoration: underline; }

/* ==========================================================================
   Footer — identical on every page: see includes/footer.html + build.js
   buildFooter().
   ========================================================================== */

.footer { border-top: 1px solid var(--nav-line); background: var(--paper); margin-top: auto; }
.footer__inner { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer__left { display: flex; align-items: center; gap: 28px; }
.footer__brand { font: 400 22px/1.2 var(--font-display); color: var(--nav-text); letter-spacing: -0.22px; text-decoration: none; }
.footer__links { display: flex; align-items: center; gap: 24px; font: 400 16px/1.4 var(--font-sans); color: var(--nav-text); }
.footer__links a { text-decoration: none; color: inherit; }
.footer__links a:hover { color: var(--nav-ink); }
.footer__operator { margin-left: auto; font: 400 16px/1.4 var(--font-sans); color: var(--nav-text); text-align: right; text-decoration: none; }
.footer__operator:hover { color: var(--nav-ink); }

@media (max-width: 809px) {
  .footer__inner { height: auto; min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-block: 24px; }
  .footer__left { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__links { gap: 18px; }
  .footer__operator { margin-left: 0; text-align: left; }
}

/* ==========================================================================
   Home page (neuf.watch package) — hero, feature cards, brand section, CTA.
   Scoped under main.home-page; sizing/layout only — h1/h2/h3 and body copy
   use the site-wide fonts (Instrument Serif / IBM Plex Sans) set globally.
   ========================================================================== */

/* <picture> defaults to an inline box, so as a flex child it collapses to
   its image's natural size instead of the percentage height every image
   rule below expects (max-height/height: 100%) — cropping tall source
   photos against their card's overflow:hidden. Restoring a block box with
   an explicit height re-establishes that percentage chain. */
.home-page picture { display: block; height: 100%; }

/* Some card visuals (e.g. .watch, which gets a fixed flex-basis width
   unrelated to the image's own proportions) end up with a box whose aspect
   ratio doesn't match the source photo's. Without this, the browser's
   default object-fit: fill stretches the image to that box instead of
   preserving its proportions. */
.home-page img { object-fit: contain; }

.home-page h1, .home-page h2, .home-page h3 {
  color: var(--nav-ink);
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.home-page h1 { font-size: 100px; line-height: 1.1; }
.home-page h2 { font-size: 64px; line-height: 1; }
.home-page .card-heading { font-size: 48px; line-height: 1.05; }
.home-page p { color: var(--nav-text); margin: 0; }
.home-page .subhead { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; color: var(--nav-text); }
.home-page .small { font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: 0.01em; }
.home-page a { color: inherit; }

.home-page .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 7px;
  background: var(--nav-text);
  color: var(--paper);
  font: 500 13px/1.2 var(--font-sans);
  text-decoration: none;
  transition: background var(--duration-base) var(--ease), transform var(--duration-base) var(--ease);
}
.home-page .button-link:hover { background: var(--nav-ink); }
.home-page .button-link:active { transform: translateY(1px); }

.home-page .section { padding: 100px 56px; }
.home-page .stack { display: flex; flex-direction: column; gap: 32px; }
.home-page .stack--large { gap: 50px; }

.home-page .hero {
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  padding: 48px 56px 0;
  display: flex;
  align-items: center;
}
.home-page .hero__inner { position: relative; display: flex; align-items: center; gap: 48px; }
.home-page .hero__copy { position: relative; z-index: 2; flex: 1; max-width: 620px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 28px; }
.home-page .hero__copy p { max-width: 610px; }
.home-page .hero__image { position: absolute; z-index: 1; right: -56px; top: -170px; bottom: -93px; aspect-ratio: 1.13909; mask-image: linear-gradient(#000 74%, transparent 100%); }
.home-page .hero__image img { height: 100%; width: auto; object-fit: contain; }

.home-page .verify { width: 100%; max-width: 420px; display: flex; align-items: stretch; gap: 10px; height: 52px; }
.home-page .verify input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--nav-line);
  border-radius: 7px;
  background: var(--paper-sunk);
  padding: 0 16px;
  outline: none;
  color: var(--nav-ink);
  font: 400 14px/1.2 var(--font-mono);
}
.home-page .verify input::placeholder { color: var(--faint); opacity: 1; font-family: var(--font-mono); }
.home-page .verify input:focus { border-color: var(--faint-soft); }
.home-page .verify button {
  border: 0;
  border-radius: 7px;
  background: var(--nav-ink);
  color: var(--paper);
  padding: 0 22px;
  font: 500 15px/1.2 var(--font-mono);
  cursor: pointer;
}

.home-page .parallax { transform: translate3d(0, var(--parallax-y, 0), 0); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .home-page .parallax { transform: none !important; }
}

.home-page .features { padding-top: 42px; padding-bottom: 42px; }
.home-page .lead-row { display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.home-page .lead-row--reverse { flex-direction: row-reverse; }
.home-page .lead-image { flex: 0 0 42%; display: flex; justify-content: center; }
.home-page .lead-image img { max-height: 650px; width: auto; }
.home-page .lead-copy { flex: 1; max-width: 560px; display: flex; flex-direction: column; gap: 24px; }

.home-page .card { background: var(--paper-raised); border-radius: 24px; overflow: hidden; }
.home-page .card--horizontal { height: 460px; display: flex; align-items: flex-start; justify-content: center; }
.home-page .card__copy { flex: 1; max-width: 560px; height: 100%; padding: 40px 40px 40px 80px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.home-page .card__visual { height: 100%; display: flex; align-items: center; justify-content: center; }
.home-page .card-hand { padding: 56px 100px 0 40px; }
.home-page .card-hand img { max-height: 100%; width: auto; }
.home-page .two-cards { display: flex; gap: 32px; }
.home-page .card--vertical { height: 620px; flex: 1; display: flex; flex-direction: column; align-items: center; }
.home-page .card--bottom { justify-content: flex-end; padding: 0 40px 56px; gap: 36px; }
.home-page .card--top { justify-content: flex-start; padding: 56px 40px 0; gap: 36px; }
.home-page .compact { height: auto; padding: 0; max-width: 530px; }
.home-page .phone-record img, .home-page .wide img { width: 100%; max-width: 346px; aspect-ratio: 486 / 506; height: auto; }
/* Both crops end mid-phone on one side (no real edge there) — bleed that
   cut edge to the card boundary instead of centering it with dead space:
   .wide's cut is its bottom, .phone-record's cut is its top. */
.home-page .card--top .wide { flex: 1; align-items: flex-end; }
.home-page .card--bottom .phone-record { flex: 1; align-items: flex-start; }
.home-page .registry-card { height: 520px; }
.home-page .registry-card .watch { padding: 56px 100px 0 40px; flex: 0 0 47%; }
.home-page .registry-card .watch img { max-height: 88%; width: auto; }
.home-page .registry-card .card__copy { padding-left: 80px; }

.home-page .apps { padding: 100px 56px; }
.home-page .record-screen img { max-height: 520px; }
.home-page .brands-card { height: 480px; }
.home-page .brands-card .card-phone { flex: 0 0 47%; padding: 35px 30px 0; }
.home-page .brands-card .card-phone img { max-height: 100%; width: auto; }
.home-page .brands-card h2 { font-size: 64px; }

.home-page .cta { background: var(--paper); }
.home-page .cta-card { height: 560px; display: flex; align-items: flex-end; justify-content: space-between; }
.home-page .cta-copy { flex: 1; max-width: 660px; height: 100%; padding: 40px 40px 40px 80px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.home-page .cta-copy .verify { margin-top: 8px; }
.home-page .cta-image { width: 373px; aspect-ratio: 877 / 1317; display: flex; align-items: flex-end; }
.home-page .cta-image img { width: 100%; height: auto; object-fit: contain; }

@media (max-width: 1199px) and (min-width: 810px) {
  .home-page .hero { height: auto; min-height: 760px; padding: 32px 32px 0; }
  .home-page .hero__inner { gap: 32px; }
  .home-page .hero__copy { max-width: 400px; }
  .home-page .hero__image { top: auto; bottom: -1px; right: -44px; width: 612px; height: auto; }
  .home-page .section, .home-page .apps, .home-page .features { padding: 80px 32px; }
  .home-page .lead-copy { max-width: 380px; }
  .home-page .card--horizontal { height: 484px; }
  .home-page .card__copy { padding: 32px 24px 32px 48px; }
  .home-page .card-hand, .home-page .registry-card .watch { padding: 48px 48px 0 24px; }
  .home-page .card--bottom { padding: 0 24px 48px; }
  .home-page .card--top { padding: 48px 24px 0; }
  .home-page .registry-card { height: 550px; }
  .home-page .brands-card { height: 559px; }
  .home-page .cta { padding: 80px 32px; }
  .home-page .cta-card { height: auto; min-height: 560px; }
  .home-page .cta-copy { padding: 40px 24px 40px 48px; }
  .home-page .cta-image { width: 280px; }
}

@media (max-width: 809px) {
  .home-page .hero { height: auto; min-height: 0; padding: 40px 20px 0; align-items: flex-start; }
  .home-page .hero__inner { flex-direction: column; align-items: center; gap: 32px; }
  .home-page .hero__copy { width: 100%; max-width: 100%; padding: 0; align-items: center; text-align: center; }
  .home-page .hero__copy p { text-align: center; }
  .home-page .verify { max-width: 100%; }
  .home-page .hero__image { position: relative; inset: auto; width: 100%; max-width: 100%; mask-image: linear-gradient(#000 80%, transparent 100%); }
  .home-page .hero__image img { width: 100%; height: auto; }
  .home-page .section, .home-page .features, .home-page .apps, .home-page .cta { padding: 72px 20px; }
  .home-page .stack { gap: 16px; }
  .home-page .lead-row, .home-page .lead-row--reverse { flex-direction: column; align-items: stretch; gap: 40px; }
  .home-page .lead-copy { max-width: 100%; }
  .home-page .button-link { min-width: 220px; }
  .home-page .lead-image { width: 100%; }
  .home-page .lead-image img { max-height: 520px; }
  .home-page .card--horizontal, .home-page .registry-card, .home-page .brands-card { height: auto; min-height: 0; flex-direction: column; }
  .home-page .card__copy, .home-page .registry-card .card__copy { order: 0; width: 100%; max-width: 100%; height: auto; padding: 40px 24px 0; align-items: flex-start; }
  .home-page .card__visual, .home-page .card-hand, .home-page .registry-card .watch, .home-page .brands-card .card-phone { order: 1; width: 100%; height: auto; padding: 36px 0 0; flex-basis: auto; }
  .home-page .card-hand img, .home-page .registry-card .watch img, .home-page .brands-card .card-phone img { max-height: 480px; width: auto; }
  .home-page .two-cards { flex-direction: column; gap: 20px; }
  .home-page .card--vertical { width: 100%; height: auto; min-height: 600px; }
  .home-page .card--bottom { order: 1; padding: 0 24px 40px; justify-content: flex-end; }
  .home-page .card--bottom .card__copy { order: 1; padding: 24px 0 0; }
  .home-page .card--bottom .card__visual { order: 0; padding: 0; }
  .home-page .card--top { order: 0; padding: 40px 24px 0; }
  .home-page .card--top .card__visual { padding: 0; }
  .home-page .compact { padding: 0; }
  .home-page .cta-card { height: auto; flex-direction: column; align-items: center; }
  .home-page .cta-copy { width: 100%; max-width: 100%; height: auto; padding: 40px 24px; }
  .home-page .cta-image { width: 100%; height: auto; aspect-ratio: auto; }
  .home-page .cta-image img { width: 100%; height: auto; }
  .home-page h1 { font-size: 64px; }
  .home-page h2 { font-size: 52px; }
  .home-page .card-heading { font-size: 42px; }
}

/* ==========================================================================
   Verify page
   ========================================================================== */

.verify-main {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.verify-head { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.verify-head__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.verify-head h1 { margin: 0; color: var(--ink); }
.verify-head__lede { margin: 0; font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--ink); }

.verify-fallback { display: flex; flex-direction: column; gap: 10px; }
.verify-fallback__intro { margin: 0; font-family: var(--font-sans); font-size: 14px; color: var(--faint); }
.verify-fallback__helper { margin: 0; font-family: var(--font-sans); font-size: 13px; color: var(--faint); }

.verify-note { margin: 0; font-family: var(--font-sans); font-size: 13px; color: var(--faint); text-align: center; }

.verify-form { display: flex; gap: 10px; }
.verify-form input {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.verify-form button {
  padding: 0 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink);
  background: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  cursor: pointer;
}

@media (max-width: 640px) {
  .verify-main { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .verify-form { flex-direction: column; }
  .verify-form button { padding: 14px; }
}

/* ==========================================================================
   Login page
   ========================================================================== */

.login-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--paper);
}
.login-card { width: 100%; max-width: 420px; padding: 10px; background: rgba(247, 245, 238, 0.6); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.login-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.login-card__eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.login-card__wordmark { font-family: var(--font-wordmark); font-weight: 400; font-size: 40px; line-height: 1.2; letter-spacing: 0px; color: var(--ink); }
.login-card__divider { width: 48px; height: 1px; background: var(--ink); }

.login-form { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; }
.login-form label span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.login-form input {
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.login-form button {
  margin-top: 8px;
  padding: 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.login-forgot { font-family: var(--font-mono); font-size: 11px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.login-note { margin: 24px 0 0; max-width: 420px; text-align: center; font-family: var(--font-sans); font-size: 13px; line-height: 1.6; color: var(--faint); }

/* ==========================================================================
   Shared CTA button
   ========================================================================== */

.btn-primary {
  display: inline-block;
  padding: 13px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  text-decoration: none;
}

/* ==========================================================================
   Root language-redirect stub (dist/index.html)
   ========================================================================== */

.redirect-stub {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
}
.redirect-stub a { color: var(--gold); }
