/* ═══════════════════════════════════════════
   Kairo Legal — Twilight Premium
   Balanced warmth · editorial · MotionSites cues
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --bg: #ddd9e6;
  --bg-deep: #d0ccd9;
  --bg-hero: linear-gradient(165deg, #d4cfe0 0%, #e8e5f0 42%, #ebe8f2 100%);
  --surface: #f7f6fa;
  --surface-raised: #ffffff;
  --surface-inset: #ece9f2;
  --border: rgba(26, 22, 40, 0.1);
  --border-strong: rgba(26, 22, 40, 0.16);
  --ink: #14111f;
  --ink-soft: #3d384c;
  --ink-muted: #5e586c;
  --ink-faint: #8a8498;
  --primary: #6d42d4;
  --primary-deep: #5530b0;
  --primary-soft: rgba(109, 66, 212, 0.12);
  --primary-glow: rgba(109, 66, 212, 0.22);
  --blue: #3a6fc4;
  --blue-soft: rgba(58, 111, 196, 0.1);
  --warm: #c96f28;
  --warm-soft: rgba(201, 111, 40, 0.1);
  --footer-bg: #1a1726;
  --footer-text: #c8c4d4;
  --gradient: linear-gradient(135deg, #6d42d4 0%, #3a6fc4 100%);
  --gradient-hero: linear-gradient(145deg, rgba(109,66,212,0.18) 0%, rgba(58,111,196,0.1) 50%, transparent 100%);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-xs: 0 1px 2px rgba(20, 17, 31, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 17, 31, 0.07);
  --shadow-md: 0 8px 28px rgba(20, 17, 31, 0.1);
  --shadow-lg: 0 20px 50px rgba(20, 17, 31, 0.12);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 16px rgba(20,17,31,0.06), 0 24px 48px rgba(20,17,31,0.08);
  --nav-height: 62px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.15, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

/* ── Progress ── */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(20, 17, 31, 0.08);
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  transition: width 0.1s linear;
}

/* ── Ambient scene ── */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

.scene__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(109, 66, 212, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 5%, rgba(58, 111, 196, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(26, 23, 38, 0.06) 0%, transparent 45%);
}

.scene__dots {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(20, 17, 31, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
}

/* ── Shell ── */

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(940px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Nav ── */

.nav-wrap {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(940px, calc(100% - 1.75rem));
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.45rem 0 1.1rem;
  background: rgba(247, 246, 250, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: var(--shadow-xs);
}

.nav__brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav__links-wrap {
  position: relative;
  background: var(--surface-inset);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--border);
}

.nav__links {
  display: flex;
  list-style: none;
}

.nav__links li { list-style: none; }

.nav__pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: var(--surface-raised);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease-spring), width 0.35s var(--ease-spring);
  pointer-events: none;
}

.nav__links a {
  position: relative;
  z-index: 1;
  padding: 0.38rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s;
  cursor: pointer;
}

.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--primary); }

.nav__links a:focus-visible,
.nav__toggle:focus-visible,
.btn:focus-visible,
.page-nav__link:focus-visible,
.toc__list a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle svg { width: 20px; height: 20px; }

/* ── Hero panel (MotionSites hero band) ── */

.hero-panel {
  position: relative;
  margin-top: calc(var(--nav-height) + 2rem);
  margin-bottom: 2.5rem;
  padding: 3.5rem 0 3rem;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109,66,212,0.25), rgba(58,111,196,0.2), transparent);
}

.hero {
  position: relative;
  padding: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem 0.32rem 0.45rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-xs);
  opacity: 0;
  animation: revealUp 0.65s var(--ease-out) 0.05s forwards;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: revealUp 0.65s var(--ease-out) 0.12s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--primary);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  font-weight: 400;
  opacity: 0;
  animation: revealUp 0.65s var(--ease-out) 0.2s forwards;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: revealUp 0.65s var(--ease-out) 0.28s forwards;
}

.hero__chip {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Hero frame — app icon showcase */

.hero__visual {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero__frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,0.4);
}

.hero__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0%   { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 0.85; transform: scale(1.05); }
}

.hero__frame {
  z-index: 1;
}

.hero__frame::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 46px;
  border: 1px solid rgba(109, 66, 212, 0.15);
}

.hero__frame::after {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 52px;
  border: 1px solid rgba(58, 111, 196, 0.08);
}

.hero__frame img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-md), 0 0 40px var(--primary-glow);
}

.hero__orb-center { display: none; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Info strip (MotionSites feature row) ── */

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.info-strip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-strip__item {
  padding: 1.15rem 1.25rem;
  background: var(--surface-raised);
  text-align: center;
}

.info-strip__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.info-strip__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Content zone ── */

.content {
  flex: 1;
  padding-bottom: 4rem;
}

.content .container {
  position: relative;
}

/* ── Layout split + TOC ── */

.layout-split {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.toc.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toc__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.toc__list { list-style: none; }

.toc__list a {
  display: block;
  padding: 0.38rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
  cursor: pointer;
}

.toc__list a:hover {
  color: var(--ink);
  background: var(--surface-inset);
}

.toc__list a.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

/* ── Main card ── */

.glass-card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.glass-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card + .glass-card { margin-top: 1.5rem; }

/* ── Document header ── */

.doc-head {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.doc-head__lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.75rem;
}

.doc-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  padding: 0;
  border: none;
}

.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.prose > h2 + .section-label { display: none; }

/* ── Callouts ── */

.callout {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--border);
}

.callout__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
}

.callout__icon svg {
  width: 18px;
  height: 18px;
}

.callout__body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.callout__body strong {
  color: var(--ink);
  font-weight: 600;
}

.callout--mint {
  background: rgba(58, 111, 196, 0.06);
  border-color: rgba(58, 111, 196, 0.18);
}

.callout--mint .callout__icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.callout--violet {
  background: var(--primary-soft);
  border-color: rgba(109, 66, 212, 0.18);
}

.callout--violet .callout__icon {
  background: rgba(109, 66, 212, 0.15);
  color: var(--primary);
}

/* ── Rights grid ── */

.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
  list-style: none;
}

.rights-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rights-grid li:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.rights-grid li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}

.rights-grid strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.rights-grid a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Page cross-nav ── */

.page-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.page-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  cursor: pointer;
}

.page-nav__link:hover {
  border-color: rgba(109, 66, 212, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-nav__link.is-current {
  border-color: rgba(109, 66, 212, 0.35);
  background: var(--primary-soft);
}

.page-nav__link span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-nav__link strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
}

.page-nav__link.is-current strong { color: var(--primary); }

/* ── Prose ── */

.prose .updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 2rem;
  padding: 0.35rem 0.8rem;
  background: var(--surface-inset);
  border-radius: var(--radius-xs);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.9rem;
  padding-top: 2rem;
  padding-left: 1rem;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-height) + 1.25rem);
}

.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  color: var(--ink-soft);
  margin: 0 0 1rem 1.2rem;
  font-size: 0.9375rem;
}

.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--primary); }

.prose a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(109, 66, 212, 0.35);
  cursor: pointer;
}

.prose a:hover {
  text-decoration-color: var(--primary);
  color: var(--primary-deep);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Bento grid ── */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bento__item {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  overflow: hidden;
}

.bento__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}

.bento__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bento__item:hover::after { opacity: 1; }

.bento__item--wide { grid-column: span 2; }

.bento__item--accent {
  background: linear-gradient(145deg, #f3effb 0%, #eef3fb 100%);
}

.bento__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.bento__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.bento__icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.bento__item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.bento__item p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}

.bento__email {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.bento__email:hover { text-decoration: underline; }

/* ── FAQ ── */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item:hover {
  border-color: var(--border-strong);
}

.faq__item[open] {
  background: var(--surface-raised);
  border-color: rgba(109, 66, 212, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--surface-inset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235e586c' stroke-width='2'%3E%3Cpath stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-spring), background 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--primary-soft);
  border-color: transparent;
}

.faq__body {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq__body a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Steps ── */

.steps {
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 4rem;
  margin-bottom: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  counter-increment: step;
  transition: background 0.2s, border-color 0.2s;
}

.steps li:hover {
  background: var(--surface-raised);
  border-color: var(--border-strong);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gradient);
  color: white;
  border-radius: 9px;
}

.steps li strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.steps li span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ── Data pills ── */

.data-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.5rem;
}

.data-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.data-pill svg {
  width: 13px;
  height: 13px;
  color: #b54a4a;
}

/* ── Alert ── */

.alert {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem 1.3rem;
  background: var(--warm-soft);
  border: 1px solid rgba(201, 111, 40, 0.22);
  border-left: 3px solid var(--warm);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.alert svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--warm);
  margin-top: 1px;
}

.alert p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

.alert strong { color: #9a4e12; }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), 0 4px 14px var(--primary-glow);
  transition: background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 6px 20px var(--primary-glow);
}

.btn svg { width: 16px; height: 16px; }

.btn--ghost {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn--danger {
  background: #b84848;
  box-shadow: var(--shadow-sm), 0 4px 14px rgba(184, 72, 72, 0.25);
}

.btn--danger:hover { background: #a33c3c; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── Contact card ── */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, #f0ebfa 0%, #e8eef8 100%);
  border: 1px solid rgba(109, 66, 212, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-card__text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.contact-card__text p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Footer — dark anchor ── */

.footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2.25rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 196, 212, 0.5);
  margin-bottom: 0.85rem;
}

.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__col-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.footer__col-links a:hover { color: #fff; }

.footer__inner {
  display: block;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(200, 196, 212, 0.65);
  margin-top: 0.35rem;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(200, 196, 212, 0.55);
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Mobile nav ── */

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(221, 217, 230, 0.96);
  backdrop-filter: blur(10px);
  padding: calc(var(--nav-height) + 2.5rem) 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav__mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile a {
  display: block;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav__mobile a:hover,
.nav__mobile a.is-active {
  color: var(--primary);
  border-color: rgba(109, 66, 212, 0.3);
  background: var(--primary-soft);
}

.cursor-glow { display: none !important; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .info-strip { grid-template-columns: 1fr; }
  .info-strip__item { border-bottom: 1px solid var(--border); }
  .info-strip__item:last-child { border-bottom: none; }
  .rights-grid { grid-template-columns: 1fr; }
  .page-nav { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .layout-split { grid-template-columns: 1fr; }
  .toc { display: none; }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero__inner { max-width: none; margin-inline: auto; }
  .hero__meta { justify-content: center; }
  .hero__visual {
    margin-inline: auto;
    width: 180px;
    height: 180px;
  }
  .hero__frame img { width: 80px; height: 80px; }
}

@media (max-width: 768px) {
  .nav__links-wrap { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }
  .hero-panel { margin-top: calc(var(--nav-height) + 1.25rem); padding: 2.5rem 0 2rem; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; }
  .contact-card { flex-direction: column; text-align: center; }
  .footer__tagline { text-align: center; }
}

@media (max-width: 480px) {
  .glass-card { padding: 1.5rem; border-radius: var(--radius-lg); }
  .cta-row { flex-direction: column; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .glass-card, .toc, .hero__badge, .hero__title, .hero__subtitle, .hero__meta, .hero__visual {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__glow { animation: none; }
}
