/* ==========================================================================
   Compass: Level & Direction — website styles
   Plain CSS, no framework. Colours follow docs/assets/branding/BRAND_GUIDELINES.md
   ========================================================================== */

:root {
  /* Brand */
  --cobalt: #0055A5;
  --cobalt-light: #1F74D1;
  --cobalt-deep: #002F5E;
  --navy: #061A33;
  --ink: #070C17;
  --tint: #A6C8FF;
  --mint: #6FDBC6;
  --amber: #FFB95C;
  --north: #FF5A5F;

  /* Surfaces & text */
  --bg: var(--ink);
  --bg-raised: #0B1426;
  --glass: rgba(166, 200, 255, 0.05);
  --glass-strong: rgba(166, 200, 255, 0.09);
  --line: rgba(166, 200, 255, 0.14);
  --line-strong: rgba(166, 200, 255, 0.26);
  --text: #E8EEF8;
  --text-soft: #C3CEDF;
  --muted: #9AA8BD;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --header-h: 68px;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 116, 209, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(0, 85, 165, 0.18), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--tint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: #fff; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { color: #fff; font-weight: 700; }
code { font-size: 0.9em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--glass-strong); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--tint); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: linear-gradient(180deg, rgba(6, 26, 51, 0.55), rgba(6, 26, 51, 0.15)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--tint);
}
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.lead { font-size: var(--step-1); color: var(--text-soft); line-height: 1.6; }
.muted { color: var(--muted); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(7, 12, 23, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 12, 23, 0.88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--glass); color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover { color: #fff; background: var(--glass-strong); }
.nav-list a[aria-current="page"] { color: #fff; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); }
.nav-cta { margin-left: 8px; }
.nav-list a.btn-primary { display: inline-flex; padding: 8px 16px; color: var(--navy); background: var(--tint); box-shadow: none; }
.nav-list a.btn-primary:hover { color: var(--navy); background: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(7, 12, 23, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a { padding: 12px 16px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--tint); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(166, 200, 255, 0.55); }
.btn-primary:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: var(--glass); color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--glass-strong); color: #fff; border-color: var(--tint); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.play-btn { padding: 10px 22px 10px 18px; }
.play-btn .play-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-btn .play-text small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.play-btn .play-text span { font-size: 1.05rem; font-weight: 800; }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-soft); font-size: var(--step--1); font-weight: 600;
}
.chip svg { width: 16px; height: 16px; color: var(--mint); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.tag-mint { background: rgba(111, 219, 198, 0.14); color: var(--mint); }
.tag-amber { background: rgba(255, 185, 92, 0.14); color: var(--amber); }
.tag-tint { background: rgba(166, 200, 255, 0.14); color: var(--tint); }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius); background: var(--glass);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link:hover { border-color: var(--line-strong); background: var(--glass-strong); transform: translateY(-3px); }
.card--link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--cobalt-light), var(--cobalt) 50%, var(--cobalt-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px -8px rgba(0, 85, 165, 0.8);
}
.card-icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; text-decoration: none; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.card--link:hover .card-link svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--tint), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 600px; margin-bottom: 28px; }
.hero .chip-row { margin-top: 28px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 116, 209, 0.35), transparent 62%);
  z-index: -1;
}
.float-tag {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(11, 20, 38, 0.82); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 700; color: #fff;
}
.float-tag svg { width: 18px; height: 18px; color: var(--mint); }
.float-tag--a { left: -6%; top: 46%; }
.float-tag--b { right: -4%; bottom: 9%; }
.float-tag--b svg { color: var(--amber); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row, .hero .chip-row { justify-content: center; }
  .float-tag--a { left: 0; }
  .float-tag--b { right: 0; }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero .lead { max-width: 760px; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: var(--text-soft); }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: min(100%, 300px); margin-inline: auto;
  padding: 10px; border-radius: 42px;
  background: linear-gradient(160deg, #2a3446, #0d1320 40%, #1d2638);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow), 0 40px 80px -30px rgba(0, 85, 165, 0.6);
}
.phone img { width: 100%; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 33px; background: var(--navy); }
.phone--sm { width: min(100%, 250px); }
.phone-pair { display: flex; justify-content: center; gap: 16px; }
.phone-pair .phone { width: min(48%, 240px); padding: 8px; border-radius: 34px; }
.phone-pair .phone img { border-radius: 27px; }
.phone-pair .phone:nth-child(2) { margin-top: 48px; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: 0; }
.feature-row:nth-of-type(even) .feature-media { order: 2; }
.feature-row h2 { font-size: var(--step-3); }
.feature-row .card-icon { margin-bottom: 18px; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-of-type(even) .feature-media { order: 0; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(111, 219, 198, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FDBC6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

details.how {
  margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass);
}
details.how summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.how summary::-webkit-details-marker { display: none; }
details.how summary svg { width: 18px; height: 18px; transition: transform 0.25s; flex: none; }
details.how[open] summary svg { transform: rotate(180deg); }
details.how .how-body { padding: 0 18px 16px; color: var(--text-soft); font-size: 0.97rem; }
details.how .how-body p:last-child { margin-bottom: 0; }

.callout {
  display: flex; gap: 14px; padding: 16px 18px; margin: 1.25em 0;
  border-radius: var(--radius-sm); border: 1px solid rgba(255, 185, 92, 0.3);
  background: rgba(255, 185, 92, 0.07); color: var(--text-soft); font-size: 0.97rem;
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--amber); margin-top: 2px; }
.callout--info { border-color: rgba(166, 200, 255, 0.3); background: rgba(166, 200, 255, 0.07); }
.callout--info svg { color: var(--tint); }
.callout p:last-child { margin: 0; }

/* In-page jump nav */
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.jump-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--glass); color: var(--text-soft);
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.jump-nav a:hover { color: #fff; border-color: var(--line-strong); }
.jump-nav svg { width: 16px; height: 16px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 72px;
  border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--cobalt); color: #fff; font-weight: 800;
}
.steps h3 { margin-bottom: 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Status examples ---------- */
.status-list { display: grid; gap: 12px; margin-top: 24px; }
.status { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); }
.status .dot { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; grid-row: span 2; }
.status strong { font-size: 0.98rem; }
.status span { color: var(--muted); font-size: 0.92rem; }
.dot-amber { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.dot-red { background: var(--north); box-shadow: 0 0 12px var(--north); }
.dot-mint { background: var(--mint); box-shadow: 0 0 12px var(--mint); }

/* ---------- Gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 8px 4px 20px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; border: 1px solid var(--line); background: var(--navy); }
.gallery figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--glass); color: #fff; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--glass-strong); border-color: var(--tint); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; padding: 16px 18px 0; font-weight: 700; color: #fff; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #fff; font-weight: 700; background: rgba(166, 200, 255, 0.04); }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-soft); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 22px 20px; background: var(--bg-raised); }
.stat b { display: block; font-size: var(--step-2); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.search {
  position: relative; flex: 1 1 320px;
}
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 48px; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: var(--step-2); margin-bottom: 16px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); transition: border-color 0.2s, background 0.2s; }
.faq-item[open] { border-color: var(--line-strong); background: var(--glass-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700; color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.faq-item summary svg { width: 20px; height: 20px; flex: none; color: var(--tint); transition: transform 0.25s; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--text-soft); }
.faq-answer p:last-child, .faq-answer ul:last-child { margin-bottom: 0; }
.faq-empty { display: none; padding: 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.faq-empty.is-visible { display: block; }
mark { background: rgba(255, 185, 92, 0.3); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.95rem; color: #fff; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: rgba(7, 12, 23, 0.6); color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6C8FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
select option { background: var(--bg-raised); color: var(--text); }
input::placeholder, textarea::placeholder { color: #6E7C92; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tint); box-shadow: 0 0 0 4px rgba(166, 200, 255, 0.18); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--north); }
.field .error { display: none; color: #FF9A9D; font-size: 0.87rem; font-weight: 600; }
.field.has-error .error { display: block; }
.counter { justify-self: end; font-size: 0.82rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(111, 219, 198, 0.1); border: 1px solid rgba(111, 219, 198, 0.35); color: var(--mint); }
.form-status.err { background: rgba(255, 90, 95, 0.1); border: 1px solid rgba(255, 90, 95, 0.35); color: #FF9A9D; }
.hp { position: absolute; left: -9999px; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { display: grid; gap: 16px; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-line a { font-weight: 700; word-break: break-all; }

/* ---------- Legal / prose ---------- */
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .legal-grid { grid-template-columns: 1fr; } }
.toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.toc h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-soft); text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
.toc a:hover { color: #fff; background: var(--glass-strong); }
.toc a.is-active { color: #fff; background: rgba(0, 85, 165, 0.35); }
@media (max-width: 960px) { .toc { position: static; max-height: none; } }
.prose { max-width: 780px; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-soft); }
.prose li { margin-bottom: 0.4em; }
.prose .table-wrap { margin: 1.25em 0 1.5em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; padding: clamp(32px, 6vw, 64px); border-radius: 28px; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(166, 200, 255, 0.22), transparent 70%), linear-gradient(135deg, var(--cobalt-light), var(--cobalt) 45%, var(--cobalt-deep));
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: 0.35em; }
.cta-band p { max-width: 620px; margin: 0 auto 26px; color: #DCE8F8; font-size: var(--step-1); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding-block: 56px 32px; border-top: 1px solid var(--line); background: rgba(6, 26, 51, 0.35); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { margin-top: 14px; max-width: 340px; color: var(--muted); font-size: 0.95rem; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  background: rgba(11, 20, 38, 0.9);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .big { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px var(--tint); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .to-top, .toc, .cta-band, .skip-link { display: none !important; }
  .prose p, .prose li, td { color: #000; }
  h1, h2, h3, strong, th { color: #000; }
  a { color: #000; }
}

a.chip { text-decoration: none; }
a.chip:hover { color: #fff; border-color: var(--line-strong); }
.faq-wrap { max-width: 900px; }
