/* Repair Atlas site. The app's near-black theme, its inks (defect red, repair blue) and Marcellus for titles. */
@font-face {
  font-family: Marcellus;
  src: url("/fonts/marcellus-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ground: #0b0d0f;
  --panel: #15191c;
  --text: #f0f2f5;
  --muted: #b4bec5;
  --edge: #343c42;
  --accent: #9bcee1;
  --blue: #1f6fd1;
  --red: #d23b30;
  --skin: #d8c3a5;
  --title: Marcellus, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.55 var(--body); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.12; margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 400 22px/1 var(--title); }
.brand img { width: 20px; height: auto; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 12px 0; }
.top nav a:hover { color: var(--text); }
@media (max-width: 600px) { .top nav a:not(:last-child) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0 88px; }
.status { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -.01em; }
.lede { margin: 24px 0 0; color: var(--muted); font-size: 20px; max-width: 30ch; }
.actions { margin: 32px 0 0; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.button:hover { background: #2a7be0; }
.hero-clip { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--edge); background: #000; aspect-ratio: 1; }
.hero-clip video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 16px 0 64px; }
  .lede { max-width: none; }
}

/* Sections */
section h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-lede { margin: 14px 0 0; color: var(--muted); max-width: 60ch; }
.steps, .repairs, .uses, .private, .questions { padding: 72px 0; border-top: 1px solid var(--edge); }

.steps ol { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps img { border-radius: var(--radius); border: 1px solid var(--edge); background: #000; }
.steps h3 { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 26px; }
.steps p { margin: 8px 0 0; color: var(--muted); }
.swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.swatch.red { background: var(--red); }
.swatch.blue { background: var(--blue); }
.swatch.skin { background: var(--skin); }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } }

.grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid video { border-radius: 12px; border: 1px solid var(--edge); background: #000; aspect-ratio: 1; width: 100%; object-fit: cover; }
.grid p { margin: 10px 0 0; font-size: 15px; }
.note { margin: 28px 0 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.uses p { margin: 14px 0 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; gap: 40px; } }

.facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 10px 16px; border: 1px solid var(--edge); border-radius: 999px; background: var(--panel); font-size: 15px; }

.questions details { border-top: 1px solid var(--edge); max-width: 760px; }
.questions details:last-of-type { border-bottom: 1px solid var(--edge); }
.questions h2 { margin-bottom: 24px; }
.questions summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-weight: 600; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 22px; font-weight: 400; }
.questions details[open] summary::after { content: "\2212"; }
.questions details p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

.label { padding: 32px 0; border-top: 1px solid var(--edge); color: var(--muted); font-size: 15px; margin-block: 0; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 0 48px; border-top: 1px solid var(--edge); color: var(--muted); font-size: 15px; }
footer p { margin: 0; }
footer nav { display: flex; gap: 20px; }

/* Legal pages */
.doc { max-width: 720px; padding: 24px 0 80px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 48px); margin: 16px 0 20px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc ul { margin: 0 0 14px; color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
