/* BroSwitch — departure board. Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Martian";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(fonts/martian-mono-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(fonts/martian-mono-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(fonts/martian-mono-cyrillic-standard-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Atkinson";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0d0c0b;
  --bg-2: #151412;
  --board: #070706;
  --flap: #1b1a18;
  --flap-top: #211f1d;
  --ink: #f2ebdc;
  --ink-2: #c2b9a7;
  --ink-3: #958c7c;
  --rule: #2a2724;
  --amber: #ffb22e;
  --amber-deep: #3a2a0c;

  --mac-bg: #2b2b2d;
  --mac-ink: #f5f5f7;
  --mac-sec: #a7a7ad;
  --mac-fill: rgba(255, 255, 255, 0.09);
  --mac-accent: #0a84ff;
  --mac-red: #d6382f;

  --cjk: system-ui;
  --display: "Martian", var(--cjk), ui-monospace, "SF Mono", Menlo, monospace;
  --text: "Atkinson", -apple-system, BlinkMacSystemFont, "Segoe UI", var(--cjk), Roboto, "Helvetica Neue", Arial, sans-serif;
  --mac: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--cjk), "Segoe UI", system-ui, sans-serif;
  --keys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Symbol", "Apple Symbols", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 44px);
}
:lang(ja) { --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
:lang(zh-Hans) { --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
:lang(ko) { --cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #3b3733 var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ja) body, :lang(zh-Hans) body, :lang(ko) body { line-height: 1.8; }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
:lang(ja) :is(h1, h2, h3, .lede), :lang(zh-Hans) :is(h1, h2, h3) { word-break: auto-phrase; }
::selection { background: var(--amber); color: #120c02; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.defs { position: absolute; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px;
  background: var(--ink); color: var(--bg); border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.85em; height: 1.85em; padding: 0 0.45em;
  font: 500 0.82em/1 var(--keys);
  color: var(--ink);
  background: linear-gradient(#2a2724, #1f1d1a);
  border: 1px solid #3c3833;
  border-radius: 6px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.4);
  vertical-align: 0.05em;
  white-space: nowrap;
}

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 20px;
  padding-block: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-name { font: 600 1.1rem/1 var(--display); font-stretch: 100%; letter-spacing: -0.01em; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  margin-left: auto;
  font: 500 0.78rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 178, 46, 0.14);
}
.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px;
  font-size: 0.9rem; color: var(--ink-2);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); border-color: #45403a; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
  margin: 0; padding: 6px; list-style: none; min-width: 210px;
  background: #171614; border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}
.lang-menu a {
  display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-2);
}
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--bg-2); color: var(--ink); }
.lang-menu a[aria-current]::after { content: " ●"; color: var(--amber); font-size: 0.7em; }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 28px 56px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  padding-top: clamp(28px, 6vw, 84px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem);
  font-weight: 600; font-stretch: 87.5%;
  line-height: 1.06; letter-spacing: -0.035em;
}
:lang(ja) .hero h1, :lang(zh-Hans) .hero h1, :lang(ko) .hero h1 { letter-spacing: 0; line-height: 1.25; font-size: clamp(2rem, 1.1rem + 3.2vw, 4rem); }
.lede { font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem); color: var(--ink); max-width: 36em; }
.note { margin-top: 14px; color: var(--ink-3); font-size: 0.95rem; }

/* ---------- board ---------- */
.board-hall { padding-bottom: clamp(64px, 9vw, 128px); }
.board {
  --n: 77;
  --cw: calc(100cqi / var(--n));
  --ch: calc(var(--cw) * 1.62);
  container-type: inline-size;
  position: relative;
  background: var(--board);
  border: 1px solid #1d1b19;
  border-radius: 14px;
  padding: clamp(14px, 2.2vw, 30px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.board[data-layout="narrow"] { --n: 28; }
.board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: clamp(12px, 1.6vw, 20px);
  margin-bottom: clamp(10px, 1.2vw, 16px);
  border-bottom: 1px solid #1f1d1a;
}
.board-title {
  display: flex; align-items: center; gap: 12px;
  font: 600 clamp(1rem, 0.8rem + 0.9vw, 1.5rem)/1 var(--display);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.board-mark { width: 1.35em; height: 1.35em; color: var(--ink); }
.board-tools { display: flex; align-items: center; gap: 14px; }
.clock { display: inline-flex; --cw: clamp(13px, 1.3vw, 19px); --ch: calc(var(--cw) * 1.62); }
.key-icon {
  cursor: pointer; width: 2.2rem; height: 2.2rem; padding: 0; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  background: linear-gradient(#2a2724, #1f1d1a); border: 1px solid #3c3833; border-radius: 7px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
}
.key-icon:hover { color: var(--ink); }
.key-icon .ico { width: 0.9rem; height: 0.9rem; }

.board-table { width: 100%; border-collapse: collapse; }
.board-table th {
  font: 500 0.7rem/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; padding: 0 0 10px; white-space: nowrap;
}
/* Without JS: a plain, legible timetable. */
.no-js .board { overflow-x: auto; }
.no-js .board-table td {
  font: 500 0.95rem/1.3 var(--display); text-transform: uppercase; white-space: nowrap;
  padding: 10px 18px 10px 0; border-top: 1px solid #1d1b19;
}
.no-js .board-table td.lit { color: var(--amber); }

/* With JS: every field is a run of split-flap cells on a cell grid. */
.js .board-table, .js .board-table thead, .js .board-table tbody { display: block; }
.js .board-table tr {
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding-block: calc(var(--cw) * 0.3);
}
.js .board-table tbody tr + tr { border-top: 1px solid #161513; }
.js .board-table th, .js .board-table td { display: block; padding: 0; min-width: 0; }
.js .f-time { grid-column: 1 / span 5; }
.js .f-link { grid-column: 7 / span 30; }
.js .f-dest { grid-column: 38 / span 20; }
.js .f-why { grid-column: 59 / span 10; }
.js .f-status { grid-column: 70 / span 8; }
.js .board[data-layout="narrow"] .f-link { grid-column: 7 / span 22; }
.js .board[data-layout="narrow"] .f-dest { grid-column: 1 / span 19; grid-row: 2; margin-top: calc(var(--cw) * 0.35); }
.js .board[data-layout="narrow"] .f-status { grid-column: 21 / span 8; grid-row: 2; margin-top: calc(var(--cw) * 0.35); }
.js .board[data-layout="narrow"] .f-why { display: none; }
.js .board[data-layout="narrow"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .board-table td .txt {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.flaps { display: flex; }

.c {
  position: relative; flex: none;
  width: var(--cw); height: var(--ch);
  perspective: calc(var(--ch) * 6);
  font: 500 calc(var(--cw) * 1.02) / var(--ch) var(--display);
  font-stretch: 87.5%;
  color: var(--ink);
}
.c > i {
  position: absolute; left: 1px; right: 1px;
  height: calc(50% - 0.5px);
  overflow: hidden;
  font-style: normal;
  text-align: center;
  background: var(--flap);
  backface-visibility: hidden;
}
.c > .t, .c > .lt {
  top: 0; border-radius: 2px 2px 0 0; transform-origin: 50% 100%;
  background: linear-gradient(var(--flap-top), var(--flap));
}
.c > .b, .c > .lb { bottom: 0; border-radius: 0 0 2px 2px; transform-origin: 50% 0; }
.c > .lt, .c > .lb { z-index: 1; }
.c > i > b { display: block; height: var(--ch); font-weight: inherit; white-space: pre; }
.c > .b > b, .c > .lb > b { transform: translateY(calc(var(--ch) / -2 - 0.5px)); }
.c.wide { width: calc(var(--cw) * 2); }
.lit .c, .hold .f-dest .c { color: var(--amber); }
.f-why .c, .f-time .c { color: var(--ink-2); }

/* ---------- section scaffolding ---------- */
section h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.75rem);
  font-stretch: 87.5%;
  line-height: 1.12; letter-spacing: -0.03em;
}
:lang(ja) section h2, :lang(zh-Hans) section h2, :lang(ko) section h2 { letter-spacing: 0; line-height: 1.35; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: end; }
.section-lede { color: var(--ink-2); font-size: 1.08rem; max-width: 38em; }
.how, .picker-sec, .safety, .privacy { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--rule); }

/* ---------- how it decides ---------- */
.route {
  list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
}
.route li { position: relative; }
.route li::before {
  content: ""; position: absolute; top: 22px; left: 52px; right: -28px; height: 1px;
  background: repeating-linear-gradient(90deg, #4a443d 0 6px, transparent 6px 12px);
}
.route li.last::before { display: none; }
.stop {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 22px;
  font: 600 1.25rem/1 var(--display);
  color: var(--ink);
  background: linear-gradient(var(--flap-top) 0 49%, #0a0a09 49% 51%, var(--flap) 51%);
  border-radius: 5px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.9);
}
.route h3 { font-size: 1.02rem; font-stretch: 87.5%; letter-spacing: -0.01em; margin-bottom: 8px; }
.route p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- picker ---------- */
.picker-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: center; }
.picker-copy .section-lede { margin-top: 20px; }
.keys { margin: 28px 0 0; display: grid; gap: 10px; }
.keys > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 14px; }
.keys dt { display: flex; align-items: center; gap: 5px; }
.keys dd { margin: 0; color: var(--ink-2); }
.keys .to { color: var(--ink-3); }
.try { margin-top: 26px; color: var(--ink-3); font-size: 0.95rem; }

.picker-stage { display: flex; justify-content: center; }
.picker {
  position: relative;
  width: 100%; max-width: 620px;
  padding: 20px;
  font: 400 15px/1.35 var(--mac);
  color: var(--mac-ink);
  background: linear-gradient(rgba(58, 58, 62, 0.97), rgba(40, 40, 43, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 10px;
  outline-offset: 5px;
  cursor: default;
}
.picker:focus-visible { outline: 2px solid var(--ink); border-radius: 16px; }
.pk-title { font-size: 20px; font-weight: 600; }
.pk-urlbar { display: flex; align-items: center; gap: 10px; }
.pk-field {
  flex: 1; min-width: 0;
  padding: 5px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pk-icon, .pk-plain, .pk-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px; border: 0; background: none;
  cursor: pointer; font-size: 13px; color: var(--mac-accent);
}
.pk-icon { color: var(--mac-ink); }
.pk-plain { color: var(--mac-ink); white-space: nowrap; }
.pk-link { align-self: flex-start; font-size: 14.5px; color: #4aa3ff; }
.pk-link[hidden] { display: none; }
.pk-remember {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05);
}
.pk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sec { color: var(--mac-sec); font-size: 14.5px; }
.chip {
  border: 0; cursor: pointer; border-radius: 999px; padding: 4px 10px;
  font-size: 13px; background: rgba(255, 255, 255, 0.14); color: var(--mac-ink);
}
.chip.on { background: #0a6ad6; color: #fff; font-weight: 600; }
.pk-summary { overflow-wrap: anywhere; }
.pk-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pk-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 66px; padding: 8px 6px 8px 12px; border-radius: 6px;
  cursor: pointer;
}
.pk-row.sel { background: rgba(10, 132, 255, 0.26); }
.tile {
  width: 36px; height: 36px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font: 700 17px/1 var(--mac); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.t-chrome { background: linear-gradient(140deg, #2f6fd8, #1b4fb0); }
.t-chrome2 { background: linear-gradient(140deg, #1f8a5e, #146845); }
.t-safari { background: linear-gradient(140deg, #1f7fc4, #1a5fa8); }
.t-firefox { background: linear-gradient(140deg, #d2602a, #b23d1f); }
.pk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pk-label { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-sub { font-size: 14px; color: var(--mac-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-num {
  min-width: 28px; height: auto; padding: 3px 6px; font: 600 16px/1 var(--mac); font-variant-numeric: tabular-nums;
  color: var(--mac-sec); background: rgba(255, 255, 255, 0.13); border: 0; border-radius: 5px; box-shadow: none;
}
.pk-eye {
  width: 30px; height: 26px; border-radius: 5px; display: grid; place-items: center; color: var(--mac-sec);
}
.pk-eye.off { opacity: 0.3; }
.picker.shift .pk-eye:not(.off) { background: #0a6ad6; color: #fff; }
.pk-hint { font-size: 13.5px; color: var(--mac-sec); }
.pk-toast {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px);
  padding: 9px 14px; border-radius: 9px; max-width: calc(100% - 32px);
  background: rgba(20, 20, 22, 0.96); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.pk-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- safety ---------- */
.safety-grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px 64px; align-items: start;
}
.picker-static { max-width: 560px; position: sticky; top: 32px; }
.pk-alert {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(214, 56, 47, 0.88); color: #fff;
}
.pk-alert-title { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.pk-alert-title .ico { margin-top: 1px; }
.pk-alert-row { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
.pk-alert-row code { font: 14px/1.3 ui-monospace, "SF Mono", Menlo, monospace; }
.pk-alert-note { font-size: 14.5px; }

.ledger { margin: 0; }
.ledger > div { padding: 20px 0; border-top: 1px solid var(--rule); }
.ledger > div:first-child { border-top: 0; padding-top: 0; }
.ledger dt { font: 600 1.05rem/1.3 var(--display); font-stretch: 87.5%; margin-bottom: 6px; }
.ledger dd { margin: 0; color: var(--ink-2); }
.ledger kbd { font-size: 0.78em; }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.facts li {
  display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 16px;
  padding: 8px 12px; border-radius: 6px; background: var(--bg-2);
  font-size: 0.93rem;
}
.facts li span:first-child { color: var(--ink); font-weight: 600; }

/* ---------- privacy ---------- */
.privacy h2 { max-width: 16em; }
.pledges {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px;
}
.pledges li { padding-top: 18px; border-top: 2px solid var(--ink); }
.pledges h3 { font-size: 1.02rem; font-stretch: 87.5%; margin-bottom: 8px; }
.pledges p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- end ---------- */
.end {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  padding-block: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--rule);
}
.end-icon { width: 96px; height: 96px; filter: drop-shadow(0 16px 26px rgba(56, 60, 200, 0.28)); margin-bottom: 8px; }
.end .section-lede { max-width: 32em; }
.soon-lg { margin: 10px 0 0; font-size: 0.85rem; padding: 12px 18px; border: 1px solid rgba(255, 178, 46, 0.35); border-radius: 999px; }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 56px;
  padding-block: 44px 56px; border-top: 1px solid var(--rule);
  color: var(--ink-2); font-size: 0.95rem;
}
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.foot-brand .brand-mark { width: 22px; height: 22px; margin-bottom: 6px; }
.copy { color: var(--ink-3); margin-left: 6px; }
.muted { color: var(--ink-3); }
.foot-lang ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-lang a { text-decoration: none; color: var(--ink-2); }
.foot-lang a:hover { color: var(--ink); text-decoration: underline; }
.foot-lang a[aria-current] { color: var(--amber); }
.foot-small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--ink-3); font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .route li:nth-child(3)::before { display: none; }
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker-sec { grid-template-columns: minmax(0, 1fr); }
  .picker-copy { max-width: 40em; }
  .safety-grid { grid-template-columns: minmax(0, 1fr); }
  .picker-static { position: static; }
}
@media (max-width: 760px) {
  .hero, .section-head { grid-template-columns: minmax(0, 1fr); }
  .soon:not(.soon-lg) { display: none; }
  .top .lang { margin-left: auto; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .route li { padding: 0 0 28px 64px; }
  .route li .stop { position: absolute; left: 0; top: 0; margin: 0; }
  .route li::before, .route li:nth-child(3)::before {
    display: block; top: 52px; bottom: 6px; left: 22px; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, #4a443d 0 6px, transparent 6px 12px);
  }
  .route li.last::before { display: none; }
  .route h3 { padding-top: 10px; }
  .pledges { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .board { padding: 12px; border-radius: 10px; }
  .board-title { letter-spacing: 0.1em; }
  .picker { padding: 14px; gap: 8px; }
  .pk-row { min-height: 58px; padding-left: 8px; }
  .pk-label { font-size: 16px; }
  .pk-hint { display: none; }
  .pk-urlbar .pk-plain { font-size: 0; gap: 0; }
  .pk-urlbar .pk-plain .ico { width: 18px; height: 18px; }
  .keys > div { grid-template-columns: 6.2rem minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- header nav ---------- */
.top-nav a {
  font: 500 0.78rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: 8px 4px;
}
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); }
.top .soon + .top-nav { margin-left: 0; }
.foot-link { color: var(--ink-2); }

/* ---------- comparison page ---------- */
.cmp-hero {
  display: grid; gap: 28px 56px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  padding-top: clamp(28px, 6vw, 84px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.cmp-hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem);
  font-stretch: 87.5%; line-height: 1.08; letter-spacing: -0.035em;
}
:lang(ja) .cmp-hero h1, :lang(zh-Hans) .cmp-hero h1, :lang(ko) .cmp-hero h1 { letter-spacing: 0; line-height: 1.3; }
.cmp { padding-bottom: clamp(56px, 8vw, 112px); }
.cmp-legend {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--ink-3); font-size: 0.92rem;
}
.cmp-legend li { display: inline-flex; align-items: baseline; gap: 8px; }
.cmp-legend .yes { align-self: center; }
.cmp-scroll {
  position: relative;
  background: var(--board);
  border: 1px solid #1d1b19; border-radius: 14px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.97rem; }
.cmp-table th, .cmp-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid #1d1b19; }
.cmp-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--board); border-top: 0; border-bottom: 1px solid var(--rule);
  font: 600 0.78rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); padding-block: 18px 14px; white-space: nowrap;
}
.cmp-table thead th:first-child { border-top-left-radius: 14px; }
.cmp-table thead th:last-child { border-top-right-radius: 14px; }
.cmp-table thead th.bs { color: var(--amber); }
.cmp-table .cmp-feat { width: 34%; font-weight: 400; color: var(--ink); }
.cmp-table thead .cmp-feat { color: var(--ink-3); }
.cmp-table td { width: 13.2%; color: var(--ink-2); }
.cmp-table td.bs { background: rgba(255, 178, 46, 0.045); color: var(--ink); }
.cmp-table tr.grp th {
  padding-top: 26px; padding-bottom: 8px; border-top: 0;
  font: 600 0.72rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.cmp-table tbody:first-of-type tr.grp th { padding-top: 16px; }
.cmp-table tbody tr:not(.grp):hover > * { background-color: rgba(255, 255, 255, 0.025); }
.yes { display: inline-flex; color: var(--amber); }
.cmp-table td:not(.bs) .yes { color: var(--ink); }
.yes .ico { width: 1.15em; height: 1.15em; }
.cmp-legend .yes .ico { width: 1em; height: 1em; }
.nd { color: var(--ink-3); }
.val { display: block; font-size: 0.92rem; line-height: 1.4; }
td.bs .val { color: var(--ink); }

.cmp-notes { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--rule); }
.cmp-notes-grid {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 64px;
}
.cmp-notes-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; color: var(--ink-2); max-width: 44em; }
.cmp-notes-list li { padding-left: 18px; position: relative; }
.cmp-notes-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--ink-3); }
.cmp-notes h3 { font-size: 1.02rem; font-stretch: 87.5%; margin-bottom: 12px; }
.cmp-sources { margin: 0; display: grid; gap: 10px; }
.cmp-sources > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 12px; padding: 8px 12px; border-radius: 6px; background: var(--bg-2); font-size: 0.93rem; }
.cmp-sources dt { font-weight: 600; }
.cmp-sources dd { margin: 0; color: var(--ink-2); }
.cmp-sources a { color: var(--ink-2); }
.cmp-sources a:hover { color: var(--ink); }

@media (max-width: 900px) {
  /* Scroll the table sideways inside its frame; the feature column stays put. */
  .cmp-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .cmp-table { min-width: 720px; font-size: 0.92rem; }
  .cmp-table thead th { position: static; }
  .cmp-table .cmp-feat {
    position: sticky; left: 0; z-index: 1; width: 11.5rem; min-width: 11.5rem;
    background: var(--board); box-shadow: 1px 0 0 var(--rule);
  }
  .cmp-table td { min-width: 8rem; }
  .cmp-table tr.grp th { position: static; }
  .cmp-table tr.grp th span { position: sticky; left: 14px; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; }
}
@media (max-width: 760px) {
  .cmp-hero, .cmp-notes-grid { grid-template-columns: minmax(0, 1fr); }
  .top-nav { margin-left: auto; }
  .top-nav + .lang { margin-left: 0; }
  .cmp-scroll { border-radius: 10px; }
}
@media (max-width: 440px) {
  .top { gap: 10px; }
  .top-nav a { letter-spacing: 0.02em; padding-inline: 2px; }
  .lang summary { padding-inline: 10px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
