
/* ─────────────────────────────────────────────────────
   MIDASH TOKENS (matched to midash-scroll-v2_1.html)
   ───────────────────────────────────────────────────── */
:root,
[data-theme="dark"] {
  --color-accent-pure: #31B4AB;
  --color-accent: #5bc9c1;
  --color-accent-light: #5fccc5;
  --color-accent-deep: #289e96;
  --color-accent-dark: #06444a;
  --color-accent-dim: rgba(49, 180, 171, .15);
  --color-accent-glow: rgba(91, 201, 193, .35);
  --color-accent-soft: rgba(91, 201, 193, .15);
  --color-mint-pale: #cdefec;

  --color-bg: #0a0e14;
  --color-bg-2: #020a0a;
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  --color-footer-bg: #06090d;

  --color-text: #f8fafc;
  --color-text-dim: rgba(248, 250, 252, .5);
  --color-text-soft: rgba(248, 250, 252, .65);
  --color-text-secondary: rgba(248, 250, 252, .8);

  --color-border-soft: rgba(255, 255, 255, .05);
  --color-border: rgba(255, 255, 255, .08);
  --color-border-strong: rgba(255, 255, 255, .12);

  --hero-radial-top: var(--color-accent-dim);
  --hero-radial-bottom: rgba(49,180,171,.08);

  --on-accent: #06090d;

  --radius: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --ease: cubic-bezier(.4, 0, .6, 1);
  --ease-out: cubic-bezier(.25, 1, .5, 1);

  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 880px;

  color-scheme: dark;
}

[data-theme="light"] {
  --color-accent-pure: #31B4AB;
  --color-accent: #31b4ab;
  --color-accent-light: #5fccc5;
  --color-accent-deep: #289e96;
  --color-accent-dim: rgba(49, 180, 171, .12);
  --color-accent-glow: rgba(49, 180, 171, .25);
  --color-accent-soft: rgba(49, 180, 171, .10);

  --color-bg: #ffffff;
  --color-bg-2: #f7f8f8;
  --color-surface: #f7f8f8;
  --color-surface-hover: #eef0ef;
  --color-footer-bg: #f7f8f8;

  --color-text: #1c2120;
  --color-text-dim: #8a8f8e;
  --color-text-soft: #5a5f5e;
  --color-text-secondary: #3a3f3e;

  --color-border-soft: rgba(28, 33, 32, .06);
  --color-border: rgba(28, 33, 32, .10);
  --color-border-strong: rgba(28, 33, 32, .16);

  --hero-radial-top: rgba(49, 180, 171, .18);
  --hero-radial-bottom: rgba(49, 180, 171, .06);

  color-scheme: light;
}

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

html { scroll-behavior: smooth;  background: var(--color-bg);}

body {
  font-family:var(--w-font-text);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'tnum';
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ─────────────────────────────────────────────────────
   NAV — verbatim from midash-scroll-v2_1.html
   FAQ note: nav is initialized with .scrolled (no dark hero
   video to sit over), so the blurred bg is always visible.
   ───────────────────────────────────────────────────── */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 66px; display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
header.nav.scrolled {
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--color-border);
}
.nav-inner {
  width: 100%; max-width: var(--container-wide); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 8px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family:var(--w-font-text);
  font-weight: 700; font-size: 1.65rem; letter-spacing: -.025em;
  line-height: 1;
  color: var(--color-text);
}
.logo .wm { font-size: inherit; line-height: 1; }
.logo .mark, .logo .brand-mark {
  width: .78em; height: .78em;
  display: block; flex: none;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(49,180,171,.18));
}
.mlk-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(var(--s, 1));
  transition: transform 260ms var(--ease), filter 260ms var(--ease);
  filter: drop-shadow(0 0 calc(var(--g, 0) * 14px) rgba(49, 180, 171, calc(var(--g, 0) * .8)));
}

/* ─────────────────────────────────────────────────────
   HEADER/FOOTER LOGO WAVE — same dotted-emblem pulse
   behaviour as the landing page. Footer is held static.
   ───────────────────────────────────────────────────── */
@keyframes midash-pulse-lit { 0%,100% { opacity: 1;   } 50% { opacity: 0.3; } }
@keyframes midash-pulse-dim { 0%,100% { opacity: 0.3; } 50% { opacity: 1;   } }
@keyframes midash-pulse-ctr { 0%,100% { opacity: 1;   } 50% { opacity: 0.6; } }

.logo .midash-wave circle { animation-play-state: paused; }
.logo:hover .midash-wave circle { animation-play-state: running; }
.logo .midash-wave circle:nth-of-type(1)  { animation: midash-pulse-lit 2s -0.00s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(2)  { animation: midash-pulse-dim 2s -0.15s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(3)  { animation: midash-pulse-lit 2s -0.30s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(4)  { animation: midash-pulse-dim 2s -0.45s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(5)  { animation: midash-pulse-dim 2s -1.65s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(6)  { animation: midash-pulse-lit 2s -0.60s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(7)  { animation: midash-pulse-lit 2s -1.50s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(8)  { animation: midash-pulse-dim 2s -0.75s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(9)  { animation: midash-pulse-dim 2s -1.35s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(10) { animation: midash-pulse-lit 2s -1.20s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(11) { animation: midash-pulse-dim 2s -1.05s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(12) { animation: midash-pulse-lit 2s -0.90s infinite ease-in-out; }
.logo .midash-wave circle:nth-of-type(13) { animation: midash-pulse-ctr 2s 0s      infinite ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .logo:hover .midash-wave circle { animation: none; }
}
.footer-logo .midash-wave circle { animation: none !important; }

/* Light-theme emblem — swap white-on-white circles to dark + medium gray. */
[data-theme="light"] .logo .midash-wave circle[fill="url("#hl-lit")"],
[data-theme="light"] .logo .midash-wave circle[fill="url("#fl-lit")"] { fill: #1c2120; }
[data-theme="light"] .logo .midash-wave circle[fill="url("#hl-dim")"],
[data-theme="light"] .logo .midash-wave circle[fill="url("#fl-dim")"] { fill: #888f8e; }
[data-theme="light"] .logo .midash-wave circle[fill="url("#hl-ctr")"],
[data-theme="light"] .logo .midash-wave circle[fill="url("#fl-ctr")"] { fill: #0c1110; }

nav.primary { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .9rem; font-weight: 500; color: var(--color-text-soft);
  padding: 9px 13px; border-radius: 9px; cursor: pointer;
  background: none; border: none;
  font-family: inherit; transition: color .15s, background .15s;
}
.nav-trigger:hover,
.nav-item.open .nav-trigger { color: var(--color-text); background: var(--color-border-soft); }
.nav-trigger .chev { width: 9px; height: 9px; opacity: .6; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.7);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega.wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-group-label {
  font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-text-dim); padding: 10px 12px 4px; grid-column: 1 / -1;
}
.mega-link { display: block; padding: 9px 12px; border-radius: 9px; transition: background .15s; }
.mega-link:hover { background: var(--color-border-soft); }
.mega-link .t {
  font-size: .9rem; font-weight: 600; color: var(--color-text);
  display: flex; align-items: center; gap: 8px;
}
.mega-link .d { font-size: .8rem; color: var(--color-text-dim); margin-top: 1px; }
.dot-c { width: 7px; height: 7px; border-radius: 50%; flex: none; }
:root { --green: #34d399; --blue: #5b9dff; --purple: #b07cff; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-divider { width: 1px; height: 26px; background: var(--color-border); margin: 0 6px; }
.nav-link-util {
  font-size: .9rem; font-weight: 500; color: var(--color-text-soft);
  padding: 8px 12px; border-radius: 9px;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-link-util:hover { color: var(--color-text); background: var(--color-border-soft); }

.nav-link-util.nav-login {
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  padding: 8px 18px;
  background: transparent;
  transition: background .2s var(--ease-out), border-color .2s, color .2s, transform .2s;
}
.nav-link-util.nav-login:hover {
  background: var(--color-border-soft);
  border-color: var(--color-text);
  color: var(--color-text);
  transform: translateY(-1px);
}

.lang-switch, .theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600;
  color: var(--color-text-soft);
  padding: 7px 10px; border-radius: 9px;
  cursor: pointer;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border);
  font-family: inherit;
}
.lang-switch:hover, .theme-toggle:hover {
  color: var(--color-text); border-color: var(--color-accent);
}
.theme-toggle { width: 36px; height: 36px; justify-content: center; padding: 0; }
.theme-toggle span { display: block; line-height: 1; }

/* Language switcher with dropdown */
.lang-wrap { position: relative; display: inline-block; }
.lang-switch .lang-globe { width: 14px; height: 14px; flex: none; opacity: .85; }
.lang-switch .lang-chev  { width: 9px; height: 9px; opacity: .55; transition: transform .2s; }
.lang-wrap.open .lang-switch .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 88px;
  display: none; flex-direction: column;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  z-index: 50;
}
.lang-wrap.open .lang-menu { display: flex; }
.lang-opt {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--color-text-soft);
  padding: 8px 12px; border: 0; border-radius: 7px;
  background: transparent; cursor: pointer;
}
.lang-opt:hover { background: var(--color-border-soft); color: var(--color-text); }

.menu-btn {
  display: none;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 40px; height: 40px; border-radius: 10px;
  cursor: pointer; font-size: 1.1rem;
  font-family: inherit;
}
@media (max-width: 980px) {
  nav.primary, .nav-divider, .nav-link-util:not(.nav-login) { display: none; }
  .menu-btn { display: grid; place-items: center; }
}

/* ─────────────────────────────────────────────────────
   PAGE HERO
   ───────────────────────────────────────────────────── */
.faq-hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
  /* Match midash-terms-of-service.html .tos-hero — diagonal teal wash from
     top-left, fading into the page bg. */
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 70%),
    var(--color-bg);
}
[data-theme="light"] .faq-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 70%),
    var(--color-bg);
}
.faq-hero::before {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.faq-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container-narrow); margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-accent-light);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-dim);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent-pure);
  box-shadow: 0 0 0 3px rgba(49,180,171,.18);
}
h1.display {
  font-family:var(--w-font-text);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 22px 0 18px;
}
h1.display em {
  font-family:var(--w-font-text);
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: inherit;
}
.lede {
  max-width: 620px; margin: 0 auto;
  font-size: 1.1rem; line-height: 1.55;
  color: var(--color-text-soft);
}

/* Search bar */
.faq-search {
  margin: 40px auto 0;
  max-width: 540px;
  position: relative;
}
.faq-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text);
  font: inherit; font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.faq-search input::placeholder { color: var(--color-text-dim); }
.faq-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-bg-2);
}
.faq-search svg {
  position: absolute;
  left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--color-text-dim);
}

/* Category chips */
.cat-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 28px auto 0;
  max-width: 720px;
}
.chip {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .82rem; font-weight: 500;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all .2s var(--ease-out);
  font-family: inherit;
}
.chip:hover { color: var(--color-text); border-color: var(--color-accent); }
.chip.active {
  color: var(--on-accent);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ─────────────────────────────────────────────────────
   FLOATING EMBLEM FIELD — slow rotate + soft halo behind
   the FAQ list. Same shape & animation as the "Markets, In
   conversation" section on the landing page.
   ───────────────────────────────────────────────────── */
.faq-body-wrap {
  position: relative;
  background:
    radial-gradient(rgba(49,180,171,.10) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--color-bg);
  overflow: hidden;
}
[data-theme="light"] .faq-body-wrap {
  background:
    radial-gradient(rgba(49,180,171,.14) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--color-bg);
}
.emblem-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.emblem-shape {
  position: absolute;
  will-change: transform, opacity;
  opacity: 0;
  animation:
    emblemAppear 2.2s cubic-bezier(.22,1,.36,1) forwards,
    emblemSpin var(--spin-dur, 90s) linear infinite;
  animation-delay: var(--appear-delay, 0s), var(--appear-delay, 0s);
  transform-origin: 50% 50%;
}
.emblem-shape svg {
  width: 100%; height: 100%;
  display: block;
  opacity: var(--emblem-opacity, .42);
}
@keyframes emblemAppear {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes emblemSpin {
  from { rotate: var(--start-rot, 0deg); }
  to   { rotate: calc(var(--start-rot, 0deg) + var(--spin-dir, 1) * 360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .emblem-shape { animation: emblemAppear 1.2s ease forwards; }
}
/* Light-theme emblem softens so it doesn't out-shout the dark teal text */
[data-theme="light"] .emblem-shape svg { opacity: calc(var(--emblem-opacity, .42) * .85); }

/* ─────────────────────────────────────────────────────
   FAQ SECTIONS
   ───────────────────────────────────────────────────── */
.faq-main {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.faq-cat {
  margin-bottom: 72px;
  scroll-margin-top: 100px;
}
.faq-cat:last-child { margin-bottom: 0; }
.cat-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.cat-head h2 {
  font-family:var(--w-font-text);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}
.cat-head .count {
  font-size: .82rem; font-weight: 600;
  color: var(--color-text-dim);
  font-variant-numeric: tabular-nums;
}

/* Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.faq-item:hover { border-color: var(--color-border-strong); }
.faq-item.open {
  border-color: var(--color-accent-dim);
  background: color-mix(in srgb, var(--color-surface) 92%, var(--color-accent) 8%);
}

.faq-q {
  width: 100%;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px;
  background: none; border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--color-text);
  transition: color .2s;
}
.faq-q:hover { color: var(--color-accent-light); }
.faq-q .q-num {
  font-family:var(--w-font-text);
  font-size: .78rem; font-weight: 600;
  color: var(--color-accent);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  flex: none;
  padding-top: 2px;
  min-width: 28px;
}
.faq-q .q-text {
  flex: 1;
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.4;
}
.faq-q .q-toggle {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-border-soft);
  display: grid; place-items: center;
  transition: background .25s var(--ease-out), transform .35s var(--ease-out);
  color: var(--color-text-soft);
}
.faq-item.open .q-toggle {
  background: var(--color-accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}
.faq-q .q-toggle svg { width: 12px; height: 12px; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-a-body {
  padding: 0 24px 24px 68px;
  color: var(--color-text-soft);
  font-size: .98rem;
  line-height: 1.65;
}
.faq-a-body p + p { margin-top: 14px; }
.faq-a-body ul { margin: 12px 0; padding-left: 22px; }
.faq-a-body ul li { margin: 6px 0; }
.faq-a-body ul li::marker { color: var(--color-accent); }
/* Keyword teal — same accent ramp as the landing hero italics */
.faq-a-body strong {
  color: var(--color-accent-light);
  font-weight: 600;
}
.faq-a-body em {
  font-family:var(--w-font-text);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  font-size: 1.04em;
  letter-spacing: -.005em;
}
.faq-a-body a {
  color: var(--color-accent-light);
  border-bottom: 1px solid var(--color-accent-dim);
  transition: color .2s, border-color .2s;
}
.faq-a-body a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.faq-a-body code {
  font-family:var(--w-font-number);
  font-size: .9em;
  background: var(--color-border-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-accent-light);
}

/* Empty search state */
.faq-empty {
  display: none;
  text-align: center;
  padding: 60px 24px;
  color: var(--color-text-dim);
}
.faq-empty.show { display: block; }

/* ─────────────────────────────────────────────────────
   CTA STRIP
   ───────────────────────────────────────────────────── */
.cta-final {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, var(--color-accent-dim), transparent 70%),
    var(--color-bg-2);
  border-top: 1px solid var(--color-border);
}
.cta-final-inner { max-width: 700px; margin: 0 auto; }
.cta-final h2 {
  font-family:var(--w-font-text);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.cta-final h2 em {
  font-family:var(--w-font-text);
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent);
}
.cta-final p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.cta-row {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font: inherit;
  font-size: .95rem; font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-text);
  background: var(--color-border-soft);
}
.btn svg { width: 18px; height: 10px; }

/* "Back to landing" mini-card under CTA */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: .85rem; font-weight: 500;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: color .2s, border-color .2s;
}
.back-link:hover { color: var(--color-accent-light); border-color: var(--color-accent-dim); }
.back-link svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* ─────────────────────────────────────────────────────
   FOOTER (taken from landing page)
   ───────────────────────────────────────────────────── */
footer {
  background: var(--color-footer-bg);
  padding: 80px 24px 40px;
  border-top: 1px solid var(--color-border-soft);
}
[data-theme="light"] footer { background: var(--color-footer-bg); }
.footer-grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand p { color: var(--color-text-dim); font-size: .875rem; line-height: 1.6; margin-top: 16px; max-width: 36ch; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }

/* Social row — sits under the footer brand paragraph.
   Links pulled from the live midash.ai /contact page. */
.footer-social {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  background: transparent;
  transition: color .2s var(--ease-out), border-color .2s, background .2s, transform .2s;
}
.footer-social a:hover {
  color: var(--color-accent-light);
  border-color: var(--color-accent);
  background: var(--color-border-soft);
  transform: translateY(-2px);
}
/* SVG bakes in the wordmark; size matches the landing footer. */
.footer-mark { width: 200px; height: auto; flex-shrink: 0; }
.footer-wm   { font-family:var(--w-font-text); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; color: var(--color-text); }
.footer-col h4 {
  font-size: .6875rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .875rem; color: var(--color-text-secondary); transition: color 150ms var(--ease-out); }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-bottom {
  max-width: var(--container-wide); margin: 0 auto;
  padding-top: 32px; border-top: 1px solid var(--color-border-soft);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: .75rem; color: var(--color-text-dim);
  flex-wrap: wrap;
}
.disclosure {
  max-width: var(--container-wide); margin: 32px auto 0;
  font-size: .6875rem; color: var(--color-text-dim); line-height: 1.6;
}

/* Disclaimer block under the footer — matches midash.ai */
.legal-disclaimer {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 40px 0 28px;
  border-top: 1px solid var(--color-border-soft);
  font-size: .8125rem;
  color: var(--color-text-dim);
  line-height: 1.65;
}
.legal-disclaimer .label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 18px;
}
.legal-disclaimer p { margin: 0 0 16px; }
.legal-disclaimer p:last-of-type { margin-bottom: 0; }
.legal-disclaimer .copyright {
  margin-top: 24px;
  padding-top: 20px;
  text-align: center;
  color: var(--color-text-dim);
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 880px) {
  nav.primary, .nav-link-util:not(.nav-login), .lang-switch { display: none; }
  .nav-divider { display: none; }
  .faq-hero { padding: 130px 20px 60px; }
  .faq-main { padding: 60px 20px 90px; }
  .faq-q { padding: 18px 18px; }
  .faq-q .q-text { font-size: .98rem; }
  .faq-a-body { padding: 0 18px 20px 18px; }
  .faq-q .q-num { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-final { padding: 70px 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cat-chips { gap: 6px; }
  .chip { padding: 7px 12px; font-size: .78rem; }
}

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