/* =========================================================
   Teachable Coupon — main stylesheet
   ========================================================= */

:root {
  --brand: #0e6e5c;
  --brand-dark: #0a5546;
  --brand-light: #e6f4f1;
  --accent: #ff7a45;
  --accent-dark: #e05f2c;
  --ink: #1a2b32;
  --ink-soft: #4a5b63;
  --line: #e3e9ec;
  --bg: #ffffff;
  --bg-soft: #f5f8f9;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(16, 42, 51, 0.08);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* ---------- Top offer bar ---------- */
#offer-bar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}
#offer-bar a {
  color: #ffd9a8;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 6px;
}

/* ---------- Header / nav ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand-logo:hover { text-decoration: none; }
.brand-logo .logo-badge {
  background: var(--brand);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.brand-logo .logo-coupon { color: var(--accent); }

#main-nav { display: flex; align-items: center; gap: 4px; }
#main-nav > a,
.nav-drop > button {
  font: 600 15px var(--font-body);
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#main-nav > a:hover, .nav-drop > button:hover {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.nav-drop-menu a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px !important;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; text-decoration: none !important; }

#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 19px;
  color: var(--ink);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ---------- Hero (homepage) ---------- */
#hero-section {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(14, 110, 92, 0.16), transparent),
    radial-gradient(700px 350px at 10% 110%, rgba(255, 122, 69, 0.12), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 56px 20px 48px;
}
.hero-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}
#hero-section h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
#hero-section h1 .hl { color: var(--brand); }
.hero-sub {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 18px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 16px var(--font-body);
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 69, 0.35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(14, 110, 92, 0.28); }
.btn-secondary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }

.hero-trust {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--brand); }

/* ---------- Deal cards ---------- */
#deals-section { max-width: 1160px; margin: 0 auto; padding: 52px 20px 12px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .deals-grid { grid-template-columns: 1fr; }
}
.deal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease;
}
.deal-card:hover { transform: translateY(-4px); }
.deal-card.featured { border: 2px solid var(--accent); }
.deal-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.deal-value {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.deal-title { font-weight: 700; font-size: 17px; margin: 8px 0 6px; }
.deal-desc { color: var(--ink-soft); font-size: 14.5px; flex: 1; margin-bottom: 16px; }
.deal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.deal-card .btn { justify-content: center; font-size: 15px; padding: 12px 18px; }

.deals-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: 22px auto 0;
  max-width: 760px;
}

/* ---------- Article hub grid ---------- */
#hub-section { max-width: 1160px; margin: 0 auto; padding: 48px 20px; }
.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.hub-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: 600 14px var(--font-body);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.hub-filter.active, .hub-filter:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.hub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.hub-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hub-card-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.35; }
.hub-card-desc { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.hub-card-more { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- Article layout ---------- */
#article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
}

#article-breadcrumb {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
#article-breadcrumb i { font-size: 10px; }

/* min-width:0 on grid children so wide tables/images can never
   stretch the grid track beyond the viewport (mobile overflow fix) */
#article-main { min-width: 0; max-width: 100%; }
#article-content { min-width: 0; max-width: 100%; }
#article-content .md { min-width: 0; max-width: 100%; }

/* Rendered markdown */
.md h1 {
  font-family: var(--font-head);
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  overflow-wrap: break-word;
}
.md h2, .md h3 { overflow-wrap: break-word; }
.md h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.6vw, 27px);
  margin: 40px 0 14px;
  padding-top: 10px;
  letter-spacing: -0.01em;
}
.md h3 { font-family: var(--font-head); font-size: 19px; margin: 28px 0 10px; }
.md p { margin: 0 0 16px; }
.md ul, .md ol { padding-left: 26px; margin: 0 0 18px; }
.md li { margin-bottom: 7px; }
.md strong { color: var(--ink); }
.md code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 14.5px;
  color: var(--brand-dark);
}

.md blockquote {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #fff8f0;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.md blockquote p { margin: 0; }

.md .table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 10px; }
.md table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.md th {
  background: var(--brand);
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
  white-space: nowrap;
}
.md td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.md tbody tr:nth-child(even) { background: var(--bg-soft); }

/* Markdown CTA links converted to buttons */
.md a.md-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 26px;
  margin: 4px 0 18px;
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.32);
  transition: transform 0.15s ease;
}
.md a.md-cta:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-2px); }

.article-loading {
  text-align: center;
  color: var(--ink-soft);
  padding: 70px 0;
  font-size: 16px;
}
.article-loading i { font-size: 26px; color: var(--brand); display: block; margin-bottom: 12px; }

/* Meta box under H1 */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 24px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta i { color: var(--brand); }

/* ---------- Sidebar ---------- */
#article-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }

.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}
.side-box h3 {
  font-family: var(--font-head);
  font-size: 17px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.side-box h3 i { color: var(--brand); }

.side-offer { border: 2px solid var(--accent); text-align: center; }
.side-offer .offer-pct {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.side-offer .offer-label { font-weight: 700; margin: 6px 0 4px; }
.side-offer p { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
.side-offer .btn { width: 100%; justify-content: center; margin-bottom: 10px; font-size: 15px; padding: 12px 16px; }
.side-offer .offer-alt { font-size: 13px; color: var(--ink-soft); }

.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.4;
}
.side-links a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.side-links a i { color: var(--accent); font-size: 11px; margin-right: 7px; }

/* ---------- CTA band ---------- */
#cta-band {
  background: linear-gradient(100deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
  padding: 56px 20px;
  margin-top: 20px;
}
#cta-band h2 { font-family: var(--font-head); font-size: clamp(23px, 3vw, 32px); margin: 0 0 12px; }
#cta-band p { color: #cfe8e2; max-width: 620px; margin: 0 auto 26px; }
#cta-band .hero-ctas { justify-content: center; }
#cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
#cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Footer ---------- */
#site-footer { background: #0f1e23; color: #9db4bc; font-size: 14.5px; }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 20px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-inner h4 { color: #fff; font-family: var(--font-head); font-size: 15.5px; margin: 0 0 14px; }
.footer-inner a { display: block; color: #9db4bc; padding: 4px 0; }
.footer-inner a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 10px; line-height: 1.65; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  text-align: center;
  padding: 18px 20px;
  font-size: 12.5px;
  color: #7d949c;
  max-width: 1160px;
  margin: 0 auto;
}

/* ---------- Featured images ---------- */
.feature-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 4px 0 26px;
  display: block;
}

.hub-card { padding: 0; overflow: hidden; }
.hub-card .hub-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hub-card:hover .hub-card-media { transform: scale(1.05); }
.hub-card .hub-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Hero visual */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  text-align: left;
}
.hero-copy .hero-ctas, .hero-copy .hero-trust { justify-content: flex-start; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(16, 42, 51, 0.16);
  display: block;
}
.hero-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floaty 3.6s ease-in-out infinite;
}
.hero-float i { color: var(--accent); }
.hero-float.f1 { top: -16px; left: -18px; color: var(--brand); }
.hero-float.f2 { bottom: -14px; right: -14px; animation-delay: 1.6s; color: var(--brand); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .hero-ctas, .hero-copy .hero-trust { justify-content: center; }
  .hero-visual { max-width: 540px; margin: 0 auto; }
}

/* ---------- Animations & premium effects ---------- */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Animated gradient headline word */
.hl-animated {
  background: linear-gradient(90deg, var(--brand), #12a184, var(--accent), var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-slide 6s linear infinite;
}
@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Shiny CTA sweep (ReactBits "shiny button" style) */
.btn-primary, .nav-cta {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .nav-cta::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0% { left: -80%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

/* Pulsing badge dot on offer bar */
.pulse-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ffd9a8;
  margin-right: 7px;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 217, 168, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(255, 217, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 217, 168, 0); }
}

/* Spotlight cards (ReactBits "spotlight card" style) */
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 110, 92, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* Deal value count-up target */
.deal-value { transition: color 0.3s ease; }

/* Sticky mobile CTA bar */
#mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(16, 42, 51, 0.10);
}
#mobile-cta-bar .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; }
@media (max-width: 700px) {
  #mobile-cta-bar { display: block; }
  body { padding-bottom: 66px; }
}

/* Back-to-top */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 65;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--brand-dark); }

/* Reduced motion — disable all decorative animation */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hl-animated { animation: none; }
  .btn-primary::after, .nav-cta::after { animation: none; display: none; }
  .hero-float { animation: none; }
  .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Verdict box (comparison pages, dual CTA) ---------- */
.verdict-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow);
  padding: 22px 22px 14px;
  margin: 0 0 30px;
}
.verdict-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}
.verdict-head i { color: var(--brand); }
.verdict-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.verdict-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.verdict-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16.5px;
  margin-bottom: 6px;
}
.verdict-col p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.verdict-col .btn { justify-content: center; font-size: 14.5px; padding: 12px 16px; }
.verdict-vs {
  align-self: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.35);
}
.verdict-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 12px;
}
@media (max-width: 700px) {
  .verdict-box { padding: 18px 14px 12px; }
  .verdict-cols { grid-template-columns: 1fr; gap: 12px; }
  .verdict-vs { justify-self: center; width: 36px; height: 36px; font-size: 13px; }
  .verdict-col .btn { width: 100%; }
}

/* ---------- FAQ accordion ---------- */
.faq-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq-item:hover { border-color: #c9d6da; }
.faq-item[open] {
  border-color: var(--brand);
  box-shadow: 0 6px 22px rgba(14, 110, 92, 0.10);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  user-select: none;
  transition: background 0.2s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q:hover { background: var(--bg-soft); }
.faq-item[open] .faq-q {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.faq-q code {
  font-size: 0.9em;
  background: rgba(14, 110, 92, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}
.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}
.faq-a {
  padding: 4px 20px 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  border-top: 1px dashed var(--line);
  animation: faq-open 0.28s ease;
}
.faq-a > p:first-child { margin-top: 12px; }
.faq-a > p:last-child { margin-bottom: 0; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
  .faq-toggle { transition: none; }
}
@media (max-width: 560px) {
  .faq-q { font-size: 15.5px; padding: 14px 16px; }
  .faq-a { padding: 4px 16px 16px; }
}

/* ---------- Author box ---------- */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px;
  margin: 40px 0 8px;
}
.author-box img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.author-box .author-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 3px;
}
.author-box .author-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 2px;
}
.author-box .author-role {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.author-box .author-bio {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 10px;
}
.author-box .author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.author-box .author-links a { display: inline-flex; align-items: center; gap: 6px; }
.author-box .author-links i { font-size: 12px; }

@media (max-width: 560px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-box .author-links { justify-content: center; }
}

/* ---------- Simple page layout (trust/legal/calculators) ---------- */
#page-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
#page-layout .page-updated {
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#page-layout .page-updated i { color: var(--brand); }

/* ---------- Calculator ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin: 26px 0;
}
.calc-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.calc-panel h2 { margin-top: 0 !important; }
.calc-field { margin-bottom: 16px; }
.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
}
.calc-field .hint { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; }
.calc-field input[type="number"],
.calc-field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: 500 15px var(--font-body);
  color: var(--ink);
  background: #fff;
}
.calc-field input:focus, .calc-field select:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}
.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 16px;
  cursor: pointer;
}
.calc-check input { width: 18px; height: 18px; accent-color: var(--brand); }

.calc-results { position: sticky; top: 88px; }
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.result-row:last-of-type { border-bottom: none; }
.result-row .val { font-weight: 700; white-space: nowrap; }
.result-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 14px;
  font-size: 17px;
  font-weight: 700;
}
.result-row.net .val { color: var(--brand); font-size: 19px; }
.result-verdict {
  margin-top: 16px;
  background: var(--brand-light);
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
}
.result-verdict.warn { background: #fff2ec; border-color: var(--accent); }
.result-verdict strong { display: block; margin-bottom: 4px; }
.calc-disclaimer { font-size: 12.5px; color: var(--ink-soft); margin-top: 18px; line-height: 1.55; }

/* Quiz */
.quiz-recommend {
  text-align: center;
  padding: 10px 0;
}
.quiz-recommend .plan-name {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--brand);
}
.quiz-recommend .plan-price { font-size: 15.5px; color: var(--ink-soft); margin: 4px 0 14px; }
.quiz-reasons { text-align: left; margin: 0; padding-left: 22px; font-size: 14.5px; }
.quiz-reasons li { margin-bottom: 7px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  #article-layout { grid-template-columns: minmax(0, 1fr); }
  #article-sidebar { position: static; min-width: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}

@media (max-width: 820px) {
  #nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 2px;
  }
  #main-nav.open { display: flex; }
  .nav-drop-menu { position: static; box-shadow: none; border: none; padding-left: 16px; min-width: 0; }
  .nav-cta { text-align: center; justify-content: center; margin-top: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; }
}

/* ---------- Mobile polish (full pass) ---------- */

/* Prevent any decorative element causing sideways scroll */
html, body { overflow-x: clip; }

@media (max-width: 700px) {
  /* Offer bar: tighter, readable */
  #offer-bar { font-size: 12.5px; padding: 7px 12px; line-height: 1.45; }

  /* Hero: tighter spacing, smaller floats kept inside the image */
  #hero-section { padding: 34px 16px 34px; }
  #hero-section h1 { font-size: clamp(25px, 6.4vw, 32px); line-height: 1.25; }
  .hero-sub { font-size: 16px; margin-bottom: 22px; }
  .hero-eyebrow { font-size: 12.5px; padding: 6px 12px; margin-bottom: 14px; }
  .hero-trust { gap: 12px 16px; font-size: 13px; margin-top: 20px; }
  .hero-float { font-size: 12.5px; padding: 8px 12px; }
  .hero-float.f1 { top: 8px; left: 8px; }
  .hero-float.f2 { bottom: 8px; right: 8px; }

  /* Sections */
  #deals-section { padding: 36px 16px 8px; }
  .section-head { margin-bottom: 24px; }
  .deal-card { padding: 22px 18px; }
  .deal-value { font-size: 30px; }

  /* Hub */
  .hub-filters { gap: 8px; margin-bottom: 22px; }
  .hub-filter { font-size: 13px; padding: 8px 14px; }
  .hub-grid { grid-template-columns: 1fr; }

  /* Article layout */
  #article-layout { padding: 26px 16px 44px; gap: 30px; }
  .md h1 { font-size: 24px; letter-spacing: -0.01em; }
  .md h2 { font-size: 21px; margin-top: 32px; }
  .md h3 { font-size: 17.5px; }
  .article-meta { gap: 8px 14px; font-size: 12.5px; padding: 9px 13px; }
  .feature-img { margin-bottom: 20px; }
  .md a.md-cta { width: 100%; justify-content: center; text-align: center; padding: 13px 18px; }

  /* Tables scroll smoothly on touch */
  .md .table-wrap { -webkit-overflow-scrolling: touch; position: relative; }
  .md table { font-size: 14px; }
  .md th, .md td { padding: 9px 11px; }

  /* "Swipe" hint so scrollable tables don't look cut off */
  .md .table-wrap.has-scroll::after {
    content: '\2194  swipe';
    position: sticky;
    display: block;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    background: linear-gradient(to top, rgba(230, 244, 241, 0.95), rgba(230, 244, 241, 0));
    padding: 3px 0 4px;
    pointer-events: none;
  }

  /* FAQ */
  .faq-heading-icon { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }

  /* CTA band + trust/legal pages */
  #cta-band { padding-left: 16px; padding-right: 16px; }
  #page-layout { padding-left: 16px; padding-right: 16px; }

  /* Calculators */
  .calc-panel { padding: 20px 16px; }

  /* Footer */
  .footer-inner { gap: 26px; }

  /* Back-to-top: keep clear of the sticky CTA bar */
  #back-to-top { right: 14px; bottom: 86px; width: 40px; height: 40px; font-size: 14px; }
}

@media (max-width: 400px) {
  .brand-logo { font-size: 18px; }
  .brand-logo .logo-badge { width: 30px; height: 30px; font-size: 13px; }
  #hero-section h1 { font-size: 24px; }
  .deal-card { padding: 20px 16px; }
}
