/* ═══════════════════════════════════════════════════════
   main.css | Electiva shared styles
   ═══════════════════════════════════════════════════════ */

/* ─── RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; }
a { text-decoration: none; color: inherit; }

/* Inline links inside body text paragraphs */
.t-body-fig a,
.t-body a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.t-body-fig a:hover,
.t-body a:hover { opacity: 0.7; }

/* ─── DESIGN TOKENS ─────────────────────────────────── */
:root {
  --accent-1:  #3c72a1;
  --accent-2:  #cbe4f88a;
  --mid-green: #8e9c78;
  --dark-grey: #6f6f6f;
  --grey-mid:  #929292;
  --divider:   #e9e9e9;
  --black:     #000;
  --white:     #fff;
  --max-w:     100%;
  --nav-top:   clamp(8px, 1.2vw, 16px);
  --nav-side:  clamp(16px, 2.8vw, 40px);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.t-display {
  font-family: 'Crimson Text', serif;
  font-size: clamp(50px, 10.5vw, 90px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.0425em;
}
.t-h1 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.t-h2 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.t-h3 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.t-body {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--dark-grey);
}
.t-caption {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--accent-1);
}
.t-link {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.t-stat {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3vw clamp(12px, 1.4vw, 20px);
}
.container {
  width: 100%;
  max-width: var(--max-w);
}
.section-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: clamp(10px, 1vw, 14px) clamp(16px, 1.5vw, 22px);
  background: var(--accent-1);
  color: #fff;
  border-radius: 1000px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
  transition: opacity .2s;
  white-space: nowrap;
}
.btn-dark:hover { opacity: .85; }
.btn-dark .arrow { width: 6px; height: 6px; margin-left: 2px; }

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1vw, 14px) clamp(16px, 1.5vw, 22px);
  background: var(--accent-2);
  color: var(--black);
  border-radius: 1000px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
  transition: opacity .2s;
  white-space: nowrap;
}
.btn-light:hover { opacity: .85; }

/* ─── FLOATING NAV PILL ──────────────────────────────── */
.nav-pill {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: clamp(14px, 1.8vw, 27px);
  align-items: center;
  padding: clamp(10px, 1.4vw, 20px) clamp(14px, 1.6vw, 24px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.nav-pill a { color: var(--black); transition: color .2s; }
.nav-pill a:hover,
.nav-pill a.active { color: var(--accent-1); }

/* Logo bubble - separate from nav-pill */
.nav-pill-logo-wrapper {
  position: fixed;
  top: var(--nav-top);
  left: var(--nav-side);
  z-index: 100;
  padding: clamp(2px, 0.3vw, 4px);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-pill-logo-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
}
.nav-pill-logo-wrapper:hover {
  background: rgba(255,255,255,0.6);
}
.nav-pill-logo {
  width: clamp(40px, 3.8vw, 55px);
  height: clamp(40px, 3.8vw, 55px);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)) drop-shadow(0 0 2px rgba(255,255,255,1));
}

/* Social media nav pill - top right corner */
.nav-pill-social {
  position: fixed;
  top: var(--nav-top);
  right: var(--nav-side);
  z-index: 100;
  display: flex;
  gap: clamp(10px, 1.3vw, 20px);
  align-items: center;
  padding: clamp(10px, 1.2vw, 18px) clamp(12px, 1.4vw, 20px);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
}

.nav-pill-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(14px, 1.3vw, 19px);
  height: clamp(14px, 1.3vw, 19px);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-pill-social a:hover {
  opacity: 0.6;
}

.nav-pill-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── TOP NAV BAR ────────────────────────────────────── */
.nav-outer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
nav.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  padding: clamp(16px, 2vw, 20px) 0 clamp(40px, 5.5vw, 80px);
  gap: 16px;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -0.05em;
  cursor: pointer;
  color: var(--black);
  transition: color .2s;
}
.logo:hover { color: var(--accent-1); }

/* ─── HERO HEADER ────────────────────────────────────── */
header.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 16vw, 240px);
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-w);
  overflow: hidden;
}
header.hero h1 { width: 100%; text-align: center; }

.hero-device {
  position: relative;
  width: 100%;
  height: clamp(180px, 25vw, 362px);
  background: var(--mid-green);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.ipad {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 907px;
  max-width: 95vw;
  height: 644px;
  background: #000;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}
.ipad-screen {
  position: absolute;
  inset: 16.5px 18.5px 20px 18.5px;
  border-radius: 16px;
  overflow: hidden;
}
.ipad-screen img { width: 100%; height: 100%; object-fit: cover; }

/* ─── MAIN ───────────────────────────────────────────── */
main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* ─── LOGO CLOUD ─────────────────────────────────────── */
.logo-cloud {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  padding: 50px 0;
}
.logo-cloud .trusted {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--dark-grey);
  width: 100%;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 84px;
  padding: 20px;
  overflow: hidden;
}
.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: exclusion;
  opacity: 0.6;
}

/* ─── BENEFITS ───────────────────────────────────────── */
.benefits-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-w);
  padding-bottom: 120px;
}
.benefits-header {
  border-top: 0.5px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.4vw, 50px);
  align-items: flex-start;
  padding: clamp(40px, 5.5vw, 80px) 0 clamp(30px, 4vw, 60px);
  width: 100%;
}
.benefits-text {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: flex-start;
  padding-right: clamp(0px, 28vw, 400px);
  width: 100%;
}
.icons-module {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  padding-top: 40px;
  width: 100%;
}
.icon-lockup {
  border-top: 1px solid var(--divider);
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  min-width: 265px;
  padding: 40px 20px 40px 0;
}
.icon-lockup .icon-wrap {
  width: 24px;
  height: 24px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.icon-lockup .icon-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.icon-text { display: flex; flex-direction: column; gap: 20px; width: 100%; }

.hero-full-img {
  width: 100%;
  height: clamp(220px, 43vw, 620px);
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-full-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── FEATURES ───────────────────────────────────────── */
.features-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-w);
  padding-bottom: 120px;
}
.features-text {
  border-top: 1px solid var(--divider);
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  padding: 60px 0 80px;
  min-width: 0;
}
.features-title {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-right: 80px;
  width: 100%;
}
.features-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.list-item {
  border-top: 1px solid var(--divider);
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 80px 20px 0;
  width: 100%;
}
.list-item .num {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-grey);
  flex-shrink: 0;
}
.list-item p { flex: 1 0 0; color: var(--black); }

.features-img {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1600px;
}
.features-img-inner {
  width: 100%;
  height: clamp(300px, 49vw, 711px);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.features-img-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}
.features-img-inner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.06);
  border-radius: 30px;
}

/* ─── SPECS TABLE ────────────────────────────────────── */
.specs-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-w);
  overflow: hidden;
  padding-bottom: 120px;
}
.specs-header {
  border-top: 1px solid var(--grey-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px clamp(20px, 16vw, 240px);
  width: 100%;
}
.specs-text-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.specs-text-content .t-h1,
.specs-text-content .t-body,
.specs-text-content .t-caption { text-align: center; }

.table-wrap { width: 100%; border-radius: 20px; overflow-x: auto; }
.comparison-table {
  display: flex;
  align-items: flex-start;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}
.table-col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
}
.table-col-featured {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}
.table-head {
  border-bottom: 1px solid var(--grey-mid);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 96px;
  padding: 40px 30px;
  width: 100%;
}
.table-head .col-name {
  font-size: 25.7px;
  font-weight: 500;
  letter-spacing: -0.08em;
  color: var(--black);
}
.table-head .col-name-other {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 22.8px;
  font-weight: 500;
  letter-spacing: -0.08em;
  color: var(--dark-grey);
}
.table-head .col-name-hyper {
  font-family: 'Roboto Mono', monospace;
  font-size: 21.6px;
  font-weight: 500;
  letter-spacing: -0.08em;
  color: var(--dark-grey);
}
.table-cell {
  border-bottom: 0.5px solid var(--divider);
  border-left: 0.5px solid var(--divider);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 32px 30px;
  width: 100%;
}
.table-cell img { width: 14px; height: 14px; flex-shrink: 0; }
.table-cell span {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: -0.01em;
}

/* ─── TESTIMONIAL ────────────────────────────────────── */
.testimonial-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-w);
  padding-bottom: 120px;
  min-height: 669px;
}
.testimonial-img {
  flex: 1 0 0;
  min-width: 0;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 550/624;
}
.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}
.testimonial-quote {
  border-top: 1px solid var(--divider);
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: flex-start;
  justify-content: center;
  padding-left: 50px;
  height: 100%;
}
.quote-text {
  font-family: 'Crimson Text', serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--black);
}
.quote-name { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* ─── HOW IT WORKS ───────────────────────────────────── */
.how-section {
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5.5vw, 80px);
  align-items: flex-start;
  width: 100%;
  max-width: var(--max-w);
  padding: clamp(40px, 5.5vw, 80px) 0 clamp(60px, 8vw, 120px);
}
.how-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.how-steps {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.step {
  border-top: 1px solid var(--divider);
  flex: 1 0 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: flex-start;
  padding: 60px 30px 20px 0;
}
.step-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--grey-mid);
}
.step-body { display: flex; flex-direction: column; gap: 20px; width: 100%; }

/* ─── FINAL IMAGE ────────────────────────────────────── */
.final-img-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 40px;
}
.final-img-container {
  width: 100%;
  max-width: var(--max-w);
  aspect-ratio: 1120 / 620;
  max-height: 830px;
  overflow: hidden;
  border-radius: 30px;
}
.final-img-container img { width: 100%; height: 100%; object-fit: cover; }

/* ─── CTA ────────────────────────────────────────────── */
.cta-section {
  border-top: 0.5px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  padding: 120px clamp(20px, 20vw, 300px);
}
.cta-section .t-h1,
.cta-section .t-body { text-align: center; width: 100%; }
.cta-section .btn-dark { width: 100%; justify-content: center; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--max-w);
  padding: 40px 0 20px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
}
.footer-nav {
  display: flex;
  gap: clamp(18px, 2vw, 27px);
  align-items: center;
  flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 1.6vw, 15px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.footer-nav a { color: var(--black); transition: color .2s; }
.footer-nav a:hover { color: var(--accent-1); }
.footer-credits { display: flex; gap: 40px; align-items: center; width: 100%; }
.footer-logo { height: 70px; flex: 1 0 0;}
.footer-logo img { height: 100%; width: auto; }
.footer-meta { display: flex; flex: 1 0 0; gap: 8px; align-items: center; justify-content: center; }
.footer-rights { 
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--accent-1);
  flex: 1 0 0;
  text-align: right;
}
.footer-meta span {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--accent-1);
}

/* ─── FLOATING WHATSAPP BUTTON (mobile only) ────────── */
.whatsapp-fab-wrap,
.whatsapp-restore {
  display: none;
}
@media (max-width: 1024px) {
  /* ── wrapper: positions both the circle and the × together ── */
  .whatsapp-fab-wrap {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 400;
    transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1),
                opacity   0.3s ease;
  }
  .whatsapp-fab-wrap.dismissed {
    transform: translateX(80px);
    opacity: 0;
    pointer-events: none;
  }

  /* ── the green circle ── */
  .whatsapp-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.2s ease;
  }
  .whatsapp-fab:active {
    transform: scale(0.94);
  }
  .whatsapp-fab img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  /* ── × dismiss button ── */
  .whatsapp-dismiss {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 5px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background 0.15s ease;
  }
  .whatsapp-dismiss:active {
    background: #f0f0f0;
  }
  .whatsapp-dismiss svg {
    width: 8px;
    height: 8px;
    stroke: #444;
    stroke-width: 2;
    stroke-linecap: round;
  }

  /* ── restore pill: slides in from the right edge ── */
  .whatsapp-restore {
    display: flex;
    align-items: center;
    gap: 5px;
    position: fixed;
    bottom: 32px;
    right: 0;
    z-index: 400;
    background: rgba(37, 211, 102, 0.72);
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 6px 7px 6px 9px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0, 0, 0.2, 1),
                opacity   0.35s ease;
  }
  .whatsapp-restore.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .whatsapp-restore img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .whatsapp-restore-arrow {
    width: 6px;
    height: 11px;
    stroke: rgba(255,255,255,0.8);
    flex-shrink: 0;
  }
}

/* ─── SCROLL FADE-IN ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SUBPAGE STYLES ─────────────────────────────────── */
.subpage-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: var(--max-w);
  min-height: 60vh;
  padding: 80px 0 120px;
  border-bottom: 0.5px solid var(--divider);
}
.subpage-hero .t-caption { margin-bottom: 24px; }
.subpage-hero .t-display { color: var(--black); }

/* ─── HAMBURGER BUTTON (hidden on desktop) ───────────── */
.mobile-header {
  display: none;
}
.nav-hamburger {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ─── MOBILE NAV (≤1024px) ──────────────────────────── */
@media (max-width: 1024px) {

  /* Hide desktop-only nav elements */
  .nav-pill,
  .nav-pill-logo-wrapper,
  .nav-pill-social {
    display: none !important;
  }

  /* ── Sticky mobile header bar ── */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 78px;
    padding: 20px 20px;
    background: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  /* Logo wordmark in header */
  .mobile-header-logo {
    display: flex;
    align-items: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.08em;
    color: var(--black);
    line-height: 1.2;
  }
  .mobile-header-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  /* Hamburger button | bare icon, no background */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
  }

  /* Three lines */
  .nav-hamburger span {
    display: block;
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.25s ease,
                top      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-hamburger span:nth-child(1) { top: calc(50% - 7px); }
  .nav-hamburger span:nth-child(2) { top: calc(50% - 1px); }
  .nav-hamburger span:nth-child(3) { top: calc(50% + 5px); }

  /* Morph to X when open */
  .nav-hamburger.open span:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
  }
  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-hamburger.open span:nth-child(3) {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
  }

  /* ── Mobile menu drawer (slides down from under the header) ── */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 78px 20px 32px;
    background: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.3s ease;
    gap: 0;
  }
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  /* Hide the redundant in-drawer header */
  .mobile-menu-header {
    display: none;
  }

  /* Nav links | divider style from Figma */
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
  }
  .mobile-menu-nav a {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.4;
    color: var(--black);
    padding: 30px 0;
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    transition: color 0.2s;
  }
  .mobile-menu-nav a:hover {
    color: var(--accent-1);
  }

  /* CTA button at bottom of drawer */
  .mobile-menu-cta {
    display: flex;
    margin-top: 32px;
  }
  .mobile-menu-cta .btn-dark {
    width: 100%;
    justify-content: center;
  }

  /* Social icons row */
  .mobile-menu-social {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--divider);
  }
  .mobile-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    opacity: 0.75;
    transition: opacity 0.2s;
  }
  .mobile-menu-social a:hover { opacity: 1; }
  .mobile-menu-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Page-level adjustments */
  .page-wrapper {
    padding: 0 16px 16px;
  }
  nav.topbar {
    display: none;
  }

  /* Spacer replacing the hidden topbar | pushes all page content
     below the 78px fixed mobile header */
  .nav-outer {
    height: 78px;
  }
}
