:root {
  color-scheme: dark;
  --bg: #090c13;
  --panel: #171b24;
  --panel-2: #202633;
  --panel-3: #0f131c;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.68);
  --text: #f7f8fb;
  --muted: #aab0bd;
  --soft: #d7dbe3;
  --blue: #477cf4;
  --blue-2: #62a7ff;
  --gold: #f0c978;
  --green: #51d7a6;
  --danger: #ff7777;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(71, 124, 244, 0.24), transparent 35rem),
    radial-gradient(circle at 80% 20%, rgba(81, 215, 166, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
}

button {
  color: inherit;
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 112px;
  position: relative;
  background: #0c1018;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.4);
}

.hero {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(145deg, rgba(8, 15, 28, 0.12), rgba(8, 15, 28, 0.72)),
    url("./src/shanghai.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(to bottom, rgba(9, 12, 19, 0.18), rgba(9, 12, 19, 0.2) 35%, #0c1018 94%),
    linear-gradient(to top, #0c1018, transparent 42%);
}

.topbar,
.brand {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 22px 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  font-size: 28px;
  cursor: pointer;
}

.icon-button.dark {
  background: rgba(255, 255, 255, 0.08);
}

.brand {
  padding: 84px 22px 24px;
}

.logo {
  margin: 0 0 12px;
  font-size: 2.45rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  color: #477cf4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.brand h1 {
  max-width: 13ch;
  margin-bottom: 12px;
  font-size: 2.05rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.slogan {
  max-width: 31rem;
  margin-bottom: 0;
  color: rgba(247, 248, 251, 0.78);
  font-size: 0.98rem;
  line-height: 1.48;
}

.quote-panel,
.result-panel {
  padding: 0 22px 18px;
}

.progress-wrap {
  margin: 6px 0 22px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.83rem;
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transition: width 220ms ease;
}

.step-copy {
  margin-bottom: 18px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-copy h2,
.result-hero h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.step-copy p,
.modal-copy,
.result-hero p {
  color: var(--muted);
  line-height: 1.55;
}

.options-grid {
  display: grid;
  gap: 14px;
}

.step-supplement {
  margin: -2px 0 18px;
}

.step-supplement:empty {
  display: none;
}

.requirements-list {
  display: grid;
  gap: 10px;
}

.requirement-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  padding: 2px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.requirement-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.requirement-item > span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(71, 124, 244, 0.18);
  color: var(--blue-2);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 850;
}

.requirement-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.96rem;
}

.requirement-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.option-card {
  width: 100%;
  min-height: 84px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-2), #181d28);
  padding: 18px 16px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.option-card:has(.option-top:only-child) {
  min-height: 74px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.option-card:active {
  transform: translateY(1px);
}

.option-card.selected {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(71, 124, 244, 0.16), transparent 64%),
    linear-gradient(180deg, #252b38, #181d28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    var(--shadow);
}

.option-card.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.option-title {
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.option-title .badge {
  margin-left: 8px;
  vertical-align: middle;
}

.option-price {
  white-space: nowrap;
  color: var(--soft);
  font-size: 1.02rem;
  font-weight: 750;
}

.option-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.compact-stats .option-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 72%;
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.14rem;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.compact-stats .stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
}

.compact-stats .stat span {
  margin-top: 0;
}

.option-desc {
  display: block;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.badge {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.gold {
  background: rgba(240, 201, 120, 0.16);
  color: var(--gold);
}

.badge.green {
  background: rgba(81, 215, 166, 0.14);
  color: var(--green);
}

.badge.red {
  background: rgba(255, 119, 119, 0.15);
  color: var(--danger);
}

.badge.blue {
  background: rgba(98, 167, 255, 0.16);
  color: var(--blue-2);
}

.mini-action {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 11px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.inline-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.inline-note:empty {
  display: none;
}

.bottom-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 520px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  background: rgba(3, 5, 9, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
}

.bottom-cta.result-mode {
  grid-template-columns: 94px 1fr;
}

.primary-cta,
.ghost-cta {
  border: 0;
  border-radius: 7px;
  min-height: 64px;
  cursor: pointer;
}

.primary-cta {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 1.08rem;
  font-weight: 850;
}

.primary-cta:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.primary-cta small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.73rem;
  font-weight: 650;
}

.ghost-cta {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-weight: 850;
}

.ghost-cta:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 12;
  width: min(calc(100% - 44px), 476px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(19, 25, 36, 0.96);
  box-shadow: var(--shadow);
  padding: 13px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(18px);
}

.copy-toast[hidden] {
  display: none;
}

.result-panel {
  display: grid;
  gap: 14px;
}

.result-hero,
.summary-card {
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-2), #171b24);
  padding: 18px 16px;
}

.result-hero h2 {
  margin-bottom: 6px;
  font-size: 2.35rem;
}

.summary-card h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.break-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--soft);
}

.break-row span:first-child {
  color: var(--muted);
}

.break-row:last-child {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 15px;
}

.timeline::before {
  content: "✅ = Handled by us\A 👤 = Requires your presence, we accompany you on site";
  display: block;
  white-space: pre-line;
  padding: 10px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.timeline-group {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  position: relative;
}

.timeline-day {
  color: var(--blue-2);
  font-size: 0.82rem;
  font-weight: 850;
  padding-top: 13px;
}

.timeline-card {
  display: grid;
  gap: 12px;
  padding: 14px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.timeline-task {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-task:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-task strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.32;
}

.timeline-task strong span {
  margin-left: 6px;
  font-size: 0.95rem;
}

.timeline-task p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.42;
}

.materials {
  color: var(--muted);
  line-height: 1.45;
}

.materials {
  margin: 0;
  padding-left: 18px;
}

.materials li + li {
  margin-top: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal {
  width: min(100%, 480px);
  max-height: 82vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #111721;
  padding: 18px;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.modal-head h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.country-groups {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.country-group h3 {
  margin: 0 0 8px;
  color: var(--soft);
  font-size: 0.86rem;
}

.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.country-list span {
  border-radius: 999px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 0.86rem;
}

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    min-height: calc(100vh - 56px);
    border-radius: 26px;
    overflow: hidden;
  }

  .bottom-cta {
    border-radius: 0 0 26px 26px;
  }
}
