/* =========================================
   abc.in — shared styles (multi-page)
   ========================================= */

:root {
  --bg: #FFFFFF;
  --bg-section: #FAFAFB;
  --ink: #0F172A;
  --ink-2: #666666;
  --ink-3: #9AA0A8;

  /* Primary accent */
  --accent: #FF7F50;
  --accent-ink: #E1542A;
  --accent-soft: #FFF4EE;

  /* Supporting hues — used sparingly, only for section tints & data viz */
  --mint: #E8F7EE;
  --mint-ink: #16A34A;
  --lilac: #F2EEFB;
  --lilac-ink: #7C3AED;
  --sky: #EAF3FF;
  --sky-ink: #2563EB;
  --lemon: #FFF8E1;
  --lemon-ink: #B45309;
  --rose: #FCECEF;
  --rose-ink: #BE123C;

  --border: #E5E7EB;
  --border-strong: #D4D7DC;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max: min(1520px, 92vw);
  --max-narrow: min(880px, 92vw);
  --max-wide: min(1720px, 96vw);
  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: clamp(80px, 9vw, 140px);

  --ease: cubic-bezier(.22,.61,.36,1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-bleed { width: 100%; padding: 0 var(--pad-x); }
section { padding: var(--pad-y) 0; }
section.tight { padding: 24px 0 48px; }

/* Section tint backgrounds */
.bg-peach { background: var(--accent-soft); }
.bg-mint  { background: var(--mint); }
.bg-lilac { background: var(--lilac); }
.bg-sky   { background: var(--sky); }
.bg-lemon { background: var(--lemon); }
.bg-bone  { background: var(--bg-section); }
.bg-ink   { background: var(--ink); color: #fff; }
.bg-ink p, .bg-ink .lead { color: #9CA3AF; }

/* Section with top/bottom border in a tint block */
.tinted { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}
.eyebrow.on-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #9CA3AF; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 600; }
p  { margin: 0; color: var(--ink-2); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.serif { font-family: var(--font-display); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: inherit; }
.mono  { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(15,23,42,.4); }
.btn-primary .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 10px 28px -12px rgba(255,127,80,.55); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); background: #fff; }

.btn-ghost-on-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost-on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Any ghost button inside a dark section automatically flips to white text */
.bg-ink .btn-ghost,
.final .btn-ghost,
section.final .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.bg-ink .btn-ghost:hover,
.final .btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

.btn-sm { padding: 10px 16px; font-size: 14px; }

.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-section); color: var(--ink-2);
  border: 1px solid var(--border);
}
.chip.peach { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip.mint  { background: var(--mint);  color: var(--mint-ink);  border-color: transparent; }
.chip.lilac { background: var(--lilac); color: var(--lilac-ink); border-color: transparent; }
.chip.sky   { background: var(--sky);   color: var(--sky-ink);   border-color: transparent; }
.chip.lemon { background: var(--lemon); color: var(--lemon-ink); border-color: transparent; }

/* ---------- nav ---------- */
.nav-orbs {
  position: fixed; top: 0; left: 0; right: 0; height: 90px;
  pointer-events: none; z-index: 1; overflow: hidden;
  transition: height .25s var(--ease);
}
.nav.scrolled ~ .nav-orbs, body:has(.nav.scrolled) .nav-orbs { height: 64px; }
.nav-orb {
  position: absolute; top: -8px;
  border-radius: 50%; filter: blur(22px); opacity: 1;
  width: 220px; height: 90px;
  will-change: transform;
}
.nav-orb.a {
  left: -15%;
  background: radial-gradient(ellipse, rgba(255,127,80,.95), rgba(255,127,80,.4) 40%, transparent 75%);
  animation: navOrbA 22s ease-in-out infinite;
}
.nav-orb.b {
  left: -15%;
  background: radial-gradient(ellipse, rgba(167,139,250,.9), rgba(167,139,250,.35) 40%, transparent 75%);
  animation: navOrbB 26s ease-in-out infinite;
  animation-delay: -6s;
}
.nav-orb.c {
  left: -15%;
  background: radial-gradient(ellipse, rgba(74,222,128,.85), rgba(74,222,128,.35) 40%, transparent 75%);
  animation: navOrbC 24s ease-in-out infinite;
  animation-delay: -12s;
}
.nav-orb.d {
  left: -15%;
  background: radial-gradient(ellipse, rgba(96,165,250,.9), rgba(96,165,250,.35) 40%, transparent 75%);
  animation: navOrbD 30s ease-in-out infinite;
  animation-delay: -18s;
}
.nav-orb.a2 {
  left: -15%; top: 8px;
  background: radial-gradient(ellipse, rgba(255,127,80,.85), rgba(255,127,80,.35) 40%, transparent 75%);
  animation: navOrbB 28s ease-in-out infinite;
  animation-delay: -3s;
}
.nav-orb.b2 {
  left: -15%; top: -2px;
  background: radial-gradient(ellipse, rgba(167,139,250,.85), rgba(167,139,250,.3) 40%, transparent 75%);
  animation: navOrbC 32s ease-in-out infinite;
  animation-delay: -15s;
}
.nav-orb.c2 {
  left: -15%; top: 4px;
  background: radial-gradient(ellipse, rgba(74,222,128,.8), rgba(74,222,128,.3) 40%, transparent 75%);
  animation: navOrbD 26s ease-in-out infinite;
  animation-delay: -9s;
}
.nav-orb.d2 {
  left: -15%; top: 0;
  background: radial-gradient(ellipse, rgba(96,165,250,.85), rgba(96,165,250,.3) 40%, transparent 75%);
  animation: navOrbA 34s ease-in-out infinite;
  animation-delay: -22s;
}
@keyframes navOrbA {
  0%   { transform: translate(0, 0) scale(1); }
  18%  { transform: translate(28vw, -14px) scale(1.15); }
  37%  { transform: translate(55vw, 6px) scale(0.9); }
  58%  { transform: translate(78vw, -4px) scale(1.1); }
  82%  { transform: translate(105vw, -16px) scale(1.05); }
  100% { transform: translate(135vw, 0) scale(1); }
}
@keyframes navOrbB {
  0%   { transform: translate(0, -2px) scale(1); }
  22%  { transform: translate(32vw, 8px) scale(1.2); }
  45%  { transform: translate(58vw, -16px) scale(0.85); }
  68%  { transform: translate(85vw, 4px) scale(1.1); }
  100% { transform: translate(135vw, -8px) scale(1); }
}
@keyframes navOrbC {
  0%   { transform: translate(0, 4px) scale(0.95); }
  20%  { transform: translate(25vw, -10px) scale(1.1); }
  44%  { transform: translate(52vw, 8px) scale(1.25); }
  72%  { transform: translate(82vw, -14px) scale(0.9); }
  100% { transform: translate(135vw, 2px) scale(1); }
}
@keyframes navOrbD {
  0%   { transform: translate(0, -6px) scale(1.05); }
  16%  { transform: translate(22vw, 6px) scale(0.9); }
  40%  { transform: translate(50vw, -12px) scale(1.15); }
  65%  { transform: translate(78vw, 10px) scale(1); }
  88%  { transform: translate(110vw, -4px) scale(1.1); }
  100% { transform: translate(135vw, 0) scale(1); }
}
.nav {
  position: sticky; top: 0; z-index: 50;
  overflow: visible;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.scrolled { border-color: var(--border); }
.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  min-height: 90px;
  display: flex; align-items: center; gap: 28px;
  transition: min-height .25s var(--ease);
}
.nav.scrolled .nav-inner { min-height: 64px; }
.logo {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin-left: auto; position: relative; align-items: center; }
.nav-links > a, .nav-links > .has-menu > button, .nav-links > .has-menu > .has-menu-link {
  font-size: 14px; color: var(--ink-2);
  transition: color .2s var(--ease);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links > .has-menu > button:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }

.has-menu { position: relative; display: inline-flex; align-items: center; }
.has-menu > button svg, .has-menu > .has-menu-link svg { transition: transform .25s var(--ease); pointer-events: none; }
.has-menu.open > .has-menu-btn svg { transform: rotate(180deg); }
.has-menu.open > .has-menu-btn { color: var(--ink); }
.has-menu-link { display: inline-flex; align-items: center; cursor: pointer; }
.has-menu-btn {
  background: none; border: none; cursor: pointer; padding: 4px 2px 4px 4px;
  color: var(--ink-2); display: inline-flex; align-items: center;
  transition: color .2s var(--ease);
}
.has-menu-btn:hover { color: var(--ink); }
/* Invisible bridge so cursor doesn't fall off between trigger and panel */
.submenu-bridge {
  position: absolute; top: 100%; left: -20px; right: -20px; height: 14px;
  pointer-events: none;
}
.has-menu.open .submenu-bridge { pointer-events: auto; }
.submenu {
  position: absolute; top: calc(100% + 14px); left: -20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 360px;
  box-shadow: 0 30px 70px -25px rgba(15,23,42,.25), 0 1px 0 rgba(15,23,42,.04);
  opacity: 0; pointer-events: none; transform: translateY(-6px) scale(.98);
  transform-origin: top left;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 60;
}
.has-menu.open .submenu {
  opacity: 1; pointer-events: auto; transform: none;
}
.submenu-foot {
  margin-top: 6px; padding: 12px 12px 4px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-2);
}
.submenu-foot a { color: var(--ink); font-weight: 500; }
.submenu-foot a:hover { color: var(--accent-ink); }
.submenu a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  transition: background .15s var(--ease);
}
.submenu a:hover { background: var(--bg-section); }
.submenu a .mico {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.submenu a .mico.lilac { background: var(--lilac); color: var(--lilac-ink); }
.submenu a .mico.mint  { background: var(--mint);  color: var(--mint-ink); }
.submenu a .mico.sky   { background: var(--sky);   color: var(--sky-ink); }
.submenu a .mico.lemon { background: var(--lemon); color: var(--lemon-ink); }
.submenu a .md { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.submenu a strong { font-weight: 600; display: block; margin-bottom: 2px; }

.nav-cta { display: flex; gap: 10px; align-items: center; margin-left: 28px; }

/* mobile nav */
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav-burger svg { width: 18px; height: 18px; }

/* ---------- back to top ---------- */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--ink); color: #fff;
  border: none; border-radius: 12px;
  padding: 10px 13px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .15s;
  font-family: var(--font-sans);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); }
#back-to-top svg { display: block; }
#back-to-top span { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }

/* ---------- section heads ---------- */
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head.center { margin: 0 auto 64px; text-align: center; }
.sec-head .lead { margin-top: 18px; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }
.reveal.d5 { transition-delay: .30s; }

/* ---------- footer ---------- */
footer {
  background: var(--ink); color: #fff;
  position: relative; overflow: hidden;
  padding: 0;
}
footer::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(255,127,80,.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(124,58,237,.15), transparent 60%);
  pointer-events: none;
}
.foot-mega {
  position: relative;
  padding: 100px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-mega .wrap-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.foot-mega-text h2 {
  color: #fff;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.035em; line-height: .98;
  margin: 0;
}
.foot-mega-text h2 .serif { color: var(--accent); }
.foot-mega-text p { color: rgba(255,255,255,.65); margin-top: 20px; max-width: 44ch; font-size: 17px; }
.foot-mega-cta {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}
.foot-mega-cta .row {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: rgba(255,255,255,.7);
}
.foot-mega-cta .row .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,127,80,.15); color: var(--accent);
  display: grid; place-items: center;
}
.foot-mega-cta .row strong { color: #fff; font-weight: 500; display: block; }

.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding: 64px 0 40px;
}
.foot-about p { font-size: 14.5px; line-height: 1.65; margin-top: 16px; max-width: 36ch; color: rgba(255,255,255,.65); }
.foot-about .logo { color: #fff; font-size: 22px; }
.foot-about .logo .dot { color: var(--accent); }
.foot-col h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 18px; color: var(--accent); font-weight: 600;
}
.foot-col a {
  display: block;
  font-size: 14px; color: rgba(255,255,255,.75);
  padding: 6px 0;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.foot-col a:hover { color: #fff; transform: translateX(2px); }
.foot-bar {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 16px;
}
.foot-bar a { color: rgba(255,255,255,.7); }
.foot-bar a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.foot-wordmark {
  position: relative;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(80px, 18vw, 280px); line-height: .85;
  color: rgba(255,255,255,.05);
  letter-spacing: -0.04em;
  padding: 24px 0 56px;
  text-align: center;
  user-select: none;
}
.foot-wordmark .dot { color: rgba(255,127,80,.3); }
@media (max-width: 1024px) {
  .foot-mega .wrap-wide { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .foot-mega { padding: 64px 0 32px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- generic page hero ---------- */
.page-hero {
  padding: 32px 0 40px;
  min-height: calc(80vh - 64px);
  display: flex; align-items: center;
}
.page-hero > .wrap { width: 100%; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { max-width: 18ch; font-size: clamp(40px, 5vw, 64px); }
.page-hero .lead { margin-top: 14px; max-width: 54ch; font-size: 17px; }
.page-hero .meta { margin-top: 18px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
@media (max-width: 720px) {
  .page-hero { min-height: 0; padding: 32px 0 40px; }
}
.page-hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero .meta .tick { color: var(--accent); }

/* breadcrumb */
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 24px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-3); }

/* ---------- cards (generic) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 24px 48px -30px rgba(15,23,42,.22); }

/* metric pill */
.metric-pill {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--mint); color: var(--mint-ink);
  font-weight: 500; font-size: 13px;
}
.metric-pill .v { font-family: var(--font-display); font-style: italic; font-size: 18px; }

/* ---------- FAQ (accordion) ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 500;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--bg-section);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details p {
  margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 72ch;
}

/* ---------- tweaks panel (shared) ---------- */
.tweaks-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 14px 30px -12px rgba(15,23,42,.4);
  display: none;
}
.tweaks-toggle.visible { display: inline-flex; align-items: center; gap: 8px; }
.tweaks-panel {
  position: fixed; bottom: 80px; right: 24px; z-index: 100;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.3);
  padding: 20px;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.tweaks-panel .sub { font-size: 12px; color: var(--ink-2); margin-bottom: 16px; }
.tweaks-row { margin-bottom: 16px; }
.tweaks-row > label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.swatches { display: flex; gap: 8px; }
.swatches button {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid #fff; outline: 1px solid var(--border);
  transition: transform .2s var(--ease);
}
.swatches button[aria-pressed="true"] { outline-color: var(--ink); outline-width: 2px; }
.swatches button:hover { transform: scale(1.08); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button {
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root { --pad-y: 96px; }
}
@media (max-width: 1100px) {
  .nav-links a, .has-menu > button, .has-menu > .has-menu-link { font-size: 14px; }
  .nav-inner { gap: 18px; }
}
@media (max-width: 940px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-ghost { display: none; }

  /* Dropdown anchored just below the sticky bar — position:absolute avoids Safari
     backdrop-filter containing-block bug that breaks position:fixed children */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100svh - 90px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 40px -8px rgba(15,23,42,.13);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 0 var(--pad-x) 0;
    margin-left: 0;
    /* hidden by default */
    opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    z-index: 100;
  }
  .nav-links.mobile-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

  /* Use same high-specificity selectors as the desktop rule to guarantee override */
  .nav-links > a {
    padding: 7px 4px; font-size: 15px; font-weight: 500; color: var(--ink);
    border-bottom: 1px solid var(--border); width: 100%; text-align: left;
    display: flex; align-items: center; gap: 0;
  }
  /* flex-wrap so the submenu drops below the link+button row */
  .has-menu { width: 100%; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
  .nav-links > .has-menu > .has-menu-link {
    flex: 1; padding: 7px 4px; font-size: 15px; font-weight: 500; color: var(--ink);
    border-bottom: none; display: flex; align-items: center;
  }
  .nav-links > .has-menu > .has-menu-btn {
    background: none; border: none; cursor: pointer;
    padding: 7px 10px; color: var(--ink-2); display: flex; align-items: center; flex-shrink: 0;
  }
  .submenu {
    position: static; box-shadow: none; border: 0;
    padding: 0; min-width: 0; width: 100%;
    opacity: 1; pointer-events: auto; transform: none;
    background: transparent;
  }
  .submenu-bridge { display: none; }
  .has-menu .submenu { display: none; }
  .has-menu.open .submenu { display: block; }

  /* Mobile submenu items: match top-level nav item style */
  .submenu a {
    font-size: 15px; font-weight: 500; font-family: var(--font-sans);
    padding: 7px 4px 7px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .submenu a .mico,
  .submenu a .md  { display: none; }
  .submenu a strong { font-size: 15px; font-weight: 500; display: inline; margin: 0; }
  .submenu-foot { display: none; }
}
@media (max-width: 640px) {
  :root { --pad-y: 72px; --pad-x: 20px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bar { flex-direction: column; gap: 16px; align-items: flex-start; }
}
