/* ============================================================
   STUDIO LICHNI FINANSI — Design System
   Navy + Orange · Ivory base · Editorial serif + confident sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap&subset=cyrillic');

:root {
  /* Colors */
  --navy: #16235A;
  --navy-900: #0B1230;
  --navy-700: #1F2F75;
  --navy-100: #E1E5F1;
  --navy-50:  #EEF0F8;

  --orange: #F37021;
  --orange-600: #DE5E10;
  --orange-100: #FCE2CE;
  --orange-50:  #FDF1E6;

  --ivory: #FAF7F2;
  --paper: #FFFFFF;
  --bone:  #F2EEE5;

  --ink:   #0B1230;
  --ink-2: #2A3457;
  --muted: #5A6178;
  --muted-2: #8B91A4;

  --line:  #E6E2D8;
  --line-2:#D6D2C7;

  /* Type */
  --serif: 'IBM Plex Serif', 'Times New Roman', Georgia, serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

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

  --shadow-sm: 0 1px 2px rgba(11,18,48,.04), 0 2px 8px rgba(11,18,48,.04);
  --shadow:    0 4px 16px rgba(11,18,48,.06), 0 16px 40px rgba(11,18,48,.08);
  --shadow-lg: 0 24px 64px rgba(11,18,48,.12);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Safety net against any rogue overflowing element pushing the page sideways. */
  overflow-x: hidden;
}
body.menu-open {
  /* Locked by JS; we set position:fixed inline with the saved scroll so the scroll restores correctly on close. */
  width: 100%;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 600; font-family: var(--sans); color: var(--navy); }

p { margin: 0 0 1em; text-wrap: pretty; }
p.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 60ch; }

.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide { max-width: 1400px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-md-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Section header pattern */
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 4vw, 56px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .005em;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent  { background: var(--orange); color: white; }
.btn-accent:hover  { background: var(--orange-600); }
.btn-ghost   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }
.btn-light   { background: var(--paper); color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--navy); }
.btn-link    { padding: 0; color: var(--navy); border-radius: 0; gap: 8px; }
.btn-link::after { content: "→"; transition: transform .2s ease; }
.btn-link:hover::after { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--navy-100); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.card-ivory { background: var(--ivory); }
.card-navy  { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.card-navy h2, .card-navy h3, .card-navy h4 { color: var(--ivory); }

/* Service card pattern */
.svc-card {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px 32px 32px;
  min-height: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s ease;
}
.svc-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card .svc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .2em;
}
.svc-card .svc-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--navy); font-weight: 500; }
.svc-card .svc-desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.svc-card .svc-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: 14px; }
.svc-card .svc-cta::after { content: "→"; transition: transform .2s ease; }
.svc-card:hover .svc-cta::after { transform: translateX(4px); }
.svc-card .svc-glyph {
  position: absolute; top: 28px; right: 28px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--navy);
  transition: all .25s ease;
}
.svc-card:hover .svc-glyph { background: var(--navy); color: var(--orange); border-color: var(--navy); }

/* ---------- Tags / chips / badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .06em;
  background: var(--navy-50);
  color: var(--navy);
  border: 1px solid var(--navy-100);
}
.tag-orange { background: var(--orange-50); color: var(--orange-600); border-color: var(--orange-100); }
.tag-line   { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }

.reg-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}
.reg-badge strong { color: var(--navy); font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(16px, 4vw, 56px);
  height: clamp(64px, 8vw, 88px);
  padding-top: env(safe-area-inset-top, 0);
}
.nav .nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.nav-logo .brand-logo {
  height: 64px;
  width: auto;
  display: block;
}
.nav-logo .logo-plate {
  display: inline-flex;
  background: #FFFFFF;
  padding: 12px 20px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .nav-logo .brand-logo { height: 48px; }
}
.nav-logo .lockup { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.nav-logo .lockup .top   { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .02em; color: var(--navy); }
.nav-logo .lockup .bot   { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--orange); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 8px 0;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange); border-radius: 2px;
}
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after { content: "‾‾"; font-size: 14px; opacity: .45; margin-left: 6px; letter-spacing: -2px; transform: translateY(-3px) rotate(180deg); display: inline-block; }
.nav-links .submenu {
  position: absolute; top: calc(100% + 8px); left: -16px;
  min-width: 240px; padding: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 4px;
}
.nav-links .has-sub:hover .submenu { display: flex; }
.nav-links .submenu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.nav-links .submenu a:hover { background: var(--ivory); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex !important; }
}
.nav-mobile-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-mobile-toggle:active { background: var(--ivory); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: 88px 0 32px;
}
.site-footer h4 { color: white; font-size: 13px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: var(--navy-100); font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
@media (max-width: 900px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .foot-brand { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.site-footer .foot-brand .desc { font-size: 13px; line-height: 1.55; color: var(--navy-100); opacity: .8; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.5); }
.site-footer .legal a { font-size: 12px; }
.site-footer .reg-line { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 720px; }

/* ---------- Compass marker (small section glyph) ---------- */
.compass-mark {
  width: 28px; height: 28px;
  display: inline-block; flex-shrink: 0;
  color: var(--orange);
}

/* ---------- Hero pattern ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 .accent { color: var(--orange); font-style: italic; font-weight: 400; }
.hero .hero-meta {
  display: flex; align-items: center; gap: 18px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: var(--navy);
  overflow: hidden;
}

/* Subpage hero (compact) */
.subhero { padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.subhero .breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.subhero .breadcrumbs a:hover { color: var(--navy); }
.subhero .breadcrumbs span.sep { color: var(--line-2); }
.subhero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
@media (max-width: 900px) { .subhero-grid { grid-template-columns: 1fr; } }

/* ---------- Topographic decoration ---------- */
.topo {
  position: absolute;
  inset: auto -10% -30% auto;
  width: 80%;
  height: 120%;
  pointer-events: none;
  opacity: .07;
}

/* ---------- Image slot (placeholder) ---------- */
.img-slot {
  position: relative;
  width: 100%; height: 100%;
  min-height: 240px;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(11,18,48,.04) 11px 12px),
    var(--navy-50);
  color: var(--muted);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center;
}
.img-slot.dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,.04) 11px 12px),
    var(--navy);
  color: rgba(255,255,255,.6);
  border-color: var(--navy-700);
}

/* ---------- Interactive compass (hero) ---------- */
.compass-stage {
  position: absolute;
  /* Symmetric inset so the dial centers in the background concentric rings (which are centered at 50%, 50% of the card). */
  inset: 60px 16px 60px 16px;
  display: grid;
  place-items: center;
}
.compass-dial {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  max-height: 100%;
}
.compass-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.compass-svg .needle {
  transform-origin: 160px 160px;
  animation: needle-rotate 12s infinite cubic-bezier(.65, 0, .35, 1);
}
.svc-label {
  position: absolute;
  text-decoration: none;
  z-index: 2;
}
/* Labels are positioned just outside the dial wrapper so they stay glued to it at any card size. */
.svc-label[data-key="credit"] { bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 10px; }
.svc-label[data-key="invest"] { top: 100%; right: -6%; text-align: right; margin-top: 10px; }
.svc-label[data-key="save"]   { top: 100%; left:  -6%; text-align: left;  margin-top: 10px; }

.svc-label span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color .25s ease;
  transform-origin: center;
  white-space: nowrap;
  line-height: 1.35;
}
.svc-label[data-key="invest"] span,
.svc-label[data-key="save"] span {
  white-space: normal;
}
.svc-label:hover span { color: var(--orange); }

.svc-label[data-key="credit"] span { animation: lbl-credit 12s infinite cubic-bezier(.65,0,.35,1); }
.svc-label[data-key="invest"] span { animation: lbl-invest 12s infinite cubic-bezier(.65,0,.35,1); }
.svc-label[data-key="save"]   span { animation: lbl-save   12s infinite cubic-bezier(.65,0,.35,1); }

@keyframes needle-rotate {
  0%, 21%   { transform: rotate(0deg);   }
  33%, 54%  { transform: rotate(135deg); }
  67%, 88%  { transform: rotate(225deg); }
  100%      { transform: rotate(360deg); }
}
@keyframes lbl-credit {
  0%, 21%   { color: var(--orange); transform: scale(1.08); }
  25%, 100% { color: var(--navy);   transform: scale(1);    }
}
@keyframes lbl-invest {
  0%, 30%   { color: var(--navy);   transform: scale(1);    }
  33%, 54%  { color: var(--orange); transform: scale(1.08); }
  57%, 100% { color: var(--navy);   transform: scale(1);    }
}
@keyframes lbl-save {
  0%, 64%   { color: var(--navy);   transform: scale(1);    }
  67%, 88%  { color: var(--orange); transform: scale(1.08); }
  91%, 100% { color: var(--navy);   transform: scale(1);    }
}

@media (prefers-reduced-motion: reduce) {
  .compass-svg .needle,
  .svc-label span { animation: none !important; }
  .compass-svg .needle { transform: rotate(0deg); }
  .svc-label[data-key="credit"] span { color: var(--orange); transform: scale(1.08); }
}

@media (max-width: 560px) {
  .svc-label span { font-size: 10px; letter-spacing: .1em; }
}

/* ---------- Stat row ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-row .stat { padding: 32px; border-right: 1px solid var(--line); }
.stat-row .stat:last-child { border-right: none; }
.stat .stat-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--navy); margin-bottom: 6px; letter-spacing: -.02em; }
.stat .stat-num .unit { font-size: 22px; color: var(--orange); margin-left: 2px; }
.stat .stat-label { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:nth-child(2) { border-right: none; }
  .stat-row .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Stepper / process ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 80px 1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .step-num {
  font-family: var(--serif); font-size: 48px; color: var(--orange); line-height: 1;
  letter-spacing: -.02em;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); margin: 0; max-width: 60ch; }

/* ---------- Quiz ---------- */
.quiz {
  background: var(--navy);
  color: var(--ivory);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.quiz h3 { color: var(--ivory); }
.quiz .quiz-progress {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 28px;
}
.quiz .quiz-progress .dot {
  flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18);
  transition: background .3s ease;
}
.quiz .quiz-progress .dot.active { background: var(--orange); }
.quiz .quiz-progress .dot.done   { background: var(--ivory); }

.quiz-question { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); color: var(--ivory); margin: 8px 0 28px; letter-spacing: -.01em; }
.quiz-options { display: grid; gap: 12px; }
.quiz-options button {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  color: var(--ivory);
  text-align: left;
  font-size: 15px;
  transition: all .2s ease;
}
.quiz-options button:hover {
  background: rgba(243,112,33,.12);
  border-color: var(--orange);
  transform: translateX(4px);
}
.quiz-options button .opt-mark {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px;
  flex-shrink: 0;
}
.quiz-options button:hover .opt-mark { border-color: var(--orange); color: var(--orange); }

.quiz-result {
  display: none;
  animation: fadeIn .4s ease;
}
.quiz-result.show { display: block; }
.quiz-result .res-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--orange); text-transform: uppercase; margin-bottom: 12px; }
.quiz-result h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); margin-bottom: 16px; }
.quiz-result p  { color: rgba(255,255,255,.78); margin-bottom: 24px; max-width: 52ch; }
.quiz-result .res-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quiz .quiz-back { background: transparent; color: rgba(255,255,255,.6); border: none; font-size: 13px; padding: 0; margin-top: 18px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.quiz .quiz-back:hover { color: var(--orange); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form label  { font-size: 13px; color: var(--muted); font-weight: 500; }
.form input, .form textarea, .form select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  /* 16px to prevent iOS Safari auto-zoom on focus. */
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease;
  min-height: 48px;
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--navy); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .radio-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .form .radio-group { grid-template-columns: 1fr; } }
.form .radio {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  background: var(--paper);
  transition: all .2s ease;
}
.form .radio input { position: absolute; opacity: 0; }
.form .radio .mark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-2); flex-shrink: 0;
  transition: all .2s ease;
  display: grid; place-items: center;
}
.form .radio input:checked + .mark { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 3px white; }
.form .radio:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.form .submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .gdpr { display: flex; gap: 10px; font-size: 12px; color: var(--muted); align-items: flex-start; }
.form .gdpr input { margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); color: var(--navy); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  /* CSS-drawn + that morphs to − by animating away the vertical line.
     Font-independent — avoids glyph-coverage issues with U+2212 in subset fonts. */
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--orange), var(--orange)) center / 100% 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 2px 100% no-repeat;
  transition: background-size .2s ease;
}
.faq details[open] summary::after {
  /* Hide the vertical line → reveals only the horizontal one (minus). */
  background:
    linear-gradient(var(--orange), var(--orange)) center / 100% 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 0% 100% no-repeat;
}
.faq details p { margin-top: 14px; color: var(--ink-2); max-width: 70ch; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--ivory);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; } }
.cta-banner h2 { color: var(--ivory); }
.cta-banner p { color: rgba(255,255,255,.75); margin-bottom: 0; }

/* ---------- Partner row ---------- */
.partner-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
}
.partner-row .partner {
  padding: 28px 16px;
  display: grid; place-items: center;
  gap: 8px;
  text-align: center;
  border-radius: var(--radius);
  transition: background .2s ease;
}
.partner-row .partner:hover { background: var(--ivory); }
.partner-row .partner .p-name { font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 500; letter-spacing: -.01em; }
.partner-row .partner .p-role { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .partner-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Quote ---------- */
.pull-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--navy);
  border-left: 3px solid var(--orange);
  padding-left: 24px;
  max-width: 56ch;
}

/* ---------- Risk meter ---------- */
.risk-meter { display: flex; gap: 4px; align-items: center; }
.risk-meter .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--line);
}
.risk-meter .dot.on { background: var(--orange); }
.risk-meter .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }

/* ---------- Horizon scale ---------- */
.horizon {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.horizon .bar { height: 6px; background: var(--line); border-radius: 6px; position: relative; overflow: hidden; }
.horizon .bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--orange), var(--navy)); border-radius: 6px; }
.horizon .vals { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Floating contact CTA ---------- */
.float-cta {
  position: fixed; bottom: 22px; right: 22px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--orange); color: white;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 32px rgba(243,112,33,.32);
  transition: transform .2s ease;
}
.float-cta:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .float-cta { padding: 12px 18px; font-size: 13px; } }

/* ---------- Mobile-only adjustments ---------- */
@media (max-width: 720px) {
  /* Tighter section rhythm */
  .section          { padding: 56px 0; }
  .section-sm       { padding: 40px 0; }
  .section-tight    { padding: 28px 0; }

  /* Force every multi-column grid to a single column at narrow widths.
     Includes:
       - bare `.grid` with inline grid-template-columns (used liberally for 2-col layouts)
       - the numbered `.grid-2/3/4` helpers
       - any element with inline `grid-template-columns` (e.g. nested side-by-side blocks without a class)
     Exception: `.grid-md-2` is the explicit "stay 2 columns even on mobile" opt-in. */
  .grid:not(.grid-md-2),
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns"]:not(.grid-md-2) { grid-template-columns: 1fr !important; }

  /* Stacked layouts already exist via media queries on .hero-grid (980), .subhero-grid (900) etc. */

  /* Button rows wrap, and single-button rows feel more comfortable full-width */
  .btn { width: 100%; max-width: 100%; }
  .btn.btn-inline { width: auto; }

  /* CTA banner always stacks (already does at 800) but bump padding down */
  .cta-banner { padding: 32px 24px; gap: 24px; }

  /* Hero meta line stays comfortable */
  .hero-meta { flex-direction: row; align-items: flex-start; gap: 12px; font-size: 12px; }

  /* Partner row and stat row are explicit width with internal gap — restrict on mobile */
  .partner-row { grid-template-columns: 1fr 1fr; padding: 6px; }
  .partner-row .partner { padding: 20px 8px; }
  .partner-row .partner .p-name { font-size: 18px; }

  .stat-row { border-radius: var(--radius); }
  .stat-row .stat { padding: 22px 18px; }
  .stat-row .stat .stat-num { font-size: 32px; }

  /* Steps: keep counter but trim columns */
  .step { grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; }
  .step .step-num { font-size: 36px; }

  /* Service cards have generous padding by default; trim on mobile */
  .svc-card { padding: 26px 22px; min-height: 0; }

  /* FAQ summaries don't overflow */
  .faq summary { font-size: 18px; gap: 12px; }

  /* Lead paragraph stays comfortable */
  p.lead { font-size: 17px; }

  /* Quiz panel breathing room */
  .quiz { padding: 24px 20px; border-radius: var(--radius-lg); }
  .quiz-options button { padding: 16px 18px; font-size: 14px; }

  /* Footer columns: simplify */
  .site-footer { padding: 56px 0 24px; }
  .site-footer .foot-grid { gap: 32px; margin-bottom: 40px; }
  .site-footer .legal { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Site header: tighter and respects notch */
  .site-header .nav { height: 64px; }
  .nav-logo .brand-logo { height: 44px; }

  /* Floating contact CTA — hidden on very small screens via existing rule; ensure it doesn't cover important UI */
  .float-cta { bottom: calc(16px + env(safe-area-inset-bottom, 0)); right: 16px; }

  /* Release any sticky-positioned columns on mobile so they scroll naturally
     instead of pinning over the content beneath them. */
  [style*="position: sticky"],
  [style*="position:sticky"] {
    position: static !important;
    top: auto !important;
  }

  /* All headings: ensure they wrap and break long words gracefully */
  h1, h2, h3, h4 { overflow-wrap: anywhere; }
}

/* Touch-only feedback for tappable cards */
@media (hover: none) {
  .card:active, .svc-card:active { transform: translateY(0); background: var(--ivory); }
  .btn:hover { transform: none; }
  .btn:active { transform: scale(.98); }
}

/* ---------- Mobile drawer nav ---------- */
.mobile-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 18, 48, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.mobile-menu-backdrop.open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(88vw, 380px);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--paper);
  box-shadow: -16px 0 48px rgba(11, 18, 48, .22);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .mm-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer .mm-head .mm-brand {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.mobile-drawer .mm-close {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  display: grid; place-items: center;
  cursor: pointer;
}
.mobile-drawer .mm-close svg { width: 18px; height: 18px; }
.mobile-drawer .mm-close:active { background: var(--bone); }

.mobile-drawer .mm-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 22px 24px;
}
.mobile-drawer .mm-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
  padding: 12px 0;
  font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}
.mobile-drawer .mm-link.active { color: var(--orange); }
.mobile-drawer .mm-link .chev {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  color: var(--orange);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.mobile-drawer .mm-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-drawer .mm-sub {
  display: none;
  padding: 6px 0 12px 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer .mm-sub.open { display: block; }
.mobile-drawer .mm-sub a {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 8px 0;
  font-family: var(--sans); font-size: 15px; color: var(--ink-2);
  text-decoration: none;
}
.mobile-drawer .mm-sub a:active { color: var(--orange); }

.mobile-drawer .mm-foot {
  flex-shrink: 0;
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-drawer .mm-foot .btn { width: 100%; }
.mobile-drawer .mm-foot .reg {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  text-align: center; line-height: 1.5;
}

@media (min-width: 961px) {
  .mobile-menu-backdrop, .mobile-drawer { display: none !important; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 48px 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hide-sm { } @media (max-width: 700px) { .hide-sm { display: none !important; } }
