/* ===================================================
   Blue Frog Loans Online — Midnight Pond v1.0
   bluefrogloansonline.com | 2026-08-15
=================================================== */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* === VARIABLES === */
:root {
  --bg:           #04151F;
  --surface:      #0B2D42;
  --surface-2:    #0F3952;
  --primary:      #008ECC;
  --primary-lt:   #30AADF;
  --secondary:    #00C07B;
  --gold:         #FFB400;
  --gold-dark:    #E8A200;
  --text:         #C8E8F5;
  --text-muted:   #5B8CA8;
  --border:       rgba(0,142,204,0.18);
  --glass:        rgba(11,45,66,0.80);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.45);
  --shadow-glow:  0 0 24px rgba(0,142,204,0.25);
  --radius:       14px;
  --radius-lg:    22px;
  --radius-pill:  999px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --container:    1180px;
  --nav-h:        68px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { font-size: 1rem; color: var(--text-muted); }

/* HERO text — maximum visibility on photo background */
.hero__title {
    text-shadow: 0 1px 4px rgba(0,0,0,0.28);
}
/* ── Gradient text: ทิ้ง background-clip (ไม่ stable บน Chrome Mac)
   ใช้ solid color + glow แทน — guaranteed to show bright ── */
.hero .text-gradient {
    color: #00D8FF !important;
    -webkit-text-fill-color: #00D8FF !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow:
        0 0 28px rgba(0,200,255,0.70),   /* cyan core glow */
        0 0 58px rgba(0,150,220,0.35),   /* wider blue halo */
        0 2px 6px rgba(0,0,0,0.45);      /* depth shadow */
}
.hero__subtitle { text-shadow: 0 1px 10px rgba(0,0,0,0.65); }
.hero__subtitle strong { color: #FFD84D; font-weight: 700; }
.hero .btn--outline {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.45);
    font-weight: 700;
}
.hero .btn--outline:hover {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.10);
}
.hero__badge { text-shadow: none; }

.text-gradient {
    color: #00D8FF;
    -webkit-text-fill-color: #00D8FF;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* === LAYOUT === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--light { background: var(--surface); }
.section--mid   { background: var(--surface-2); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0A1A08;
  padding: 14px 32px;
  box-shadow: 0 4px 18px rgba(255,180,0,0.35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,180,0,0.50); }
.btn--primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 4px 18px rgba(0,142,204,0.35);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--primary-lt); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 13px 28px;
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary-lt); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(4,21,31,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1;
}
.nav__logo-text em {
  color: var(--secondary);
  font-style: normal;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav__links li a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links li a:hover { color: var(--text); }
.nav__links li a.nav__cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0A1A08;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background-color: #04151F;
  background-image:
    linear-gradient(105deg,
      rgba(4,21,31,0.78) 0%,
      rgba(4,21,31,0.40) 50%,
      rgba(4,21,31,0.62) 100%
    ),
    url('images/hero-bg.webp');
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}
/* Water ripple signature animation */
.hero__ripples {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,142,204,0.25);
  animation: pond-ripple 6s ease-out infinite;
}
.ripple:nth-child(1) { width: 200px; height: 200px; top: 55%; left: 30%; animation-delay: 0s; }
.ripple:nth-child(2) { width: 200px; height: 200px; top: 55%; left: 30%; animation-delay: 1.5s; }
.ripple:nth-child(3) { width: 200px; height: 200px; top: 55%; left: 30%; animation-delay: 3s; }
.ripple:nth-child(4) { width: 200px; height: 200px; top: 55%; left: 30%; animation-delay: 4.5s; }
.ripple:nth-child(5) { width: 140px; height: 140px; top: 25%; right: 18%; animation-delay: 0.8s; border-color: rgba(0,192,123,0.18); }
.ripple:nth-child(6) { width: 140px; height: 140px; top: 25%; right: 18%; animation-delay: 2.3s; border-color: rgba(0,192,123,0.18); }

@keyframes pond-ripple {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(4);   opacity: 0; }
}

.hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,142,204,0.10) 0%, transparent 70%);
  top: 50%; left: 25%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  padding: 60px 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,192,123,0.12);
  border: 1px solid rgba(0,192,123,0.3);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.hero__title { margin-bottom: 20px; color: #FFFFFF; }
.hero__subtitle {
  font-size: 1.1rem;
  color: #E4F4FF;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #D8ECFF;
  font-weight: 600;
  font-weight: 500;
}
.hero__trust-icon {
  width: 18px; height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}

/* === HERO FORM CARD (replaces stats card) === */
.hero__form-card {
  background: rgba(7,30,50,0.88);
  border: 1px solid rgba(0,142,204,0.30);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,142,204,0.10), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Compact stats row */
.form-card__stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.form-card__stat { text-align: center; }
.form-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.1;
}
.form-stat-num.gold  { color: var(--gold); }
.form-stat-num.green { color: var(--secondary); }
.form-stat-lbl {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Form header */
.form-card__badge {
  display: inline-block;
  background: rgba(255,180,0,0.13);
  border: 1px solid rgba(255,180,0,0.32);
  color: var(--gold);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.form-card__title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
}
.form-card__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Form body */
.form-card__body {
  background: rgba(4,21,31,0.50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 60px;
}

/* Security footer */
.form-card__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.70rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Disclosure strip */
.disclosure-strip { padding: 16px 0; background: var(--bg); }
.disclosure-strip .disclosure { margin-bottom: 0; }

/* === TRUST BAR === */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-bar__item svg { color: var(--primary); width: 18px; height: 18px; }

/* === FORM SECTION === */
.form-section { padding: 72px 0; background: var(--bg); }
.form-section__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.form-section__eyebrow {
  display: inline-block;
  background: rgba(255,180,0,0.12);
  border: 1px solid rgba(255,180,0,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.form-section h2 { margin-bottom: 10px; }
.form-section p  { margin-bottom: 32px; font-size: 1rem; }
.form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}
.form-disclaimer {
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.8;
  line-height: 1.5;
}

/* === WHAT IS SECTION === */
.what-is__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.what-is__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.what-is__img img { width: 100%; height: 100%; object-fit: cover; }
.what-is__content h2 { margin-bottom: 16px; }
.what-is__content p  { margin-bottom: 14px; }

/* === BENEFITS === */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0,142,204,0.4);
}
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,142,204,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card h4 { color: var(--text); margin-bottom: 8px; }
.benefit-card p  { font-size: 0.875rem; line-height: 1.55; }

/* === HOW IT WORKS === */
.how-it-works__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 48px;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 32px;
  color: var(--border);
}
.step-connector svg { width: 24px; height: 24px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step-card h4 { color: var(--text); margin-bottom: 8px; font-size: 1.05rem; }
.step-card p  { font-size: 0.875rem; }

/* === EXPERTS === */
.experts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.expert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.expert-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}
.expert-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--surface-2) 0%, #143550 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.expert-info { padding: 24px; }
.expert-badge {
  display: inline-block;
  background: rgba(0,192,123,0.12);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.expert-info h4 { color: var(--text); margin-bottom: 4px; }
.expert-role { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.expert-bio { font-size: 0.85rem; margin-bottom: 14px; line-height: 1.55; }
.expert-quote {
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}

/* === RATES TABLE === */
.rates-table-wrap { overflow-x: auto; margin-top: 40px; }
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.rates-table th {
  background: var(--surface-2);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rates-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.rates-table tr:last-child td { border-bottom: none; }
.rates-table tr:hover td { background: rgba(0,142,204,0.05); }
.rates-table .pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.pill--blue { background: rgba(0,142,204,0.15); color: var(--primary-lt); }
.pill--green { background: rgba(0,192,123,0.15); color: var(--secondary); }
.pill--gold { background: rgba(255,180,0,0.15); color: var(--gold); }

/* === COMPARISON === */
.comparison-table-wrap { overflow-x: auto; margin-top: 40px; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--surface-2);
  padding: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.comparison-table th.highlight {
  background: rgba(0,142,204,0.18);
  color: var(--primary-lt);
}
.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.comparison-table td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.comparison-table td.highlight { color: var(--text); background: rgba(0,142,204,0.06); }
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: var(--secondary); font-size: 1.1rem; }
.cross { color: #d14; }

/* === REVIEWS === */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s;
}
.review-card:hover { transform: translateY(-2px); }
.review-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.90rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.section--white .review-headline { color: #091520; }
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 8px; }
.review-text { font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; color: var(--text-muted); }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.review-meta { font-size: 0.75rem; color: var(--text-muted); }

/* === FAQ === */
.faq__list { max-width: 820px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.faq-question span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(0,142,204,0.15);
  border-color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* === FINAL CTA === */
.final-cta {
  background: linear-gradient(145deg, #071E2E 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 0;
  text-align: center;
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p  { max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.final-cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === AFFILIATE DISCLOSURE === */
.disclosure {
  background: rgba(0,142,204,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 40px;
}
.disclosure strong { color: var(--primary); }

/* === FOOTER === */
.footer {
  background: #030E17;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 0.85rem;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer__col h5 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  opacity: 0.75;
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }
.fade-up-d5 { transition-delay: 0.5s; }

/* === BLOG === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  object-fit: cover;
}
.blog-card__body { padding: 24px; }
.blog-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
.blog-card p  { font-size: 0.85rem; margin-bottom: 16px; }
.blog-card__meta { font-size: 0.75rem; color: var(--text-muted); }

/* Article styles */
.article-header { padding: 120px 0 48px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.article-header h1 { max-width: 840px; margin: 0 auto 16px; }
.article-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; }
.article-body { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.article-body h2 { font-size: 1.6rem; margin: 48px 0 16px; color: var(--text); }
.article-body h3 { font-size: 1.2rem; margin: 32px 0 12px; color: var(--text); }
.article-body p  { margin-bottom: 18px; font-size: 1rem; line-height: 1.78; color: var(--text-muted); }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; color: var(--text-muted); }
.article-body li { margin-bottom: 8px; font-size: 0.95rem; line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--primary-lt); text-decoration: underline; text-underline-offset: 3px; }
.article-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.article-box h4 { color: var(--text); margin-bottom: 10px; font-size: 1rem; }
.article-toc { padding: 20px 0; }
.article-toc li { font-size: 0.9rem; }
.article-toc li a { color: var(--primary-lt); }
.article-cta {
  background: linear-gradient(135deg, rgba(0,142,204,0.12) 0%, rgba(0,192,123,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.article-cta h4 { color: var(--text); margin-bottom: 10px; font-size: 1.2rem; }
.article-cta p  { margin-bottom: 20px; }
.author-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 48px;
}
.author-box__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.author-box__name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.author-box__creds { font-size: 0.78rem; color: var(--primary); margin-bottom: 8px; }
.author-box p { font-size: 0.85rem; }

/* === PAGE HEADER (non-hero pages) === */
.page-header {
  padding: 120px 0 56px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 16px; }
.page-header p  { font-size: 1.1rem; max-width: 600px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { opacity: 0.6; }

/* === UTILITY === */
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--secondary); }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }


/* ===================================================
   ALTERNATING WHITE SECTIONS — Midnight Pond v1.2
=================================================== */
.section--white {
  /* Override dark variables → light theme */
  --text:         #091520;       /* near-black navy for headings */
  --text-muted:   #1C3549;       /* dark slate → much easier to read on white */
  --surface:      #FFFFFF;
  --surface-2:    #EEF5FB;
  --border:       rgba(0,94,163,0.13);
  --glass:        rgba(255,255,255,0.90);
  --shadow-card:  0 4px 24px rgba(11,24,38,0.08);
  --shadow-glow:  0 0 20px rgba(0,142,204,0.10);
  background: #EEF5FB;
  color: #091520;
}

/* Headings — maximum contrast */
.section--white h2,
.section--white h3,
.section--white h4 { color: #091520; }

/* Body text — dark readable navy (contrast 11:1 on white) */
.section--white p { color: #1C3549; }

/* Bold text — fullest contrast */
.section--white strong { color: #091520; }

/* Section label keeps primary brand blue */
.section--white .section-label { color: var(--primary); }

/* Benefit cards */
.section--white .benefit-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,94,163,0.12);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.section--white .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,142,204,0.14);
  border-color: rgba(0,142,204,0.30);
}
.section--white .benefit-card h4 { color: #091520; }
.section--white .benefit-card p  { color: #1C3549; }

/* Step cards */
.section--white .step-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,94,163,0.12);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.section--white .step-card h4 { color: #091520; }
.section--white .step-card p  { color: #1C3549; }
.section--white .step-connector { color: rgba(0,94,163,0.22); }

/* Expert cards */
.section--white .expert-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,94,163,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.section--white .expert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,142,204,0.14);
}
.section--white .expert-info h4 { color: #091520; }
.section--white .expert-role   { color: #2A4A5C; font-weight: 500; }
.section--white .expert-bio    { color: #1C3549; }
.section--white .expert-quote  { color: #253E50; border-left-color: var(--primary); font-style: italic; }

/* Review cards */
.section--white .review-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,94,163,0.12);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.section--white .review-card:hover { box-shadow: 0 8px 28px rgba(0,142,204,0.12); }
.section--white .review-text { color: #1C3549; line-height: 1.7; }
.section--white .review-name { color: #091520; font-weight: 700; }
.section--white .review-meta { color: #3A5C70; }

/* FAQ items */
.section--white .faq-item { border-bottom-color: rgba(0,94,163,0.12); }
.section--white .faq-question span { color: #0B1826; }
.section--white .faq-answer-inner { color: #3D6478; }
.section--white .faq-icon { border-color: rgba(0,94,163,0.20); }

/* Rates table */
.section--white .rates-table th {
  background: #E2EDF6;
  color: var(--primary);
  border-bottom-color: rgba(0,94,163,0.14);
}
.section--white .rates-table td {
  color: #1C3549;
  border-bottom-color: rgba(0,0,0,0.06);
  font-weight: 500;
}
.section--white .rates-table tr:hover td { background: rgba(0,142,204,0.04); }

/* Comparison table */
.section--white .comparison-table th {
  background: #E2EDF6;
  color: #3D6478;
  border-bottom-color: rgba(0,94,163,0.14);
}
.section--white .comparison-table th.highlight {
  background: rgba(0,142,204,0.12);
  color: var(--primary);
}
.section--white .comparison-table td {
  color: #1C3549;
  border-bottom-color: rgba(0,0,0,0.06);
  font-weight: 500;
}
.section--white .comparison-table td:first-child { color: #091520; font-weight: 600; }
.section--white .comparison-table td.highlight   { color: #091520; background: rgba(0,142,204,0.05); font-weight: 600; }
.section--white .comparison-table tr:hover td    { background: rgba(0,142,204,0.03); }

/* Image in white section: subtle shadow */
.section--white .what-is__img {
  box-shadow: 0 12px 48px rgba(0,0,0,0.16);
}

/* Blog cards in white */
.section--white .blog-card {
  background: #FFFFFF;
  border-color: rgba(0,94,163,0.12);
}

/* Article boxes in white sections */
.section--white .article-box {
  background: #FFFFFF;
  border-color: rgba(0,94,163,0.14);
}

/* Ensure inline heading colour overrides work */
.section--white [style*="color:var(--text)"] { color: #0B1826; }

/* === SEO GUIDE SECTION === */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 72px;
  margin-top: 56px;
}
.guide-grid + .guide-grid { margin-top: 52px; }
.guide-block h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #091520;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,142,204,0.22);
  line-height: 1.3;
}
.guide-block p {
  font-size: 0.95rem;
  color: #1C3549;
  line-height: 1.80;
  margin-bottom: 14px;
}
.guide-block p:last-child { margin-bottom: 0; }
.guide-block a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.guide-block strong { color: #091520; font-weight: 600; }
.guide-cta-band {
  text-align: center;
  margin: 52px 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(0,142,204,0.07) 0%, rgba(0,192,123,0.07) 100%);
  border: 1px solid rgba(0,142,204,0.15);
  border-radius: var(--radius-lg);
}
.guide-cta-band h4 { color: #091520; font-size: 1.2rem; margin-bottom: 8px; }
.guide-cta-band p  { color: #1C3549; margin-bottom: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  .hero__form-card {
    /* Visible and full-width on tablet/mobile — form stacks below content */
    width: 100%;
    margin-top: 0;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav__links { 
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(4,21,31,0.97);
    backdrop-filter: blur(16px);
    padding: 20px 24px 32px;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links li a { display: block; padding: 14px 0; color: var(--text); }
  .nav__links li:last-child { border-bottom: none; padding-top: 14px; }
  .nav__toggle { display: flex; }
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .experts__grid  { grid-template-columns: 1fr; }
  .reviews__grid  { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .what-is__grid  { grid-template-columns: 1fr; }
  .how-it-works__steps { grid-template-columns: 1fr; }
  .guide-grid     { grid-template-columns: 1fr; gap: 36px; }
  .step-connector { display: none; }
  .footer__grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
  .hero__ctas     { flex-direction: column; align-items: flex-start; }
  .final-cta__buttons { flex-direction: column; align-items: center; }
}


/* ===================================================
   E-E-A-T Expert & Trust Elements
=================================================== */

/* Horizontal expert row card */
.eeat-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 24px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.eeat-row:hover { box-shadow: var(--shadow-glow); border-color: rgba(0,142,204,0.40); }

/* Avatar */
.eeat-photo-wrap { text-align: center; }
.eeat-avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.40);
}
.eeat-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eeat-verified::before { content: "✓"; font-size: 0.75rem; }

/* Content */
.eeat-name { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.eeat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.eeat-pill {
  font-size: 0.70rem; font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid;
}
.eeat-pill--blue { background: rgba(0,142,204,0.14); color: var(--primary-lt); border-color: rgba(0,142,204,0.30); }
.eeat-pill--green { background: rgba(0,192,123,0.12); color: var(--secondary); border-color: rgba(0,192,123,0.28); }
.eeat-pill--gold  { background: rgba(255,180,0,0.12); color: var(--gold); border-color: rgba(255,180,0,0.28); }
.eeat-role  { font-size: 0.80rem; color: var(--text-muted); margin-bottom: 12px; font-style: italic; }
.eeat-bio   { font-size: 0.90rem; color: var(--text-muted); line-height: 1.72; margin-bottom: 14px; }
.eeat-quote {
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  background: rgba(0,142,204,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.65;
}
.eeat-authored {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.eeat-authored strong { color: var(--primary-lt); }

/* Why Trust Us grid */
.trust-why-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
}
.trust-why-wrap h3 { font-size: 1.35rem; color: var(--text); margin-bottom: 28px; text-align: center; }
.trust-why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.trust-why-item { text-align: center; padding: 0 8px; }
.trust-why-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.trust-why-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.trust-why-item p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* Editorial bar */
.editorial-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: rgba(0,142,204,0.06);
  border: 1px solid rgba(0,142,204,0.15);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.editorial-bar span { display: flex; align-items: center; gap: 5px; }
.editorial-bar strong { color: var(--primary-lt); }

/* White section overrides for trust elements */
.section--white .eeat-row { background: #FFFFFF; border-color: rgba(0,94,163,0.12); }
.section--white .eeat-name  { color: #091520; }
.section--white .eeat-bio   { color: #1C3549; }
.section--white .eeat-role  { color: #3D5060; }
.section--white .eeat-quote { background: rgba(0,94,163,0.05); color: #253848; }
.section--white .eeat-authored { color: #3D5060; border-top-color: rgba(0,94,163,0.15); }
.section--white .trust-why-wrap { background: #FFFFFF; border-color: rgba(0,94,163,0.12); }
.section--white .trust-why-wrap h3 { color: #091520; }
.section--white .trust-why-item h4 { color: #091520; }
.section--white .trust-why-item p  { color: #1C3549; }
.section--white .editorial-bar { background: rgba(0,94,163,0.05); border-color: rgba(0,94,163,0.12); color: #1C3549; }
.section--white .editorial-bar strong { color: var(--primary); }

/* Mobile */
@media (max-width:768px) {
  .eeat-row { grid-template-columns: 1fr; gap: 24px; }
  .eeat-avatar { width: 120px; height: 120px; }
  .trust-why-grid { grid-template-columns: 1fr; gap: 20px; }
  .editorial-bar { flex-direction: column; align-items: center; gap: 12px; }
}
@media (max-width: 480px) {
  .benefits__grid { grid-template-columns: 1fr; }
  .hero__trust    { flex-direction: column; gap: 12px; }
  .trust-bar__inner { justify-content: flex-start; gap: 20px; }
  .form-box { padding: 28px 20px; }
  .hero__container { padding: 40px 20px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   RESPONSIVE POLISH — PC / Tablet / Mobile (v3.2)
   แก้ทุก breakpoint: badge, blog grid, CTA, expert, tables, UX
================================================================ */

/* ── 1. Hero badge: truncate ไม่ให้ wrap บน mobile ────────────── */
@media (max-width: 640px) {
  .hero__badge {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 48px);
    font-size: 0.60rem;
    letter-spacing: 0.06em;
    padding: 5px 12px;
  }
}

/* ── 2. Hero CTA buttons: full-width stretch บน mobile ─────────── */
@media (max-width: 768px) {
  .hero__ctas { align-items: stretch; }
  .hero__ctas .btn { text-align: center; justify-content: center; }
  .btn--outline { border-color: rgba(255,255,255,0.45); }
}

/* ── 3. Hero trust items: 2-per-row ไม่ใช่ column ─────────────── */
@media (max-width: 640px) {
  .hero__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .hero__trust-item { font-size: 0.75rem; }
}

/* ── 4. Blog grid: 2-column บน tablet (580–1023px) ─────────────── */
@media (min-width: 580px) and (max-width: 1023px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── 5. Blog card image: consistent height ──────────────────────── */
.blog-card__img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 580px) { .blog-card__img { height: 160px; } }

/* ── 6. EEAT expert row: ยังคง 2-col บน tablet 640–768px ────────── */
@media (min-width: 641px) and (max-width: 768px) {
  .eeat-row { grid-template-columns: 130px 1fr; gap: 20px; }
  .eeat-avatar { width: 110px; height: 110px; }
}
@media (max-width: 640px) {
  .eeat-row { grid-template-columns: 1fr; text-align: center; padding: 24px 16px; }
  .eeat-avatar { margin: 0 auto 10px; width: 110px; height: 110px; }
  .eeat-pills { justify-content: center; }
  .eeat-authored { justify-content: center; }
  .eeat-name { font-size: 1.15rem; }
  .eeat-bio { font-size: 0.86rem; }
  .eeat-pill { font-size: 0.65rem; padding: 3px 9px; }
  .eeat-quote { font-size: 0.83rem; padding: 10px 13px; }
}

/* ── 7. Trust Why grid: 2-col on mid screens ────────────────────── */
@media (min-width: 500px) and (max-width: 768px) {
  .trust-why-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .trust-why-wrap { padding: 28px 24px; }
}
@media (max-width: 499px) {
  .trust-why-wrap { padding: 24px 16px; }
}

/* ── 8. Article tables: horizontal scroll on mobile ─────────────── */
.article-body .rates-table,
.article-body .comparison-table,
.article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .rates-table th, .rates-table td,
  .comparison-table th, .comparison-table td { font-size: 0.76rem; padding: 8px 8px; }
}

/* ── 9. Review cards: better mobile ─────────────────────────────── */
@media (max-width: 580px) {
  .review-card { padding: 18px 16px; }
  .review-headline { font-size: 0.84rem; }
  .review-text { font-size: 0.84rem; line-height: 1.65; }
}

/* ── 10. Article body: mobile padding & CTA ─────────────────────── */
@media (max-width: 640px) {
  .article-body { padding-left: 0; padding-right: 0; }
  .article-box { padding: 16px 14px; }
  .article-cta { padding: 24px 16px; }
  .article-header .container { padding-top: 40px; padding-bottom: 40px; }
}

/* ── 11. FAQ: better touch targets (WCAG 44px min) ──────────────── */
.faq-question { min-height: 52px; }
@media (max-width: 640px) {
  .faq-question { padding: 15px 20px 15px 16px; }
  .faq-answer-inner { font-size: 0.88rem; padding: 12px 16px 16px; }
}

/* ── 12. Benefits grid: 2-col on tablet ─────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(2,1fr); }
}

/* ── 13. Section heading: clamp on mobile ───────────────────────── */
@media (max-width: 580px) {
  .section { padding: 52px 0; }
  .section h2 { font-size: clamp(1.45rem, 5.5vw, 2rem); }
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ── 14. Hero form card: rounded + breathable tablet ────────────── */
@media (max-width: 768px) {
  .hero__form-card { margin-top: 28px; border-radius: 16px; }
  .form-card__title { font-size: 1.05rem; }
}

/* ── 15. Cookie banner: keep compact ────────────────────────────── */
@media (max-width: 580px) {
  .cookie-banner p { font-size: 0.78rem; line-height: 1.5; }
  .cookie-banner { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
}

/* ── 16. Comparison section overflow guard ──────────────────────── */
@media (max-width: 768px) {
  .comparison-grid, div[style*="overflow-x:auto"] {
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table { min-width: 540px; }
}

/* ── 17. Page header: tablet/mobile ────────────────────────────── */
@media (max-width: 768px) {
  .page-header { padding: 48px 0 32px; }
  .page-header h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
}

/* ── 18. Final CTA buttons: full-width mobile ───────────────────── */
@media (max-width: 580px) {
  .final-cta__buttons { gap: 12px; align-items: stretch; }
  .final-cta__buttons .btn { text-align: center; justify-content: center; }
}

/* ── Badge wrap fix: extend to 768px (tablet) ────────────────────── */
@media (max-width: 768px) {
  .hero__badge {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 48px);
    font-size: 0.62rem;
    padding: 5px 14px;
  }
}

/* ================================================================
   REVIEW PAGE — Responsive Layout (v3.5)
================================================================ */

/* Main 2-column layout: content + sidebar */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* Quick Facts sticky sidebar */
.review-sidebar {
  position: sticky;
  top: 88px;
}

/* Pros & Cons 2-column grid */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

/* ── Tablet: sidebar moves below content ─────────────────────── */
@media (max-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .review-sidebar {
    position: relative;
    top: 0;
    max-width: 540px;
    margin: 0 auto;
  }
}

/* ── Mobile: Pros/Cons stack vertically ─────────────────────── */
@media (max-width: 640px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-sidebar {
    max-width: 100%;
  }
}

/* ================================================================
   MOBILE OVERFLOW FIXES — v3.9.1
   Fix: hero__glow clip + btn width on mobile
================================================================ */

/* Clip absolute decorative elements inside hero */
.hero { overflow-x: hidden; }

/* Ensure hero container never exceeds viewport on mobile */
@media (max-width: 768px) {
  .hero__container { width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero__ctas      { width: 100%; max-width: 100%; }
  .hero__ctas .btn { width: 100%; max-width: 100%; box-sizing: border-box; }
}

/* Comparison table container clip */
@media (max-width: 900px) {
  .review-layout > div { max-width: 100%; overflow-x: hidden; }
  .section .container > div[style*="overflow-x"] { max-width: 100%; }
}

/* FORCE overflow fix */
body { overflow-x: hidden !important; max-width: 100%; }
.hero { overflow-x: hidden !important; }
@media (max-width:800px){
  .hero__ctas, .hero__content { max-width: 100%; width: 100%; overflow: hidden; }
  .hero__ctas .btn { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
}
