/* AstroWhere — minimal white design system */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-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+0304, U+0308, U+0329, 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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #ffffff;
  --ink: #121318;
  --ink-2: #3c404b;
  --muted: #767b87;
  --faint: #b6bac3;
  --line: #e8e9ed;
  --soft: #f6f6f8;
  --gold: #a7843d;

  --good: #2f7d57;
  --good-2: #9fd2b3;
  --neutral: #e9e3d3;
  --depends: #efc468;
  --hard-2: #f0a49b;
  --hard: #c8473f;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --glyph: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", "DejaVu Sans", sans-serif;

  --wrap: 1120px;
  --text: 680px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.65 var(--sans); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--faint); }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; }
::selection { background: #f1e6cc; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 88px); font-weight: 300; }
h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 300; }
h3 { font-size: clamp(24px, 2.6vw, 30px); }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.eyebrow {
  font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.serif { font-family: var(--serif); }
.glyph { font-family: var(--glyph); font-weight: 400; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.text { max-width: var(--text); }

/* Header / footer ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark { font: 400 25px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; display: inline-block; white-space: nowrap; }
.wordmark em { font-style: italic; }
.wordmark .mark { display: inline-block; width: 22px; height: 22px; vertical-align: -4px; margin-right: 9px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

.site-footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 40px 0 56px; font-size: 13.5px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: baseline; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Buttons ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px;
  padding: 15px 30px; font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn:hover { background: #262934; transform: translateY(-1px); box-shadow: 0 8px 24px -12px rgba(18,19,24,.5); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--soft); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }
.actions .link-btn { padding: 10px 0; } /* a finger-size tap area; .actions centres it, so it looks the same */

/* Landing ---------------------------------------------------------------------- */
.hero { padding: clamp(36px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 28px; font-size: clamp(44px, 6.2vw, 80px); }
.hero .lede { margin-bottom: 36px; }
.hero .cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-globe { aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; position: relative; }
.hero-globe svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-globe { justify-self: center; max-width: 380px; order: -1; }
}

.section { padding: clamp(56px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 40em; }
.section-head h2 { margin-bottom: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .num { font: 300 46px/1 var(--serif); color: var(--gold); margin-bottom: 18px; display: block; }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.sample-card { border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); background: #fff; box-shadow: 0 40px 80px -60px rgba(18,19,24,.35); }
.sample-card .map { border-radius: 12px; overflow: hidden; background: var(--soft); margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font: 400 23px/1.3 var(--serif); display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-2); max-width: 40em; }

.quote { font: 300 clamp(26px, 3.4vw, 38px)/1.3 var(--serif); max-width: 24em; }
.quote em { color: var(--gold); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Questionnaire ---------------------------------------------------------------- */
.flow { min-height: 100vh; display: flex; flex-direction: column; }
.flow-top { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); gap: 16px; }
.flow-top .count { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: transparent; z-index: 30; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .6s var(--ease); }
.flow-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(24px, 8vh, 96px) var(--gutter) 80px; }
.q { width: 100%; max-width: 640px; }
.q[hidden] { display: none; }
.q.enter { animation: q-in .7s var(--ease) both; }
.q.leave { animation: q-out .35s ease-in both; }
.q.enter.back { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateY(-22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes q-out { to { opacity: 0; transform: translateY(-12px); filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { .q.enter, .q.leave { animation: none; } }

.q .label { font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; gap: 10px; }
.q .label b { color: var(--gold); font-weight: 500; }
.q h1 { font-size: clamp(36px, 5.6vw, 58px); margin-bottom: 16px; }
.q .help { color: var(--muted); font-size: 15.5px; margin-bottom: 34px; max-width: 34em; }
.q .actions { display: flex; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
@media (max-width: 359px) { .q .actions { gap: 16px; } .q .actions .btn { padding-left: 22px; padding-right: 22px; } } /* three buttons stay on one line at 320px */
.q .hint { font-size: 12.5px; color: var(--faint); }
@media (hover: none) { .q .hint { display: none; } } /* "press Enter" means nothing on a touch screen */
.q .error { color: var(--hard); font-size: 14px; margin-top: 14px; min-height: 1.4em; }

.big-input {
  width: 100%; border: 0; border-bottom: 1px solid var(--faint); background: transparent; border-radius: 0;
  font: 300 clamp(28px, 4vw, 40px)/1.3 var(--serif); padding: 6px 0 10px; color: var(--ink); outline: none;
  transition: border-color .3s;
}
.big-input::placeholder, select.big-input:has(option[value=""]:checked) { color: #cfd2d8; }
select.big-input option { color: var(--ink); } /* the open list keeps dark text */
.big-input:focus { border-color: var(--ink); }
.date-row { display: grid; grid-template-columns: 1fr 2fr 1.3fr; gap: 20px; }
.date-row label { font-size: 12px; color: var(--muted); letter-spacing: .06em; display: block; margin-bottom: 4px; }
/* Phones: day and year need little space, so the month gets the rest ("September" must fit at 320px) */
@media (max-width: 480px) { .date-row { grid-template-columns: 3.2em minmax(0, 1fr) 4.4em; gap: 12px; } .date-row select.big-input { padding-right: 20px; } }
select.big-input { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.time-row { margin-bottom: 30px; }
/* Birth-time wheels: 5 rows of 56px, the middle row is the value (start.js uses the 56px) */
/* Each wheel is 280px wide; on a narrow screen it is half of the free width (32px: two gaps, the colon and a desktop scrollbar) */
.wheels { position: relative; display: flex; align-items: center; gap: 4px; width: max-content; }
.wheel { height: 280px; width: min(280px, (100vw - 2 * var(--gutter) - 32px) / 2); overflow-y: scroll; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none;
  -webkit-mask-image: linear-gradient(transparent, #000 38%, #000 62%, transparent); mask-image: linear-gradient(transparent, #000 38%, #000 62%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel .pad { height: 112px; }
.wheel .it { height: 56px; display: grid; place-items: center; font: 300 36px/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--faint); scroll-snap-align: center; cursor: pointer; user-select: none; transition: color .15s; }
.wheel .it.on { color: var(--ink); }
.wheels .band { position: absolute; left: 0; right: 0; top: 112px; height: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); pointer-events: none; transition: border-color .3s; }
.wheels:focus-within .band { border-color: var(--ink); }
.wheels .colon { font: 300 36px/1 var(--serif); color: var(--muted); padding-bottom: 6px; }
.time-echo { color: var(--muted); font-size: 14px; margin-top: 10px; min-height: 1.4em; }

.options { display: grid; gap: 10px; }
.options.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .options.cols { grid-template-columns: 1fr; } }
.option {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px; border: 1px solid var(--line);
  border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); background: #fff; text-align: left; width: 100%;
}
.option:hover { border-color: var(--faint); background: #fcfcfd; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--faint); margin-top: 2px; position: relative; transition: border-color .2s; }
.option .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .25s var(--ease); }
.option.multi .dot { border-radius: 5px; }
.option.multi .dot::after { inset: 3px; border-radius: 2px; }
.option .t { font-size: 15.5px; line-height: 1.45; }
.option .t small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.option:has(input:checked) { border-color: var(--ink); }
.option:has(input:checked) .dot { border-color: var(--ink); }
.option:has(input:checked) .dot::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.option.disabled { opacity: .45; pointer-events: none; }

.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -30px rgba(18,19,24,.35); list-style: none; margin: 0; padding: 6px; z-index: 10; max-height: 340px; overflow: auto; }
.ac-list[hidden] { display: none; }
.ac-list li { padding: 10px 12px; border-radius: 9px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.ac-list li span { font-size: 15.5px; }
.ac-list li small { color: var(--muted); font-size: 13px; text-align: right; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--soft); }
.ac-list .empty { color: var(--muted); cursor: default; font-size: 14px; }
.picked { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); min-height: 1.5em; }
.picked .ok { display: inline-flex; gap: 8px; align-items: center; }
.picked .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.clock-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; border-radius: 999px; background: var(--soft); font-size: 14.5px; animation: q-in .45s var(--ease) both; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 17px; line-height: 1; padding: 7px 8px; margin: -7px -6px; } /* negative margin: larger tap area, same look */
.chip button:hover { color: var(--ink); }

.consent { display: grid; gap: 14px; margin-top: 30px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--faint); border-radius: 5px; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.check input::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

/* Loader ("the magic") ------------------------------------------------------------ */
.loader { position: fixed; inset: 0; background: #fff; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; opacity: 0; transition: opacity .8s var(--ease); }
.loader.show { opacity: 1; }
.loader[hidden] { display: none; }
.loader .globe { width: min(62vh, 82vw, 460px); aspect-ratio: 1; margin-bottom: 36px; }
.loader .globe svg { width: 100%; height: 100%; overflow: visible; }
.loader .status { font: 300 clamp(24px, 3.4vw, 34px)/1.3 var(--serif); min-height: 2.6em; max-width: 22em; }
.loader .status span { display: inline-block; animation: status-in .9s var(--ease) both; }
.loader .status.final { font-size: clamp(34px, 5vw, 52px); }
.loader .status em { font-style: italic; }
.loader .sub { color: var(--muted); font-size: 14.5px; margin-top: 8px; min-height: 1.6em; }
.loader .ticks { display: flex; gap: 6px; margin-top: 26px; }
.loader .ticks i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: background .5s; }
.loader .ticks i.on { background: var(--ink); }
@keyframes status-in { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

/* Plans -------------------------------------------------------------------------- */
.plans-hero { padding: clamp(32px, 6vw, 80px) 0 32px; }
.plans-hero h1 { margin-bottom: 22px; }
.teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 40px 0; }
.teaser > div { padding: 26px 24px 24px 0; }
.teaser > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.teaser .n { font: 300 54px/1 var(--serif); display: block; margin-bottom: 10px; }
.teaser .t { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 720px) { .teaser { grid-template-columns: 1fr; } .teaser > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }
.locked-map { position: relative; border-radius: 20px; overflow: hidden; background: var(--soft); margin-bottom: 56px; }
.locked-map .map-svg { filter: blur(5px) saturate(1.1); transform: scale(1.03); }
.locked-map .veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.55)); text-align: center; padding: 20px; }
.locked-map .veil .serif { font-size: clamp(22px, 3vw, 32px); }
.lock-icon { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px -8px rgba(0,0,0,.25); }
.locked-cities { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.locked-cities span { background: rgba(255,255,255,.85); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
/* Phones: the map is too low for the veil text, so the veil sets the height and the blurred map fills it */
@media (max-width: 560px) {
  .locked-map .veil { position: relative; min-height: 300px; padding: 32px 20px; }
  .locked-map .map-box { position: absolute; inset: 0; border: 0; border-radius: 0; display: flex; justify-content: center; }
  .locked-map .map-box svg { height: 100%; width: auto; max-width: none; flex: none; }
}
.locked-cities span i { display: inline-block; width: 46px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--good-2), var(--depends), var(--hard-2)); filter: blur(2px); margin-left: 8px; vertical-align: middle; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; background: #fff; position: relative; }
.plan.recommended { border-color: var(--ink); box-shadow: 0 40px 80px -56px rgba(18,19,24,.45); }
.plan .badge { position: absolute; top: -12px; left: 28px; background: var(--ink); color: #fff; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.plan h3 { font-size: 32px; margin-bottom: 6px; }
.plan .tag { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.plan .price { font: 300 58px/1 var(--serif); margin-bottom: 4px; }
.plan .price small { font: 400 14px/1 var(--sans); color: var(--muted); margin-left: 6px; }
.plan .check-list { margin: 22px 0 28px; flex: 1; }
.plan .check-list li { font-size: 15px; padding-top: 9px; padding-bottom: 9px; }
.plan .check-list li::before { top: 16px; }
.plan .btn { width: 100%; }
.legal-box { max-width: 760px; margin: 36px auto 0; display: grid; gap: 14px; }
.demo-note { margin: 22px auto 0; max-width: 760px; font-size: 13.5px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; }

/* Report ------------------------------------------------------------------------ */
.report-cover { padding: clamp(36px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.report-cover h1 { margin-bottom: 22px; }
.report-cover .meta { color: var(--muted); font-size: 14.5px; max-width: 48em; }
.report-cover .meta b { color: var(--ink-2); font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.r-section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.r-section > .wrap > h2 { margin-bottom: 18px; }
.r-section .intro { max-width: 40em; color: var(--ink-2); margin-bottom: 36px; }
.headline { font: 300 clamp(26px, 3.4vw, 38px)/1.25 var(--serif); max-width: 26em; margin-bottom: 36px; }
.headline em { font-style: italic; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 820px) { .summary-grid { grid-template-columns: minmax(0, 1fr); } }
.kv { border-top: 1px solid var(--ink); padding-top: 16px; }
.kv h4 { font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

.cls { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.cls::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; }
.cls.good { --c: var(--good); } .cls.likely_good { --c: var(--good-2); } .cls.neutral { --c: #cfc6ad; }
.cls.depends { --c: var(--depends); } .cls.likely_hard { --c: var(--hard-2); } .cls.hard { --c: var(--hard); }

.place-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.place-row:last-child { border-bottom: 0; }
.place-row .name { font: 400 22px/1.2 var(--serif); }
.place-row .name small { font: 400 13px var(--sans); color: var(--muted); margin-left: 6px; display: inline-block; } /* inline-block: the line can break before it */
.place-row .why { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }

.bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--soft); min-width: 120px; }
.bar i { display: block; height: 100%; }
.bar .p { background: var(--good); } .bar .z { background: #e4e0d4; } .bar .m { background: var(--hard); }

.chart-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-wheel { width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.features li:first-child { padding-top: 0; }

table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.data td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.planet { white-space: nowrap; font-weight: 500; }
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.table-scroll table { min-width: 680px; }
/* Phones: the planet and city tables become one card per row, so nothing hides off the screen */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; margin: 0; padding: 0; }
  .table-scroll table { min-width: 0; }
  table.planets thead, table.cities thead { display: none; }
  table.planets tr, table.cities tr { display: grid; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.planets td, table.cities td { border: 0; padding: 0; }
  table.planets tr { grid-template-columns: minmax(0, 1fr) auto; }
  table.planets td:nth-child(2), table.planets td:nth-child(3) { grid-column: 1 / -1; }
  table.planets td:nth-child(4) { grid-row: 1; grid-column: 2; }
  table.planets td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  table.cities tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  table.cities td:nth-child(1), table.cities td:nth-child(2), table.cities td:nth-child(6) { grid-column: 1 / -1; }
  table.cities td[data-label]::before { content: attr(data-label); display: block; font: 500 10.5px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
}

.map-box { position: relative; border-radius: 18px; overflow: hidden; background: #f7f8fa; border: 1px solid var(--line); }
.map-box svg, .map-box canvas { width: 100%; height: auto; }
.map-box canvas { position: absolute; inset: 0; }
.map-box .map-svg { position: relative; }
.map-caption { color: var(--muted); font-size: 13.5px; margin-top: 12px; max-width: 52em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.legend button { border: 0; background: none; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); transition: opacity .2s; }
.legend button[aria-pressed="false"] { opacity: .3; }
.legend .sw { width: 18px; height: 2px; border-radius: 1px; background: var(--c); }
.legend .styles { display: inline-flex; gap: 14px; color: var(--muted); }
.legend .styles svg { display: inline-block; vertical-align: middle; margin-right: 5px; }
.slider { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.slider input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--ink); }
.slider .time { font: 400 26px/1 var(--serif); min-width: 4.2em; font-variant-numeric: tabular-nums; }
.play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.play:hover { border-color: var(--ink); }

.tooltip { position: fixed; pointer-events: none; z-index: 50; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.45; padding: 8px 11px; border-radius: 8px; max-width: 260px; opacity: 0; transition: opacity .15s; }
.tooltip.show { opacity: 1; }
.tooltip b { font-weight: 600; }

.city-card { border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); margin-bottom: 20px; }
.city-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.city-card h3 { font-size: clamp(30px, 3.4vw, 40px); }
.city-card .roles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.role { font: 500 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; }
.city-card .verdict { text-align: right; }
.city-card .verdict .bar { margin-top: 10px; width: 180px; margin-left: auto; }
@media (max-width: 560px) { .city-card .verdict { text-align: left; } .city-card .verdict .bar { margin-left: 0; } } /* the verdict wraps under the name */
.city-card .summary { color: var(--ink-2); max-width: 46em; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 22px 0 6px; }
.strip i { height: 22px; border-radius: 3px; background: #ebe7dc; position: relative; }
.strip i.p { background: var(--good); } .strip i.m { background: var(--hard); }
.strip i.c::after { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 36px; background: var(--ink); }
.strip-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg-sign { font-weight: 600; white-space: nowrap; }
.seg-sign.p { color: var(--good); } .seg-sign.m { color: var(--hard); } .seg-sign.x { color: #b0832d; }
.mini { display: inline-flex; gap: 2px; vertical-align: middle; flex-wrap: wrap; max-width: 120px; }
.mini i { width: 8px; height: 12px; border-radius: 2px; background: #ebe7dc; }
.mini i.p { background: var(--good); } .mini i.m { background: var(--hard); }
table.seg-table { margin-top: 22px; }
@media (max-width: 640px) {
  table.seg-table thead { display: none; }
  table.seg-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.seg-table td { border: 0; padding: 0; }
  table.seg-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

.place-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.place-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.place-card .name { font: 400 25px/1.15 var(--serif); }
.place-card .country { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.place-card .why { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.place-card .bar { margin-top: 12px; }

.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 48px); }
.theme { border-top: 1px solid var(--ink); padding-top: 16px; }
.theme h3 { font-size: 27px; margin-bottom: 6px; }
.theme ol { padding: 0; margin: 14px 0 0; list-style: none; counter-reset: t; }
.theme li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.theme li::before { content: counter(t); font: 400 18px/1 var(--serif); color: var(--gold); }
.theme li small { color: var(--muted); font-size: 12.5px; grid-column: 2 / -1; }

.regions { display: grid; gap: 0; }
.region { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.region h3 { font-size: 25px; }
.region .cls { margin-top: 6px; }
.region p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 720px) { .region { grid-template-columns: 1fr; } }

.locked { border: 1px dashed var(--faint); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(180deg, #fff, #fbfbfc); }
.locked .serif { font-size: 26px; line-height: 1.2; }
.locked p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 36em; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters input, .filters select { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 400 14px var(--sans); background: #fff; outline: none; }
.filters input:focus, .filters select:focus { border-color: var(--ink); }
@media (pointer: coarse) { .filters input, .filters select { font-size: 16px; } } /* below 16px, iPhone Safari zooms the page on focus */

.notice { background: var(--soft); border-radius: 14px; padding: 16px 20px; font-size: 14.5px; color: var(--ink-2); }
.method { font-size: 13.5px; color: var(--muted); max-width: 52em; }
.method p { margin-bottom: .8em; }

.center-screen { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px var(--gutter); }
.spinner { width: 26px; height: 26px; border: 1.5px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Legal pages ----------------------------------------------------------------- */
.legal { padding: clamp(36px, 6vw, 80px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(42px, 6vw, 64px); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 30px; margin: 48px 0 14px; font-weight: 400; }
.legal h3 { font-size: 22px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal .box { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 18px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 12px 0 18px; }
.legal th, .legal td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.legal th { font-weight: 500; color: var(--ink); }
.toc { columns: 2; column-gap: 40px; font-size: 14.5px; padding-left: 1.2em; margin-bottom: 20px; }
@media (max-width: 640px) { .toc { columns: 1; } }

/* Print / PDF ----------------------------------------------------------------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; }
  .site-header, .site-footer, .toolbar, .no-print, .slider, .legend button[aria-pressed="false"], .locked { display: none !important; }
  .r-section { break-before: page; padding: 0; border: 0; }
  .r-section.keep { break-before: auto; padding-top: 24px; }
  .city-card, .place-card, .map-box, .region, table.data tr { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; }
  .map-box { border: 0; }
}
