:root {
  --ink: #1b1713;
  --muted: #6b6258;
  --paper: #fbf7f0;
  --surface: rgba(255,255,255,.82);
  --line: rgba(39,31,24,.14);
  --gold: #a86b2d;
  --rose: #b85c4d;
  --teal: #0f766e;
  --night: #171412;
  --cream: #f4e4cf;
  --shadow: 0 18px 54px rgba(32,22,12,.13);
  --radius: 8px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
body.theme-atlas {
  --ink: #f8f3e8;
  --muted: #bbb1a4;
  --paper: #141718;
  --surface: rgba(29,34,35,.88);
  --line: rgba(255,255,255,.16);
  --gold: #d99a45;
  --rose: #e57f68;
  --teal: #52b6aa;
  --night: #f2e7d6;
  --cream: #202728;
  --shadow: 0 18px 54px rgba(0,0,0,.34);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(14px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; }
.brand img { width: 74px; height: 34px; object-fit: contain; }
.brand span { font-size: 18px; }
nav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
nav button, .segmented button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 750;
}
nav button:hover, .segmented .active { color: var(--ink); border-color: var(--line); background: var(--surface); }
.controls { display: flex; align-items: center; gap: 8px; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 13px 14px;
}
textarea { min-height: 130px; resize: vertical; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; }
main, footer { width: min(var(--container), calc(100vw - 28px)); margin: 0 auto; }
.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
  background: var(--surface);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 96%, transparent), color-mix(in srgb, var(--paper) 55%, transparent), transparent),
    url("https://images.unsplash.com/photo-1547234935-80c7145ec969?auto=format&fit=crop&w=2200&q=84") center/cover;
  opacity: .9;
}
.theme-atlas .hero-media {
  background:
    linear-gradient(90deg, rgba(20,23,24,.96), rgba(20,23,24,.62), rgba(20,23,24,.1)),
    url("https://images.unsplash.com/photo-1547234935-80c7145ec969?auto=format&fit=crop&w=2200&q=84") center/cover;
}
.hero-copy, .hero-panel { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; }
.hero-logo { width: min(430px, 72vw); margin: 18px 0 8px; }
.eyebrow {
  display: inline-flex;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 850;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(44px, 8vw, 94px);
  line-height: .91;
  letter-spacing: 0;
  max-width: 880px;
  margin: 18px 0;
}
h2 { font-size: clamp(32px, 5vw, 62px); line-height: 1; letter-spacing: 0; margin: 10px 0 14px; }
h3 { font-size: clamp(22px, 3vw, 34px); line-height: 1.05; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.7; }
.hero-copy p { font-size: clamp(18px, 2vw, 23px); max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-height: 48px;
  font-weight: 850;
  color: var(--ink);
  background: var(--surface);
}
.btn.primary { background: var(--night); color: var(--paper); border-color: var(--night); }
.btn.light { background: var(--paper); color: #1b1713; border-color: transparent; }
.btn.ghost { background: color-mix(in srgb, var(--surface) 72%, transparent); }
.btn.small { min-height: 40px; padding: 10px 13px; font-size: 14px; }
.hero-panel {
  align-self: stretch;
  display: grid;
  gap: 10px;
  align-content: end;
}
.metric {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.metric b { display: block; font-size: 42px; line-height: 1; color: var(--gold); }
.metric span { color: var(--muted); font-weight: 700; }
.band, .cta {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row, .route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.route-grid { margin-bottom: 18px; }
.feature, .planner, .result, .destination, .tier, .lead-form, .translator, .saved-trip, .empty-state {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature { padding: 20px; }
.feature strong { display: block; margin-bottom: 8px; }
.section { padding: 62px 0 0; scroll-margin-top: 90px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 22px; }
.section-head p { max-width: 780px; }
.compact { padding-top: 52px; }
.access-pill, .tier-days {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.builder-grid { display: grid; grid-template-columns: 390px 1fr; gap: 18px; align-items: start; }
.planner, .lead-form { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; color: var(--muted); font-size: 13px; font-weight: 850; margin-bottom: 7px; }
.wide { grid-column: 1 / -1; }
.choice-grid, .chips { display: flex; flex-wrap: wrap; gap: 9px; }
.choice, .chip {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, var(--paper));
  color: var(--muted);
  padding: 9px 11px;
  border-radius: var(--radius);
  font-weight: 800;
}
.choice.active { background: var(--teal); color: white; border-color: var(--teal); }
.result { min-height: 520px; padding: 18px; }
.empty-state { padding: 24px; color: var(--muted); border-style: dashed; box-shadow: none; }
.trip-output { display: grid; gap: 16px; }
.trip-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.trip-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: end; }
.days { display: grid; gap: 12px; }
.day {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, var(--paper));
  padding: 18px;
  border-radius: var(--radius);
}
.day span { display: block; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 850; margin-bottom: 10px; }
.day p { margin-bottom: 8px; }
.tip { border-left: 3px solid var(--teal); padding-left: 12px; }
[dir="rtl"] .tip { border-left: 0; border-right: 3px solid var(--teal); padding-left: 0; padding-right: 12px; }
.locked-day { min-height: 230px; }
.blur-lines {
  display: grid;
  gap: 11px;
  filter: blur(6px);
  opacity: .55;
  margin-top: 16px;
}
.blur-lines i {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--rose));
}
.blur-lines i:nth-child(2) { width: 86%; }
.blur-lines i:nth-child(3) { width: 74%; }
.blur-lines i:nth-child(4) { width: 62%; }
.lock-overlay {
  position: absolute;
  inset: auto 14px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}
.unlock-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  border-radius: var(--radius);
  padding: 18px;
}
.unlock-panel h3 { margin-bottom: 4px; }
.unlock-panel p { margin-bottom: 0; }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.destination { overflow: hidden; }
.destination img { width: 100%; height: 230px; object-fit: cover; }
.destination div { padding: 18px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { padding: 22px; display: flex; flex-direction: column; }
.tier.featured { background: var(--night); color: var(--paper); transform: translateY(-8px); }
.tier.featured p, .tier.featured li { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.badge { align-self: start; color: var(--night); background: var(--gold); padding: 7px 9px; border-radius: var(--radius); font-size: 12px; font-weight: 850; margin-bottom: 16px; }
.price { font-size: 48px; line-height: 1; font-weight: 900; color: var(--gold); margin: 10px 0; }
ul { padding-left: 20px; color: var(--muted); line-height: 1.8; }
[dir="rtl"] ul { padding-left: 0; padding-right: 20px; }
.lead-form { margin-top: 18px; grid-template-columns: repeat(4, 1fr); }
.translator { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; padding: 22px; }
.translate-form { display: grid; gap: 12px; margin-top: 18px; }
.row-2, .toolbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.toolbar { grid-template-columns: repeat(4, auto); justify-content: start; align-items: center; }
.translation-output { display: grid; gap: 12px; align-content: start; }
.phrase, .answer {
  text-align: left;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, var(--paper));
  color: var(--ink);
  border-radius: var(--radius);
  padding: 15px;
}
[dir="rtl"] .phrase { text-align: right; }
.phrase span { display: block; color: var(--gold); margin: 3px 0 6px; }
.saved-list { display: grid; gap: 12px; }
.saved-trip { display: flex; justify-content: space-between; gap: 20px; padding: 18px; align-items: center; }
.cta { align-items: center; border: 1px solid var(--line); background: var(--surface); margin-top: 62px; padding: 32px; border-radius: var(--radius); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 40px 0; color: var(--muted); }
footer img { width: 120px; }
.success { grid-column: 1 / -1; padding: 18px; background: color-mix(in srgb, var(--teal) 18%, var(--surface)); border: 1px solid var(--teal); border-radius: var(--radius); }
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; }
  nav { justify-content: start; overflow-x: auto; flex-wrap: nowrap; }
  .controls { justify-content: space-between; }
  .hero, .band, .builder-grid, .translator, .cta { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .feature-row, .route-grid, .destination-grid, .pricing { grid-template-columns: 1fr 1fr; }
  .lead-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  main, footer { width: min(var(--container), calc(100vw - 18px)); }
  .hero { padding: 24px; margin-top: 12px; }
  h1 { font-size: clamp(40px, 16vw, 62px); }
  .planner, .lead-form, .feature-row, .route-grid, .destination-grid, .pricing { grid-template-columns: 1fr; }
  .trip-top, .saved-trip, footer { flex-direction: column; align-items: start; }
  .hero-panel { display: none; }
  .actions, .btn { width: 100%; }
  .section-head, .unlock-panel, .lock-overlay { flex-direction: column; align-items: stretch; }
  .row-2, .toolbar { grid-template-columns: 1fr; }
  .access-pill { width: 100%; justify-content: center; }
}
