/* ==========================================================================
   FairFXGuide — global stylesheet
   Sections: 1. Tokens  2. Base  3. Layout  4. Header  5. Hero + converter
             6. Components (cards, tables, chips, callouts)  7. Content pages
             8. Footer + consent  9. Responsive  10. Utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0b1f33;
  --ink-soft: #1d3a52;
  --muted: #5b7286;
  --muted-2: #7c8fa1;
  --line: #e3ebf2;
  --line-strong: #cfdce7;
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-2: #f0f6f8;

  --brand: #0e7c66;
  --brand-dark: #0a5f4e;
  --brand-soft: #e3f5ef;
  --brand-ink: #06463a;

  --accent: #f2b53a;
  --accent-soft: #fdf3dc;

  --danger: #b4402f;
  --danger-soft: #fbe9e6;
  --info: #2a5f9e;
  --info-soft: #e8f0fa;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .06), 0 1px 3px rgba(11, 31, 51, .04);
  --shadow: 0 10px 30px -12px rgba(11, 31, 51, .18), 0 2px 6px rgba(11, 31, 51, .05);
  --shadow-lg: 0 30px 70px -30px rgba(11, 31, 51, .35), 0 8px 20px -10px rgba(11, 31, 51, .12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
small { font-size: .82rem; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .12em .38em; border-radius: 5px; }
:focus-visible { outline: 3px solid rgba(14, 124, 102, .45); outline-offset: 2px; border-radius: 6px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #fff; padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--line-strong);
}
.skip-link:focus { left: 8px; }
::selection { background: var(--brand-soft); }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 760px; }
.section { padding: clamp(2.6rem, 5vw, 4.4rem) 0; }
.section-tight { padding: clamp(1.8rem, 3vw, 2.6rem) 0; }
.section-head { max-width: 720px; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--brand); margin-bottom: .7rem;
}
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(227, 235, 242, .9);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, #12a184, #0a5f4e 70%);
  display: grid; place-items: center; color: #fff; box-shadow: 0 4px 10px -4px rgba(10, 95, 78, .7);
}
.brand-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: .2rem; margin-left: auto; list-style: none; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  display: block; padding: .5rem .78rem; border-radius: 9px;
  color: var(--ink-soft); text-decoration: none; font-size: .94rem; font-weight: 550;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 700; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-cta {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .5rem .9rem;
  font-size: .9rem; font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap;
}

/* ---------- 5. Hero + converter ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, #dff4ec 0%, rgba(223, 244, 236, 0) 60%),
    radial-gradient(700px 380px at 95% 0%, #e7eefb 0%, rgba(231, 238, 251, 0) 55%),
    linear-gradient(180deg, #fbfdfe 0%, var(--bg) 100%);
  padding: clamp(2rem, 4.5vw, 3.4rem) 0 clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(242, 181, 58, .45) 62%);
  padding-bottom: .06em;
}
.hero-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); margin: 0; }
.hero-points svg { flex: none; width: 18px; height: 18px; margin-top: .22rem; color: var(--brand); }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; font-size: .82rem; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: .38rem; }
.trust-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* converter card */
.converter {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.1rem, 2.4vw, 1.6rem); position: relative;
}
.converter-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.converter-title { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.status {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 650;
  padding: .28rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap;
}
.status .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status[data-state="live"] { background: var(--brand-soft); color: var(--brand-ink); border-color: #c7e8de; }
.status[data-state="live"] .pulse { background: #12a184; box-shadow: 0 0 0 0 rgba(18, 161, 132, .6); animation: pulse 2.4s infinite; }
.status[data-state="cached"] { background: var(--accent-soft); color: #7a5406; border-color: #f3e0b4; }
.status[data-state="cached"] .pulse { background: var(--accent); }
.status[data-state="sample"] { background: var(--info-soft); color: var(--info); border-color: #cfe0f3; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 161, 132, .55); }
  70% { box-shadow: 0 0 0 7px rgba(18, 161, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 161, 132, 0); }
}

.amount-block { position: relative; }
.field-label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.amount-row { display: flex; gap: .5rem; align-items: stretch; }
.amount-input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: clamp(1.5rem, 3.2vw, 1.9rem); font-weight: 700;
  letter-spacing: -.02em; padding: .55rem .2rem .55rem .7rem; border: 0; border-bottom: 2px solid var(--line-strong);
  background: transparent; color: var(--ink); border-radius: 0;
}
.amount-input:focus { outline: none; border-bottom-color: var(--brand); }
.amount-input::-webkit-outer-spin-button, .amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.cur-select {
  font: inherit; font-size: .95rem; font-weight: 700; padding: .45rem 1.9rem .45rem .6rem; border-radius: 12px;
  border: 1px solid var(--line-strong); background-color: #fff; color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b7286' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
.cur-select:hover { border-color: var(--muted-2); }
.cur-select { max-width: 62%; text-overflow: ellipsis; }
.swap-wrap { display: flex; justify-content: center; margin: -.85rem 0; position: relative; z-index: 1; }
.swap-btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: .42rem .85rem .42rem .6rem; font: inherit; font-size: .82rem; font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.swap-btn:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.swap-btn svg { width: 15px; height: 15px; }

.result-block { background: linear-gradient(160deg, #f7fbfa, #eef6f3); border: 1px solid #d9ebe4; border-radius: var(--radius); padding: .95rem 1rem; }
.conv-out { flex: 1 1 auto; min-width: 0; padding: .3rem 0 .1rem; }
.conv-sub { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.result-main { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--brand-ink); word-break: break-word; }
.result-sub { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.result-sub strong { color: var(--ink-soft); font-weight: 650; }
.conv-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .76rem; color: var(--muted); margin-top: .75rem; }
.conv-meta .src-link { color: var(--muted); text-decoration: underline; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .2rem; border-radius: 6px; }
.icon-btn:hover { color: var(--brand); background: var(--brand-soft); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .95rem 0 .2rem; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft); border-radius: 999px;
  padding: .3rem .7rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.conv-note { font-size: .76rem; color: var(--muted-2); margin: .9rem 0 0; }

/* ---------- 6. Components ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card .kicker { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand); }
a.card-link { display: block; color: inherit; text-decoration: none; }
a.card-link:hover h3 { color: var(--brand-dark); }
.flag-lg { font-size: 1.5rem; line-height: 1; margin-bottom: .6rem; display: block; }
.meta-line { font-size: .8rem; color: var(--muted-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; font-size: .95rem; padding: .7rem 1.2rem; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(14, 124, 102, .9); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* fee simulator */
.sim-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.sim-controls .amount-row { border-bottom: 1px solid var(--line-strong); }
.sim-controls .amount-input { font-size: 1.6rem; border-bottom: 0; }
.sim-summary { margin-top: 1.2rem; padding: 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.sim-summary .big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.sim-summary .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
thead th {
  text-align: left; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; padding: .8rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: .72rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfd; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--danger); }
.pos { color: var(--brand-dark); }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; }
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; padding: .12rem .45rem; border-radius: 6px;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.badge-good { background: var(--brand-soft); color: var(--brand-ink); border-color: #c7e8de; }
.badge-warn { background: var(--accent-soft); color: #7a5406; border-color: #f3e0b4; }
.badge-bad { background: var(--danger-soft); color: var(--danger); border-color: #f2d3cd; }
.cost-bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 60px; }
.cost-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.cost-bar.warn > span { background: var(--accent); }
.cost-bar.bad > span { background: #d2735f; }

/* rates table */
.rates-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.rates-toolbar .base-pick { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.rates-toolbar .base-pick select { font-size: .9rem; padding: .4rem 1.8rem .4rem .55rem; }
.rate-flag { margin-right: .45rem; }
.rate-code { font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.mover { font-size: .76rem; }

/* callouts */
.callout { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--brand-ink); }
.callout-warn { border-left-color: var(--accent); background: var(--accent-soft); }
.callout-warn strong { color: #6b4a05; }
.callout-danger { border-left-color: #c25a45; background: var(--danger-soft); }
.callout-danger strong { color: #8c3223; }
.callout-info { border-left-color: #4a7fc1; background: var(--info-soft); }

/* key facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.6rem 0 2rem; }
.fact { background: #fff; padding: .95rem 1rem; }
.fact dt { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .25rem; }
.fact dd { margin: 0; font-size: .95rem; font-weight: 650; color: var(--ink); }
.fact dd small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; margin-top: .1rem; }

/* ---------- 7. Content pages ---------- */
.page-hero { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.page-hero h1 { margin-bottom: .8rem; }
.page-hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 46rem; margin-bottom: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; list-style: none; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.article-head-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .8rem; color: var(--muted-2); margin-top: 1.1rem; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .5em; }
.prose table { margin: 1.4rem 0; }
.prose .table-wrap { margin: 1.4rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--line-strong); color: var(--ink-soft); font-style: italic; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.toc { position: sticky; top: 86px; font-size: .86rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.toc h2 { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: .4rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.toc .toc-cta { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--ink-soft); }

.related { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.link-list li { margin: 0; }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink-soft); background: #fff; font-size: .93rem; }
.link-list a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.link-list .arr { color: var(--muted-2); }

.cta-band { background: linear-gradient(135deg, #0b1f33, #123a4d 60%, #0c5a4c); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0e4; max-width: 46rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef7f4; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-size: .84rem; font-weight: 650; margin-bottom: .35rem; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: .95rem; padding: .7rem .85rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 124, 102, .12); }
.form .hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }

/* ---------- 8. Footer + consent ---------- */
.site-footer { background: #0b1f33; color: #b9c9d4; margin-top: 0; padding: 3rem 0 1.6rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer p { color: #93a8b6; max-width: 28rem; margin: .9rem 0 0; font-size: .87rem; }
.footer-col h3 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #7f97a6; margin-bottom: .8rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #c4d3dd; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; justify-content: space-between; font-size: .78rem; color: #8299a7;
}
.footer-bottom a { color: #a9bcc8; }
.footer-disclaimer { margin-top: 1.4rem; font-size: .76rem; color: #7f97a6; line-height: 1.6; }

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; justify-content: space-between;
  max-width: 760px; margin-inline: auto; font-size: .86rem; color: var(--ink-soft);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 340px; }
.consent .btn { padding: .5rem .9rem; font-size: .85rem; }

/* ---------- 9. Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .article-body { grid-template-columns: 1fr; }
  .toc { position: static; order: 2; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 66px; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 20px 1rem;
    flex-direction: column; align-items: stretch; gap: .15rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .8rem; font-size: 1rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .converter { border-radius: var(--radius); }
  .amount-input { font-size: 1.45rem; }
  .cur-select { font-size: .88rem; padding-right: 1.6rem; background-position: right .5rem center; }
  .table-wrap { font-size: .88rem; }
  thead th, tbody td { padding: .62rem .65rem; }
  .consent { left: 10px; right: 10px; bottom: 10px; }
}

/* ---------- 10. Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .6rem; } .mb-2 { margin-bottom: 1.2rem; }
@media print {
  .site-header, .site-footer, .consent, .toc, .cta-band { display: none !important; }
  body { background: #fff; }
}
