/* Steel Turret — one stylesheet for every page.
   Palette is the DOPE app's own (Theme.swift): plate, panel, ink, steel, blaze. */
:root {
  --plate: #e3e6e8;
  --panel: #f8f9fa;
  --edge: #d5d9dd;
  --well: #e6e9ec;
  --ink: #1b1f23;
  --steel: #5f6a74;
  --hair: #d0d4d8;
  --blaze: #e8541a;
  --blaze-ink: #b93f0f;     /* blaze dark enough for body links on plate */
  --confirmed: #2c7a4b;
  --anodize: #24282c;
  --engrave: #e6e8ea;
  --engrave-dim: #8c949b;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plate: #0e1114; --panel: #1a1e22; --edge: #2a3036; --well: #262b30;
    --ink: #e9ecee; --steel: #949ea7; --hair: #2c3238;
    --blaze: #ff6a2b; --blaze-ink: #ff7a40; --confirmed: #4cc27e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --plate: #0e1114; --panel: #1a1e22; --edge: #2a3036; --well: #262b30;
  --ink: #e9ecee; --steel: #949ea7; --hair: #2c3238;
  --blaze: #ff6a2b; --blaze-ink: #ff7a40; --confirmed: #4cc27e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blaze-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* ── Header ─────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--hair); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 24px/1 var(--display); letter-spacing: .02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--steel); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--edge);
  background: var(--panel); color: var(--steel); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .site-head .wrap { flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .nav a { font-size: 15px; }
}

/* ── The turret scale (signature) ───────────────────── */
.scale {
  position: relative; height: 78px; overflow: hidden;
  background: var(--anodize);
  border-top: 1px solid #33393f; border-bottom: 1px solid #0b0d0f;
}
.scale::before, .scale::after {           /* the drum curving away at both ends */
  content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; pointer-events: none;
}
.scale::before { left: 0;  background: linear-gradient(90deg, #0d0f11, rgba(13,15,17,0)); }
.scale::after  { right: 0; background: linear-gradient(270deg, #0d0f11, rgba(13,15,17,0)); }
.scale-strip {
  position: absolute; top: 0; left: 50%; height: 100%;
  width: 3600px; margin-left: -1800px;      /* the strip's 0 sits on the page centre */
}
.scale-strip svg { display: block; width: 3600px; height: 78px; }
.scale-index {
  position: absolute; left: 50%; top: 0; z-index: 3; width: 4px; margin-left: -2px; height: 30px;
  background: var(--blaze);
}
.scale-index::after {
  content: ""; position: absolute; left: -6px; bottom: -9px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--blaze);
}
@media (prefers-reduced-motion: no-preference) {
  .scale-strip { animation: settle 1.6s cubic-bezier(.16, .84, .3, 1) .15s both; }
  @keyframes settle { from { transform: translateX(-372px); } to { transform: translateX(0); } }
}

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(34px, 4.6vw, 52px); }
h3 { font-size: 30px; }
p { margin: 0 0 16px; }
.lead { font-size: 21px; line-height: 1.5; color: var(--steel); max-width: 34em; }
.muted { color: var(--steel); }
.measure { max-width: 40em; }

/* ── Sections ───────────────────────────────────────── */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section-head { margin-bottom: 40px; max-width: 40em; }
.section-head p { color: var(--steel); margin-top: 14px; }
@media (max-width: 720px) { .section { padding: 56px 0; } .section-head { margin-bottom: 28px; } }

.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 22px; }
.hero + .section { padding-top: 16px; }
.hero + .section, .hero + .wrap .steps .step:first-child { border-top: 0; }
@media (max-width: 720px) { .hero { padding: 56px 0 44px; } }

/* ── Phone frame ────────────────────────────────────── */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  padding: 9px; border-radius: 48px;
  background: linear-gradient(145deg, #3a4046, #1c2024 55%, #2b3035);
  box-shadow: 0 0 0 1px #0b0d0f, 0 30px 60px -28px rgba(0,0,0,.55);
}
.phone img { width: 100%; aspect-ratio: 660 / 1434; border-radius: 40px; background: #0e1114; }
.phone.sm { max-width: 250px; }

/* ── Home: the app ──────────────────────────────────── */
.app-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 64px; align-items: center; }
.app-row h2 { margin-bottom: 14px; }
.app-row .price { font: 600 22px/1 var(--display); color: var(--ink); margin: 22px 0 18px; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-weight: 500; }
@media (max-width: 820px) { .app-row { grid-template-columns: 1fr; gap: 36px; } .app-row .phone { order: -1; } }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #3a4046;
  font: 500 15px/1.15 var(--body);
}
.store-badge svg { width: 22px; height: 26px; fill: #fff; }
.store-badge b { display: block; font-size: 19px; font-weight: 600; }
.store-badge[aria-disabled="true"] { cursor: default; }

/* ── Principles (not a sequence, so no numbers) ─────── */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principles h3 { font-size: 26px; margin-bottom: 10px; }
.principles p { color: var(--steel); margin: 0; }
.principles > div { border-top: 3px solid var(--ink); padding-top: 18px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; gap: 28px; } }

/* ── DOPE page ──────────────────────────────────────── */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 56px; align-items: center; padding: 80px 0 72px; }
.product-hero .phone { max-width: 320px; }
.product-hero .lead { margin: 22px 0 26px; }
.product-hero .fine { color: var(--steel); font-size: 15px; margin-top: 14px; }
@media (max-width: 820px) { .product-hero { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 40px; } }

.feature { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--hair); }
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 270px); }
.feature:nth-child(even) .phone { order: 2; }
.feature h3 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; }
.feature p { color: var(--steel); max-width: 30em; }
.feature .phone { max-width: 270px; }
@media (max-width: 820px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature:nth-child(even) .phone { order: 0; }
  .feature .phone { max-width: 240px; }
}

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hair); }
.specs dt { font: 600 19px/1.3 var(--display); letter-spacing: .01em; }
.specs dd { margin: 0; color: var(--steel); }
@media (max-width: 820px) { .specs { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }

.notice { border-left: 4px solid var(--blaze); padding: 4px 0 4px 20px; max-width: 40em; color: var(--steel); }
.notice b { color: var(--ink); }

/* ── Guide: a real sequence, so it is numbered ──────── */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 200px); gap: 0 40px; padding: 48px 0; border-top: 1px solid var(--hair); }
.step::before {
  content: counter(step);
  font: 800 72px/.85 var(--display); color: var(--blaze);
  font-variant-numeric: tabular-nums;
}
.step h2 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 14px; }
.step p, .step li { color: var(--steel); }
.step ul { margin: 0 0 16px; padding-left: 1.1em; }
.step li { margin-bottom: 6px; }
.step .phone { max-width: 200px; justify-self: end; }
.step.no-shot { grid-template-columns: 88px minmax(0, 1fr); }
.ui { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) {
  .step, .step.no-shot { grid-template-columns: 56px minmax(0, 1fr); padding: 36px 0; }
  .step::before { font-size: 52px; }
  .step .phone { grid-column: 2; margin: 24px 0 0; max-width: 220px; }
}

/* ── Plain document pages (privacy, terms, support, contact) ── */
.doc { padding: 72px 0 88px; }
.doc h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 18px; }
.doc h2 { font-size: 30px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--steel); }
.doc .body { max-width: 40em; }
.doc dl { margin: 0; }
.doc dt { font-weight: 600; color: var(--ink); margin-top: 22px; }
.doc dd { margin: 4px 0 0; color: var(--steel); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; max-width: 40em; }
.contact-list li { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--hair); }
.contact-list li span { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 720px) { .doc { padding: 48px 0 64px; } }

/* ── Footer ─────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--hair); padding: 36px 0 48px; color: var(--steel); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-foot a { color: var(--steel); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .copy { margin-left: auto; }
@media (max-width: 520px) { .site-foot .copy { margin-left: 0; width: 100%; } }
