/* Creator Cities: Apple-style design language (no Apple assets; system font, frosted surfaces, blue pills).
   Two looks, switched by data-look on <html> (the segmented control in the nav).
   Light is the default. Components only read the tokens below. */
:root {
  --bg: #f5f5f7;
  --map-bg: #c9e3f5;
  --nav-bg: rgba(250, 250, 252, 0.8);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.12);
  --line-3: rgba(0, 0, 0, 0.24);
  --sep: rgba(60, 60, 67, 0.13);
  --fill: #f5f5f7;
  --fill-2: #e8e8ed;
  --field: rgba(118, 118, 128, 0.12);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --dim: #86868b;
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0, 113, 227, 0.09);
  --blue-soft-hover: rgba(0, 113, 227, 0.15);
  --accent: #34c759;            /* available (green) */
  --accent-text: #248a3d;
  --accent-soft: rgba(52, 199, 89, 0.13);
  --accent-line: rgba(52, 199, 89, 0.4);
  --accent-ink: #ffffff;
  --red: #ff3b30;               /* taken or sold */
  --red-text: #d70015;
  --red-soft: rgba(255, 59, 48, 0.09);
  --red-line: rgba(255, 59, 48, 0.3);
  --yellow: #ffcc00;            /* expansion cities */
  --yellow-text: #9a6700;
  --yellow-soft: rgba(255, 204, 0, 0.17);
  --yellow-line: rgba(255, 204, 0, 0.5);
  --danger: #e30000;
  --ink-bg: #1d1d1f;
  --ink-fg: #ffffff;
  --icon-fg: #0071e3;
  --icon-bg: rgba(0, 113, 227, 0.09);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.16);
  --scrim: rgba(0, 0, 0, 0.32);
  --focus-ring: 0 0 0 4px rgba(0, 113, 227, 0.3);
  --pin-ring: #ffffff;
  --pin-drop: rgba(0, 0, 0, 0.35);
  --halo-green: rgba(52, 199, 89, 0.24);
  --halo-yellow: rgba(255, 196, 0, 0.3);
  --halo-red: rgba(255, 59, 48, 0.22);
  --halo-blue: rgba(0, 113, 227, 0.22);
  --label-color: #1d1d1f;
  --label-halo: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 5px rgba(255, 255, 255, 0.9);
  --toast-bg: rgba(29, 29, 31, 0.92);
  --toast-fg: #ffffff;
  --toggle-track: rgba(118, 118, 128, 0.12);
  --toggle-thumb: #ffffff;
  --toggle-thumb-fg: #1d1d1f;
  --toggle-thumb-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  --ctrl-icon-filter: none;
  --attrib-filter: none;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.05);
  --nav-h: 52px;
  /* Phone notches and system bars (0 on desktop). */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  color-scheme: light;
}

:root[data-look="dark"] {
  --bg: #000000;
  --map-bg: #0f2233;
  --nav-bg: rgba(22, 22, 23, 0.8);
  --panel: rgba(28, 28, 30, 0.86);
  --panel-solid: #1c1c1e;
  --panel-strong: #1c1c1e;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-3: rgba(255, 255, 255, 0.3);
  --sep: rgba(84, 84, 88, 0.55);
  --fill: #2c2c2e;
  --fill-2: #3a3a3c;
  --field: rgba(118, 118, 128, 0.24);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #8e8e93;
  --link: #2997ff;
  --blue: #0a84ff;
  --blue-hover: #409cff;
  --blue-soft: rgba(10, 132, 255, 0.18);
  --blue-soft-hover: rgba(10, 132, 255, 0.26);
  --accent: #30d158;
  --accent-text: #30d158;
  --accent-soft: rgba(48, 209, 88, 0.16);
  --accent-line: rgba(48, 209, 88, 0.45);
  --accent-ink: #ffffff;
  --red: #ff453a;
  --red-text: #ff6961;
  --red-soft: rgba(255, 69, 58, 0.16);
  --red-line: rgba(255, 69, 58, 0.4);
  --yellow: #ffd60a;
  --yellow-text: #ffd60a;
  --yellow-soft: rgba(255, 214, 10, 0.16);
  --yellow-line: rgba(255, 214, 10, 0.45);
  --danger: #ff6961;
  --ink-bg: #f5f5f7;
  --ink-fg: #1d1d1f;
  --icon-fg: #0a84ff;
  --icon-bg: rgba(10, 132, 255, 0.18);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6);
  --scrim: rgba(0, 0, 0, 0.55);
  --focus-ring: 0 0 0 4px rgba(10, 132, 255, 0.4);
  --pin-ring: #ffffff;
  --pin-drop: rgba(0, 0, 0, 0.7);
  --halo-green: rgba(48, 209, 88, 0.32);
  --halo-yellow: rgba(255, 214, 10, 0.32);
  --halo-red: rgba(255, 69, 58, 0.3);
  --halo-blue: rgba(10, 132, 255, 0.32);
  --label-color: #f5f5f7;
  --label-halo: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000, 0 0 5px rgba(0, 0, 0, 0.9);
  --toast-bg: rgba(242, 242, 247, 0.94);
  --toast-fg: #1d1d1f;
  --toggle-track: rgba(118, 118, 128, 0.24);
  --toggle-thumb: #636366;
  --toggle-thumb-fg: #ffffff;
  --toggle-thumb-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  --ctrl-icon-filter: invert(1);
  --attrib-filter: invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
[hidden] { display: none !important; }

#map { position: fixed; inset: 0; background: var(--map-bg); }

.glass {
  background: var(--panel);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Global nav (frosted bar across the top) ---------- */
.globalnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  height: calc(var(--nav-h) + var(--sat));
  padding: var(--sat) max(20px, var(--sar)) 0 max(20px, var(--sal));
  display: flex; align-items: center; gap: 20px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--ink-bg); color: var(--ink-fg);
}
.brand-mark svg { width: 15px; height: 15px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.022em; }
.brand-tag { color: var(--muted); font-size: 12px; letter-spacing: -0.01em; }
.how-btn {
  height: 30px; padding: 0 2px; border: 0; background: none; color: var(--text);
  font-size: 12.5px; opacity: 0.85; transition: opacity 0.2s;
}
.how-btn:hover { opacity: 1; color: var(--link); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* "See an example" sits in the exact middle of the nav bar */
.example-btn {
  position: absolute; left: 50%; top: calc(var(--sat) + var(--nav-h) / 2); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 980px;
  background: var(--blue-soft); color: var(--link); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.2s var(--spring);
}
.example-btn:hover { background: var(--blue-soft-hover); }
.example-btn:active { transform: translate(-50%, -50%) scale(0.97); }
.ex-domain { padding-left: 8px; border-left: 1px solid var(--line-2); color: var(--muted); font-weight: 400; }
.example-link { display: none; margin-left: auto; color: var(--link); font-size: 13px; font-weight: 500; text-decoration: none; }

/* iOS-style segmented control */
.look-toggle { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--toggle-track); }
.look-toggle button {
  width: 34px; height: 26px; border: 0; border-radius: 7px; background: none;
  display: grid; place-items: center; color: var(--muted); transition: background 0.25s var(--ease), color 0.25s;
}
.look-toggle button svg { width: 15px; height: 15px; }
.look-toggle button.on { background: var(--toggle-thumb); color: var(--toggle-thumb-fg); box-shadow: var(--toggle-thumb-shadow); }

.cart-btn {
  position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: none;
  display: grid; place-items: center; color: var(--text); transition: background 0.2s;
}
.cart-btn:hover { background: var(--field); }
.cart-label { display: none; }
.cart-count {
  position: absolute; top: 1px; right: -2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--panel-solid);
}
.cart-count.zero { display: none; }
.cart-btn.bump .cart-count { animation: bump 0.5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- City panel ---------- */
.panel {
  position: fixed; top: calc(var(--nav-h) + 16px + var(--sat)); left: calc(16px + var(--sal)); bottom: calc(16px + var(--sab)); z-index: 5;
  width: 384px; border-radius: 22px;
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-head { padding: 24px 22px 10px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.panel h1 {
  margin: 0 0 18px; font-family: var(--font-display); font-size: 34px; line-height: 1.08;
  font-weight: 700; letter-spacing: -0.03em;
}
.panel h1 span { color: var(--muted); font-weight: 600; }
.kickoff {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; padding: 14px 16px; border-radius: 18px; background: var(--fill);
}
.k-when span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.k-when strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.k-count { display: flex; gap: 14px; }
.k-count div { text-align: center; }
.k-count strong { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.k-count span { font-size: 11px; color: var(--muted); }
.k-status { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stats div { padding: 11px 12px; border-radius: 14px; background: var(--fill); }
.stats strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.stats span { font-size: 11.5px; color: var(--muted); }

.search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px;
  border-radius: 11px; background: var(--field); color: var(--muted); transition: box-shadow 0.2s;
}
.search:focus-within { box-shadow: var(--focus-ring); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--text); }
.search input::placeholder { color: var(--dim); }
.search input:focus-visible { box-shadow: none; } /* the whole field shows the ring instead */
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.seg { display: flex; gap: 2px; margin-top: 10px; padding: 2px; border-radius: 9px; background: var(--toggle-track); }
.seg button {
  flex: 1; height: 30px; border: 0; border-radius: 7px; background: none;
  color: var(--text); font-size: 13px; font-weight: 500; transition: background 0.25s var(--ease);
}
.seg button.on { background: var(--toggle-thumb); color: var(--toggle-thumb-fg); font-weight: 600; box-shadow: var(--toggle-thumb-shadow); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend b { color: var(--text); font-weight: 600; }

/* iOS inset-grouped list: hairline separators and chevrons */
.city-list { list-style: none; margin: 0; padding: 2px 10px 10px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; }
.city-list li { position: relative; }
.city-list li + li::before {
  content: ""; position: absolute; top: 0; left: 37px; right: 12px; height: 1px; background: var(--sep);
}
.city-list li.list-divider::before, .city-list li.list-divider + li::before { display: none; }
.city-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 10px 11px 12px;
  border: 0; border-radius: 12px; background: none; text-align: left; transition: background 0.15s;
}
.city-row:hover, .city-row.hover { background: var(--fill); }
.city-row.active { background: var(--blue-soft); }
.row-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); }
.city-row.expansion .row-dot, .row-dot.exp { background: var(--yellow); }
.city-row.gone .row-dot, .row-dot.gone { background: var(--red); }
.city-row.example .row-dot, .row-dot.example { background: var(--blue); }
.tag.example { background: var(--blue-soft); color: var(--link); }
.list-divider.example { color: var(--link); }
.city-row.gone .row-name { color: var(--muted); }
.city-row.incart .row-dot { background: var(--panel-solid); box-shadow: 0 0 0 2.5px var(--blue); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-name { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; }
.row-name em { font-style: normal; color: var(--dim); font-weight: 400; font-size: 13px; margin-left: 6px; }
.row-domain { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.row-price { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.row-price.soon { font-weight: 500; font-size: 13px; color: var(--muted); }
.row-pop { font-size: 12px; color: var(--dim); }
.row-chev { flex: none; color: var(--dim); opacity: 0.7; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 980px; }
.tag.cart { background: var(--blue-soft); color: var(--link); }
.tag.gone { background: var(--red-soft); color: var(--red-text); }
.list-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.list-divider { padding: 20px 12px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.list-divider.exp { color: var(--yellow-text); }

.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px; border-top: 1px solid var(--sep); font-size: 12px; color: var(--dim);
}
.link { border: 0; background: none; padding: 0; color: var(--link); font-size: 12px; }
.link:hover { text-decoration: underline; }

/* ---------- Map pins (Apple Maps style: white-ringed dots, haloed labels) ---------- */
/* No `position` here: MapLibre positions markers absolutely and this must not override it.
   --dot is set per city from its population (bigger city, bigger dot). */
.pin {
  --dot: 12px; --c: var(--accent); --halo: var(--halo-green);
  width: calc(var(--dot) + 12px); height: calc(var(--dot) + 12px); padding: 0; border: 0; background: none;
}
.pin.expansion { --c: var(--yellow); --halo: var(--halo-yellow); }
.pin.gone { --c: var(--red); --halo: var(--halo-red); }
/* Example city (your own): blue with a white star, label always shown */
.pin.example { --c: var(--blue); --halo: var(--halo-blue); }
.pin-star { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; color: #ffffff; }
.pin.example .pin-label { opacity: 1; color: var(--link); }
.pin-dot {
  position: absolute; left: 50%; top: 50%;
  width: var(--dot); height: var(--dot); margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 3px var(--pin-ring), 0 0 0 7px var(--halo), 0 3px 10px var(--pin-drop);
  transition: transform 0.25s var(--spring);
}
.pin:hover .pin-dot, .pin.hover .pin-dot { transform: scale(1.3); }
.pin-ring {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--dot) + 10px); height: calc(var(--dot) + 10px); margin: calc((var(--dot) + 10px) / -2) 0 0 calc((var(--dot) + 10px) / -2);
  border-radius: 50%; border: 2px solid var(--c); opacity: 0;
}
.pin.selected .pin-ring { animation: ping 2s ease-out infinite; }
.pin.selected .pin-dot { transform: scale(1.4); }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(2.6); opacity: 0; } }
.pin-label {
  position: absolute; left: calc(50% + var(--dot) / 2 + 8px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--label-color); text-shadow: var(--label-halo);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.zoomed .pin-label, .pin:hover .pin-label, .pin.hover .pin-label, .pin.selected .pin-label { opacity: 1; }
.pin.hover, .pin.selected, .pin:hover { z-index: 60 !important; }
.pin.dim { opacity: 0.15; }
.pin.hidden { display: none; }
.pin.incart .pin-dot { background: #ffffff; box-shadow: 0 0 0 4px var(--blue), 0 0 0 8px var(--halo-blue), 0 3px 10px var(--pin-drop); }

/* ---------- Map key (top-right of the map) ---------- */
.map-legend {
  position: fixed; top: calc(var(--nav-h) + 16px + var(--sat)); right: calc(16px + var(--sar)); z-index: 4;
  display: flex; align-items: center; gap: 18px; padding: 10px 18px; border-radius: 980px;
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: right 0.35s var(--ease);
}
.map-legend span { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
[data-exp][hidden] { display: none !important; }
.lg-dot {
  width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px var(--pin-ring), 0 0 0 5px var(--halo-green), 0 1px 4px var(--pin-drop);
}
.lg-dot.exp { background: var(--yellow); box-shadow: 0 0 0 2px var(--pin-ring), 0 0 0 5px var(--halo-yellow), 0 1px 4px var(--pin-drop); }
.lg-dot.gone { background: var(--red); box-shadow: 0 0 0 2px var(--pin-ring), 0 0 0 5px var(--halo-red), 0 1px 4px var(--pin-drop); }
.lg-dot.example { background: var(--blue); box-shadow: 0 0 0 2px var(--pin-ring), 0 0 0 5px var(--halo-blue), 0 1px 4px var(--pin-drop); }
/* Keep the key visible beside an open city card */
.has-detail .map-legend { right: calc(436px + var(--sar)); }

/* ---------- City detail ---------- */
.detail {
  position: fixed; top: calc(var(--nav-h) + 16px + var(--sat)); right: calc(16px + var(--sar)); bottom: calc(16px + var(--sab)); z-index: 5;
  width: 404px; border-radius: 22px; padding: 26px 24px 24px; overflow-y: auto;
  animation: slideIn 0.45s var(--spring);
  scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.icon-btn {
  width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--field); color: var(--muted); transition: color 0.15s, background 0.15s;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { color: var(--text); }
.detail .close { position: absolute; top: 18px; right: 18px; }
.d-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-right: 40px; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; }
.chip.ok { background: var(--accent-soft); color: var(--accent-text); }
.chip.cart { background: var(--blue-soft); color: var(--link); }
.chip.exp { background: var(--yellow-soft); color: var(--yellow-text); }
.chip.gone { background: var(--red-soft); color: var(--red-text); }
.chip.example { background: var(--blue-soft); color: var(--link); }
.example-card { padding: 18px; border-radius: 18px; background: var(--blue-soft); }
.example-card strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.example-card span { font-size: 14px; line-height: 1.45; color: var(--muted); }
a.cta { text-decoration: none; }
.cta.ghost + .how-link, .cta + .how-link { margin-top: 16px; }
.detail .cta.ghost { margin-top: 10px; }
.detail h2 { margin: 14px 0 4px; font-family: var(--font-display); font-size: 48px; line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.d-domain { margin-top: 4px; font-size: 23px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: var(--text); overflow-wrap: anywhere; }
.d-domain.exp { color: var(--yellow-text); }
.d-domain.gone { text-decoration: line-through; text-decoration-color: var(--red); }
.gone-card { padding: 18px; border-radius: 18px; background: var(--red-soft); }
.gone-card strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.gone-card span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.gone-card .mono { color: var(--text); font-weight: 500; }
.d-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 10px; }
.d-meta div { padding: 13px 14px; border-radius: 16px; background: var(--fill); }
.d-meta strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.d-meta span { font-size: 12px; color: var(--muted); }
.price-card {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 18px; border-radius: 18px; background: var(--fill);
}
.price-card.exp { background: var(--yellow-soft); }
.price { font-family: var(--font-display); font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cur { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.once { font-size: 12px; line-height: 1.6; color: var(--muted); text-align: right; white-space: nowrap; }
.tier-badge { display: inline-block; padding: 2px 9px; border-radius: 980px; background: var(--panel-solid); color: var(--text); font-size: 12px; font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.price-card.exp .tier-badge { background: var(--yellow); color: #3d2a00; box-shadow: none; }
.detail h3 { margin: 26px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
/* "What you get": one grouped card with separators */
.included { list-style: none; margin: 0; padding: 0 14px; border-radius: 18px; background: var(--fill); }
.included li { position: relative; display: flex; gap: 12px; padding: 13px 0; }
.included li + li::before { content: ""; position: absolute; top: 0; left: 40px; right: 0; height: 1px; background: var(--sep); }
.inc-icon { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); }
.inc-icon svg { width: 16px; height: 16px; }
.included strong { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.included span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.included .mono { font-size: 15px; color: var(--text); }

/* Apple-style blue pill buttons */
.cta {
  width: 100%; min-height: 48px; margin-top: 20px; padding: 0 22px; border: 0; border-radius: 980px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: #ffffff; font-size: 17px; font-weight: 500; letter-spacing: -0.022em;
  transition: background 0.2s, transform 0.2s var(--spring);
}
.cta svg { width: 15px; height: 15px; }
.cta:hover { background: var(--blue-hover); }
.cta:active { transform: scale(0.98); }
.cta:disabled { background: var(--fill-2); color: var(--muted); transform: none; cursor: not-allowed; }
.cta.ghost { background: var(--field); color: var(--link); }
.cta.ghost:hover { background: var(--fill-2); }
.fine { margin: 12px 0 0; font-size: 12px; color: var(--dim); text-align: center; }
.how-link { display: block; margin: 16px auto 0; font-size: 14px; color: var(--link); }
.how-link::after { content: " ›"; }

.hint {
  position: fixed; left: 50%; bottom: calc(28px + var(--sab)); z-index: 4; transform: translateX(-50%);
  padding: 9px 16px; border-radius: 980px; font-size: 13px; color: var(--muted);
  animation: fadeUp 0.6s 0.8s var(--ease) both;
}
.hint.gone { animation: none; opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 9; background: var(--scrim); animation: fade 0.25s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: calc(var(--nav-h) + 16px + var(--sat)); right: calc(16px + var(--sar)); bottom: calc(16px + var(--sab)); z-index: 10;
  width: 420px; border-radius: 22px; display: flex; flex-direction: column;
  background: var(--panel-strong); box-shadow: var(--shadow-lg); animation: slideIn 0.4s var(--spring);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; }
.drawer-head h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 16px 12px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; border-radius: 16px; background: var(--fill); }
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item strong { display: block; font-size: 15px; font-weight: 600; }
.cart-item .ci-domain { font-size: 13px; color: var(--muted); }
.cart-item .ci-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--sep); }
.drawer-foot .cta { margin-top: 14px; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.total-row.big { margin: 10px 0 0; font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.025em; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 17px; font-weight: 600; }

/* ---------- Sheets: checkout and How it works ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal));
  background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.25s;
}
.modal {
  position: relative; width: min(580px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 32px; border-radius: 28px; background: var(--panel-strong); box-shadow: var(--shadow-lg);
  animation: rise 0.45s var(--spring);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal .close { position: absolute; top: 20px; right: 20px; }
.steps { display: flex; gap: 6px; margin: 0 48px 24px 0; }
.step { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-2); }
.step.on { background: var(--blue); }
.step-label { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.modal h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.modal .sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field label em { font-style: normal; color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  height: 44px; padding: 0 14px; border-radius: 12px; outline: 0; border: 0;
  background: var(--field); color: var(--text); font-size: 16px; transition: box-shadow 0.15s;
}
.field textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: var(--focus-ring); }
.field.invalid input { box-shadow: 0 0 0 2px var(--danger); }
.err { font-size: 12.5px; color: var(--danger); }
.order { border-radius: 18px; background: var(--fill); overflow: hidden; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--sep); font-variant-numeric: tabular-nums; }
.order-line:last-child { border-bottom: 0; }
.order-line .ol-domain { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.order-line.total { font-weight: 600; font-size: 18px; }
.inc-mini { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.inc-mini li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.inc-mini svg { flex: none; color: var(--accent-text); margin-top: 2px; }
.demo-note {
  display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px;
  background: var(--fill); font-size: 12.5px; line-height: 1.5; color: var(--muted);
}
.demo-note svg { flex: none; margin-top: 1px; }
.btn-row { display: flex; gap: 10px; margin-top: 6px; }
.btn-row .cta { margin-top: 14px; }
.btn-row .cta.ghost { flex: 0 0 110px; }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; opacity: 0.85; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.success { text-align: center; padding-top: 8px; }
.success-mark {
  width: 72px; height: 72px; margin: 6px auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #ffffff;
  animation: pop 0.6s var(--spring);
}
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.success .domains { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 22px; }
.success .domains span { font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 980px; background: var(--fill); color: var(--text); }
.next { text-align: left; margin: 0; padding: 0 14px; list-style: none; counter-reset: n; border-radius: 18px; background: var(--fill); }
.next li { counter-increment: n; position: relative; display: flex; gap: 12px; padding: 13px 0; font-size: 15px; }
.next li + li::before { content: ""; position: absolute; top: 0; left: 36px; right: 0; height: 1px; background: var(--sep); }
.next li::after {
  content: counter(n); order: -1; width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
}
.next strong { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; font-weight: 600; }
.next span { color: var(--muted); font-size: 13px; }
.demo-badge { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--muted); }

/* How it works timeline */
.timeline { list-style: none; margin: 4px 0 8px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--fill-2); }
.timeline li { position: relative; padding: 0 0 20px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel-solid); border: 2px solid var(--fill-2);
}
.timeline li.done::before { background: var(--blue); border-color: var(--blue); }
.timeline li.now::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.tl-date { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.timeline li.now .tl-date, .timeline li.playbook-step .tl-date { color: var(--link); }
.timeline strong { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 3px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.timeline .tl-text { font-size: 14px; line-height: 1.45; color: var(--muted); }
.tl-icon { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); }
.tl-icon svg { width: 15px; height: 15px; }

/* Community platform: the Skool wordmark on a white pill, or a text badge without a logo file */
.community-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 2px 9px; vertical-align: middle;
  border-radius: 980px; background: var(--fill-2); font-size: 12px; font-weight: 600; color: var(--text);
}
.community-badge svg { width: 13px; height: 13px; }
.community-logo-pill {
  display: inline-flex; align-items: center; margin-left: 4px; padding: 4px 9px; vertical-align: middle;
  border-radius: 980px; background: #ffffff; box-shadow: 0 0 0 1px var(--line);
}
.community-logo { display: block; height: 12px; width: auto; }

/* ---------- Toast (HUD) ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--sab)); z-index: 30;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 980px; background: var(--toast-bg); color: var(--toast-fg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.4s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Map chrome ---------- */
.maplibregl-ctrl-bottom-right { right: 16px; bottom: 16px; transition: right 0.35s var(--ease); }
.has-detail .maplibregl-ctrl-bottom-right { right: 436px; }
.maplibregl-ctrl-group { background: var(--panel) !important; border: 1px solid var(--line); box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--sep) !important; }
.maplibregl-ctrl-group button span { filter: var(--ctrl-icon-filter); }
.maplibregl-ctrl-attrib { background: var(--panel) !important; color: var(--muted); border-radius: 8px !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-attrib-button { filter: var(--attrib-filter); }
.map-fallback { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* ---------- Narrower desktops: detail replaces the list ---------- */
@media (max-width: 1180px) and (min-width: 821px) {
  .has-detail .panel { display: none; }
}
@media (max-width: 1240px) {
  .ex-domain { display: none; }
}
@media (max-width: 1000px) {
  .brand-tag { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 48px; }
  .globalnav { gap: 14px; padding-left: max(14px, var(--sal)); padding-right: max(14px, var(--sar)); }
  .brand-name { font-size: 16px; }
  .nav-right { gap: 10px; }
  .example-btn { display: none; }    /* no room in the phone nav; the panel shows a link instead */
  .example-link { display: inline; }
  .kickoff { padding: 12px 14px; }
  .k-count { gap: 10px; }
  .k-count strong { font-size: 22px; }
  .stats { display: none; }
  .panel { top: auto; left: calc(8px + var(--sal)); right: calc(8px + var(--sar)); bottom: calc(8px + var(--sab)); width: auto; height: 48vh; border-radius: 24px; }
  .panel-head { padding: 16px 16px 8px; }
  .panel h1 { display: none; }
  .has-detail .panel { display: none; }
  .detail { top: auto; left: calc(8px + var(--sal)); right: calc(8px + var(--sar)); bottom: calc(8px + var(--sab)); width: auto; max-height: 74vh; padding: 22px 20px 20px; border-radius: 24px; animation: sheetUp 0.45s var(--spring); }
  .detail h2 { font-size: 40px; }
  .d-domain { font-size: 20px; }
  @keyframes sheetUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .drawer { top: auto; left: calc(8px + var(--sal)); right: calc(8px + var(--sar)); bottom: calc(8px + var(--sab)); width: auto; max-height: 82vh; animation: sheetUp 0.4s var(--spring); }
  .modal { padding: 24px 20px; border-radius: 24px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .hint { display: none; }
  .map-legend { top: calc(var(--nav-h) + 10px + var(--sat)); left: calc(8px + var(--sal)); right: auto; gap: 14px; padding: 8px 14px; font-size: 12.5px; }
  .has-detail .map-legend { right: auto; }
  .maplibregl-ctrl-bottom-right { top: calc(var(--nav-h) + 10px + var(--sat)); bottom: auto; right: 8px; }
  .has-detail .maplibregl-ctrl-bottom-right { right: 8px; }
}
@media (max-width: 400px) {
  .how-btn { display: none; }
}
