/* ───────────────────────────────────────────────────────────────────────────
   Meelo - v2 "Refined Editorial"
   Shared site styles. Serif-forward, magazine-grade layout, calm motion.
   Same palette / logo / fonts as v1; the art direction is the difference.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette - identical to v1 */
  --ink: #15171C;
  --ink-2: #23262E;
  --ink-soft: #4A4D55;
  --stone: #7A7468;
  --stone-2: #ACA89E;
  --paper: #F5F2ED;
  --cream: #FAF7F2;
  --bone: #ECE7DE;
  --ember: #F26B3A;
  --ember-2: #E0512A;
  --sage: #A8B89A;
  --sage-2: #8FA181;
  --line: rgba(21, 23, 28, 0.12);
  --line-soft: rgba(21, 23, 28, 0.07);
  --line-onink: rgba(255, 255, 255, 0.14);
  --line-onink-soft: rgba(255, 255, 255, 0.08);

  --font-sans: 'Inter Tight', -apple-system, ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --max-w: 1280px;
  --measure: 660px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ember); color: var(--cream); }

/* ─── Editorial typography ─────────────────────────────────────────────── */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(54px, 8.4vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--ember);
}
.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.h1 em { font-style: italic; color: var(--ember); }
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--ember); }
.h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin: 0;
}
.h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.lead {
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.011em;
  text-wrap: pretty;
  margin: 0;
}
.body {
  color: var(--ink-soft);
  line-height: 1.62;
  letter-spacing: -0.006em;
}
.body p { margin: 0 0 1.1em; }
.body p:last-child { margin-bottom: 0; }
.muted { color: var(--stone); }

/* Folio - small mono section marker that sits in the margin */
.folio {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.folio::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.folio.is-bare::before { display: none; }

/* Caption - mono, under figures */
.caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--stone);
  line-height: 1.5;
}

/* Pull-quote - large serif break-out */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* Drop initial on a lead paragraph */
.drop-initial::first-letter {
  font-family: var(--font-serif);
  font-size: 4.4em;
  line-height: 0.78;
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--ember);
  font-style: italic;
}

/* ─── Layout primitives ────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.measure { max-width: var(--measure); }

.section {
  padding-top: clamp(72px, 9vw, 150px);
  padding-bottom: clamp(72px, 9vw, 150px);
}
.section-sm {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.seo-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.seo-card .kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}
.seo-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.seo-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.seo-card a {
  margin-top: auto;
  color: var(--ember);
  font-weight: 600;
  font-size: 14px;
}
.intent-hero {
  padding: clamp(58px, 7vw, 116px) 0 clamp(34px, 5vw, 72px);
}
.intent-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}
.intent-aside {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 96px;
}
.intent-aside h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.intent-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.intent-aside li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}
.intent-aside li::before {
  content: '•';
  color: var(--ember);
  margin-right: 9px;
}
.answer-block {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 64px) 0;
}
.answer-block:first-of-type { border-top: 0; }
.answer-block h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.answer-block p {
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 720px;
}
.answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.answer-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  padding: 16px;
}
.answer-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}
.compare-table th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.compare-table td { color: var(--ink-soft); }
.compare-table tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .seo-grid, .answer-list, .intent-layout { grid-template-columns: 1fr; }
  .intent-aside { position: static; }
  .intent-page .nav-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
    overflow-x: auto;
    max-width: 58vw;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .intent-page .nav-links::-webkit-scrollbar { display: none; }
  .intent-page .nav-cta { display: none; }
  .intent-page .nav { gap: 14px; }
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.rule-soft { background: var(--line-soft); }

/* Editorial 12-col grid */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 56px);
}

/* Section header - folio + serif heading + optional aside */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head .folio { margin-bottom: 2px; }
.sec-head .sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}
.sec-head .sec-aside {
  max-width: 340px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* Full-bleed colour panels */
.panel {
  position: relative;
  padding-top: clamp(64px, 8vw, 132px);
  padding-bottom: clamp(64px, 8vw, 132px);
}
.panel--ink { background: var(--ink); color: var(--cream); }
.panel--ink .lead { color: rgba(250, 247, 242, 0.72); }
.panel--ink .folio { color: rgba(250, 247, 242, 0.6); }
.panel--ink .h1 em,
.panel--ink .h2 em,
.panel--ink .display em { color: var(--ember); }
.panel--paper { background: var(--paper); }
.panel--bone { background: var(--bone); }
.panel--ember { background: var(--ember); color: var(--cream); }
.panel--ember .lead { color: rgba(255, 255, 255, 0.88); }
.panel--ember .folio { color: rgba(255, 255, 255, 0.78); }
.panel--ember .h1 em,
.panel--ember .h2 em { color: var(--ink); font-style: italic; }
.panel--sage { background: var(--sage); color: var(--ink); }
.panel--sage .lead { color: rgba(21, 23, 28, 0.72); }

/* ─── Header / nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-condensed {
  background: rgba(250, 247, 242, 0.92);
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
  transition: height 0.3s var(--ease);
}
.site-header.is-condensed .nav { height: 62px; }
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-top: 3px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.32s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { right: 0; background: var(--ember); }
.nav-cta {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

/* ─── Mobile overlay ───────────────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  height: 78px;
  flex-shrink: 0;
}
.nav-overlay-close {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px var(--gutter);
  gap: 2px;
  overflow-y: auto;
}
.nav-overlay-body a {
  font-family: var(--font-serif);
  font-size: clamp(40px, 11vw, 64px);
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.04;
  transition: color 0.18s var(--ease), padding-left 0.28s var(--ease);
}
.nav-overlay-body a:hover {
  color: var(--ember);
  padding-left: 12px;
}
.nav-overlay-body a .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.1em;
}
.nav-overlay-foot {
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
}
.nav-overlay-foot .btn { width: 100%; justify-content: center; }
.nav-overlay-foot .meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  flex-wrap: wrap;
}
.nav-overlay-foot .meta a { transition: color 0.15s var(--ease); }
.nav-overlay-foot .meta a:hover { color: var(--ink); }
body.nav-locked { overflow: hidden; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
              color 0.22s var(--ease), border-color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 22px -10px rgba(21, 23, 28, 0.5);
}
.btn-primary:hover {
  background: var(--ember);
  box-shadow: 0 14px 30px -10px rgba(242, 107, 58, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ember {
  background: var(--ember);
  color: var(--cream);
  box-shadow: 0 8px 22px -10px rgba(242, 107, 58, 0.6);
}
.btn-ember:hover { background: var(--ember-2); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-on-ink {
  background: var(--cream);
  color: var(--ink);
}
.btn-on-ink:hover { background: var(--ember); color: var(--cream); }
.btn-ghost-on-ink {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-onink);
}
.btn-ghost-on-ink:hover { border-color: var(--cream); }

/* Text link with animated underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-bottom: 2px;
}
.tlink::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.34s var(--ease);
}
.tlink:hover { color: var(--ember); }
.tlink:hover::after { transform: scaleX(0); transform-origin: right; }
.tlink .arr { transition: transform 0.28s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }
.panel--ink .tlink { color: var(--cream); }
.panel--ink .tlink:hover { color: var(--ember); }

/* App store button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 13px 20px;
  min-width: 182px;
  min-height: 58px;
  border-radius: 15px;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.app-store-btn:hover { background: var(--ember); transform: translateY(-2px); }
/* On dark panels the button needs an edge to read against the background */
.panel--ink .app-store-btn { border-color: rgba(255, 255, 255, 0.34); }
.panel--ink .app-store-btn:hover { border-color: rgba(255, 255, 255, 0.5); }
.app-store-btn .as-icon { width: 26px; height: 26px; flex-shrink: 0; }
.app-store-btn.google-play-btn .as-icon { width: 28px; height: 28px; }
.app-store-btn .as-label { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.app-store-btn .as-pre { font-size: 10px; opacity: 0.75; letter-spacing: 0.02em; }
.app-store-btn .as-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }

/* ─── Editorial cards / figures ────────────────────────────────────────── */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease),
              border-color 0.34s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -28px rgba(21, 23, 28, 0.28);
  border-color: var(--ink);
}
.card.is-ink {
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
}
.card.is-ink .body { color: rgba(250, 247, 242, 0.72); }
.card.is-ember {
  background: var(--ember);
  color: var(--cream);
  border-color: transparent;
}
.card.is-ember .body { color: rgba(255, 255, 255, 0.85); }

.figure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.figure.is-ink { background: var(--ink); border-color: transparent; }
.figure.is-ember { background: var(--ember); border-color: transparent; }
.figure-pad {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Small index chip used in tables / lists */
.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.tag-dot.sage { background: var(--sage-2); }
.panel--ink .tag { background: rgba(255,255,255,0.05); border-color: var(--line-onink); color: rgba(250,247,242,0.8); }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(72px, 8vw, 120px) 0 36px;
}
.footer-grid {
  display: grid;
  /* 4 columns: Brand (wider) + Product + Account + Legal. The brand
     column takes ~1.5x the width of the others so the tagline + logo
     have room to breathe. Was 1.7fr/1fr/1fr (3 cols) before account.html
     introduced the Account column — bumping to 4 cols without widening
     the grid caused Legal to wrap underneath Brand. */
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-onink-soft);
}
.footer-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 22px;
  display: block;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0;
  max-width: 320px;
}
.footer-tagline em { font-style: italic; color: var(--ember); }
.footer-contact {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-contact a:hover { color: var(--ember); border-color: var(--ember); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 20px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  transition: color 0.16s var(--ease), padding-left 0.24s var(--ease);
}
.footer-col a:hover { color: var(--ember); padding-left: 5px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.42);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.16s var(--ease);
}
.footer-bottom a:hover { color: var(--ember); }

/* ─── Language switcher (footer) ───────────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid var(--line-onink);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.lang-switcher:hover { border-color: var(--cream); color: var(--cream); }
.lang-sw-flag {
  width: 21px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.lang-sw-flag svg { width: 100%; height: 100%; display: block; }
.lang-sw-name { line-height: 1; }
.lang-sw-chev { display: block; width: 11px; height: 11px; opacity: 0.6; }
.lang-sw-chev svg { width: 100%; height: 100%; display: block; }

/* ─── Language picker modal ────────────────────────────────────────────── */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 23, 28, 0.55);
  backdrop-filter: blur(9px) saturate(140%);
  -webkit-backdrop-filter: blur(9px) saturate(140%);
  /* Always visible. A blocking modal must never depend on an animation,
     transition or rAF to appear, so opacity is never animated here. Only
     the card has an entrance, and only on transform (visible even frozen). */
}
.lang-modal.is-closing { animation: lang-modal-out 0.22s var(--ease) forwards; }
@keyframes lang-modal-out { to { opacity: 0; } }
.lang-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(30px, 4vw, 48px);
  width: 100%;
  max-width: 452px;
  position: relative;
  box-shadow: 0 60px 110px -32px rgba(21, 23, 28, 0.55);
  animation: lang-card-in 0.44s var(--ease-out);
}
@keyframes lang-card-in {
  from { transform: translateY(16px) scale(0.975); }
}
.lang-folio {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.lang-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 13px 0 10px;
}
.lang-title em { font-style: italic; color: var(--ember); }
.lang-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.lang-list { display: flex; flex-direction: column; gap: 8px; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.lang-opt:hover { border-color: var(--ink); transform: translateX(3px); }
.lang-opt.is-current { border-color: var(--ember); background: rgba(242, 107, 58, 0.05); }
.lang-flag {
  width: 36px;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.09);
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-names { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.lang-native { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.lang-en { font-size: 12px; color: var(--stone); }
.lang-check {
  width: 18px;
  height: 18px;
  color: var(--ember);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.18s var(--ease);
}
.lang-check svg { width: 100%; height: 100%; display: block; }
.lang-opt.is-current .lang-check { opacity: 1; }
.lang-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.lang-close svg { width: 15px; height: 15px; display: block; }
.lang-close:hover { border-color: var(--ink); color: var(--ink); }
body.lang-locked { overflow: hidden; }

@media (max-width: 560px) {
  .lang-card { padding: 28px 22px; }
  .lang-title { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-modal, .lang-card { animation: none !important; }
}

/* ─── Motion: reveal base states (driven by motion.js) ─────────────────── */
/* The hidden state is gated on html.js - added by a tiny inline script in
   <head>. If JavaScript is disabled or blocked, .js is never set and every
   .reveal element simply stays visible. Progressive enhancement, no FOUC. */
.reveal {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}
.js .reveal[data-reveal="left"]  { transform: translateX(-36px); }
.js .reveal[data-reveal="right"] { transform: translateX(36px); }
.js .reveal[data-reveal="scale"] { transform: scale(0.94); }
.js .reveal[data-reveal="fade"]  { transform: none; }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Parallax targets get a transform applied inline by motion.js */
[data-parallax] { will-change: transform; }

/* Count-up numbers reserve width so layout doesn't jump */
.count { font-variant-numeric: tabular-nums; }

/* ─── Utilities ────────────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
.center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.eyebrow-em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ember);
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .grid12 { gap: 28px; }
}

@media (max-width: 860px) {
  .footer-grid {
    /* Tablet: brand spans both columns at top, then Product / Account
       / Legal stack in 2 cols (one cell will have just one column —
       OK, looks balanced because the Legal section has more items). */
    grid-template-columns: 1fr 1fr;
    gap: 44px 36px;
    padding-bottom: 48px;
  }
  .footer-col:first-child {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 26px;
  }
  .sec-head .sec-head-row { gap: 24px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .js .reveal[data-reveal="left"],
  .js .reveal[data-reveal="right"] {
    transform: translateY(22px);
  }
  .nav { height: 64px; }
  .site-header.is-condensed .nav { height: 56px; }
  .brand-name { font-size: 22px; }
  .nav-overlay-head { height: 64px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 38px;
  }
  .footer-col:first-child { margin-bottom: 0; }
  .footer-tagline { max-width: none; }
  .btn { height: 44px; padding: 0 20px; }
  .btn-lg { height: 50px; padding: 0 24px; }
  .card { padding: 24px; }
  .drop-initial::first-letter { font-size: 3.6em; }
}

@media (max-width: 380px) {
  .display { font-size: 44px; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 30px; }
}

@media (max-width: 960px) {
  .intent-page .nav-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
    overflow-x: auto;
    max-width: 58vw;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .intent-page .nav-links::-webkit-scrollbar { display: none; }
  .intent-page .nav-cta,
  .intent-page .nav-burger { display: none; }
  .intent-page .nav { gap: 14px; }
}

/* ─── Reduced motion - fully honoured (on-brand for an ED-aware app) ───── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-parallax] { transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.06s !important;
  }
}

@media (max-width: 560px) {
  .intent-page .site-header { position: sticky; }
  .intent-page .nav {
    justify-content: center;
    position: relative;
  }
  .intent-page .brand { margin: 0 auto; }
  .intent-page .nav-links { display: none; }
  .intent-page .intent-hero {
    padding-top: 42px;
    padding-bottom: 26px;
  }
  .intent-page .intent-aside {
    padding: 20px;
    border-radius: 10px;
  }
  .intent-page .answer-block {
    padding: 32px 0;
  }
  .intent-page .answer-list div {
    padding: 15px;
  }
  .intent-page .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .intent-page .compare-table th,
  .intent-page .compare-table td {
    min-width: 180px;
  }
}
