:root {
  --bg: #f3f7f8;
  --fg: #0f1c24;
  --muted: #5b6b75;
  --muted-bg: #eaf2f4;
  --border: #c9d7dd;
  --card: #fff;
  --card-border: #c9d7dd;
  --primary: #0e7490;
  --primary-2: #0a5c72;
  --accent-soft: #e0f4f8;
  --input-bg: #fff;
  --shadow-lg: 0 8px 24px rgba(15, 28, 36, 0.1);
  --shadow-xl: 0 16px 40px rgba(15, 28, 36, 0.12);
  --safe: #16a34a;
  --safe-bg: #dcfce7;
  --safe-border: #bbf7d0;
}

html.dark {
  --bg: #0b1220;
  --fg: #e2e8f0;
  --muted: #94a3b8;
  --muted-bg: #111a2e;
  --border: #1e293b;
  --card: #111a2e;
  --card-border: #1e293b;
  --primary: #22d3ee;
  --primary-2: #67e8f9;
  --accent-soft: #0e3a45;
  --input-bg: #0f1a30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--primary-2); }
a:hover { color: var(--primary); }
.text-muted-c { color: var(--muted) !important; }

.app-header { position: sticky; top: 0; z-index: 1040; }
.app-header .topbar {
  background: linear-gradient(90deg, #0e7490 0%, #0f766e 50%, #115e59 100%);
  box-shadow: 0 4px 24px rgba(14, 116, 144, 0.35);
}
.app-header .topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-text { line-height: 1.15; font-weight: 700; font-size: 14px; color: #fff; }
.brand-text .small { font-size: 11px; font-weight: 500; opacity: 0.85; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-pill {
  padding: 8px 14px;
  border-radius: 999px;
  color: #ccfbf1;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }
.nav-icon-btn {
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.nav-icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
.contact-menu .dropdown-menu {
  background: #0f172a; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 6px 0; min-width: 200px;
}
.contact-menu .dropdown-item { color: #cbd5e1; font-size: 14px; padding: 10px 16px; }
.contact-menu .dropdown-item:hover { background: rgba(255, 255, 255, 0.08); color: #67e8f9; }
.mobile-panel { background: #0f172a; border-top: 1px solid rgba(255, 255, 255, 0.1); display: none; }
.mobile-panel.show { display: block; }
.mobile-panel a {
  display: flex; align-items: center; height: 42px; padding: 0 12px;
  color: #cbd5e1; font-size: 14px; font-weight: 500; border-radius: 8px;
}
.mobile-panel a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.mobile-panel .legal-label {
  font-size: 11px; color: #64748b; padding: 8px 12px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin: 0;
}
.mobile-panel .divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 6px 0; }

.hero { padding: 28px 16px 36px; }
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px;
}
.hero h1 .accent { color: var(--primary); }
.hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; margin: 0 auto 28px; }
.answer-box {
  border-left: 4px solid var(--primary);
  background: var(--card);
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  max-width: 760px;
  margin: 0 auto 24px;
}
.answer-box .label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--primary-2); margin-bottom: 6px;
}

.calc-card, .content-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  text-align: left;
}
@media (min-width: 576px) { .calc-card, .content-card { padding: 28px; } }

.coupon-card {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card);
  padding: 20px;
  margin-bottom: 16px;
}
.coupon-card.featured {
  border-color: var(--primary);
  background: var(--accent-soft);
  box-shadow: var(--shadow-lg);
}
.coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em;
}
.btn-primary-c {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--primary); color: #fff !important; font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer; transition: opacity 0.15s ease;
}
.btn-primary-c:hover { opacity: 0.92; color: #fff !important; }
.btn-outline-c {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--fg) !important;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-outline-c:hover { background: var(--muted-bg); color: var(--fg) !important; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  font-weight: 600; font-size: 14px; cursor: pointer;
}

.section { padding: 56px 16px; }
.section.muted { background: rgba(241, 245, 249, 0.6); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
html.dark .section.muted { background: rgba(15, 23, 42, 0.55); }
.section.bordered { border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; margin: 0 0 18px; }
.section .sub-h { color: var(--muted); margin: -8px 0 28px; font-size: 15px; }
.container-mid { max-width: 900px; margin: 0 auto; }
.container-wide { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 720px; margin: 0 auto; }

.prose p, .prose li { color: var(--fg); line-height: 1.7; font-size: 15px; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.prose h4 { font-size: 1.05rem; font-weight: 600; margin: 1.1rem 0 0.5rem; }

.table-wrap {
  border-radius: 14px; border: 1px solid var(--border);
  overflow: hidden; background: var(--card); margin: 1rem 0 1.25rem;
}
.table-wrap table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th {
  background: var(--muted-bg); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); font-weight: 600;
}
.table-wrap tr:last-child td { border-bottom: none; }

.figure-card {
  margin: 1.25rem 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--card);
}
.figure-card img { width: 100%; height: auto; display: block; }
.figure-card figcaption {
  padding: 10px 14px; text-align: center; font-size: 13px;
  font-style: italic; color: var(--muted); border-top: 1px solid var(--border);
}

.feature-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(15, 118, 110, 0.08));
  height: 100%; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.feature-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

.faq-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; overflow: hidden; margin-bottom: 12px;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 18px; font-size: 14px; font-weight: 600;
  text-align: left; background: transparent; border: 0; color: var(--fg); cursor: pointer;
}
.faq-q:hover { background: rgba(0, 0, 0, 0.03); }
html.dark .faq-q:hover { background: rgba(255, 255, 255, 0.04); }
.faq-q i { color: var(--muted); flex-shrink: 0; }
.faq-a { display: none; padding: 0 18px 16px; font-size: 14px; color: var(--muted); line-height: 1.65; border-top: 1px solid var(--border); }
.faq-a.show { display: block; }
.faq-a p { padding-top: 12px; margin: 0; }

.cta-band {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  border: 1px solid rgba(14, 116, 144, 0.3); background: var(--accent-soft);
  border-radius: 14px; padding: 18px 20px; margin: 1.5rem 0;
}

footer.site-footer { background: #0f172a; color: #e2e8f0; margin-top: 24px; }
footer.site-footer .accent { height: 4px; background: linear-gradient(90deg, #0e7490, #14b8a6, #0e7490); }
footer.site-footer .footer-grid {
  max-width: 1100px; margin: 0 auto; padding: 48px 16px;
  display: grid; gap: 36px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { footer.site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h3 {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 16px; padding-bottom: 8px; color: #fff; border-bottom: 1px solid #1e293b;
}
footer p, footer li, footer a { font-size: 14px; color: #94a3b8; line-height: 1.6; }
footer a:hover { color: #67e8f9; }
footer .quick-links { list-style: none; padding: 0; margin: 0; }
footer .quick-links li { margin: 8px 0; }
footer .footer-bottom { border-top: 1px solid #1e293b; text-align: center; }
footer .footer-bottom .row-c {
  max-width: 1100px; margin: 0 auto; padding: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 16px; font-size: 12px; color: #94a3b8;
}
footer .footer-bottom a { color: #64748b; font-size: 12px; }
footer .footer-bottom a:hover { color: #67e8f9; }

.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: flex; } .show-sm { display: none !important; } }
.page-hero { padding: 36px 16px 12px; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.breadcrumb-c { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb-c a { color: var(--muted); }
.breadcrumb-c a:hover { color: var(--primary); }
