/* ---------- Tokens ---------- */
:root {
  --ink: #0B0F14;
  --ink-2: #1a222c;
  --muted: #5b6672;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-dark: #0B0F14;
  --accent: #0a66ff;
  --accent-2: #00c48c;
  --danger: #e5484d;
  --warn: #f5a524;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,15,20,.06), 0 1px 1px rgba(11,15,20,.04);
  --shadow-md: 0 10px 30px rgba(11,15,20,.08);
  --shadow-lg: 0 30px 80px rgba(11,15,20,.18);
  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Inter', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: .4em; }
h3 { font-size: 1.25rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.accent { color: var(--accent); }
.eyebrow {
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .9em;
}
.eyebrow.center { display: block; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.section-lede { font-size: 1.1rem; color: var(--muted); }
.body { font-size: 1.02rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: .75em; }

/* Hero supporting tagline — sits between H1 and lede */
.hero-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink-2);
  margin: 12px 0 14px;
  letter-spacing: .01em;
}

/* Pull quote / callout — used in Regulatory Context and elsewhere */
.callout {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--ink-soft, #F5F7FA);
  border-radius: 8px;
  font-family: 'Fraunces', serif;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}
.callout p { margin: 0; }

/* Small note beneath a list or grid (section footer-style line) */
.section-note {
  margin-top: 22px;
  font-size: .98rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Introductory paragraph that sits above a grid (e.g., pillars) */
.section-intro {
  max-width: 62ch;
  margin: 0 auto 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.section-dark .btn-ghost:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 22px; margin-left: auto; margin-right: 12px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 10px 18px; font-size: .88rem; }

/* Nav dropdown (Perspectives) */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-trigger {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] { color: var(--accent); }
.nav-dropdown-trigger .chev {
  font-size: .72em;
  line-height: 1;
  transition: transform .2s var(--ease);
}
.nav-dropdown-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 50;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px; right: 22px;
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(10,102,255,.08), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0,196,140,.07), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  margin-top: 6px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.hero-ctas { display: flex; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.hero-bullets { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hero-bullets li {
  font-size: .95rem; color: var(--muted); font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.hero-bullets li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
}
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-blob {
  position: absolute; inset: 8% -6% 8% -6%;
  background: radial-gradient(closest-side, rgba(10,102,255,.18), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

/* Phone frame */
.phone-frame {
  position: relative; z-index: 1;
  width: 290px; max-width: 100%;
  padding: 14px 10px;
  background: #0B0F14;
  border-radius: 42px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-frame::before {
  content: ""; position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px; background: #000; border-radius: 14px;
  z-index: 2;
}
.phone-frame img {
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.phone-frame.small { width: 250px; }

/* Live interactive phone embed (iframe wrapper) */
.phone-embed {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #F4F7FA;
  border-radius: 24px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.phone-embed iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  border-radius: 18px;
  background: #F4F7FA;
}
@media (max-width: 640px) {
  .phone-embed iframe { height: 780px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p, .section-dark li { color: rgba(255,255,255,.82); }
.section-dark .eyebrow { color: #6ea8ff; }
.section-dark .muted { color: rgba(255,255,255,.55); }

.split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
}
.visual-stack { display: flex; justify-content: center; }

/* Steps */
.steps {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: .35em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .98rem;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--accent-2);
  font-weight: 700;
}

/* Cards */
.cards { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Not list */
.not-list {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.not-list li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px dashed #c8ccd3;
  color: var(--muted);
  font-size: .92rem;
  background: #fff;
  position: relative;
}
.not-list li::before {
  content: "✕";
  color: var(--danger);
  margin-right: 8px;
  font-weight: 700;
}

/* Pillars */
.pillars { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar {
  padding: 26px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pillar h4 { margin: 0; color: var(--ink); font-size: .98rem; font-weight: 600; }

/* CTA */
.section-cta {
  background: linear-gradient(160deg, #0B0F14 0%, #132235 60%, #0a66ff 160%);
  color: #fff;
  text-align: center;
}
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255,255,255,.78); }
.section-cta .btn-primary { background: #fff; color: var(--ink); }
.section-cta .btn-primary:hover { background: var(--accent); color: #fff; }
.section-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section-cta .btn-ghost:hover { border-color: #fff; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Contact form ---------- */
.contact-form {
  margin-top: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.form-group .req { color: #6ea8ff; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.4);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6ea8ff;
  background: rgba(255,255,255,.12);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M6 8L0 0h12z' opacity='.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.form-group select option {
  background: #0B0F14;
  color: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.form-note {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin: 18px 0 0;
}
.form-success {
  margin-top: 40px;
  padding: 28px 32px;
  background: rgba(0,196,140,.12);
  border: 1px solid rgba(0,196,140,.45);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
}
.form-success a { color: #6ea8ff; font-weight: 600; }
.form-success a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .contact-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Footer */
.site-footer { background: #06090d; color: rgba(255,255,255,.7); padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 28px; width: auto; }
.footer-tag { margin: 12px 0 0; font-family: 'Fraunces', serif; font-style: italic; color: rgba(255,255,255,.75); }
.footer-legal { text-align: right; font-size: .85rem; }
.footer-legal a { margin-left: 18px; color: rgba(255,255,255,.7); }
.footer-legal a:hover { color: #fff; }
.footer-legal p { margin: 10px 0 0; color: rgba(255,255,255,.45); font-size: .8rem; }
.footer-socials { margin-top: 16px; display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 80px 0 32px;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(10,102,255,.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-top: 8px;
}
.legal-updated {
  color: var(--muted);
  font-size: .95rem;
  margin-top: 6px;
}
.legal-body {
  padding: 56px 0 96px;
  background: #fff;
}
.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  margin-bottom: .4em;
}
.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.4em;
  margin-bottom: .35em;
  color: var(--ink);
}
.legal-body p,
.legal-body li {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-body ul {
  padding-left: 1.25em;
  margin: 0 0 1em;
}
.legal-body li { margin-bottom: .4em; }
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover { color: var(--ink); }
.legal-disclaimer {
  margin-top: 3rem;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Browser mockup (main demo) ---------- */
.demo-head { max-width: 760px; margin: 0 auto 44px; }
.browser-mock {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f6f7f9 0%, #eceff3 100%);
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.browser-bar .dot.red    { background: #ff5f57; }
.browser-bar .dot.yellow { background: #febc2e; }
.browser-bar .dot.green  { background: #28c840; }
.browser-url {
  flex: 1;
  margin: 0 12px 0 14px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
}
.browser-url .lock { font-size: .75rem; opacity: .7; }
.prototype-frame {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  background: #F4F7FA;
}
.demo-fineprint {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--muted);
}
.demo-fineprint a {
  color: var(--accent);
  font-weight: 500;
  margin-left: 6px;
}
.demo-fineprint a:hover { text-decoration: underline; }

.mobile-demo-notice {
  display: none;
  margin: 28px auto 0;
  max-width: 560px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.mobile-demo-notice .notice-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.mobile-demo-notice strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  margin-bottom: 4px;
}
.mobile-demo-notice span:not(.notice-icon) {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .prototype-frame { height: 680px; }
  .browser-url { display: none; }
  .mobile-demo-notice { display: flex; }
}
@media (max-width: 640px) {
  .prototype-frame { height: 620px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 80px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  /* Mobile dropdown: becomes an inline expandable block */
  .nav-links.open .nav-dropdown { display: block; width: 100%; }
  .nav-links.open .nav-dropdown-trigger {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }
  .nav-links.open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 4px 8px;
    margin: 4px 0 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s var(--ease), padding .22s var(--ease), margin .22s var(--ease);
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .nav-links.open .nav-dropdown-menu::before { display: none; }
  .nav-links.open .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
    padding: 6px 8px;
    margin: 6px 0 10px;
  }
  .nav-links.open .nav-dropdown-menu a {
    padding: 10px 10px;
    border-bottom: 0;
  }
  /* Desktop hover-open disabled on mobile to prevent sticky states */
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
  .section { padding: 72px 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
  .footer-legal a { margin: 0 18px 0 0; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
}
