/* norimono.live static landing — the SAME palette as the board/settings
   (packages/app/src/board.css): --accent = Japan Blue (the brand: "norimono"),
   --live = 青信号 teal-green (realtime). The wordmark's ".live" is neutral --text,
   never the live colour. --accent/--live live per-theme (Japan Blue is lighter in
   dark, darker on white); :root holds the dark values as the pre-theme fallback. */
:root {
  --accent: #5e93f5;
  --live: #0ed18c;
  --radius: 14px;
  --maxw: 60rem;
}
[data-theme='light'] {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #15181f;
  --muted: #5b6470;
  --line: #e6e9ef;
  --accent: #1d52c4;
  --live: #00936b;
}
[data-theme='dark'] {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #eef1f6;
  --muted: #98a2b3;
  --line: #252a33;
  --accent: #5e93f5;
  --live: #0ed18c;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.landing {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem 1rem;
}
.hero {
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  margin: 0.2em 0 0.1em;
  letter-spacing: -0.02em;
}
.wordmark {
  font-weight: 800;
}
.accent {
  color: var(--accent);
}
.eyebrow {
  margin: 0 0 0.5rem;
}
.eyebrow .wordmark {
  /* match the app board wordmark (board.css .brand) so the logo reads at the same size across site + app */
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}
/* the eyebrow wordmark is a back-home logo, not a text link — no underline */
.eyebrow a {
  text-decoration: none;
}
.tagline {
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  font-weight: 600;
  margin: 0.2em auto;
}
.lede {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 42rem;
  margin: 0.6em auto 1.4em;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  transition: transform 0.12s ease;
}
.cta:hover {
  transform: translateY(-1px);
}
.places {
  margin-top: clamp(2.5rem, 8vw, 5rem);
}
.places h2 {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.2rem;
}
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
}
.place-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    border-color 0.12s ease,
    transform 0.12s ease;
}
.place-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pn {
  font-weight: 700;
}
.pc {
  color: var(--muted);
  font-size: 0.9rem;
}
/* Region flags are bundled Twemoji SVG <img>s (/assets/flags/<codepoints>.svg — graphics CC BY 4.0,
   credited in the footer; templates.ts#flagSvgUrl), not raw emoji: Windows Chrome draws the
   England/Scotland/Wales tag-sequence flags as a plain black flag, so emoji flags don't travel.
   Inline (card) size ≈ the old 1.05em emoji glyph; twemoji-style baseline drop. */
.flag-svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.24em;
}
/* region-picker map (landing) — country FLAG pins that drive the country cards below
   (or navigate, for a childless top). Leaflet self-hosted. */
#region-map {
  height: clamp(280px, 46vh, 460px);
  margin: 0 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  z-index: 0;
}
#region-map:empty {
  display: none;
}
.leaflet-container {
  background: var(--surface);
  font: inherit;
  border-radius: var(--radius);
}
/* divIcon markers (no default Leaflet icon images needed): the region's flag (a bundled Twemoji
   SVG — see .flag-svg above) on a subtle theme-aware disc (--surface halo keeps it legible on both
   basemaps). Every top carries a flag with a bundled SVG — build.ts fails loud on a miss, so there
   is no non-flag marker style. Flag img = the old 23px emoji size, centred by the flex disc. */
.map-pin {
  background: none;
  border: 0;
}
.map-pin .flag-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  line-height: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 5px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.map-pin .flag-svg {
  width: 23px;
  height: 23px;
}
.map-pin:hover .flag-pin {
  transform: scale(1.18);
}
/* hierarchical landing: a country box (<details>) opens to reveal its region boxes */
.region-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.region-card > summary::-webkit-details-marker {
  display: none;
}
.region-card > summary::after {
  content: '›';
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.region-card[open] > summary::after {
  transform: rotate(90deg);
}
.region-card[open] {
  grid-column: 1 / -1;
}
/* a flag-pin click scrolls here — breathing room above the card at the scroll target */
.region-card {
  scroll-margin-top: 1rem;
}
/* .pin-focus: the country card a map flag pin selected — accent ring + tint so it visibly pops
   (theme vars cover light + dark); map.js moves it to the newly clicked pin's card. */
.place-card.pin-focus {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.subregion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.subregion-card {
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  transition:
    border-color 0.12s ease,
    transform 0.12s ease;
}
.subregion-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.place .hero {
  text-align: left;
  max-width: 42rem;
}
.place .hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}
/* region pages align their section heading left, with the hero (the landing keeps centred) */
.place .places h2 {
  text-align: left;
  max-width: 42rem;
}
/* region page "On this board": modes (headline) + coverage + live/timetable */
.board-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 42rem;
}
.bm-modes {
  font-weight: 700;
  font-size: 1.15rem;
}
.bm-coverage {
  color: var(--muted);
}
.bm-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.live-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--live);
}
/* region "On this board" — labelled facts: Services (curated) · Modes · Area · Operators (the
   data-driven long-tail that also fills the page). A label column + value, stacking on narrow. */
.board-facts {
  margin: 0;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.board-facts .fact {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.15rem 1.1rem;
  align-items: baseline;
}
.board-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.board-facts dd {
  margin: 0;
}
.board-facts dd.ops {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.bm-live {
  margin: 1rem 0 0;
}
@media (max-width: 30rem) {
  .board-facts .fact {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
.site-footer {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.foot-nav a {
  text-decoration: none;
}
.foot-nav a:hover {
  color: var(--text);
}
.attribution {
  margin: 0.8rem 0 0;
}
.meaning {
  margin: 0.5rem 0;
}
.hero .meaning {
  color: var(--muted);
  font-size: 0.95rem;
}
.hero .meaning-sm {
  font-size: 0.85rem;
  margin: 0.3rem 0;
}
.appearance {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1rem;
}

/* reading pages (Plans / Support / Privacy / Terms) — narrower prose container */
.page {
  /* Unified width for all info pages (Plans/Support/Privacy/Terms): the minimum that fits the three
     Plans cards 3-up (~48rem) while keeping legal prose at a readable measure. Plans no longer overrides. */
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 1rem;
}
.page h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0.3em 0 0.4em;
  letter-spacing: -0.02em;
}
.page h2 {
  margin: 0 0 0.2em;
}
.page p,
.page li {
  color: var(--text);
}
.page .lede {
  color: var(--muted);
  font-size: 1.15rem;
}
/* buttons + the eyebrow logo keep their own colour — exclude .cta/.buy/.logo from the body-link accent
   rule (else .page a:not(...) at (0,3,1) beats .plan-card .buy, and recolours the eyebrow logo's ".live"
   accent-blue; the logo must read like the app board: "norimono" accent + ".live" neutral --text). */
.page a:not(.cta):not(.buy):not(.logo) {
  color: var(--accent);
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.plan-card .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.plan-card li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}
.plan-card li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
}
.muted {
  color: var(--muted);
}

/* Hero "product shot" — a faithful, theme-aware mock of the live board (mirrors the real board,
   packages/app/src/board.css): a framed screen with [route badge] destination · live countdowns.
   Illustrative only; reuses the shared palette so it reads as one product. Route badge colours are
   inline (like the real board's baked route_color). */
.showcase {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}
.hero-board {
  max-width: 47rem;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 28px 64px -32px rgba(15, 30, 70, 0.45),
    0 3px 10px -5px rgba(0, 0, 0, 0.18);
  padding: clamp(0.85rem, 2vw, 1.35rem);
}
/* Honesty caption: the board above is a fixed illustration, not the live feed. */
.hb-note {
  max-width: 47rem;
  margin: 0.7rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.hb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}
.hb-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hb-brand .accent {
  color: var(--accent);
}
.hb-status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}
.hb-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--live);
  font-weight: 700;
  border: 1px solid var(--live);
  border-radius: 999px;
  padding: 0.1em 0.6em;
}
.hb-live .d {
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--live);
}
.hb-clock {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.hb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hb-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.hb-mode {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 0.5em;
}
.hb-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.hb-row:first-of-type {
  border-top: 0;
  padding-top: 0.1rem;
}
.hb-badge {
  flex: 0 0 auto;
  min-width: 2em;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 0.4rem;
  padding: 0.18em 0.45em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.hb-dest {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-times {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
  padding-bottom: 0.3em;
}
.hb-t {
  font-weight: 700;
  position: relative;
}
.hb-t .ld {
  position: absolute;
  left: 50%;
  bottom: -0.34em;
  width: 0.22em;
  height: 0.22em;
  margin-left: -0.11em;
  border-radius: 50%;
  background: var(--live);
}
.hb-sep {
  color: var(--muted);
}
.hb-unit {
  font-size: 0.6em;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.2em;
}
@media (max-width: 33rem) {
  .hb-grid {
    grid-template-columns: 1fr;
  }
}
