:root {
  color-scheme: light;
  --ink: #102f3d;
  --ink-deep: #071d26;
  --muted: #526a74;
  --line: #c9d9d7;
  --soft: #f3f7f6;
  --white: #ffffff;
  --gold: #d9a62e;
  --gold-soft: #fff6dd;
  --red: #a63d2c;
  --red-soft: #fff0eb;
  --green: #246b50;
  --green-soft: #e8f3ed;
  --shadow: 0 16px 40px rgba(7, 29, 38, 0.08);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--soft); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 10px 14px; border-radius: 4px; color: var(--white); background: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 72px; padding: 12px clamp(16px, 4vw, 48px); border-bottom: 1px solid rgba(255,255,255,.2); color: var(--white); background: var(--ink); }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid var(--white); border-radius: 50%; font-weight: 900; letter-spacing: -.04em; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 1rem; }
.brand-copy span { color: #d5e3e2; font-size: .8rem; }
.header-link { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 12px; border: 1px solid rgba(255,255,255,.42); border-radius: 6px; font-size: .86rem; font-weight: 800; text-decoration: none; }
.page-shell { width: min(1180px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 42px) 70px; }
.hero, .watch-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); gap: clamp(22px, 5vw, 64px); align-items: center; padding: clamp(28px, 6vw, 72px) 0; }
.release-badge, .eyebrow { display: inline-flex; width: fit-content; margin-bottom: 12px; color: var(--ink); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.release-badge { padding: 7px 10px; border: 1px solid var(--ink); border-radius: 999px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; max-width: 860px; color: var(--ink-deep); font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: .96; letter-spacing: -.045em; }
h2 { margin-bottom: 0; color: var(--ink-deep); font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
h3 { margin-bottom: 10px; color: var(--ink-deep); font-size: 1.3rem; line-height: 1.15; }
p { color: var(--muted); line-height: 1.6; }
.hero-copy { max-width: 760px; margin-bottom: 0; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.release-card { display: grid; gap: 8px; padding: 22px; border-top: 5px solid var(--gold); background: var(--white); box-shadow: var(--shadow); }
.release-card > span { color: var(--muted); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.release-card strong { color: var(--ink-deep); font-size: 1.35rem; }
.release-card p { margin-bottom: 8px; }
.release-card a { font-weight: 900; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 22px; align-items: end; margin: 54px 0 22px; }
.section-heading p { margin-bottom: 0; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card { display: grid; min-width: 0; gap: 14px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-top: 5px solid var(--ink); border-radius: 10px; background: var(--white); box-shadow: 0 10px 24px rgba(7,29,38,.05); }
.platform-card.is-featured { grid-column: 1 / -1; border-color: var(--ink); background: var(--ink); }
.platform-card.is-featured h3, .platform-card.is-featured p, .platform-card.is-featured code, .platform-card.is-featured .platform-label { color: var(--white); }
.platform-card.is-featured p { color: #d7e3e2; }
.card-topline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.platform-label { color: var(--ink); font-size: .76rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.status-pill { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.status-review { color: #61420f; background: var(--gold-soft); }
.status-verified { color: var(--green); background: var(--green-soft); }
.status-test, .status-blocked { color: var(--red); background: var(--red-soft); }
.platform-card p { margin-bottom: 0; }
.platform-card code { overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.card-action, .primary-action, .secondary-action { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 6px; font-weight: 900; text-align: center; text-decoration: none; }
.card-action, .primary-action { color: var(--white); background: var(--ink); }
.platform-card.is-featured .card-action { color: var(--ink); background: var(--white); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; }
.filter { flex: 0 0 auto; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); font: inherit; font-weight: 800; cursor: pointer; }
.filter.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.update-list { display: grid; gap: 12px; }
.update-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 22px; padding: 20px; border-left: 5px solid var(--ink); background: var(--white); box-shadow: 0 8px 20px rgba(7,29,38,.04); }
.update-card > h3, .update-card > p, .update-meta { grid-column: 1; }
.update-card > p { margin-bottom: 0; }
.update-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .78rem; }
.update-meta span { color: var(--ink); font-weight: 900; text-transform: uppercase; }
.update-footer { grid-column: 2; grid-row: 1 / 4; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; justify-content: space-between; }
.update-footer code { max-width: 190px; overflow-wrap: anywhere; color: var(--muted); font-size: .72rem; text-align: right; }
.phone-panel, .boundary-panel, .evidence-panel, .platform-boundaries { margin-top: 56px; padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); background: var(--white); }
.phone-panel { color: var(--white); background: var(--ink); }
.phone-panel h2, .phone-panel .eyebrow { color: var(--white); }
.phone-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.phone-steps div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid rgba(255,255,255,.25); }
.phone-steps span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--white); font-weight: 900; }
.phone-steps p { margin-bottom: 0; color: #e4eeee; }
.boundary-panel { border-left: 6px solid var(--red); }
.boundary-panel ul, .evidence-panel ul { margin: 22px 0 0; padding-left: 22px; }
.boundary-panel li, .evidence-panel li { margin: 10px 0; color: var(--muted); line-height: 1.55; }
footer { display: flex; gap: 16px; justify-content: space-between; padding: 22px clamp(16px, 4vw, 48px); color: #d8e4e3; background: var(--ink-deep); font-size: .78rem; }
footer span { overflow-wrap: anywhere; }
footer a { font-weight: 900; }
.noscript-panel, .load-error { display: grid; gap: 10px; grid-column: 1 / -1; padding: 22px; border: 1px solid var(--red); background: var(--red-soft); }
.loading, .empty-state { padding: 22px; background: var(--white); }
.watch-shell { max-width: 1120px; }
.watch-face { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; width: min(320px, 80vw); aspect-ratio: 1; place-self: center; padding: 64px 38px 38px; border: 18px solid var(--ink-deep); border-radius: 42%; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.watch-face span { display: grid; place-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; font-size: .8rem; font-weight: 800; text-align: center; }
.watch-face strong { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 1.3rem; }
.status-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--white); }
.status-strip div { display: grid; gap: 6px; padding: 18px; border-right: 1px solid var(--line); }
.status-strip div:last-child { border-right: 0; }
.status-strip span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.status-strip strong { line-height: 1.35; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.detail-card { padding: 20px; border: 1px solid var(--line); background: var(--white); }
.detail-card p { margin-bottom: 0; }
.emergency-warning { margin-top: 26px; padding: 24px; border-left: 6px solid var(--red); background: var(--red-soft); }
.emergency-warning h2 { font-size: 1.6rem; }
.emergency-warning p { margin: 10px 0 0; color: #56251c; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.secondary-action { border: 1px solid var(--ink); color: var(--ink); background: var(--white); }

@media (max-width: 820px) {
  .hero, .watch-hero, .section-heading { grid-template-columns: 1fr; }
  .platform-grid, .detail-grid { grid-template-columns: 1fr; }
  .platform-card.is-featured { grid-column: auto; }
  .phone-steps, .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip div:nth-child(2) { border-right: 0; }
  .status-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .site-header { grid-template-columns: auto 1fr; }
  .header-link { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .page-shell { padding-top: 22px; }
  .hero, .watch-hero { padding-top: 24px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.6rem); }
  .phone-steps, .status-strip { grid-template-columns: 1fr; }
  .status-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .status-strip div:last-child { border-bottom: 0; }
  .update-list { min-width: 0; }
  .update-card { min-width: 0; grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
  .status-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .filter-row { flex-wrap: wrap; }
  .update-footer { grid-column: 1; grid-row: auto; align-items: flex-start; }
  .update-footer code { max-width: 100%; text-align: left; }
  .page-actions { display: grid; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
