/* LoopTrainer marketing site
   Metrology world: graphite ground, porcelain ink, one amber signal.
   No build step. No external requests. */

:root {
  color-scheme: dark;

  --ground: #0E1013;
  --panel: #171A1E;
  --panel-raised: #1F2328;

  --paper: #F4F2EC;
  --ink-2: rgba(244, 242, 236, 0.80);
  --ink-3: rgba(244, 242, 236, 0.62);
  --ink-4: rgba(244, 242, 236, 0.38);

  --hairline: rgba(244, 242, 236, 0.10);
  --hairline-strong: rgba(244, 242, 236, 0.22);

  --signal: #E9B04A;
  --signal-bright: #F0BE63;
  --blueprint: #7CC3D3;
  --reached: #7CC49B;
  --clay: #DE7358;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1100px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 16px;
  --control: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--signal);
  color: var(--ground);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 20;
  transform: translateY(-120%);
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 0 0 8px 8px;
  background: var(--paper);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

/* ---------------------------------------------------------------
   Header and footer
   --------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-block: 16px;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.site-footer {
  margin-top: clamp(56px, 7vw, 92px);
  padding-block: 32px 44px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.footer-brand p {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-nav a:hover {
  color: var(--paper);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------------------------------------------------------------
   Type
   --------------------------------------------------------------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 20px;
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h2 {
  max-width: 21ch;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 5px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin-bottom: 0;
  text-wrap: pretty;
}

.label {
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}

.figure,
.reading,
dd,
.cal__edge,
.step-n,
.big-404 {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.reading {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lede {
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
}

.body {
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.lede + .body,
.body + .body {
  margin-top: 14px;
}

/* ---------------------------------------------------------------
   Section instrument header: engraved labels + calibration strip
   --------------------------------------------------------------- */

.section {
  margin-top: clamp(56px, 7vw, 88px);
}

.hero {
  margin-top: clamp(20px, 3vw, 36px);
}

.section-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  flex-wrap: wrap;
}

.section-meta .label:last-child {
  margin-left: auto;
  text-align: right;
}

.cal {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.cal__edge {
  padding-bottom: 1px;
  color: var(--ink-4);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.cal__scale {
  position: relative;
  flex: 1;
  height: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline-strong);
}

.cal__scale > i {
  display: block;
  width: 1px;
  height: 5px;
  background: var(--ink-4);
}

.cal__scale > i.m {
  height: 11px;
  background: var(--ink-3);
}

.cal__scale > i.st {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: 2px;
  height: 20px;
  background: var(--signal);
}

.cal__scale > i.st::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--signal);
}

.cal__scale > i.st::after {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  color: var(--signal);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

.cal__scale > i.st[data-at="0"]::after {
  left: 0;
  transform: none;
}

.cal__scale > i.st[data-at="70"] { left: 16.6667%; }
.cal__scale > i.st[data-at="75"] { left: 25%; }
.cal__scale > i.st[data-at="84"] { left: 40%; }
.cal__scale > i.st[data-at="95"] { left: 58.3333%; }
.cal__scale > i.st[data-at="100"] { left: 66.6667%; }
.cal__scale > i.st[data-at="105"] { left: 75%; }
.cal__scale > i.st[data-at="110"] { left: 83.3333%; }

.cal--miss .cal__scale > i.st {
  background: var(--clay);
}

.cal--miss .cal__scale > i.st::before {
  background: var(--clay);
}

.cal--miss .cal__scale > i.st::after {
  color: var(--clay);
}

/* ---------------------------------------------------------------
   Buttons and links
   --------------------------------------------------------------- */

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 9px 24px;
  border-radius: var(--control);
  background: var(--signal);
  color: var(--ground);
  line-height: 1.15;
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.cta:hover {
  background: var(--signal-bright);
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline-color: var(--paper);
}

.cta-small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cta-large {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--control);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.cta-outline:hover {
  border-color: var(--paper);
  background: var(--panel);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.18s var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--signal);
}

.meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 0;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.meta span {
  white-space: nowrap;
}

.meta span:not(:last-child)::after {
  content: "\00b7";
  margin-left: 9px;
  color: var(--ink-4);
}

@media (max-width: 599px) {
  .meta {
    gap: 2px 12px;
  }

  .meta span:not(:last-child)::after {
    content: none;
  }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  max-width: 18ch;
}

.h1-line {
  display: block;
}

@media (max-width: 359px) {
  .hero h1 {
    font-size: 32px;
  }
}

.hero .lede {
  max-width: 47ch;
  margin-bottom: 0;
}

.ladder-widget {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--panel);
}

.ladder-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.ladder-widget__head .label {
  margin: 0;
}

.ladder-widget__toggle {
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.ladder-widget__toggle:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.ladder-widget__reading {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 14px;
}

.ladder-widget__value {
  color: var(--paper);
  font-size: clamp(52px, 6.4vw, 64px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.ladder-widget__unit {
  color: var(--ink-3);
  font-size: 22px;
  font-weight: 600;
}

.ladder-widget__count {
  margin-left: auto;
  color: var(--ink-3);
}

.ladder-widget__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ladder-widget__route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin-top: 28px;
}

.ladder-widget__track {
  position: absolute;
  left: 5.5556%;
  right: 5.5556%;
  top: 4px;
  height: 1px;
  background: var(--hairline-strong);
}

.ladder-widget__fill {
  display: block;
  height: 1px;
  background: var(--signal);
  transition: width 0.3s var(--ease);
}

.ladder-widget__fill[data-step="0"] { width: 0; }
.ladder-widget__fill[data-step="1"] { width: 12.5%; }
.ladder-widget__fill[data-step="2"] { width: 25%; }
.ladder-widget__fill[data-step="3"] { width: 37.5%; }
.ladder-widget__fill[data-step="4"] { width: 50%; }
.ladder-widget__fill[data-step="5"] { width: 62.5%; }
.ladder-widget__fill[data-step="6"] { width: 75%; }
.ladder-widget__fill[data-step="7"] { width: 87.5%; }
.ladder-widget__fill[data-step="8"] { width: 100%; }

.rung {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.rung .dot {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: var(--panel);
}

.rung b {
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rung.is-done .dot {
  background: var(--signal);
  border-color: var(--signal);
}

.rung.is-done b {
  color: var(--ink-2);
}

.rung.is-current .dot {
  background: var(--signal);
  border-color: var(--signal);
}

.rung.is-current b {
  color: var(--signal);
}

.rung.is-target .dot {
  border-color: var(--blueprint);
}

.rung.is-current .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  opacity: 0.55;
  animation: ladder-pulse 2s var(--ease) infinite;
}

.ladder-widget.is-complete .ladder-widget__fill {
  background: var(--reached);
}

.ladder-widget.is-complete .ladder-widget__value {
  color: var(--reached);
}

.ladder-widget.is-complete [data-ladder-target] {
  color: var(--reached);
}

.ladder-widget.is-complete .rung.is-current .dot {
  background: var(--reached);
  border-color: var(--reached);
}

.ladder-widget.is-complete .rung.is-current .dot::after {
  border-color: var(--reached);
}

.ladder-widget.is-complete .rung.is-current b {
  color: var(--reached);
}

.ladder-widget__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

@keyframes ladder-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.readouts dd span {
  margin-left: 1px;
  color: var(--ink-3);
  font-size: max(11px, 0.62em);
  font-weight: 600;
  letter-spacing: 0;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(40px, 6vw, 80px);
  }

}

@media (max-width: 560px) {
  .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .cta,
  .cta-outline {
    width: 100%;
  }

  .cta-outline {
    min-height: 48px;
  }
}

/* ---------------------------------------------------------------
   Feature specification rows
   --------------------------------------------------------------- */

.section-lede {
  margin-bottom: 0;
}

.spec-list {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
}

.spec-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 11rem;
  gap: 16px clamp(16px, 3vw, 40px);
  padding-block: 22px;
  border-bottom: 1px solid var(--hairline);
}

.spec-field {
  padding-top: 4px;
}

.spec-copy h3 {
  max-width: 28ch;
}

.spec-copy p {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.spec-read {
  padding-top: 2px;
  text-align: right;
}

.spec-read .reading {
  font-size: 18px;
}

.spec-read .reading + .reading {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.spec-read .reading-signal {
  color: var(--signal);
}

@media (max-width: 759px) {
  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 20px;
  }

  .spec-field {
    padding-top: 0;
  }

  .spec-copy h3 {
    max-width: none;
  }

  .spec-read {
    display: flex;
    align-items: baseline;
    gap: 8px 20px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
    text-align: left;
  }

  .spec-read .reading {
    display: inline;
  }

  .spec-read .reading + .reading {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------
   Media and split sections
   --------------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split-media {
  width: min(100%, 400px);
  margin-inline: auto;
}

.shot {
  margin: 0;
}

.shot-frame {
  border: 1px solid var(--hairline-strong);
  background: var(--ground);
}

.shot-frame img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.shot--pad .shot-frame {
  max-width: 520px;
  margin-inline: auto;
}

@media (max-width: 879px) {
  .split-copy {
    order: -1;
  }
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split-media {
    width: min(100%, 420px);
  }
}

/* Readouts: numbers carry units */
.readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.readouts > div {
  padding: 13px 16px 14px;
  border-left: 1px solid var(--hairline);
}

.readouts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.readouts dt {
  margin: 0;
}

.readouts dd {
  margin: 5px 0 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------
   How it works
   --------------------------------------------------------------- */

.steps {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.step {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 14px;
  padding-block: 17px;
  border-bottom: 1px solid var(--hairline);
}

.step-n {
  padding-top: 4px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.45;
}

.step h3 {
  font-size: 18px;
}

.step p {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   Progress badge and example note
   --------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--reached {
  color: var(--reached);
}

.badge--reached::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.note .figure {
  color: var(--ink-2);
}

/* ---------------------------------------------------------------
   Privacy band
   --------------------------------------------------------------- */

.privacy-band {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.privacy-band .lede {
  max-width: 58ch;
}

.privacy-link {
  margin-top: 18px;
}

.zeros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.zeros > div {
  padding: 16px 16px 18px;
  border-left: 1px solid var(--hairline);
}

.zeros > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.zeros .reading {
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1;
}

.zeros .label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

@media (min-width: 840px) {
  .privacy-band {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

/* ---------------------------------------------------------------
   Closing call
   --------------------------------------------------------------- */

.close-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: end;
}

.close-grid h2 {
  max-width: 20ch;
}

.close-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.close-action .meta {
  margin-top: 10px;
}

@media (max-width: 599px) {
  .footer-legal {
    flex-direction: column;
    gap: 4px;
  }
}

@media (min-width: 820px) {
  .close-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }

  .close-action {
    align-items: flex-end;
    text-align: right;
  }

  .close-action .meta {
    justify-content: flex-end;
  }
}

/* ---------------------------------------------------------------
   Document pages (privacy, support)
   --------------------------------------------------------------- */

.page-head {
  margin-top: clamp(28px, 4vw, 48px);
}

.page-head h1 {
  max-width: 18ch;
}

.page-head .lede {
  max-width: 58ch;
}

.doc {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}

.doc-aside {
  display: none;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.doc-aside .label {
  margin-bottom: 8px;
}

.doc-aside nav {
  display: flex;
  flex-direction: column;
}

.doc-aside a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.doc-aside a:hover {
  color: var(--paper);
}

.doc-aside .figure {
  margin-right: 10px;
  color: var(--ink-4);
  font-size: 11px;
}

@media (min-width: 900px) {
  .doc {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
  }

  .doc-aside {
    display: block;
    position: sticky;
    top: 28px;
  }
}

.prose {
  max-width: 66ch;
}

.prose h2 {
  max-width: 24ch;
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose > .label {
  margin-top: 40px;
  margin-bottom: 4px;
}

.prose > .label:first-child {
  margin-top: 0;
}

.prose > .label + h2 {
  margin-top: 6px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.68;
}

.prose p + p {
  margin-top: 13px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 19px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose a:hover {
  text-decoration-color: var(--signal);
}

.summary {
  display: grid;
  gap: 8px;
  margin-bottom: 36px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--panel);
}

.summary .label {
  color: var(--ink-3);
}

.summary .summary-reading {
  color: var(--paper);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.summary p {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   FAQ
   --------------------------------------------------------------- */

.faq {
  margin-top: 26px;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 60px;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ink-3);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary .label {
  flex: none;
  min-width: 2.2rem;
  padding-top: 3px;
  color: var(--ink-3);
}

.faq-a {
  max-width: 62ch;
  padding: 0 0 20px 3.2rem;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.faq-a p + p {
  margin-top: 10px;
}

@media (max-width: 560px) {
  .faq-a {
    padding-left: 0;
  }
}

/* Contact panel */

.contact {
  margin-top: 48px;
  padding: 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.contact h2 {
  max-width: 20ch;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.6vw, 30px);
}

.contact .label {
  margin-bottom: 6px;
}

.contact p {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.contact .email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px 0 10px;
  border-bottom: 1px solid var(--hairline-strong);
  color: var(--signal);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 0.18s var(--ease);
}

.contact .email:hover {
  border-color: var(--signal);
}

/* ---------------------------------------------------------------
   404
   --------------------------------------------------------------- */

.page-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 62vh;
  padding-block: clamp(56px, 8vw, 96px);
}

.big-404 {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: clamp(84px, 16vw, 200px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.page-404 h1 {
  max-width: 16ch;
}

.page-404 .lede {
  max-width: 48ch;
}

.page-404 .actions {
  margin-top: 28px;
}

/* ---------------------------------------------------------------
   Motion and print
   --------------------------------------------------------------- */

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

@media print {
  * {
    color: #111111 !important;
    background: transparent !important;
  }

  body {
    background: #ffffff;
  }

  .site-header,
  .site-footer,
  .cta,
  .cta-outline,
  .doc-aside {
    display: none;
  }

  .cal__scale > i,
  .cal__scale > i.st,
  .cal__scale > i.st::before {
    background: #111111 !important;
  }

  .shot-frame,
  .summary,
  .contact {
    border-color: #999999 !important;
  }
}
