:root {
  /* ─── Colour tokens ─────────────────────────────────────────────── */
  --white-sand:    #FAF9F6;    /* base background                     */
  --deep-blue:     #2A506A;    /* primary brand                       */
  --imperial-gold: #CBA135;    /* accent                              */
  --misty-teal:    #7EA1A6;    /* secondary accent                    */
  --blush:         #E7C9B0;    /* soft accent                         */

  --text:   #12202b;           /* body text                           */
  --muted:  #5f6c78;           /* muted / secondary text              */

  --border:  rgba(42,80,106,.18);   /* card / field borders            */
  --divider: rgba(42,80,106,.10);   /* section separators              */

  /* ─── Layout ────────────────────────────────────────────────────── */
  --max:         1100px;
  --content:     980px;
  --section-pad: 64px;
  --card-pad:    20px;
  --gap:         22px;

  /* ─── Section backgrounds ───────────────────────────────────────── */
  --bg-base: var(--white-sand);  /* #FAF9F6                           */
  --bg-alt:  #ffffff;            /* crisp contrast band               */
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background: var(--bg-base);
  color: var(--text);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Section rhythm ──────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  background: var(--bg-base);
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

#calculator.section {
  background: var(--bg-alt);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

/* ─── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--deep-blue);
  margin: 0 0 14px;
}

h1 {
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h3 {
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h4 {
  font-weight: 600;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.4;
}

p { margin: 0 0 12px; }

a {
  color: var(--deep-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: rgba(42,80,106,.85); }

/* Helpers */
.fine {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}
.muted  { color: var(--muted); }
.lead   { font-size: 16px; line-height: 1.75; color: var(--text); max-width: 70ch; }
.micro  { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 8px; }

/* ─── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg-base);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo {
  height: 72px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--deep-blue);
}
.nav a:hover { text-decoration: underline; }

/* Exchange rate status */
.rate-status {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--divider);
  padding: 10px 12px;
  background: #fff;
  min-width: 220px;
  justify-content: flex-end;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--imperial-gold);
  display: inline-block;
  flex-shrink: 0;
}

.rate-text  { font-size: 13px; font-weight: 600; color: var(--deep-blue); letter-spacing: 0.02em; }
.rate-stamp { font-size: 12px; color: var(--muted); }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 20px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg-base);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: var(--gap);
  align-items: start;
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

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

.note-box {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
}

.note-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--deep-blue);
  margin: 0 0 6px;
}

.note-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
}

.hero-panel-title  { margin: 0 0 8px; font-size: 20px; }
.hero-panel-sub    { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.hero-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel-fine {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--divider);
  padding-top: 12px;
}

/* ─── About ───────────────────────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.about-copy { max-width: 700px; }

.about-demo {
  margin: 0;
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.about-demo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-demo figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--deep-blue);
  background: transparent;
  color: var(--deep-blue);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--deep-blue);
  color: #fff;
}

.btn:hover {
  border-color: var(--imperial-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(203,161,53,.25);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: none;
}

/* ─── Panels ──────────────────────────────────────────────────────────── */
.panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
}

.panel-head { padding: 18px 18px 0; }
.panel-title { margin: 0; font-size: 20px; }
.panel-sub  { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.panel-foot {
  border-top: 1px solid var(--divider);
  margin-top: 14px;
  padding-top: 12px;
}

/* ─── Calculator layout ───────────────────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--gap);
  align-items: start;
}

/* ─── Form ────────────────────────────────────────────────────────────── */
.form {
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(203,161,53,.85);
  box-shadow: 0 0 0 4px rgba(203,161,53,.18);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hint {
  display: none;
  margin: 7px 0 0;
  font-size: 13px;
  color: #b91c1c;
}
.hint.show { display: block; }

/* ─── Travel style buttons ────────────────────────────────────────────── */
.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.style-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--deep-blue);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.style-btn:hover {
  border-color: var(--imperial-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(203,161,53,.22);
}

.style-btn[aria-pressed="true"] {
  border-color: var(--imperial-gold);
  box-shadow: 0 6px 0 rgba(203,161,53,.28);
}

/* ─── Segmented mode control ──────────────────────────────────────────── */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: #fff;
}

.seg-btn {
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-blue);
}

.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn[aria-pressed="true"] { background: rgba(42,80,106,.06); }

/* ─── Form actions ────────────────────────────────────────────────────── */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.links-row {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--deep-blue);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: rgba(42,80,106,.85); }

/* ─── Results empty state ─────────────────────────────────────────────── */
.results-empty { padding: 16px 18px 22px; }

.empty-box {
  border: 1px solid var(--divider);
  padding: 18px;
  background: rgba(250,249,246,.65);
}

.empty-mark {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--deep-blue);
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.empty-title { margin: 0 0 8px; font-size: 20px; }
.empty-text  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ─── Guides section ──────────────────────────────────────────────────── */
.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
}

.card h3       { margin-bottom: 8px; }
.card .muted   { margin-bottom: 14px; }

.link-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.link-list li { margin-bottom: 10px; }

.link-list a {
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 500;
}
.link-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.mini-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

#guides .btn { text-decoration: none; }

/* ─── Featured promo card ─────────────────────────────────────────────── */
.promo-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.promo-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}

.promo-image { margin: 0; }

.promo-image img {
  display: block;
  width: 75%;
  height: auto;
  border-radius: 8px;
}

.promo-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--deep-blue);
  background: rgba(42,80,106,.08);
  padding: 6px 10px;
  margin-bottom: 10px;
}

.promo-text { margin: 12px 0 20px; color: var(--muted); }

.promo-btn {
  margin-top: 4px;
  background: var(--imperial-gold);
  border-color: var(--imperial-gold);
  color: #12202b;
}
.promo-btn:hover {
  background: #b8942c;
  border-color: #b8942c;
  color: #12202b;
}

/* ─── How it works ────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 16px;
}

.how-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--deep-blue);
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 22px 0;
  background: var(--bg-base);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid    { grid-template-columns: 1fr; }
  .hero-notes   { grid-template-columns: 1fr; }
  .calc-grid    { grid-template-columns: 1fr; }
  .card-grid    { grid-template-columns: 1fr; }
  .how-grid     { grid-template-columns: 1fr; }
  .about-intro  { grid-template-columns: 1fr; }
  .about-copy   { max-width: none; }
  .split-head   { flex-direction: column; align-items: flex-start; }
  .guide-actions { align-items: flex-start; }
  .rate-status  { display: none; }
  .nav          { display: none; }
  .header-inner { height: 64px; }
  .grid-2       { grid-template-columns: 1fr; }
  .style-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .promo-card   { padding: 22px; }
  .promo-layout { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .promo-image  { max-width: 100px; margin: 0 auto; }
  .promo-image img { width: 100%; }
  .promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}