/* ============================================
   Airalo eSim Coupon — Global Stylesheet
   ============================================ */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --primary-darker: #075985;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warn-bg: #fffbeb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 4px 6px -2px rgba(15, 23, 42, .06), 0 20px 40px -16px rgba(15, 23, 42, .18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1160px; 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(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.18rem; color: var(--ink);
  letter-spacing: -.02em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  display: grid; place-items: center; color: #fff; font-size: .95rem;
  flex-shrink: 0;
}
.brand .accent { color: var(--primary-dark); }

#main-nav { display: flex; align-items: center; gap: 4px; }
#main-nav > a {
  padding: 8px 13px; border-radius: 8px; font-weight: 600;
  font-size: .92rem; color: var(--ink-soft);
}
#main-nav > a:hover { background: #f1f5f9; color: var(--ink); text-decoration: none; }
#main-nav > a.cta {
  background: var(--accent); color: #fff; margin-left: 6px;
}
#main-nav > a.cta:hover { background: var(--accent-dark); }

#nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 11px; font-size: 1.05rem;
  color: var(--ink-soft); cursor: pointer;
}

@media (max-width: 860px) {
  #nav-toggle { display: block; }
  #main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    box-shadow: var(--shadow-lg);
  }
  #main-nav.open { display: flex; }
  #main-nav > a { padding: 12px 14px; }
  #main-nav > a.cta { margin-left: 0; text-align: center; margin-top: 6px; }
}

/* ---------- Hero (homepage) ---------- */
#hero-section {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(14,165,233,.32), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(245,158,11,.14), transparent 55%),
    linear-gradient(160deg, #082f49 0%, #0c4a6e 55%, #075985 100%);
  color: #fff; padding: 68px 0 0; position: relative; overflow: hidden;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.glow-1 { width: 420px; height: 420px; right: -100px; top: -120px; background: rgba(56,189,248,.22); }
.glow-2 { width: 340px; height: 340px; left: -120px; bottom: -80px; background: rgba(245,158,11,.14); }
.hero-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center; position: relative; z-index: 1;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  margin-bottom: 22px; color: #e0f2fe;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.8s infinite;
  display: inline-block; flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
#hero-section h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.15rem); line-height: 1.12;
  letter-spacing: -.03em; font-weight: 800; margin-bottom: 18px;
}
#hero-section h1 .hl {
  color: #fbbf24; position: relative; white-space: nowrap;
}
#hero-section h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 9px;
  background: rgba(251,191,36,.25); border-radius: 4px; z-index: -1;
}
.hero-sub {
  font-size: 1.1rem; color: #cfe8fa; max-width: 560px; margin-bottom: 22px;
}
.hero-checklist { list-style: none; margin: 0 0 28px; display: grid; gap: 11px; }
.hero-checklist li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .98rem; color: #e0f2fe; font-weight: 500;
}
.hero-checklist i { color: #4ade80; margin-top: 4px; flex-shrink: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px;
  font-size: .84rem; color: #93c5fd; font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: #7dd3fc; }

/* Hero visual: deal card + floating chips */
.hero-visual { position: relative; }
.deal-card {
  background: rgba(255,255,255,.98); color: var(--ink);
  border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: 0 30px 70px -20px rgba(2,20,35,.65), 0 0 0 1px rgba(255,255,255,.35);
  position: relative; z-index: 2;
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.deal-card-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.deal-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.02rem; color: var(--primary-darker);
}
.deal-brand i {
  width: 32px; height: 32px; border-radius: 9px; font-size: .85rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  color: #fff; display: grid; place-items: center;
}
.deal-live {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px;
}
.deal-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-muted); margin-bottom: 12px;
}
.deal-list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.deal-list li {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 14px;
  font-weight: 700; font-size: .93rem; color: var(--ink);
}
.deal-list li i {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: #e0f2fe; color: var(--primary-dark);
  display: grid; place-items: center; font-size: .88rem;
}
.deal-list li em {
  font-style: normal; font-weight: 500; font-size: .78rem;
  color: var(--ink-muted); margin-left: auto; text-align: right;
}
.deal-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 13px; }
.deal-verified {
  margin-top: 13px; text-align: center; font-size: .76rem; color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.deal-verified i { color: var(--success); }

.float-chip {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 999px; padding: 9px 16px;
  font-size: .82rem; font-weight: 700;
  box-shadow: 0 12px 30px -10px rgba(2,20,35,.5);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.float-chip i { color: var(--primary-dark); }
.chip-1 { top: -18px; left: -26px; animation: floatCard 6s ease-in-out infinite .4s; }
.chip-2 { bottom: 42px; right: -20px; animation: floatCard 5.5s ease-in-out infinite 1s; }
.chip-3 { bottom: -16px; left: 8%; animation: floatCard 6.5s ease-in-out infinite .7s; color: #92400e; }
.chip-3 i { color: var(--accent-dark); }
@media (max-width: 920px) {
  .chip-1 { left: -8px; }
  .chip-2 { right: -8px; }
}
@media (max-width: 480px) {
  .float-chip { display: none; }
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 11px; font-weight: 700;
  font-size: 1rem; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(245,158,11,.7); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: var(--primary-darker); }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; padding: 24px 0 30px;
  border-top: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff, #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat .lbl { font-size: .83rem; color: #93c5fd; font-weight: 600; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 700px; margin-bottom: 38px; }
.section-head .kicker {
  color: var(--primary-dark); font-weight: 700; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -.025em;
  line-height: 1.25; margin-bottom: 10px;
}
.section-head p { color: var(--ink-muted); }

/* ---------- Coupon spotlight cards ---------- */
#coupon-spotlight { margin-top: -46px; position: relative; z-index: 2; padding-bottom: 8px; }
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.coupon-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px; border-top: 4px solid var(--primary);
  display: flex; flex-direction: column; gap: 12px;
}
.coupon-card.gigsky { border-top-color: var(--accent); }
.coupon-card .provider {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-muted);
}
.coupon-card h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.code-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--success-bg); border: 1.5px dashed var(--success);
  color: var(--success); border-radius: 9px; padding: 9px 16px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-weight: 700; font-size: 1.02rem; width: fit-content;
  cursor: pointer; user-select: all;
}
.code-pill:hover { background: #d1fae5; }
.code-pill .copy-hint { font-size: .72rem; font-weight: 600; font-family: var(--font); opacity: .75; }
.coupon-card .note { font-size: .88rem; color: var(--ink-muted); flex: 1; }
.coupon-card .btn { justify-content: center; font-size: .93rem; padding: 11px 18px; }

/* ---------- Article cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.article-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: #bae6fd; text-decoration: none;
}
.article-card .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 10px; border-radius: 999px;
  background: #e0f2fe; color: var(--primary-darker);
}
.article-card .tag.deals { background: #fef3c7; color: #92400e; }
.article-card .tag.compare { background: #ede9fe; color: #5b21b6; }
.article-card .tag.guides { background: #dcfce7; color: #166534; }
.article-card h3 { font-size: 1.08rem; line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.article-card p { font-size: .9rem; color: var(--ink-muted); flex: 1; }
.article-card .read-more {
  font-size: .88rem; font-weight: 700; color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Article hero banner ---------- */
#article-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #0c4a6e, #075985);
}
#article-hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .28;
}
#article-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,42,64,.92) 0%, rgba(7,60,94,.72) 55%, rgba(12,74,110,.45) 100%);
}
#article-hero .hero-content {
  position: relative; z-index: 1; padding: 56px 0 60px; max-width: 820px;
}
#article-hero .hero-cat {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px;
}
#article-hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.5rem); line-height: 1.18;
  letter-spacing: -.03em; font-weight: 800; margin-bottom: 14px;
}
#article-hero .hero-desc {
  font-size: 1.05rem; color: #dbeafe; max-width: 660px; margin-bottom: 20px;
}
#article-hero .hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; font-weight: 600;
}
#article-hero .hero-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); padding: 6px 13px; border-radius: 999px;
  color: #e0f2fe;
}
#article-hero .hero-meta i { color: #7dd3fc; }

/* Homepage hero background image */
#hero-section .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .22;
}
#hero-section .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(12,74,110,.9) 0%, rgba(7,89,133,.78) 45%, rgba(14,165,233,.35) 130%);
}

/* Homepage article card thumbnails */
.article-card { padding: 0; overflow: hidden; }
.article-card .card-thumb {
  width: 100%; height: 158px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line);
}
.article-card .card-body {
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.article-card .card-title { font-size: 1.08rem; line-height: 1.4; letter-spacing: -.015em; color: var(--ink); font-weight: 700; }
.article-card .card-desc { font-size: .9rem; color: var(--ink-muted); flex: 1; }

/* ---------- Article page layout ---------- */
#article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px; padding: 40px 0 70px; align-items: start;
}
@media (max-width: 980px) {
  #article-layout { grid-template-columns: 1fr; }
  #article-sidebar { order: 2; }
}

#breadcrumbs {
  font-size: .85rem; color: var(--ink-muted); padding: 18px 0 0;
}
#breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
#breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #94a3b8; }

#article-content { min-width: 0; }

.article-meta-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: .85rem; color: var(--ink-muted);
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.article-meta-bar .meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f5f9; padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
.article-meta-bar .meta-chip.checked { background: var(--success-bg); color: var(--success); }

/* Article prose */
.prose h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.2;
  letter-spacing: -.03em; margin: 18px 0 14px;
}
.prose h2 {
  font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.3;
  margin: 44px 0 14px; padding-top: 10px; scroll-margin-top: 86px;
}
.prose h3 {
  font-size: 1.15rem; letter-spacing: -.015em;
  margin: 30px 0 10px; scroll-margin-top: 86px;
}
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose p strong:first-child { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 26px; color: var(--ink-soft); }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--primary-dark); font-weight: 700; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: #bae6fd; text-underline-offset: 3px; overflow-wrap: break-word; word-break: break-word; }
.prose p, .prose li, .prose h1, .prose h2, .prose h3 { overflow-wrap: break-word; }
.prose a:hover { text-decoration-color: var(--primary); }
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: #eef6ff; color: var(--primary-darker);
  padding: 2.5px 8px; border-radius: 6px; font-size: .88em; font-weight: 700;
  border: 1px solid #dbeafe;
}
.prose em { color: var(--ink-muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

.prose blockquote {
  background: var(--warn-bg); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 22px 0;
}
.prose blockquote p { margin-bottom: 8px; }
.prose blockquote p:last-child { margin-bottom: 0; }

/* First paragraph = quick answer emphasis */
.prose > p.quick-answer {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px;
  padding: 18px 22px; font-size: 1.02rem;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; min-width: 560px; }
.prose thead th {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  color: #fff; text-align: left; padding: 12px 15px; font-weight: 700;
  white-space: nowrap;
}
.prose tbody td { padding: 11px 15px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.prose tbody tr:nth-child(even) { background: #f8fafc; }
.prose td code, .prose th code { white-space: nowrap; }

/* Affiliate disclosure */
.prose p.disclosure {
  font-size: .84rem; color: var(--ink-muted); background: #f1f5f9;
  border-radius: 10px; padding: 12px 16px; border: 1px solid var(--line);
}

/* CTA box injected into articles */
.article-cta {
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  border-radius: var(--radius); color: #fff; padding: 28px;
  margin: 34px 0; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px; box-shadow: var(--shadow-lg);
}
.article-cta .cta-text h3 { font-size: 1.2rem; margin-bottom: 6px; letter-spacing: -.015em; }
.article-cta .cta-text p { color: #bae6fd; font-size: .92rem; margin: 0; max-width: 460px; }

/* ---------- Sidebar ---------- */
#article-sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 22px; }
.side-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.side-card h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-muted); margin-bottom: 14px; font-weight: 700;
}
#toc-list { list-style: none; font-size: .89rem; }
#toc-list li { margin-bottom: 2px; }
#toc-list a {
  display: block; padding: 6px 10px; border-radius: 7px;
  color: var(--ink-soft); border-left: 2px solid transparent;
}
#toc-list a:hover { background: #f1f5f9; text-decoration: none; color: var(--ink); }
#toc-list a.active { color: var(--primary-dark); border-left-color: var(--primary); background: #f0f9ff; font-weight: 600; }

.side-cta {
  background: linear-gradient(150deg, #78350f, #b45309);
  color: #fff; border: none;
}
.side-cta h4 { color: #fde68a; }
.side-cta .code-pill { background: rgba(255,255,255,.12); border-color: #fcd34d; color: #fde68a; }
.side-cta .code-pill:hover { background: rgba(255,255,255,.2); }
.side-cta p { font-size: .87rem; color: #fef3c7; margin: 10px 0 14px; }
.side-cta .btn { width: 100%; justify-content: center; font-size: .92rem; padding: 11px; }

.related-list { list-style: none; }
.related-list li { border-bottom: 1px solid var(--line); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: block; padding: 10px 2px; font-size: .91rem; font-weight: 600; color: var(--ink-soft);
}
.related-list a:hover { color: var(--primary-dark); text-decoration: none; }

/* ---------- Prev / Next ---------- */
.prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px;
}
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } }
.prevnext a {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.prevnext a:hover { text-decoration: none; border-color: #bae6fd; box-shadow: var(--shadow); }
.prevnext .dir { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.prevnext .ttl { font-weight: 700; font-size: .95rem; color: var(--ink); margin-top: 4px; }
.prevnext a.next { text-align: right; }

/* ---------- FAQ steps hub (homepage) ---------- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.step-card .step-num {
  width: 38px; height: 38px; border-radius: 10px;
  background: #e0f2fe; color: var(--primary-darker);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-card p { font-size: .88rem; color: var(--ink-muted); }

/* ---------- Footer ---------- */
#site-footer {
  background: #0f172a; color: #94a3b8; margin-top: 40px;
  padding: 52px 0 28px; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
#site-footer h5 {
  color: #fff; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 14px;
}
#site-footer ul { list-style: none; }
#site-footer li { margin-bottom: 8px; }
#site-footer a { color: #cbd5e1; }
#site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-disclosure { font-size: .8rem; line-height: 1.65; color: #64748b; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 22px; text-align: center;
  font-size: .8rem; color: #64748b;
}

/* Copy toast */
#copy-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; opacity: 0; transition: all .3s; z-index: 100;
  pointer-events: none;
}
#copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Loading state */
#article-loading { padding: 60px 0; text-align: center; color: var(--ink-muted); }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Mobile responsiveness (tablet & phone)
   ============================================ */

/* Prevent any horizontal overflow site-wide */
html, body { max-width: 100%; overflow-x: hidden; }

/* ---------- Tablet (≤ 768px) ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }

  /* Homepage hero */
  #hero-section { padding-top: 40px; }
  .hero-grid { gap: 32px; }
  .hero-sub { font-size: 1.02rem; }
  .hero-checklist li { font-size: .93rem; }
  .hero-actions { gap: 10px; }
  .btn-lg { padding: 13px 22px; font-size: .98rem; }
  .hero-trust { gap: 12px 16px; font-size: .8rem; }
  .hero-stats { margin-top: 36px; padding: 18px 0 24px; gap: 14px; }
  .hero-stat .num { font-size: 1.35rem; }
  .hero-stat .lbl { font-size: .76rem; }

  /* Coupon spotlight */
  #coupon-spotlight { margin-top: -30px; }
  .coupon-card { padding: 20px; }

  /* Article hero */
  #article-hero .hero-content { padding: 34px 0 38px; }
  #article-hero .hero-desc { font-size: .96rem; }
  #article-hero .hero-meta { gap: 8px; }
  #article-hero .hero-meta span { font-size: .76rem; padding: 5px 11px; }

  /* Article layout */
  #article-layout { padding: 22px 0 48px; gap: 30px; }
  #article-sidebar { position: static; }

  /* Prose */
  .prose h2 { font-size: 1.32rem; margin: 34px 0 12px; }
  .prose h3 { font-size: 1.08rem; margin: 24px 0 8px; }
  .prose > p.quick-answer { padding: 14px 16px; font-size: .97rem; }
  .prose blockquote { padding: 14px 16px; }
  .prose ul, .prose ol { padding-left: 20px; }

  /* Tables: keep readable + swipeable */
  .prose table { font-size: .85rem; min-width: 520px; }
  .prose thead th { padding: 10px 12px; }
  .prose tbody td { padding: 9px 12px; }

  /* In-article CTA */
  .article-cta { padding: 20px; }
  .article-cta .btn { width: 100%; justify-content: center; }

  /* Footer */
  #site-footer { padding: 40px 0 22px; }
}

/* ---------- Phone (≤ 480px) ---------- */
@media (max-width: 480px) {
  .container { padding: 0 20px; }

  /* Header */
  .header-inner { height: 58px; }
  .brand { font-size: 1.02rem; }
  .brand-icon { width: 31px; height: 31px; font-size: .82rem; }
  #main-nav { top: 58px; }

  /* Homepage hero */
  #hero-section { padding-top: 32px; }
  #hero-section h1 { font-size: 1.72rem; }
  #hero-section h1 .hl { white-space: normal; }
  .hero-badge { font-size: .76rem; padding: 6px 12px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .deal-card { padding: 20px 18px 18px; border-radius: 16px; }
  .deal-list li { font-size: .86rem; padding: 10px 12px; gap: 9px; }
  .deal-list li i { width: 30px; height: 30px; }
  .deal-list li em { font-size: .7rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  /* Coupon spotlight & steps */
  .coupon-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .code-pill { font-size: .94rem; padding: 9px 14px; }

  /* Article hero */
  #article-hero h1 { font-size: 1.42rem; }
  #article-hero .hero-cat { font-size: .7rem; padding: 4px 11px; margin-bottom: 13px; }
  #article-hero .hero-content { padding: 28px 0 30px; }

  /* Breadcrumbs & meta */
  #breadcrumbs { font-size: .78rem; }
  .article-meta-bar { gap: 8px; font-size: .78rem; }
  .article-meta-bar .meta-chip { padding: 3px 10px; }

  /* Prose fine-tuning */
  .prose h2 { font-size: 1.2rem; scroll-margin-top: 72px; }
  .prose h3 { font-size: 1.02rem; scroll-margin-top: 72px; }
  .prose p, .prose li { font-size: .95rem; }
  .prose code { font-size: .84em; padding: 2px 6px; word-break: break-word; }

  /* Sidebar cards */
  .side-card { padding: 18px; }
  .side-cta .btn { font-size: .9rem; }

  /* Prev/next */
  .prevnext { margin-top: 32px; }
  .prevnext a.next { text-align: left; }

  /* Footer */
  .footer-grid { gap: 24px; }

  /* Copy toast */
  #copy-toast { bottom: 18px; font-size: .82rem; padding: 10px 18px; max-width: 90vw; text-align: center; }
}

/* Comfortable tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  #main-nav > a { padding: 13px 14px; }
  #toc-list a { padding: 9px 10px; }
  .related-list a { padding: 12px 2px; }
  .btn { min-height: 46px; }
}
