:root {
  --navy: #040423;
  --navy-2: #152238;
  --ink: #162238;
  --muted: #5f6b7a;
  --orange: #ff8400;
  --orange-hover: #d64c01;
  --cream: #f6f3ee;
  --paper: #fff;
  --line: #dfe4ea;
  --blue: #2c5f9e;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(4, 4, 35, .14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Rubik", Arial, sans-serif;
  line-height: 1.65;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
#main .container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  right: 8px;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.hero {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(44,95,158,.42), transparent 31%),
    radial-gradient(circle at 82% 85%, rgba(255,132,0,.16), transparent 30%),
    linear-gradient(135deg, #040423 0%, #0b1433 55%, #152238 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image: radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1.5px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to left, #000, transparent 72%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  padding-block: 64px;
}
.eyebrow {
  margin: 0 0 14px;
  color: #ffae51;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.eyebrow.dark { color: var(--orange-hover); }
main h1, main h2, main h3, main p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  max-width: 750px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .99;
  letter-spacing: -.045em;
}
h1 em { color: #ffae51; font-style: normal; }
.hero-lead {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.79);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}
.trust-row, .cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: rgba(255,255,255,.76);
  font-size: .9rem;
}
.trust-row span::before, .cta-points span::before {
  content: "✓";
  margin-left: 7px;
  color: #ffae51;
  font-weight: 700;
}
.map-mark {
  width: min(100%, 390px);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
}
.map-mark::before, .map-mark::after, .map-mark-ring {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,174,81,.34);
  border-radius: 50%;
}
.map-mark::before { inset: 0; }
.map-mark::after { inset: 17%; border-style: dashed; transform: rotate(17deg); }
.map-mark-ring { inset: 31%; border-color: rgba(255,255,255,.25); }
.map-mark-center {
  width: 142px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  line-height: 1.2;
  box-shadow: 0 0 75px rgba(255,132,0,.28);
}
.map-mark-center strong { font-size: 1.45rem; }
.map-mark-center span { font-size: .75rem; font-weight: 600; }
.map-star { position: absolute; color: #ffae51; }
.star-one { top: 5%; left: 23%; font-size: 1.7rem; }
.star-two { bottom: 12%; right: 10%; font-size: 1rem; }
.star-three { top: 31%; right: -2%; font-size: .8rem; }
.hero-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.05); }
.hero-orbit-one { width: 560px; height: 560px; left: -280px; top: -240px; }
.hero-orbit-two { width: 760px; height: 760px; right: -420px; bottom: -560px; }

.calculator-section {
  padding: 78px 0;
  scroll-margin-top: 108px;
  background: var(--cream);
}
.calculator-wrap { max-width: 980px; }
.section-intro { max-width: 750px; margin: 0 auto 34px; text-align: center; }
.section-intro h2 {
  margin-bottom: 15px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.section-intro p:last-child { color: var(--muted); }
.map-form {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 60px rgba(4,4,35,.08);
}
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 38px;
  color: #8b93a0;
  font-size: .86rem;
  font-weight: 600;
}
.progress-step { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.progress-step b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #aeb4be;
}
.progress-step.active { color: var(--ink); }
.progress-step.active b { background: var(--orange); color: var(--navy); }
.progress-line { width: min(75px, 8vw); height: 1px; margin-inline: 12px; background: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-weight: 650; }
.field i { color: var(--muted); font-size: .78rem; font-weight: 400; font-style: normal; }
.field small, .check-field small { color: var(--muted); font-size: .78rem; }
.field input, .field select {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid #cbd2dc;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(44,95,158,.12);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ba3030; }
.field-label-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 5px;
  width: fit-content;
}
.field-label-inline > label { font-weight: 650; }
.city-info {
  position: relative;
  display: inline-flex;
}
.city-info-trigger {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(44,95,158,.42);
  border-radius: 50%;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
}
.city-info-trigger:hover, .city-info-trigger:focus-visible {
  border-color: var(--blue);
  background: rgba(44,95,158,.07);
  outline: 2px solid rgba(44,95,158,.14);
  outline-offset: 2px;
}
.city-info > .city-info-popup {
  display: none;
  width: min(330px, calc(100vw - 48px));
  position: absolute;
  z-index: 40;
  top: 25px;
  inset-inline-start: -8px;
  padding: 15px 17px;
  border: 1px solid #cbd2dc;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 36px rgba(4,4,35,.16);
  font-size: .8rem;
  line-height: 1.6;
}
.city-info:hover > .city-info-popup,
.city-info:focus-within > .city-info-popup { display: block; }
.city-info > .city-info-popup::before {
  content: "";
  position: absolute;
  top: -6px;
  inset-inline-start: 10px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #cbd2dc;
  border-inline-start: 1px solid #cbd2dc;
  background: #fff;
  transform: rotate(45deg);
}
.city-info strong { display: block; margin-bottom: 6px; }
.city-info ul { margin: 0; padding-inline-start: 18px; }
.city-info li + li { margin-top: 3px; }
.city-search-wrap { position: relative; }
.city-search-wrap input { padding-inline-end: 44px; }
.city-spinner {
  position: absolute;
  top: 18px;
  inset-inline-end: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid #d6dbe3;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: city-spin .7s linear infinite;
}
@keyframes city-spin { to { transform: rotate(360deg); } }
.city-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 290px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #cbd2dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(4,4,35,.16);
}
.city-option {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  text-align: right;
  cursor: pointer;
}
.city-option:hover, .city-option:focus, .city-option.active { background: #f4f6fa; outline: none; }
.city-option strong, .city-option span { display: block; }
.city-option span { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.city-empty { margin: 0; padding: 13px; color: var(--muted); font-size: .84rem; }
.city-empty strong, .city-empty span { display: block; }
.city-empty strong { margin-bottom: 4px; color: var(--ink); }
.selected-city {
  padding: 10px 12px;
  border: 1px solid rgba(44,95,158,.22);
  border-radius: 10px;
  background: rgba(44,95,158,.06);
  color: var(--navy);
  font-size: .8rem;
}
.selected-city strong { display: block; margin-bottom: 2px; }
.selected-city span { color: var(--muted); }
.global-location-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #fff8ee;
  color: #4f4f61;
  font-size: .8rem;
}
.global-location-note > span { color: var(--orange); font-size: 1.15rem; line-height: 1.2; }
.global-location-note p { margin: 0; }
.global-location-note a { color: var(--blue); text-decoration-thickness: 1px; }
.check-field, .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.check-field {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}
.check-field input, .consent-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--orange);
  flex: 0 0 auto;
}
.check-field span { display: flex; flex-direction: column; }
.consent-row { margin-top: 28px; color: var(--muted); font-size: .86rem; }
.form-error { min-height: 24px; margin: 14px 0 0; color: #a82424; font-size: .88rem; }
.primary-button, .secondary-button, .text-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.primary-button {
  min-height: 57px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--orange);
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.primary-button:hover { background: #ffae51; transform: translateY(-2px); }
.primary-button b { font-size: 1.35rem; }
.form-submit { width: 100%; margin-top: 4px; }

.loading-section { padding: 120px 0; text-align: center; background: var(--cream); }
.loading-inner h2 { margin: 25px 0 8px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.loading-inner p { color: var(--muted); }
.loading-orbit {
  width: 92px;
  height: 92px;
  position: relative;
  margin: auto;
  border: 1px solid rgba(44,95,158,.25);
  border-radius: 50%;
  animation: spin 1.7s linear infinite;
}
.loading-orbit::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(255,132,0,.7);
  border-radius: 50%;
}
.loading-orbit span {
  width: 15px;
  height: 15px;
  position: absolute;
  top: -7px;
  right: calc(50% - 7px);
  border-radius: 50%;
  background: var(--orange);
}
@keyframes spin { to { transform: rotate(360deg); } }

.results-section { padding: 90px 0; background: #fff; }
.result-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.result-hero h2 { margin-bottom: 10px; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; }
.result-intro { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.accuracy-badge {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: .78rem;
  font-weight: 600;
}
.signature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.signature-card {
  min-height: 132px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.signature-card span { color: var(--muted); font-size: .75rem; }
.signature-card strong { font-size: 1.4rem; line-height: 1.15; }
.signature-card small { color: var(--blue); font-weight: 600; }
.result-nav {
  position: sticky;
  z-index: 10;
  top: 12px;
  margin-bottom: 32px;
  padding: 8px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 30px rgba(4,4,35,.08);
}
.result-nav button {
  flex: 1 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}
.result-nav button:hover { background: var(--cream); }
.domain-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.domain-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(4,4,35,.035);
  scroll-margin-top: 100px;
}
.domain-card::before {
  content: attr(data-index);
  position: absolute;
  top: -22px;
  left: 16px;
  color: rgba(44,95,158,.06);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
}
.domain-card.featured {
  grid-column: 1 / -1;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow);
}
.domain-card.featured::before { color: rgba(255,255,255,.05); }
.domain-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--orange);
  font-size: 1.1rem;
  font-weight: 800;
}
.domain-card h3 { position: relative; margin: 18px 0 10px; font-size: 1.55rem; line-height: 1.2; }
.domain-card p { position: relative; margin-bottom: 13px; color: var(--muted); }
.domain-card.featured p { color: rgba(255,255,255,.76); }
.domain-card .domain-summary {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.75;
}
.domain-card.featured .domain-summary { color: #fff; }
.domain-reading {
  position: relative;
  margin-top: 20px;
  display: grid;
  gap: 14px;
}
.domain-reading > div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.domain-card.featured .domain-reading > div { border-color: rgba(255,255,255,.14); }
.domain-reading strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: .82rem;
}
.domain-card.featured .domain-reading strong { color: #ffcf96; }
.domain-reading p { margin: 0; }
.domain-card .highlight {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-right: 3px solid var(--orange);
  border-radius: 8px 0 0 8px;
  color: var(--ink);
  background: var(--cream);
  font-weight: 600;
}
.domain-card.featured .highlight { color: #fff; background: rgba(255,255,255,.08); }
.basis-details {
  position: relative;
  margin-top: 16px;
  color: var(--muted);
  font-size: .8rem;
}
.basis-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}
.basis-details ul {
  margin: 10px 0 0;
  padding: 0 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.basis-details li { line-height: 1.55; }
.domain-card.featured .basis-details { color: rgba(255,255,255,.68); }
.domain-card.featured .basis-details summary { color: #ffcf96; }

.pattern-panel {
  margin-top: 22px;
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 35px;
  align-items: center;
  border-radius: 20px;
  background: var(--cream);
  scroll-margin-top: 100px;
}
.pattern-number {
  width: 130px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,132,0,.45);
  border-radius: 50%;
  color: var(--orange-hover);
  background: #fff;
  font-size: 4.3rem;
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(4,4,35,.08);
}
.pattern-panel h3 { margin-bottom: 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.pattern-panel p:last-child { margin-bottom: 0; color: var(--muted); }

.action-section { padding: 70px 0 35px; }
.action-heading h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.question-list { counter-reset: questions; list-style: none; margin: 25px 0; padding: 0; display: grid; gap: 12px; }
.question-list li {
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.question-list li::before {
  counter-increment: questions;
  content: counter(questions);
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #ffdbb3;
  font-weight: 800;
}
.week-practice {
  padding: 22px;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
}
.week-practice span { color: #ffcf96; font-size: .82rem; font-weight: 700; }
.week-practice p { margin: 6px 0 0; }
.coaching-cta {
  margin-top: 35px;
  padding: clamp(30px, 6vw, 65px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(255,132,0,.14), transparent 30%),
    var(--navy);
  box-shadow: var(--shadow);
}
.coaching-cta h3 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; }
.coaching-cta p { max-width: 760px; color: rgba(255,255,255,.74); }
.cta-button { min-width: 260px; }
.result-actions { padding: 25px 0; display: flex; justify-content: center; gap: 14px; }
.secondary-button {
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 600;
}
.text-button { padding: 11px 8px; color: var(--blue); background: transparent; font-weight: 600; }
.method-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #fafbfc;
  font-size: .82rem;
}
.method-note strong { color: var(--ink); }
.method-note p { margin: 4px 0 0; }

.method-details {
  max-width: 860px;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}
.method-details summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
}
.method-details div { padding: 0 20px 18px; }
.method-details p {
  margin: 0 0 10px;
  line-height: 1.75;
}
.method-details p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 56px; }
  .map-mark { width: 270px; }
  .signature-grid { grid-template-columns: repeat(3, 1fr); }
  .domain-cards { grid-template-columns: 1fr; }
  .domain-card.featured { grid-column: auto; }
  .coaching-cta { grid-template-columns: 1fr; }
  .cta-button { width: 100%; }
}

@media (max-width: 620px) {
  #main .container { width: min(calc(100% - 24px), var(--container)); }
  .hero-grid { gap: 32px; padding-block: 44px; }
  .hero-copy { text-align: center; }
  .trust-row { justify-content: center; }
  .map-mark { width: 225px; }
  .map-mark-center { width: 110px; }
  .calculator-section, .results-section { padding-block: 52px; }
  .map-form { border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field-wide { grid-column: auto; }
  .form-progress { font-size: 0; }
  .progress-step b { font-size: .8rem; }
  .result-hero { flex-direction: column; }
  .signature-grid { grid-template-columns: 1fr 1fr; }
  .signature-card:last-child { grid-column: 1 / -1; }
  .pattern-panel { grid-template-columns: 1fr; text-align: center; }
  .pattern-number { margin: auto; }
  .coaching-cta { text-align: center; }
  .cta-points { justify-content: center; }
  .result-actions { flex-direction: column; align-items: center; text-align: center; }
}

@media print {
  .site-header, .hero, .calculator-section, .result-nav, .coaching-cta, .result-actions, .site-footer { display: none !important; }
  .results-section { padding: 0; }
  .domain-card, .pattern-panel, .action-section { break-inside: avoid; box-shadow: none; }
  .domain-card.featured { color: var(--ink); border: 1px solid var(--line); background: #fff; }
  .domain-card.featured p { color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

main { font-size: 16px; }
