/* ============================================
   GigSky eSIM Coupon — Design System
   ============================================ */
:root {
  --primary: #0b5fff;
  --primary-dark: #0847bf;
  --primary-light: #e8f0ff;
  --accent: #ff7a00;
  --accent-dark: #d96700;
  --success: #0a8f4d;
  --success-light: #e6f7ee;
  --warning-bg: #fff7e6;
  --warning-border: #f0c36d;
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --muted: #6b7690;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(20, 33, 61, .08);
  --shadow-lg: 0 8px 30px rgba(20, 33, 61, .12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 860px;
}

* { 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: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand .brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), #4d8dff);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
}
.brand .brand-badge {
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.nav-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  margin-left: 6px;
}
.main-nav a.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
}

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > a::after { content: " ▾"; font-size: .7em; }
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  z-index: 50;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; padding: 9px 12px; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(160deg, #0b2a6b 0%, #0b5fff 60%, #2f7bff 100%);
  color: #fff;
  padding: 56px 0 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto 16px;
}
.hero .hero-sub {
  font-size: 1.06rem;
  color: #d7e4ff;
  max-width: 660px;
  margin: 0 auto 8px;
}
.hero .hero-note { font-size: .85rem; color: #a9c3f5; }

/* ---------- Coupon cards ---------- */
.coupon-cards {
  max-width: 780px;
  margin: -46px auto 0;
  padding: 0 20px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 5;
}
.coupon-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coupon-card.primary-code { border-color: var(--primary); }
.coupon-card .cc-tag {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--primary);
}
.coupon-card.fallback-code .cc-tag { color: var(--muted); }
.coupon-card .cc-discount { font-size: 1.35rem; font-weight: 800; }
.coupon-card .cc-desc { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.code-box {
  flex: 1;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .04em;
  text-align: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  user-select: all;
}
.coupon-card.fallback-code .code-box { border-color: var(--muted); background: var(--bg-soft); color: var(--ink-soft); }
.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--primary-dark); }
.copy-btn.copied { background: var(--success); }
.coupon-card .cc-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: background .15s;
}
.coupon-card .cc-cta:hover { background: var(--accent-dark); }
.coupon-rules {
  max-width: 780px;
  margin: 14px auto 0;
  padding: 0 20px;
  text-align: center;
  font-size: .84rem;
  color: var(--muted);
}

/* ---------- Article ---------- */
.article-head { padding: 40px 0 8px; }
.breadcrumbs {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.article-head h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .84rem;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.article-meta strong { color: var(--ink-soft); font-weight: 600; }

article.post { padding: 10px 0 40px; }
article.post h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 40px 0 14px;
  line-height: 1.35;
  scroll-margin-top: 84px;
}
article.post h3 {
  font-size: 1.13rem;
  font-weight: 700;
  margin: 28px 0 10px;
  scroll-margin-top: 84px;
}
article.post p { margin: 0 0 16px; color: var(--ink-soft); }
article.post ul, article.post ol { margin: 0 0 18px 24px; color: var(--ink-soft); }
article.post li { margin-bottom: 8px; }
article.post a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(11,95,255,.3); text-underline-offset: 2px; }
article.post a:hover { text-decoration-color: var(--primary); }
article.post strong { color: var(--ink); }
article.post code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: .88em;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
article.post table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 540px; }
article.post th {
  background: var(--bg-soft);
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
article.post td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
article.post tr:last-child td { border-bottom: none; }

/* Coupon inline block */
.coupon-block {
  background: linear-gradient(135deg, var(--primary-light), #f2f7ff);
  border: 1px solid #c8dbff;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.coupon-block h2, .coupon-block h3 { margin-top: 0 !important; }
.coupon-block p { margin-bottom: 10px !important; }
.coupon-block .cb-codes { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.cb-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: .95rem;
  transition: all .15s;
}
.cb-code-pill:hover { background: var(--primary-light); }
.cb-code-pill .pill-label {
  font-family: var(--font);
  font-weight: 600;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
}
.cb-code-pill.copied { border-color: var(--success); color: var(--success); background: var(--success-light); }

/* CTA buttons */
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all .15s;
  box-shadow: 0 3px 10px rgba(255,122,0,.3);
}
.btn-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.btn-secondary:hover { background: var(--primary-dark); }
.cta-center { text-align: center; margin: 26px 0; }

/* Callouts */
.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0 !important; }
.callout.warn { background: var(--warning-bg); border-left-color: var(--warning-border); }
.callout.tip { background: var(--success-light); border-left-color: var(--success); }

/* Disclosure */
.disclosure {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--muted);
  margin: 16px 0 22px;
}
.disclosure a { color: var(--primary); }

/* FAQ accordion */
.faq-list { margin: 10px 0 24px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item .faq-body { padding: 14px 18px; font-size: .94rem; color: var(--ink-soft); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Sources */
.sources {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0 8px;
  font-size: .88rem;
}
.sources h2 { font-size: 1.1rem !important; margin: 0 0 10px !important; }
.sources ul { margin-bottom: 0 !important; }
.sources li { margin-bottom: 5px; }

/* Related links */
.related {
  margin: 36px 0 8px;
  padding: 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
}
.related h2 { font-size: 1.15rem !important; margin: 0 0 14px !important; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-grid a {
  display: block;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid #d5e3ff;
  transition: all .15s;
}
.related-grid a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.related-grid a span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* Card grid (homepage guides section) */
.section-pad { padding: 56px 0; }
.section-pad.alt { background: var(--bg-soft); }
.section-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: all .18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #c8dbff; }
.g-card .gc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.g-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.g-card p { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.g-card .gc-more { font-size: .84rem; color: var(--primary); font-weight: 600; margin-top: auto; }

/* Steps */
.steps-list { counter-reset: step; list-style: none !important; margin-left: 0 !important; }
.steps-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 18px !important;
}
.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.pc-col { border-radius: var(--radius); padding: 20px; }
.pc-col.pros { background: var(--success-light); border: 1px solid #bfe7d2; }
.pc-col.cons { background: #fdeeee; border: 1px solid #f2c9c9; }
.pc-col h3 { margin-top: 0 !important; }
.pc-col ul { margin-bottom: 0 !important; margin-left: 20px !important; }

/* Verdict box */
.verdict-box {
  background: linear-gradient(135deg, #10275e, #0b5fff);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin: 26px 0;
}
.verdict-box h2, .verdict-box h3 { color: #fff; margin-top: 0 !important; }
.verdict-box p { color: #dbe7ff !important; }
.verdict-box .btn-cta { margin-top: 6px; }

/* TOC */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
  font-size: .9rem;
}
.toc strong { display: block; margin-bottom: 8px; font-size: .95rem; }
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--primary); }

/* ---------- Images ---------- */
.article-hero {
  margin: 18px 0 26px;
}
.article-hero img {
  width: 100%;
  height: clamp(220px, 38vw, 400px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}
.article-hero figcaption {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}
.inline-figure {
  margin: 26px 0;
}
.inline-figure img {
  width: 100%;
  height: clamp(180px, 32vw, 340px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.inline-figure figcaption {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* Homepage hero image strip */
.hero-img-wrap {
  max-width: 780px;
  margin: 28px auto -86px;
  padding: 0 20px;
  position: relative;
  z-index: 4;
}
.hero-img-wrap img {
  width: 100%;
  height: clamp(180px, 30vw, 300px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(4, 18, 52, .45);
  border: 4px solid rgba(255,255,255,.35);
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #10182b;
  color: #b9c3d8;
  padding: 48px 0 28px;
  margin-top: 56px;
  font-size: .88rem;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #b9c3d8; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.footer-note { font-size: .8rem; color: #8a94ab; line-height: 1.6; }
.footer-bottom {
  max-width: 1140px;
  margin: 32px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid #263048;
  font-size: .78rem;
  color: #8a94ab;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .drop-menu { position: static; display: block; border: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav-drop > a::after { content: ""; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .coupon-cards { grid-template-columns: 1fr; margin-top: -40px; }
  .card-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 40px 0 64px; }
}
