:root {
  color-scheme: dark;
  --bg: #09090e;
  --surface: #12111a;
  --surface-2: #1a1724;
  --surface-3: #211d2d;
  --text: #f8f5fb;
  --muted: #bcb5c8;
  --line: rgba(255, 255, 255, .13);
  --orange: #ff7a1a;
  --orange-soft: rgba(255, 122, 26, .14);
  --purple: #9b5cff;
  --purple-soft: rgba(155, 92, 255, .15);
  --green: #43d6a1;
  --danger: #ff6f78;
  --shadow: 0 26px 70px rgba(0, 0, 0, .46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }

.app-shell { min-height: 100vh; min-height: 100dvh; }
.app-shell--full { width: 100%; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--muted); }
.boot-mark { color: var(--text); font-size: clamp(4rem, 24vw, 8rem); font-weight: 1000; letter-spacing: -.09em; line-height: .8; }

.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: max(22px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: #09090e;
}
.landing::before { content: ""; position: absolute; inset: 0; background: url("dmi-destination-hero-v1.webp") center 42% / cover no-repeat; }
.landing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 13, .12) 0%, rgba(8, 8, 13, .28) 32%, rgba(8, 8, 13, .9) 70%, #09090e 100%), linear-gradient(90deg, rgba(8, 8, 13, .76), transparent 70%); }
.landing-orb { position: absolute; z-index: 1; width: 230px; height: 230px; left: -80px; top: 16%; border-radius: 50%; background: rgba(155, 92, 255, .22); filter: blur(70px); }
.landing-content { position: relative; z-index: 2; width: min(100%, 760px); margin: 0 auto; }
.kicker { margin: 0 0 8px; color: var(--orange); font-size: .72rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.landing h1 { max-width: 640px; margin: 0; font-size: clamp(4.6rem, 27vw, 9.4rem); line-height: .76; letter-spacing: -.09em; font-weight: 1000; }
.landing h1 span { display: block; margin-top: 14px; font-size: clamp(1.9rem, 9vw, 4.2rem); line-height: .93; letter-spacing: -.06em; }
.landing-intro { max-width: 540px; margin: 18px 0 0; color: #ddd6e5; font-size: .98rem; line-height: 1.52; }
.landing-actions { display: grid; gap: 10px; margin-top: 22px; }

.btn { width: 100%; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--orange), #ff9b38); color: #16100b; font-weight: 950; text-decoration: none; box-shadow: 0 14px 34px rgba(255, 122, 26, .2); }
.btn:focus-visible, .nav button:focus-visible, .choice:focus-within { outline: 3px solid rgba(155, 92, 255, .7); outline-offset: 3px; }
.btn.secondary { border: 1px solid var(--line); background: rgba(24, 21, 33, .88); color: var(--text); box-shadow: none; }
.btn.ghost { border: 1px solid rgba(255,255,255,.14); background: rgba(9,9,14,.42); color: var(--text); box-shadow: none; backdrop-filter: blur(12px); }
.btn.danger { border: 1px solid rgba(255,111,120,.34); background: rgba(255,111,120,.1); color: #ffd5d8; box-shadow: none; }
.btn.small { width: auto; min-height: 42px; padding: 8px 13px; border-radius: 11px; font-size: .82rem; }

.landing-status { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 15, 24, .82); backdrop-filter: blur(16px); }
.landing-status span, .landing-status small { display: block; color: var(--muted); font-size: .72rem; }
.landing-status strong { display: block; margin: 3px 0; font-size: 1.08rem; }
.landing-status-value { color: var(--orange); font-size: 1.3rem; font-weight: 950; white-space: nowrap; }
.privacy-line { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; color: #c8c0d1; font-size: .74rem; }
.privacy-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(67,214,161,.65); }

.page-shell { width: min(100%, 820px); min-height: 100vh; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 14px calc(86px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-bottom: 12px; }
.brand-button { border: 0; background: transparent; color: var(--text); padding: 0; text-align: left; }
.brand-button strong { display: block; font-size: 1.48rem; line-height: 1; letter-spacing: -.06em; }
.brand-button small { color: var(--muted); font-size: .67rem; }
.step-counter { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.hero-card { position: relative; overflow: hidden; min-height: 224px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(8,8,13,.08), rgba(9,9,14,.94)), url("dmi-destination-hero-v1.webp") center 58% / cover no-repeat; box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -60px; top: -80px; border-radius: 50%; background: var(--purple-soft); filter: blur(18px); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h1 { max-width: 560px; margin: 0; font-size: clamp(2.25rem, 10vw, 4.8rem); line-height: .92; letter-spacing: -.065em; }
.hero-card p:not(.kicker) { max-width: 520px; margin: 12px 0 0; color: #d4cddd; line-height: 1.48; }

.progress-line { height: 4px; margin: 2px 0 18px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--purple)); transition: width .28s ease; }
.progress-line.step-1 span { width: 25%; }
.progress-line.step-2 span { width: 50%; }
.progress-line.step-3 span { width: 75%; }
.progress-line.step-4 span { width: 100%; }
.screen-title { margin: 4px 2px 14px; }
.screen-title span { color: var(--orange); font-size: .7rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.screen-title h1, .screen-title h2 { margin: 5px 0 0; font-size: clamp(2rem, 9vw, 3.7rem); line-height: .96; letter-spacing: -.055em; }
.screen-title p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }

.card { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(27,24,38,.97), rgba(16,15,23,.98)); box-shadow: 0 15px 34px rgba(0,0,0,.2); }
.card h2, .card h3 { margin: 0; letter-spacing: -.035em; }
.card p { color: var(--muted); line-height: 1.5; }
.field-grid { display: grid; gap: 13px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; color: #d9d2e1; font-size: .78rem; font-weight: 800; }
.field small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: #0d0d13; color: var(--text); padding: 11px 12px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155,92,255,.14); }
.field textarea { min-height: 82px; resize: vertical; }
.field input::placeholder { color: #706a79; }
.field.full-width { grid-column: 1 / -1; }

.choice-grid { display: grid; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(12,12,18,.72); }
.choice:has(input:checked) { border-color: rgba(255,122,26,.72); background: var(--orange-soft); box-shadow: inset 0 0 0 1px rgba(255,122,26,.2); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.choice strong { display: block; }
.choice span span { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.form-error { margin-bottom: 12px; padding: 13px; border: 1px solid rgba(255,111,120,.36); border-radius: 13px; background: rgba(255,111,120,.1); color: #ffd8da; font-size: .86rem; line-height: 1.45; }
.button-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin-top: 14px; }

.review-list { display: grid; gap: 9px; }
.review-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); font-size: .78rem; }
.review-row strong { text-align: right; font-size: .9rem; }
.validation-card { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; border-color: rgba(67,214,161,.28); background: linear-gradient(145deg, rgba(67,214,161,.1), rgba(16,15,23,.98)); }
.validation-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(67,214,161,.15); color: var(--green); font-weight: 950; }
.validation-card p { margin: 4px 0 0; font-size: .8rem; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11,11,17,.78); }
.metric.primary { grid-column: 1 / -1; min-height: 132px; background: linear-gradient(140deg, rgba(255,122,26,.16), rgba(155,92,255,.12)), rgba(11,11,17,.88); }
.metric span { display: block; color: var(--muted); font-size: .72rem; font-weight: 750; }
.metric strong { display: block; margin-top: 9px; font-size: clamp(1.55rem, 7vw, 2.7rem); line-height: 1; letter-spacing: -.055em; }
.metric.primary strong { color: var(--orange); font-size: clamp(3rem, 15vw, 5.6rem); }
.metric small { display: block; margin-top: 8px; color: #d1cad9; }
.basis { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .76rem; }
.basis strong { color: var(--text); text-align: right; }

.paid-card { position: relative; overflow: hidden; border-color: rgba(155,92,255,.34); background: linear-gradient(135deg, rgba(155,92,255,.18), rgba(255,122,26,.08)), var(--surface); }
.paid-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -42px; top: -56px; border-radius: 50%; background: rgba(155,92,255,.24); filter: blur(20px); }
.paid-card > * { position: relative; z-index: 1; }
.paid-card h2 { margin-top: 12px; }
.soon-pill { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(155,92,255,.45); border-radius: 999px; color: #d6bdff; font-size: .67rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.benefit-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: #d9d2e1; font-size: .82rem; line-height: 1.4; }
.benefit-list li::before { content: "✓"; color: var(--orange); font-weight: 950; }

.history-list { display: grid; gap: 10px; }
.history-wrap { margin-top: 14px; }
.history-item { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(11,11,17,.72); }
.history-item-top { display: flex; justify-content: space-between; gap: 12px; }
.history-item strong { display: block; }
.history-item time { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.history-item p { margin: 7px 0 0; font-size: .78rem; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.local-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: .72rem; font-weight: 850; }
.local-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.nav { position: fixed; z-index: 20; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 560px); min-height: 62px; display: grid; grid-template-columns: repeat(3, 1fr); transform: translateX(-50%); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(17,15,24,.92); box-shadow: 0 20px 46px rgba(0,0,0,.5); backdrop-filter: blur(18px); }
.nav button { display: grid; place-items: center; gap: 2px; border: 0; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 850; }
.nav button span { font-size: 1rem; }
.nav button.active { color: var(--orange); }
.fine-print { margin: 14px 3px; color: #8f8998; font-size: .7rem; line-height: 1.5; }

@media (min-width: 680px) {
  .landing { padding-inline: 28px; }
  .landing-content { padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; background: rgba(9,9,14,.44); backdrop-filter: blur(8px); }
  .landing-actions { grid-template-columns: 1fr 1fr; }
  .page-shell { padding-inline: 22px; }
  .field-grid.desktop-two { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric.primary { grid-column: span 2; }
}

@media (max-width: 390px) {
  .landing { padding-inline: 12px; }
  .landing h1 { font-size: 4.15rem; }
  .page-shell { padding-inline: 10px; }
  .card { padding: 14px; }
  .field-grid.two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .landing-content, .page-shell > * { animation: rise .42s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
