:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0f766e;
  --brand-2: #0d9488;
  --brand-soft: #ccfbf1;
  --sky: #0284c7;
  --sky-soft: #e0f2fe;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --green: #15803d;
  --green-soft: #dcfce7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none !important;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--sky) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.logo span { color: var(--brand); }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .93rem;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a.active {
  background: var(--surface-2);
  color: var(--ink);
}
.menu-btn {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0b4f4a 0%, #0f766e 48%, #0369a1 100%);
  color: #fff;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 28px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero p.lead {
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: rgba(255,255,255,.9);
  max-width: 58ch;
}

/* Search box */
.search-box {
  position: relative;
  max-width: 540px;
}
.search-box input {
  width: 100%;
  padding: 15px 18px 15px 46px;
  border-radius: 13px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.35);
  outline: none;
}
.search-box input:focus { border-color: #5eead4; }
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 20px 40px -12px rgba(15,23,42,.28);
  z-index: 40;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.search-results.open { display: block; }
.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
}
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background: var(--surface-2); }
.search-item .left { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.search-item .right { font-size: .88rem; color: var(--brand); font-weight: 700; }

/* Hero Bento Stat Cards */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hstat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.hstat .num { font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.hstat .lbl { font-size: .82rem; color: rgba(255,255,255,.85); margin-top: 4px; }

/* Sections & Cards */
section.band { padding: 38px 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* Country Grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.c-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  text-decoration: none !important;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.c-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2);
  box-shadow: 0 12px 24px -14px rgba(15,118,110,.3);
}
.c-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-flag { font-size: 1.65rem; line-height: 1; }
.c-name { font-weight: 700; font-size: 1.03rem; }
.c-meta { font-size: .82rem; color: var(--muted); }
.c-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.c-price strong { color: var(--brand); font-size: 1.08rem; }
.c-price span { font-size: .8rem; color: var(--muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}
.b-teal { background: var(--brand-soft); color: #115e59; }
.b-sky { background: var(--sky-soft); color: #075985; }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-green { background: var(--green-soft); color: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-slate { background: var(--surface-2); color: var(--muted); }

/* Calculator Bento */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: stretch;
}
.calc-controls { display: grid; gap: 14px; }
.calc-row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.calc-row select, .calc-row input[type=range] { width: 100%; }
.calc-row select {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}
.calc-out {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  border: 1px solid #99f6e4;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.calc-out .big { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }

/* Filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: .86rem;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Comparison Tables */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
table.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
table.cmp th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--surface-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.cmp td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp tr:hover td { background: #f8fafc; }
.price-cell { font-weight: 800; font-size: 1.08rem; color: var(--ink); white-space: nowrap; }
.sub-price { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .12s, background .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #115e59; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Router Cards */
.router-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.r-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.r-img {
  height: 150px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}
.r-img img { max-height: 128px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.r-title { font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0; }
.r-bullets { margin: 0; padding-left: 18px; font-size: .84rem; color: var(--muted); }
.r-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.r-price { font-size: 1.2rem; font-weight: 800; color: var(--ink); }

/* Breadcrumbs & Subpage Hero */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a { color: rgba(255,255,255,.85); }
.sub-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
  color: #fff;
  padding: 32px 0 36px;
}
.sub-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.15; }
.sub-hero p { margin: 0; color: rgba(255,255,255,.88); max-width: 68ch; }

/* Summary Bento Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -22px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: var(--shadow);
}
.kpi .k-lbl { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kpi .k-val { font-size: 1.25rem; font-weight: 800; margin-top: 4px; color: var(--ink); }

/* Info Boxes & FAQ */
.callout {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout.warn {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::after { content: "+"; font-size: 1.2rem; color: var(--brand); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }

/* Region list */
.region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.r-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none !important;
}
.r-pill:hover { border-color: var(--brand); color: var(--brand); }
.r-pill small { color: var(--muted); font-weight: 500; }

/* Sister CTA banner */
.sister-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sister-box h3 { margin: 0 0 6px; font-size: 1.2rem; }
.sister-box p { margin: 0; color: #cbd5e1; max-width: 60ch; font-size: .94rem; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 42px 0 28px;
  margin-top: 48px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #64748b;
}

@media (max-width: 960px) {
  .hero-grid, .calc-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .router-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .hero { padding: 32px 0 38px; }
  .country-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .router-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .c-card { padding: 13px; }
}
