/* SIGLINK brand: matches sitrep.us/siglink, the Console and Overwatch */
:root {
  --bg: #0A0A0A;
  --surface: #101010;
  --surface-2: #151515;
  --line: #232323;
  --line-soft: #1A1A1A;
  --text: #F2F2F0;
  --muted: #8A8A85;
  --faint: #555550;
  --go: #3DDC84;
  --accent: #3DDC84;
  --ok: #3DDC84;
  --warn: #E0A33B;
  --bad: #E5534B;
  --blue: #5B86C2;
  --display: "Archivo", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
  --gutter: 16px;
  --max: 1152px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { color: var(--text); font-weight: 600; }

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

/* Top bar */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.1em; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--faint); padding-bottom: 3px; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { border-color: var(--text); }
.nav-links a.cta { background: var(--text); color: var(--bg); border: 0; padding: 10px 16px; font-weight: 600; }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; padding: 15px 28px; text-decoration: none; background: var(--text); color: var(--bg); border: 0; cursor: pointer; }
.btn:hover { background: #FFFFFF; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text); padding: 15px 4px; border-bottom: 1px solid var(--faint); }
.btn.ghost:hover { border-color: var(--text); background: transparent; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.0; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 54ch; margin: 28px 0 0; }
.go { color: var(--go); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Sections */
section { padding: clamp(64px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
section.first { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.section-head p.eyebrow { color: var(--muted); font-size: 11.5px; margin: 0 0 22px; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 26px; color: #D9D9D5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.12); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: 16px; }
.tag.us { color: #8FB0DE; border-color: rgba(91, 134, 194, 0.45); }

/* Device frames */
/* iPhone: corners scale with the phone's width, so the shape holds at any size.
   --pw is the phone's width, from its row (a size container). */
.phones { --gap: clamp(12px, 2vw, 24px); container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin-left: auto; }
.phone { --pw: calc((100cqw - 2 * var(--gap)) / 3); position: relative; padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.17); background: #050505; box-shadow: 0 0 0 calc(var(--pw) * 0.012) #2E2E30, 0 0 0 calc(var(--pw) * 0.018) #0B0B0B, 0 40px 80px -36px rgba(0, 0, 0, 0.95); }
.phones.two .phone { --pw: calc((100cqw - var(--gap)) / 2); }
.phone img { width: 100%; border-radius: calc(var(--pw) * 0.14); }
.phones .phone:nth-child(2) { transform: translateY(-28px); }
.phones.two .phone:nth-child(2) { transform: translateY(36px); }

/* iPad: same build, gentler corners. Percent padding follows the frame's width. */
.tablet { padding: 2.2%; background: #050505; border-radius: clamp(18px, 2.8vw, 34px); box-shadow: 0 0 0 4px #2E2E30, 0 0 0 7px #0B0B0B, 0 40px 80px -36px rgba(0, 0, 0, 0.95); }
.tablet img { width: 100%; border-radius: clamp(10px, 1.8vw, 22px); }

/* Watch */
.watch { border-radius: 26%; overflow: hidden; box-shadow: 0 0 0 5px #2E2E30, 0 0 0 9px #0B0B0B, 0 20px 50px -20px rgba(0, 0, 0, 0.9); background: #000; aspect-ratio: 416 / 496; }
.watches { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 2vw, 22px); margin-top: 44px; }
@media (max-width: 620px) { .watches { grid-template-columns: repeat(3, minmax(0, 1fr)); } .watches .aw:nth-child(n+4) { display: none; } }

/* Hero */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); }
.hero .split { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 900px) { .hero .split { grid-template-columns: 1fr; } }
.hero .actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(48px, 7vw, 80px); }
.stat { background: var(--surface); padding: 24px 24px 26px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Fallback ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.ladder li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 16px 16px; }
.ladder li::before { content: "0" counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--go); }
.ladder b { display: block; font-size: 16px; }
.ladder span { color: var(--muted); font-size: 14px; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.models td:first-child { font-weight: 600; }

/* Overwatch */
.blurred { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #080808; }
.blurred img { width: 100%; }
.blurred figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(10, 10, 10, 0.82); border: 1px solid var(--line); color: var(--text); }
.ow-grid { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: auto; gap: 16px; }
.ow-grid .big { grid-row: span 2; }
.ow-grid .big img { height: 100%; object-fit: cover; }
@media (max-width: 760px) { .ow-grid { grid-template-columns: 1fr; } .ow-grid .big { grid-row: auto; } }
.private-note { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); margin-top: 18px; }
.private-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }

/* Compare */
.compare { font-size: 13px; }
.compare th, .compare td { padding: 12px 14px; min-width: 128px; }
.compare thead th { position: sticky; top: 0; }
.compare th.cap, .compare td.cap { position: sticky; left: 0; z-index: 2; background: var(--surface); min-width: 200px; max-width: 220px; font-weight: 600; color: var(--text); }
.compare thead th.cap { background: var(--surface-2); z-index: 3; }
.compare .us { background: rgba(61, 220, 132, 0.06); min-width: 200px; }
.compare thead th.us { color: var(--go); background: #0F1D15; }
.cell { display: inline-flex; gap: 8px; align-items: baseline; }
.cell::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-1px); background: var(--faint); }
.cell.yes::before { background: var(--go); }
.cell.part::before { background: var(--warn); }
.cell.no { color: var(--faint); }
.cell.no::before { background: #333330; }
.cell.unk { color: var(--muted); font-style: italic; }
.cell.unk::before { background: transparent; border: 1px solid var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
details.sources { margin-top: 22px; color: var(--muted); font-size: 13px; }
details.sources summary { cursor: pointer; color: var(--text); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
details.sources ul { margin: 14px 0 0; padding-left: 18px; columns: 2; column-gap: 32px; }
details.sources li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 720px) { details.sources ul { columns: 1; } }

/* CTA + footer */
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--faint); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Shown only to visitors outside the US (geo.js sets data-us on <html>). */
.geo-note { display: none; align-items: center; gap: 12px; margin: 0 0 28px; padding: 14px 18px; border: 1px solid rgba(224, 163, 59, 0.45); background: rgba(224, 163, 59, 0.08); border-radius: 12px; color: var(--text); font-size: 15px; }
.geo-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
[data-us="no"] .geo-note { display: flex; }

/* Apple Watch: aluminium case, black glass, Digital Crown, side button, band */
.watches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2.6vw, 34px); margin-top: 56px; align-items: center; }
.aw { margin: 0; display: flex; flex-direction: column; align-items: center; }
.aw-band { display: block; width: 66%; aspect-ratio: 1 / 0.5; background: linear-gradient(90deg, #111113 0%, #1D1D20 16%, #27272B 50%, #1D1D20 84%, #111113 100%); border-radius: 10px 10px 2px 2px; -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent); }
.aw-band.bottom { border-radius: 2px 2px 10px 10px; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.aw-case { position: relative; z-index: 1; display: block; width: 100%; padding: 6%; margin: -3% 0; border-radius: 30% / 25.5%; background: linear-gradient(155deg, #4A4A4F 0%, #26262A 26%, #151517 58%, #2E2E33 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), inset 0 -3px 8px rgba(0, 0, 0, 0.6), 0 28px 46px -22px rgba(0, 0, 0, 0.95); }
.aw-case::before { content: ""; position: absolute; right: -5.5%; top: 21%; width: 7%; height: 15%; border-radius: 2px 7px 7px 2px; background: repeating-linear-gradient(0deg, #46464B 0 2px, #2A2A2E 2px 4px); box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.14); }
.aw-case::after { content: ""; position: absolute; right: -2.8%; top: 47%; width: 3.6%; height: 22%; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #2A2A2E, #404045); }
.aw-screen { display: block; background: #000; padding: 5%; border-radius: 25% / 21%; }
.aw-screen img { width: 100%; border-radius: 19% / 16%; }

/* Diagrams */
.viz { margin: 0; }
.viz svg { display: block; width: 100%; height: auto; }
.v-panel { fill: #0D0D0D; stroke: var(--line); }
.v-topo path { fill: none; stroke: #171717; stroke-width: 1.2; }
.v-tower path { fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.v-slash { stroke: var(--bad); stroke-width: 2.5; stroke-linecap: round; }
.v-cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; fill: var(--muted); }
.v-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; fill: var(--muted); }
.v-cap.go, .v-label.go { fill: var(--go); }
.v-links line { stroke: #2C2C2C; stroke-width: 1.5; }
.v-bt { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-dasharray: 1 7; stroke-linecap: round; }
.v-route { fill: none; stroke: var(--go); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.45)); }
.v-packet { fill: #FFFFFF; filter: drop-shadow(0 0 7px rgba(61, 220, 132, 0.9)); }
.v-hops text { font-family: var(--mono); font-size: 11px; font-weight: 600; fill: var(--go); }
.v-node rect { fill: #151515; stroke: #9B7BE0; stroke-width: 2; }
.v-node .v-ant { fill: none; stroke: #9B7BE0; stroke-width: 1.8; stroke-linecap: round; }
.v-node circle { fill: #9B7BE0; }
.v-node-key { fill: none; stroke: #9B7BE0; stroke-width: 2; }
.v-person circle { fill: #151515; stroke: #3A3A3A; stroke-width: 2; }
.v-person.on circle { stroke: var(--go); }
.v-person.end circle { fill: #0F1D15; }
.v-person text { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.v-ripple { fill: none; stroke: var(--go); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: v-ripple 2.6s ease-out infinite; }
@keyframes v-ripple { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.v-legend text { font-family: var(--body); font-size: 12px; fill: var(--muted); }
.v-phone { fill: #0A0A0A; stroke: #2E2E30; stroke-width: 3; }
.v-screen { fill: #070707; stroke: #161616; }
.v-island { fill: #000; stroke: #1C1C1C; }
.v-step > rect { fill: #121212; stroke: #2A2A2A; }
.v-step.model > rect { fill: #0F1D15; stroke: var(--go); stroke-width: 1.5; }
.v-h { font-family: var(--display); font-weight: 700; font-size: 15px; fill: var(--text); }
.v-s { font-family: var(--body); font-size: 12.5px; fill: var(--muted); }
.v-s.dim { fill: var(--faint); }
.v-ico { fill: none; stroke: var(--go); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-side .v-ico { stroke: var(--muted); }
.v-dot { fill: var(--go); }
.v-fill { fill: var(--muted); }
.v-arrow { stroke: var(--go); stroke-width: 2; stroke-linecap: round; }
.v-wave-bars rect { fill: var(--go); }
.v-cloud path { fill: none; stroke: var(--faint); stroke-width: 2; }
.v-dash { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 4 5; }
.v-mini { font-family: var(--body); font-size: 11.5px; fill: var(--muted); }
.v-big { font-family: var(--display); font-weight: 800; font-size: 26px; fill: var(--text); }
@media (prefers-reduced-motion: reduce) { .v-packet, .v-ripple { display: none; } }

/* Top bar: identical to the home page header (siglink.net/) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.mark svg { width: 38px; height: 38px; flex: none; }
.mark .n { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.1em; }
.top .cta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--faint); padding-bottom: 3px; white-space: nowrap; }
.top .cta:hover, .top .cta[aria-current="page"] { border-color: var(--text); }
.top-ctas { display: flex; align-items: center; gap: 28px; }
.top .cta.store { color: var(--go); border-color: var(--go); }
.top .cta.film .play { color: var(--go); margin-right: 10px; vertical-align: 0; }
@media (max-width: 640px) { .top .cta:not(.store):not(.film) { display: none; } }
@media (max-width: 520px) { .top .cta.film { display: none; } }
