/* 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 {
  font-size: 1.05rem;
}
.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;
}
.pn .flag {
  font-size: 1.05em;
}
/* region-picker map (landing) — flag markers → region pages. 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);
}
/* brand-colour dot markers (no default Leaflet icon images needed) */
.map-pin {
  background: none;
  border: 0;
}
.map-pin .dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.map-pin:hover .dot {
  transform: scale(1.3);
}
/* 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;
}
.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);
}
.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;
}
.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 {
  max-width: 44rem;
  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 keep their own colour — exclude .cta AND .buy from the body-link accent rule
   (else .page a:not(.cta) at (0,2,1) beats .plan-card .buy (0,2,0) → accent-on-accent, invisible) */
.page a:not(.cta):not(.buy) {
  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);
}
