/* =============================================================
   DentaCompass — styles.css
   Archetype: Glassmorphism Modern (adapted palette — trust/finance)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f2f6f5;
  --paper: #ffffff;
  --grad-1: #bfe9de;
  --grad-2: #ffd6b3;
  --grad-3: #c7d7ff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.65);
  --ink: #132621;
  --ink-soft: #3c5049;
  --ink-mute: #6c7e78;
  --accent: #0f8a76;
  --accent-dark: #0b6a5a;
  --accent-2: #ff7a4d;
  --accent-2-dark: #e5622f;
  --accent-2-soft: rgba(255, 122, 77, 0.14);
  --line: rgba(19, 38, 33, 0.12);
  --shadow-color: 19, 38, 33;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
strong { color: var(--ink); }
::selection { background: var(--accent); color: #fff; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { width: 100%; max-width: 780px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section-head { max-width: 620px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.6rem 1rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600; transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-lang-note] {
  background: var(--accent-2-soft); color: var(--accent-2-dark);
  border: 1px solid rgba(255, 122, 77, 0.3); border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem; font-size: 0.9rem; margin-bottom: 1.8rem;
}
[data-lang-note][hidden] { display: none; }

/* =============================================================
   4. Typography helpers
   ============================================================= */
.eyebrow { font-size: 0.85rem; font-weight: 700; color: var(--ink-mute); letter-spacing: 0.03em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-mute); }

/* =============================================================
   5. Components
   ============================================================= */

/* Glass surface */
.glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -30px rgba(var(--shadow-color), 0.28);
}
@supports (backdrop-filter: blur(18px)) {
  .glass {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.96rem;
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), background 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 14px 28px -10px rgba(15, 138, 118, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -12px rgba(15, 138, 118, 0.6); background: var(--accent-dark); }
.btn-accent {
  background: var(--accent-2); color: #fff;
  box-shadow: 0 14px 28px -10px rgba(255, 122, 77, 0.55);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -12px rgba(255, 122, 77, 0.6); background: var(--accent-2-dark); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.9); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn:active { transform: translateY(-1px); transition-duration: 0.12s; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform 0.8s var(--ease-soft); }

/* Tags */
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem; border-radius: 999px; background: rgba(15, 138, 118, 0.1); color: var(--accent-dark);
  margin: 0 0.35rem 0.35rem 0;
}

/* Cards — generic tilt wrapper */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-soft), box-shadow 0.45s var(--ease-soft);
}
.has-tilt:hover { transition-duration: 0.15s; box-shadow: 0 32px 70px -28px rgba(var(--shadow-color), 0.35); }

/* Nav */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-block: 1rem;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.9rem 0.6rem 1.1rem;
  border-radius: 999px;
}
.nav.is-scrolled {
  background: transparent;
}
.nav.is-scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px -22px rgba(var(--shadow-color), 0.3);
}
@supports (backdrop-filter: blur(16px)) {
  .nav.is-scrolled .nav-inner { backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links { display: none; align-items: center; gap: 1.7rem; }
.nav-link { position: relative; font-weight: 600; font-size: 0.94rem; color: var(--ink-soft); padding-block: 0.2rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-soft);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-actions > .btn-primary { display: none; }
@media (min-width: 600px) { .nav-actions > .btn-primary { display: inline-flex; } }
.lang-trigger span { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 480px) { .lang-trigger span { max-width: none; } }
.nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.7); border: 1px solid var(--line); }
.nav-toggle svg { width: 18px; height: 18px; }

/* Mobile nav */
.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.nav-mobile-list a { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
html.nav-open { overflow: hidden; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem; border-radius: 999px; background: rgba(255,255,255,0.7);
  border: 1px solid var(--line); font-weight: 700; font-size: 0.85rem; color: var(--ink);
}
.lang-menu {
  position: absolute; top: calc(100% + 0.6rem); right: 0; min-width: 160px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 24px 50px -20px rgba(var(--shadow-color), 0.35);
  padding: 0.4rem; opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.lang-menu[aria-hidden="false"] { opacity: 1; pointer-events: auto; transform: none; }
.lang-option {
  display: flex; width: 100%; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); text-align: left;
}
.lang-option:hover { background: rgba(15, 138, 118, 0.08); color: var(--ink); }
.lang-option[aria-current="true"] { color: var(--accent-dark); background: rgba(15, 138, 118, 0.1); }

/* Forms */
.field { position: relative; margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7); color: var(--ink); font: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 138, 118, 0.14);
}
.field textarea { min-height: 120px; resize: vertical; }

.cta-form { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; }
.cta-form.is-sending .btn { opacity: 0.7; pointer-events: none; }
.form-success {
  text-align: center; padding: 2.4rem 1rem;
}
.form-success[hidden] { display: none; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-trigger .icon { flex-shrink: 0; width: 22px; height: 22px; transition: transform 0.35s var(--ease-soft); }
.faq-item.is-open .faq-trigger .icon { transform: rotate(45deg); }
.faq-panel {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-soft);
}
.faq-item.is-open .faq-panel { max-height: 340px; }
.faq-panel p { padding-bottom: 1.3rem; color: var(--ink-soft); max-width: 68ch; }

/* Table */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: rgba(255,255,255,0.6); }
table.compare-table th, table.compare-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table.compare-table th { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-mute); background: rgba(255,255,255,0.5); }
table.compare-table tr:last-child td { border-bottom: 0; }

/* =============================================================
   6. Sections
   ============================================================= */

/* Mesh gradient backdrop (page-level, sits behind hero) */
.mesh-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.mesh-bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 30% at 18% 22%, var(--grad-3) 0%, transparent 60%),
    radial-gradient(42% 34% at 82% 18%, var(--grad-1) 0%, transparent 60%),
    radial-gradient(48% 40% at 50% 90%, var(--grad-2) 0%, transparent 60%);
  filter: blur(70px) saturate(140%);
  opacity: 0.85;
  animation: meshDrift 34s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(8deg); }
}

/* Hero */
.hero { position: relative; padding-block: clamp(7.5rem, 14vw, 10rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title { margin-bottom: 1.1rem; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.8rem; }
.hero-trust { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--ink-mute); font-weight: 600; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover;
  box-shadow: 0 50px 90px -30px rgba(var(--shadow-color), 0.4);
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-floating-card {
  position: absolute; bottom: -1.4rem; left: -1.4rem; max-width: 230px;
  padding: 1rem 1.15rem; display: flex; align-items: center; gap: 0.7rem;
  animation: heroFloat 7s ease-in-out infinite reverse;
}
.hero-floating-card .num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--accent-dark); }
.hero-floating-card .cap { font-size: 0.78rem; color: var(--ink-mute); line-height: 1.3; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Mini comparator on home */
.mini-compare { padding: 1.4rem; display: grid; gap: 0.9rem; margin-top: 2rem; }
@media (min-width: 640px) { .mini-compare { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* How it works */
.how-grid { display: grid; gap: 1.4rem; }
@media (min-width: 780px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-card { padding: 1.8rem; }
.how-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; margin-bottom: 1rem;
}

/* Country grid */
.country-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .country-grid { grid-template-columns: repeat(4, 1fr); } }
.country-card {
  padding: 1.6rem 1.3rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.country-flag { font-size: 2.4rem; }
.country-card h3 { font-size: 1.05rem; }
.country-card .muted { font-size: 0.85rem; }

/* Comparator toolbar (compare.html) */
.compare-toolbar { padding: 1.4rem; display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .compare-toolbar { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.compare-count { font-weight: 700; color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 1.2rem; }
.disclaimer-banner {
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(255, 122, 77, 0.1);
  border: 1px solid rgba(255, 122, 77, 0.28); font-size: 0.88rem; color: var(--accent-2-dark);
  margin-bottom: 1.6rem;
}

/* Plan grid */
.plan-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.plan-card-head h3 { font-size: 1.08rem; }
.plan-tier { font-size: 0.72rem; font-weight: 700; color: var(--ink-mute); background: rgba(19,38,33,0.06); padding: 0.25rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.plan-highlight { font-size: 0.9rem; color: var(--ink-soft); }
.plan-stats { display: grid; gap: 0.6rem; }
.plan-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; font-size: 0.86rem; }
.plan-stats dt { color: var(--ink-mute); }
.plan-stats dd { font-weight: 700; color: var(--ink); text-align: right; }
.plan-tags { display: flex; flex-wrap: wrap; }

/* Financing table wrap already covered by .compare-table */

/* Trust signals */
.trust-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card { padding: 1.5rem; }
.trust-card svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 0.8rem; }
.trust-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.trust-card p { font-size: 0.88rem; color: var(--ink-mute); }

/* CTA band */
.cta-band { padding: 2.6rem; text-align: center; }
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { max-width: 52ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

/* Article / long-form pages */
.article-hero { padding-block: clamp(7rem, 12vw, 9rem) 2.5rem; }
.article-media {
  display: block; width: 100%; aspect-ratio: 16/7.5; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 2.2rem;
  box-shadow: 0 40px 80px -36px rgba(var(--shadow-color), 0.38);
}
.article-body { max-width: 74ch; }
.article-body h2 { margin-top: 2.4rem; margin-bottom: 0.9rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.article-body ul { margin-bottom: 1.1rem; }
.article-body li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; color: var(--ink-soft); }
.article-body li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.breadcrumbs { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--accent-dark); font-weight: 600; }

/* Footer */
.site-footer { padding-block: 3rem 2rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-grid { display: grid; gap: 2.2rem; margin-bottom: 2.2rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute); margin-bottom: 0.9rem; }
.footer-col a, .footer-col span { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.55rem; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-disclaimer { font-size: 0.8rem; color: var(--ink-mute); max-width: 90ch; margin-bottom: 1.2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--ink-mute); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--accent-dark); }

/* Country banner — original illustrated graphic (gradient + dot pattern +
   compass watermark), replaces repeated stock photography per country. */
.country-banner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 1.4rem;
  min-height: 168px; padding: 1.8rem 2.2rem;
  border-radius: var(--radius-lg); margin-bottom: 2.2rem;
  background: linear-gradient(135deg, var(--banner-a, #0f8a76), var(--banner-b, #3b82f6));
  box-shadow: 0 40px 80px -36px rgba(var(--shadow-color), 0.4);
}
.country-banner-pattern {
  position: absolute; inset: 0; z-index: 0; opacity: 0.16;
  background-image: radial-gradient(circle, #fff 1.6px, transparent 1.6px);
  background-size: 24px 24px;
  animation: bannerDrift 26s linear infinite;
}
@keyframes bannerDrift { from { background-position: 0 0; } to { background-position: 120px 60px; } }
.country-banner-mark {
  position: absolute; right: -34px; bottom: -34px; width: 170px; height: 170px;
  opacity: 0.16; z-index: 0;
}
.country-banner-flag {
  font-size: 3.6rem; line-height: 1; flex-shrink: 0; position: relative; z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}
.country-banner-text { position: relative; z-index: 1; color: #fff; }
.country-banner-text strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.01em; }
.country-banner-text span { display: block; margin-top: .25rem; font-size: .9rem; opacity: .92; }
@media (prefers-reduced-motion: reduce) { .country-banner-pattern { animation: none; } }

/* Ad slots — replace the placeholder <div> inside with your real
   <ins class="adsbygoogle"> unit once your AdSense account is approved.
   See HANDOFF notes for where the loader script goes. */
.ad-slot { margin-block: 2.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.ad-slot-label { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.ad-slot-box {
  width: 100%; max-width: 728px; min-height: 90px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(19, 38, 33, 0.04); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--ink-mute); font-size: 0.8rem; padding: 0.6rem;
}
.ad-slot--rect .ad-slot-box { max-width: 300px; min-height: 250px; }
.ad-slot--infeed { grid-column: 1 / -1; margin-block: 0; }
.ad-slot--infeed .ad-slot-box { min-height: 110px; max-width: none; }
.ad-slot--sidebar { display: none; }
@media (min-width: 1180px) {
  .compare-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
  .ad-slot--sidebar { display: flex; position: sticky; top: 96px; }
  .ad-slot--sidebar .ad-slot-box { width: 300px; max-width: 300px; min-height: 600px; }
}

/* Mobile anchor ad — sticks to the bottom of the viewport, dismissible.
   Hidden on desktop; this is the highest-performing AdSense format on mobile. */
.ad-anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  display: none; align-items: center; gap: .6rem;
  padding: .5rem .9rem; padding-right: 2.2rem;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(var(--shadow-color), .3);
}
.ad-anchor[hidden] { display: none !important; }
@media (max-width: 720px) { .ad-anchor:not([hidden]) { display: flex; } }
.ad-anchor .ad-slot-label { flex-shrink: 0; }
.ad-anchor-box {
  flex: 1 1 auto; min-height: 50px; display: flex; align-items: center; justify-content: center;
  background: rgba(19,38,33,0.04); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--ink-mute); font-size: .78rem;
}
.ad-anchor-close {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(19,38,33,0.08); font-size: 1rem; line-height: 1;
}
/* Keep the chat bubble clear of the anchor ad bar on mobile */
@media (max-width: 720px) { body:has(.ad-anchor:not([hidden])) .ai-chat { bottom: calc(64px + .7rem); } }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 1.4rem;
  padding: 1rem 1.4rem;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(var(--shadow-color), .35);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--ink-mute); max-width: 640px; }
.cookie-banner p a { color: var(--ink); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }
@media (max-width: 560px) { .cookie-banner { justify-content: flex-start; } .cookie-banner-actions { width: 100%; } .cookie-banner-actions .btn { flex: 1 1 auto; } }

/* AI chat widget */
.ai-chat { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 300; }
.ai-chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 18px 36px -12px rgba(15,138,118,.55);
  transition: transform .3s var(--ease-soft);
}
.ai-chat-toggle:hover { transform: translateY(-3px) scale(1.04); }
.ai-chat-toggle svg { width: 24px; height: 24px; }
.ai-chat-panel {
  position: absolute; right: 0; bottom: calc(100% + .8rem);
  width: min(340px, calc(100vw - 2.4rem)); max-height: 70vh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: 0 30px 70px -20px rgba(var(--shadow-color),.4);
}
.ai-chat-panel[hidden] { display: none; }
.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: .92rem;
}
.ai-chat-close { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.ai-chat-close:hover { background: rgba(19,38,33,.06); }
.ai-chat-messages { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; min-height: 120px; }
.ai-chat-msg { max-width: 88%; padding: .55rem .8rem; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.ai-chat-msg--bot { align-self: flex-start; background: rgba(15,138,118,.1); color: var(--ink); border-bottom-left-radius: 4px; }
.ai-chat-msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ai-chat-msg--typing { opacity: .6; }
.ai-chat-form { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.ai-chat-form input {
  flex: 1 1 auto; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.7); font: inherit; font-size: .86rem;
}
.ai-chat-form button {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex-shrink: 0; font-size: 1rem;
}
.ai-chat-disclaimer { padding: 0 1.1rem .9rem; font-size: .72rem; color: var(--ink-mute); }
@media (max-width: 480px) {
  .ai-chat { right: .7rem; bottom: .7rem; }
  .ai-chat-toggle { width: 46px; height: 46px; }
  .ai-chat-toggle svg { width: 20px; height: 20px; }
  .ai-chat-panel { bottom: calc(100% + .6rem); }
}

/* Credits list */
.credits-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.credits-list a { color: var(--accent-dark); font-weight: 600; }

/* =============================================================
   7. Effects
   ============================================================= */
@property --angleUnused { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.animate-in-view { animation: none; }

/* View transitions (multi-page) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   8. Responsive — nav links reveal at desktop widths
   ============================================================= */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .mesh-bg::before { animation: none; }
  .hero-visual img, .hero-floating-card { animation: none; }
}
