/* ═══════════════════════════════════════════════════════════════
   ElevateMiles WordPress Theme — Main Stylesheet
   Design system matches the route-finder Next.js app
   ═══════════════════════════════════════════════════════════════ */

/* Inter variable font — covers weights 100–900 */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/inter-latin.woff2') format('woff2')}

/* ─────────────────────────────────────────────────────────────── */

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

:root {
  /* hex fallbacks first, then oklch for browsers that support it */
  --p:   #5b3ef5;
  --pd:  #3d24d4;
  --pl:  #eeebfe;
  --pm:  #8f7af5;
  --bk:  #111118;
  --g1:  #282833;
  --g2:  #555562;
  --g3:  #888896;
  --g4:  #b8b8c4;
  --bd:  #dddde6;
  --bl:  #ebebf2;
  --bg:  #f7f7fc;
  --wh:  #ffffff;
  --gr:  #2d9e6e;
  --footer-bg:     #0a0a10;
  --footer-border: #1e1e28;
  --font-ui: 'Inter', system-ui, sans-serif;
}

@supports (color: oklch(0% 0 0)) {
  :root {
    --p:   oklch(48% 0.26 284);
    --pd:  oklch(38% 0.26 284);
    --pl:  oklch(95% 0.04 284);
    --pm:  oklch(72% 0.18 284);
    --bk:  oklch(10% 0.01 280);
    --g1:  oklch(22% 0.01 280);
    --g2:  oklch(42% 0.01 280);
    --g3:  oklch(62% 0.01 280);
    --g4:  oklch(78% 0.008 280);
    --bd:  oklch(90% 0.006 280);
    --bl:  oklch(94% 0.004 280);
    --bg:  oklch(97.5% 0.005 284);
    --gr:  oklch(52% 0.16 155);
    --footer-bg:     oklch(7%  0.01 280);
    --footer-border: oklch(16% 0.01 280);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui) !important;
  background: var(--bg);
  color: var(--bk);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); }
a:hover { color: var(--pd); }

/* ── Header ──────────────────────────────────────────────────────── */

.em-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wh);
  border-bottom: 1px solid var(--bl);
  box-shadow: 0 1px 0 var(--bd);
}

.em-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.em-logo {
  text-decoration: none;
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.em-logo-elevate { color: var(--p); }
.em-logo-miles   { color: #000; }

.em-nav {
  display: flex;
  gap: 2px;
}
.em-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--g3);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.em-nav a:hover { background: var(--pl); color: var(--p); }

/* Thin advertiser disclosure bar below header */
.em-disclosure-bar {
  background: var(--bl);
  border-bottom: 1px solid var(--bd);
}
.em-disclosure-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5px 20px;
  font-size: 11px;
  color: var(--g3);
  line-height: 1.5;
  text-align: center;
}
.em-disclosure-bar-inner strong {
  font-weight: 600;
  color: var(--g2);
}
.em-disclosure-short {
  display: none;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--g2);
  font-family: var(--font-ui);
  padding: 0;
  letter-spacing: 0.01em;
}
.em-disclosure-chevron {
  font-size: 9px;
  display: inline-block;
  transition: transform 0.2s;
  opacity: 0.6;
}
.em-disclosure-short[aria-expanded="true"] .em-disclosure-chevron { transform: rotate(180deg); }
.em-disclosure-long { display: inline; }
.em-disclosure-long.em-disclosure-open {
  display: block !important;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--bd);
}

/* Login button */
.em-login-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--p);
  color: var(--wh) !important;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.em-login-btn:hover { background: var(--pd); color: var(--wh) !important; }

/* Hamburger (mobile) */
.em-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.em-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bk);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav drawer */
.em-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--wh);
  border-top: 1px solid var(--bl);
  padding: 12px 24px 16px;
  gap: 2px;
}
.em-mobile-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--g2);
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--bl);
  display: block;
}
.em-mobile-nav a:last-child { border-bottom: none; }
.em-mobile-cta {
  margin-top: 8px !important;
  font-weight: 700 !important;
  color: var(--p) !important;
}
.em-mobile-login-btn {
  display: block;
  margin-top: 10px;
  padding: 11px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--p);
  color: var(--wh) !important;
  text-decoration: none;
  border-radius: 10px;
  border-bottom: none !important;
  transition: background 0.15s;
}
.em-mobile-login-btn:hover { background: var(--pd); }

.em-disclosure-inner {
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--g3);
  flex-shrink: 0;
  font-family: var(--font-ui);
  line-height: 1;
  padding: 0 4px;
}
.em-disclosure-inner strong { color: var(--bk); font-weight: 700; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.em-hero {
  background: linear-gradient(160deg, var(--pl) 0%, var(--wh) 65%);
  padding: clamp(48px,7vw,96px) 24px clamp(48px,6vw,80px);
}

.em-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
}

.em-hero-text { max-width: 540px; }

.em-ari-badge {
  display: inline-flex;
  align-items: center;
  background: var(--pl);
  color: var(--p);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid oklch(72% 0.18 284 / 0.3);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.em-hero h1 {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--bk);
}
.em-hero h1 span { color: var(--p); }

.em-hero-sub {
  font-size: 17px;
  color: var(--g2);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 460px;
}

.em-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.em-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  background: var(--p);
  color: var(--wh) !important;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 11px;
  box-shadow: 0 4px 20px oklch(48% 0.26 284 / 0.38);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}
.em-btn-primary:hover {
  background: var(--pd);
  color: var(--wh) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px oklch(48% 0.26 284 / 0.45);
}

.em-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--g2) !important;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 11px;
  border: 1.5px solid var(--bd);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.em-btn-secondary:hover {
  border-color: var(--p);
  color: var(--p) !important;
  background: var(--pl);
}

/* ── Card Deck ─────────────────────────────────────────────────────── */

.em-card-deck { position: relative; }

.em-card-deck-stack {
  position: relative;
  height: 360px;
}

.em-feature-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 26px 28px;
  cursor: default;
  transition:
    transform  0.48s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    opacity    0.32s ease;
  backface-visibility: hidden;
  will-change: transform, opacity;
  overflow: hidden;
}

/* State transforms */
.em-feature-card[data-state="active"] {
  z-index: 5;
  transform: rotate(0deg) translateY(0px) scale(1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  opacity: 1;
  pointer-events: auto;
}
.em-feature-card[data-state="behind-1"] {
  z-index: 4;
  transform: rotate(2.8deg) translateY(10px) scale(0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  opacity: 1;
  pointer-events: none;
}
.em-feature-card[data-state="behind-2"] {
  z-index: 3;
  transform: rotate(-2.2deg) translateY(18px) scale(0.96);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  opacity: 0.85;
  pointer-events: none;
}
.em-feature-card[data-state="behind-3"] {
  z-index: 2;
  transform: rotate(4deg) translateY(26px) scale(0.94);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  opacity: 0.6;
  pointer-events: none;
}
.em-feature-card[data-state="hidden"] {
  z-index: 1;
  transform: rotate(-1.5deg) translateY(32px) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

/* Card themes */
.em-card--route-finder {
  background: linear-gradient(150deg, oklch(14% 0.06 284) 0%, oklch(20% 0.10 284) 100%);
  color: var(--wh);
}
.em-card--calculator {
  background: var(--wh);
  border: 1.5px solid var(--bl);
  color: var(--bk);
}
.em-card--articles {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  color: var(--bk);
}
.em-card--booking {
  background: linear-gradient(150deg, oklch(9% 0.02 280) 0%, oklch(15% 0.04 280) 100%);
  color: var(--wh);
}
.em-card--course {
  background: linear-gradient(150deg, #0d0620 0%, #1c0c4e 100%);
  color: var(--wh);
}

/* Card content */
.em-card-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.em-card--route-finder .em-card-badge,
.em-card--booking .em-card-badge { color: var(--pm); }
.em-card--course .em-card-badge  { color: oklch(85% 0.08 284); }
.em-card--calculator .em-card-badge,
.em-card--articles .em-card-badge { color: var(--p); }

.em-card-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.em-card-sub {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
  opacity: 0.72;
}

.em-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 9px;
  transition: opacity 0.15s, transform 0.12s;
  margin-top: auto;
}
.em-card-cta:hover { opacity: 0.82; transform: translateX(2px); }

.em-card--route-finder .em-card-cta,
.em-card--booking .em-card-cta,
.em-card--course .em-card-cta {
  background: rgba(255,255,255,0.15);
  color: var(--wh) !important;
  border: 1px solid rgba(255,255,255,0.25);
}
.em-card--calculator .em-card-cta,
.em-card--articles .em-card-cta {
  background: var(--p);
  color: var(--wh) !important;
}

/* Route Finder card — mock inputs */
.em-card-rf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.em-card-rf-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--wh);
  font-family: var(--font-ui);
  text-align: center;
  letter-spacing: 0.07em;
}
.em-card-rf-arrow { font-size: 14px; opacity: 0.45; color: var(--wh); }

.em-card-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  padding: 8px 12px;
  margin-bottom: 6px;
}
.em-card-result-row--dim { opacity: 0.55; }
.em-card-result-prog {
  font-size: 11px;
  font-weight: 700;
  color: var(--wh);
  flex: 1;
}
.em-card-result-pts {
  font-size: 11px;
  font-weight: 800;
  color: var(--pm);
  white-space: nowrap;
}
.em-card-result-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--gr);
  background: oklch(93% 0.06 155 / 0.15);
  border: 1px solid oklch(52% 0.16 155 / 0.3);
  border-radius: 99px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* Calculator card — value bars */
.em-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.em-calc-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.em-calc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--g2);
  width: 72px;
  flex-shrink: 0;
}
.em-calc-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bl);
  border-radius: 99px;
  overflow: hidden;
}
.em-calc-bar {
  height: 100%;
  background: var(--p);
  border-radius: 99px;
}
.em-calc-val {
  font-size: 11px;
  font-weight: 800;
  color: var(--p);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* Articles card — mini previews */
.em-article-previews {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.em-article-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--wh);
  border: 1px solid var(--bl);
  border-radius: 8px;
}
.em-article-cat {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p);
}
.em-article-title-sm {
  font-size: 11px;
  font-weight: 600;
  color: var(--bk);
  line-height: 1.3;
}

/* Booking card — tier toggle */
.em-booking-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
  margin: 12px 0 14px;
}
.em-booking-toggle-btn {
  flex: 1;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.55);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
.em-booking-toggle-btn.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.em-booking-panel { margin-bottom: 14px; }
.em-booking-panel--hidden { display: none; }
.em-booking-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}
.em-booking-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--wh);
  letter-spacing: -0.03em;
}
.em-booking-price-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* Course card — comparison */
.em-course-comparison {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 8px;
}
.em-course-col {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.em-course-col--bad  { background: rgba(0,0,0,0.40); }
.em-course-col--good { background: rgba(255,255,255,0.10); }
.em-course-col-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.em-course-col--good .em-course-col-label { color: oklch(85% 0.08 284); }
.em-course-col-pts {
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.02em;
}
.em-course-col--good .em-course-col-pts { color: var(--wh); }
.em-course-col-unit {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}
.em-course-col--good .em-course-col-unit { color: rgba(255,255,255,0.7); }
.em-course-vs {
  padding: 0 10px;
  font-size: 9px;
  font-weight: 900;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.em-course-savings-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--gr);
  text-align: center;
  margin-bottom: 14px;
}

/* Deck tabs */
.em-card-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.em-card-tab {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--bd);
  background: var(--wh);
  color: var(--g3);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-ui);
}
.em-card-tab.active,
.em-card-tab:hover {
  background: var(--p);
  color: var(--wh);
  border-color: var(--p);
}

/* ── Trust bar ─────────────────────────────────────────────────────── */

.em-trust-bar {
  border-top: 1px solid var(--bl);
  border-bottom: 1px solid var(--bl);
  background: var(--wh);
  padding: 24px 24px;
}
.em-trust-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  justify-content: space-around;
  flex-wrap: wrap;
}
.em-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
}
.em-trust-stat {
  font-size: 26px;
  font-weight: 900;
  color: var(--p);
  letter-spacing: -0.03em;
  line-height: 1;
}
.em-trust-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--g3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ── Sections ──────────────────────────────────────────────────────── */

.em-section {
  padding: clamp(48px, 6vw, 80px) 24px;
}
.em-section-inner { max-width: 1140px; margin: 0 auto; }

.em-section-header {
  text-align: center;
  margin-bottom: 44px;
}
.em-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 10px;
}
.em-section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--bk);
  line-height: 1.1;
  margin-bottom: 12px;
}
.em-section-sub {
  font-size: 16px;
  color: var(--g2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Blog grid ─────────────────────────────────────────────────────── */

.em-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.em-blog-card {
  background: var(--wh);
  border: 1px solid var(--bl);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
}
.em-blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.em-blog-card a { text-decoration: none; color: inherit; }

.em-blog-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: var(--pl);
}
.em-blog-card-img-placeholder {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, var(--pl) 0%, var(--bl) 100%);
}
.em-blog-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.em-blog-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 7px;
}
.em-blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bk);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.em-blog-card-title a:hover { color: var(--p); }
.em-blog-card-excerpt {
  font-size: 13px;
  color: var(--g2);
  line-height: 1.6;
  flex: 1;
}
.em-blog-card-meta {
  font-size: 11px;
  color: var(--g4);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bl);
}

.em-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ── Newsletter section ────────────────────────────────────────────── */

.em-newsletter-section {
  background: #1a1230;
  background: linear-gradient(150deg, #120d24 0%, #1e1640 100%);
  padding: clamp(56px, 7vw, 96px) 24px;
  text-align: center;
}
.em-newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
}
.em-newsletter-section .em-section-label { color: var(--pm); }
.em-newsletter-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--wh);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.em-newsletter-sub {
  font-size: 15px;
  color: oklch(70% 0.01 280);
  line-height: 1.65;
  margin-bottom: 28px;
}
.em-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 12px;
}
.em-newsletter-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 50px;
  min-height: 50px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wh);
  outline: none;
  font-family: var(--font-ui);
  transition: border-color 0.15s;
}
.em-newsletter-input::placeholder { color: rgba(255,255,255,0.65); font-weight: 400; }
.em-newsletter-input:focus { border-color: var(--pm); background: rgba(255,255,255,0.16); }
.em-newsletter-submit {
  height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  border: none;
  background: var(--p);
  color: var(--wh);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-ui);
  transition: background 0.15s;
}
.em-newsletter-submit:hover { background: var(--pm); }
.em-newsletter-submit:disabled { opacity: 0.6; cursor: default; }
.em-newsletter-fine {
  font-size: 11px;
  color: #5a5470;
  margin-top: 10px;
}
.em-newsletter-label { color: #a090d0 !important; }

/* ── Footer ────────────────────────────────────────────────────────── */

.em-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 56px 24px 32px;
}
.em-footer-inner { max-width: 1140px; margin: 0 auto; }

.em-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.em-footer-logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.em-footer-brand p {
  font-size: 13px;
  color: oklch(42% 0.008 280);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 20px;
}
.em-footer-brand-links { display: flex; gap: 10px; }
.em-footer-brand-link {
  font-size: 12px;
  font-weight: 700;
  background: oklch(15% 0.01 280);
  color: oklch(65% 0.008 280) !important;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid oklch(20% 0.01 280);
  transition: background 0.15s, color 0.15s;
}
.em-footer-brand-link:hover {
  background: oklch(20% 0.01 280);
  color: oklch(80% 0.008 280) !important;
}
.em-footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(55% 0.008 280);
  margin-bottom: 14px;
}
.em-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.em-footer-col a {
  font-size: 13px;
  color: oklch(45% 0.008 280) !important;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.em-footer-col a:hover { color: oklch(70% 0.18 284) !important; }

.em-footer-disclosure {
  border-top: 1px solid var(--footer-border);
  padding-top: 20px;
  margin-bottom: 16px;
}
.em-footer-disclosure p {
  font-size: 11px;
  color: oklch(36% 0.006 280);
  line-height: 1.7;
  max-width: 760px;
}
.em-footer-disclosure strong {
  font-weight: 700;
  color: oklch(50% 0.006 280);
}
.em-footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.em-footer-bottom div,
.em-footer-bottom p {
  font-size: 12px;
  color: oklch(38% 0.006 280);
  line-height: 1.6;
}

/* ── Pagination ──────────────────────────────────────────────────────── */

.em-pagination { margin-top: 40px; display: flex; justify-content: center; }
.em-pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.em-pagination a,
.em-pagination span {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--g2) !important;
  border: 1px solid var(--bd);
  background: var(--wh);
  transition: all 0.15s;
}
.em-pagination a:hover { border-color: var(--p); color: var(--p) !important; }
.em-pagination .current {
  background: var(--p);
  color: var(--wh) !important;
  border-color: var(--p);
}

/* ── Single post ─────────────────────────────────────────────────────── */

.em-post-hero {
  background: linear-gradient(160deg, var(--pl) 0%, var(--wh) 65%);
  padding: clamp(40px, 5vw, 72px) 24px 36px;
}
.em-post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.em-post-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--bk);
  margin: 12px 0 16px;
}
.em-post-meta {
  font-size: 13px;
  color: var(--g3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.em-post-meta-sep { opacity: 0.4; }
.em-post-featured-img { background: var(--wh); padding: 0 24px 32px; }
.em-post-thumb {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 16px;
  width: 100%;
  height: auto;
}
.em-post-body-wrap { padding: clamp(32px, 4vw, 56px) 24px; }
.em-post-body-inner { max-width: 760px; margin: 0 auto; }

/* Post content typography */
.em-post-content { color: var(--g1); }
.em-post-content p   { margin-bottom: 1.4em; font-size: 17px; line-height: 1.8; }
.em-post-content h2  { font-size: clamp(20px, 2.5vw, 28px); font-weight: 900; letter-spacing: -0.02em; margin: 2em 0 0.6em; color: var(--bk); }
.em-post-content h3  { font-size: clamp(17px, 2vw, 22px); font-weight: 700; letter-spacing: -0.01em; margin: 1.6em 0 0.5em; color: var(--bk); }
.em-post-content h4  { font-size: 16px; font-weight: 700; margin: 1.4em 0 0.4em; color: var(--bk); }
.em-post-content ul, .em-post-content ol { margin: 1em 0 1em 1.5em; }
.em-post-content li  { font-size: 17px; line-height: 1.75; margin-bottom: 0.4em; color: var(--g2); }
.em-post-content strong { font-weight: 700; color: var(--bk); }
.em-post-content a   { color: var(--p); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.em-post-content a:hover { color: var(--pd); }
.em-post-content blockquote {
  border-left: 3px solid var(--p);
  padding: 12px 20px;
  margin: 1.4em 0;
  background: var(--pl);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--g2);
}
.em-post-content img {
  border-radius: 12px;
  margin: 1.2em 0;
}
.em-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14px;
}
.em-post-content th, .em-post-content td {
  padding: 10px 14px;
  border: 1px solid var(--bl);
  text-align: left;
}
.em-post-content th {
  background: var(--pl);
  font-weight: 700;
  color: var(--bk);
}
.em-post-content tr:nth-child(even) { background: var(--bg); }

.em-post-tags { margin-top: 32px; font-size: 13px; color: var(--g3); }
.em-post-nav { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--bl); }
.em-post-nav .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.em-post-nav a { font-size: 14px; font-weight: 600; color: var(--p) !important; text-decoration: none; }
.em-post-nav a:hover { color: var(--pd) !important; }

/* Static page */
.em-page-content { max-width: 760px; }
.em-page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--bk);
  margin-bottom: 32px;
}

/* ── Modal ─────────────────────────────────────────────────────────── */

.em-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.em-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.em-modal {
  background: var(--wh);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.em-modal-overlay.visible .em-modal {
  transform: translateY(0) scale(1);
}
.em-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  font-size: 18px;
  color: var(--wh);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font-ui);
  transition: background 0.15s;
}
.em-modal-close:hover { background: rgba(0,0,0,0.5); }

.em-modal-hero {
  background: oklch(14% 0.04 284);
  padding: 28px 24px 24px;
}
.em-modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pm);
  margin-bottom: 10px;
}
.em-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--wh);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.em-modal-comparison {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid oklch(25% 0.04 284);
}
.em-modal-comparison-img {
  height: 100px;
  background-image: url('https://images.unsplash.com/photo-1573843981267-be1999ff37cd?auto=format&fit=crop&w=600&h=200&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
}
.em-modal-comparison-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}
.em-modal-comparison-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 99px;
  padding: 3px 12px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--wh);
  text-transform: uppercase;
  z-index: 1;
}
.em-modal-vs-row {
  display: flex;
  position: relative;
}
.em-modal-vs-left, .em-modal-vs-right {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.em-modal-vs-left  { background: oklch(18% 0.02 280); }
.em-modal-vs-right { background: var(--pl); padding-left: 20px; }
.em-modal-vs-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.em-modal-vs-left .em-modal-vs-label  { color: oklch(45% 0.01 280); }
.em-modal-vs-right .em-modal-vs-label { color: var(--p); }
.em-modal-vs-points {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.em-modal-vs-left .em-modal-vs-points  { color: oklch(50% 0.01 280); }
.em-modal-vs-right .em-modal-vs-points { color: var(--p); }
.em-modal-vs-unit { font-size: 9px; font-weight: 600; }
.em-modal-vs-left .em-modal-vs-unit  { color: oklch(40% 0.01 280); }
.em-modal-vs-right .em-modal-vs-unit { color: var(--p); }
.em-modal-vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--p);
  color: var(--wh);
  font-size: 8px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 3px oklch(14% 0.04 284);
  z-index: 2;
}
.em-modal-savings {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: oklch(70% 0.14 155);
  text-align: center;
}
.em-modal-body { padding: 20px 24px 22px; }
.em-modal-desc {
  font-size: 13px;
  color: var(--g2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.em-modal-form { display: flex; gap: 7px; }
.em-modal-input {
  flex: 1;
  height: 42px;
  border-radius: 9px;
  border: 1.5px solid var(--bd);
  padding: 0 12px;
  font-size: 13px;
  color: var(--bk);
  outline: none;
  font-family: var(--font-ui);
  background: var(--wh);
  transition: border-color 0.15s;
}
.em-modal-input:focus { border-color: var(--p); }
.em-modal-submit {
  height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  border: none;
  background: var(--p);
  color: var(--wh);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-ui);
  transition: background 0.15s;
}
.em-modal-submit:hover    { background: var(--pd); }
.em-modal-submit:disabled { background: var(--pm); cursor: default; }
.em-modal-error {
  font-size: 11px;
  color: oklch(52% 0.18 25);
  margin-top: 8px;
  min-height: 16px;
}
.em-modal-fine-print {
  font-size: 10px;
  color: var(--g4);
  margin-top: 10px;
  text-align: center;
}
.em-modal-success { padding: 48px 28px; text-align: center; }
.em-modal-success-icon { font-size: 32px; margin-bottom: 12px; color: var(--gr); }
.em-modal-success-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--bk);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.em-modal-success-msg { font-size: 14px; color: var(--g2); line-height: 1.6; }

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .em-hero-inner { grid-template-columns: 1fr 420px; gap: 40px; }
}

/* Mobile disclosure — small text inside nav drawer */
.em-mobile-disclosure {
  font-size: 10px;
  color: var(--g4);
  line-height: 1.5;
  padding: 10px 0 2px;
  margin-top: 4px;
}
.em-mobile-disclosure strong { font-weight: 600; color: var(--g3); }

@media (max-width: 860px) {
  .em-nav { display: none; }
  .em-disclosure-btn { display: none; }
  /* Compact disclosure: clickable label, full text hidden until tapped */
  .em-disclosure-long  { display: none; }
  .em-disclosure-short { display: inline-flex; }
  .em-login-btn { display: none; }
  .em-hamburger { display: flex; }
  body.em-nav-open .em-mobile-nav { display: flex; }
  .em-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .em-hero-text { max-width: 100%; }
  .em-ari-badge { display: inline-flex; }
  .em-hero-sub { margin-left: auto; margin-right: auto; }
  .em-hero-cta { justify-content: center; }
  .em-card-deck { max-width: 440px; margin: 0 auto; }
  .em-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .em-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .em-blog-grid { grid-template-columns: 1fr; }
  .em-card-deck-stack { height: 320px; }
  .em-feature-card { padding: 22px 22px; }
  .em-card-title { font-size: 18px; }
  .em-hero-cta { flex-direction: column; }
  .em-btn-primary, .em-btn-secondary { justify-content: center; width: 100%; }
  .em-newsletter-form { flex-direction: column; }
  .em-newsletter-input {
    width: 100%;
    height: 54px !important;
    min-height: 54px !important;
    border-color: rgba(255,255,255,0.55);
    font-size: 15px;
  }
  .em-newsletter-submit { width: 100%; height: 54px; font-size: 15px; }
  .em-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .em-trust-inner { gap: 0; }
  .em-trust-item { padding: 8px 10px; }
}

@media (max-width: 420px) {
  .em-footer-grid { grid-template-columns: 1fr; }
  .em-card-tabs { gap: 4px; }
  .em-card-tab { font-size: 9px; padding: 4px 10px; }
  .em-card-deck-stack { height: 300px; }
}
