/* ============ Tokens ============ */
:root {
  --navy-950: #06101d;
  --navy-900: #0a1a2f;
  --navy-800: #10253f;
  --navy-700: #1a3556;
  --ink: #0e1b2c;
  --ink-2: #3b4b5f;
  --ink-3: #6a7a8e;
  --line: #e2e8ef;
  --line-dark: rgba(148, 190, 210, 0.16);
  --paper: #ffffff;
  --paper-2: #f5f8fb;
  --teal: #14b8a6;
  --teal-2: #2dd4bf;
  --teal-ink: #0f766e;
  --amber: #f59e0b;
  --danger: #dc2626;
  --ok: #059669;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(14, 27, 44, .06), 0 8px 24px rgba(14, 27, 44, .06);
  --shadow-lg: 0 30px 60px -20px rgba(6, 16, 29, .35);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--teal); color: #042f2e; box-shadow: 0 8px 24px -8px rgba(20, 184, 166, .6); }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px;
  display: flex; align-items: center; color: #fff;
  transition: background .3s, box-shadow .3s, color .3s, height .3s;
}
.nav.scrolled { background: rgba(6, 16, 29, .82); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line-dark); height: 64px; }
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; }
.brand b { color: var(--teal-2); font-weight: 800; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-login { font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .85); padding: 8px 6px; }
.nav-login:hover { color: #fff; }

.lang { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.lang button {
  border: 0; background: none; padding: 4px 10px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: rgba(255, 255, 255, .7); border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy-900); }
.lang.light { background: var(--paper-2); border-color: var(--line); }
.lang.light button { color: var(--ink-3); }
.lang.light button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }

.menu-btn { display: none; margin-left: 4px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: none; color: #fff; cursor: pointer; }
.menu-btn svg { margin: auto; width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-links, .nav-right .nav-login, .nav-right .btn { display: none; }
  .menu-btn { display: grid; }
  .nav.open { background: var(--navy-950); height: 100dvh; align-items: flex-start; padding-top: 14px; }
  .nav.open .container { flex-wrap: wrap; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; order: 3; width: 100%; margin: 28px 0 0; gap: 0; font-size: 20px;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: #fff; }
  .nav.open .mobile-cta { display: flex; }
}
.mobile-cta { display: none; order: 4; width: 100%; gap: 12px; margin-top: 24px; flex-direction: column; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: min(100vh, 920px); min-height: min(100svh, 920px);
  display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy-950);
  padding: 120px 0 90px;
}
.hero-video, .section-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { object-position: 70% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 16, 29, .96) 0%, rgba(6, 16, 29, .82) 34%, rgba(6, 16, 29, .15) 70%, rgba(6, 16, 29, .35) 100%),
    linear-gradient(0deg, rgba(6, 16, 29, 1) 0%, rgba(6, 16, 29, 0) 22%);
}
@media (max-width: 900px) {
  .hero::after { background: linear-gradient(180deg, rgba(6, 16, 29, .72) 0%, rgba(6, 16, 29, .88) 60%, rgba(6, 16, 29, 1) 100%); }
  .hero-video { object-position: 78% 50%; }
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--teal-2);
  background: rgba(45, 212, 191, .08); border: 1px solid rgba(45, 212, 191, .25);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 4px rgba(45, 212, 191, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--teal-2), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: rgba(226, 236, 245, .78); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font-size: 13.5px; color: rgba(226, 236, 245, .6); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal-2); }
.video-toggle {
  position: absolute; right: 24px; bottom: 24px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(6, 16, 29, .5); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.video-toggle svg { width: 16px; height: 16px; }

/* ============ Audience strip ============ */
.audience { background: var(--navy-950); color: rgba(226, 236, 245, .55); border-top: 1px solid var(--line-dark); }
.audience .container { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.audience small { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.audience ul { display: flex; flex-wrap: wrap; gap: 12px 34px; list-style: none; margin: 0; padding: 0; font-family: var(--display); font-weight: 700; font-size: 16px; color: rgba(226, 236, 245, .85); }

/* ============ Sections ============ */
.section { padding: 120px 0; }
.section.alt { background: var(--paper-2); }
@media (max-width: 760px) { .section { padding: 80px 0; } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.section h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--ink-2); }

/* ============ Compare slider ============ */
.compare-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .compare-grid { grid-template-columns: 1fr; gap: 40px; } }
.compare {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-950);
  box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y; --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a2f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/20px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-tag {
  position: absolute; top: 16px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(6, 16, 29, .7); color: #fff; backdrop-filter: blur(6px); pointer-events: none;
}
.compare-tag.l { left: 16px; }
.compare-tag.r { right: 16px; color: var(--teal-2); }
.compare-legend { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: rgba(255, 255, 255, .85); pointer-events: none; }
.compare-legend span { display: inline-flex; align-items: center; gap: 6px; }
.compare-legend i { width: 10px; height: 10px; border-radius: 3px; }
.caption { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.feature-list { display: grid; gap: 26px; margin-top: 32px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(20, 184, 166, .1); color: var(--teal-ink); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 32px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--teal-ink); letter-spacing: .1em; }
.step h3 { font-size: 22px; margin: 18px 0 10px; }
.step p { color: var(--ink-2); }
.step-visual { height: 150px; margin: -8px -8px 22px; border-radius: 14px; background: var(--navy-950); position: relative; overflow: hidden; display: grid; place-items: center; }
.step-visual svg { width: 100%; height: 100%; }
.step .time { display: inline-flex; margin-top: 18px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); }

/* ============ Conditions ============ */
.conditions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1060px) { .conditions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .conditions { grid-template-columns: 1fr; } }
.cond { padding: 28px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cond:hover { border-color: rgba(20, 184, 166, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.cond .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); color: var(--teal-2); display: grid; place-items: center; }
.cond .ic svg { width: 26px; height: 26px; }
.cond h3 { font-size: 20px; margin-top: 6px; }
.cond p { color: var(--ink-2); font-size: 15px; }
.cond ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.cond li { display: flex; gap: 8px; }
.cond li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 9px; }
.chip { align-self: flex-start; margin-top: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(20, 184, 166, .1); color: var(--teal-ink); }
.chip.soon { background: var(--paper-2); color: var(--ink-3); }

/* ============ Report ============ */
.report-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .report-wrap { grid-template-columns: 1fr; } }
.report { position: relative; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; }
.report::before {
  content: attr(data-watermark); position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg);
  font-family: var(--display); font-weight: 800; font-size: 86px; letter-spacing: .1em; color: rgba(14, 27, 44, .045); pointer-events: none;
}
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; background: var(--navy-900); color: #fff; }
.report-head .brand { font-size: 16px; }
.report-head .brand-mark { width: 24px; height: 24px; }
.report-head small { color: rgba(255, 255, 255, .6); font-size: 12px; text-align: right; }
.report-body { padding: 22px 24px 24px; display: grid; gap: 18px; }
.report-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12.5px; }
.report-meta div { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; }
.report-meta span { display: block; color: var(--ink-3); font-size: 11.5px; }
.report-meta b { font-weight: 600; }
.report-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
@media (max-width: 560px) { .report-row { grid-template-columns: 1fr; } .report-meta { grid-template-columns: 1fr 1fr; } }
.report-thumb { border-radius: 12px; overflow: hidden; background: var(--navy-950); aspect-ratio: 1; }
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }
.finding { border-left: 3px solid var(--amber); padding: 4px 0 4px 14px; }
.finding h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.finding h4 .flag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, .14); color: #b45309; font-family: var(--font); letter-spacing: 0; }
.finding p { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.vol-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vol-table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 0 0 8px; }
.vol-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.vol-table td:not(:first-child), .vol-table th:not(:first-child) { text-align: right; }
.bar { position: relative; display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; margin-left: 8px; }
.bar i { position: absolute; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--teal-ink); }
.bar::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; bottom: 0; background: rgba(20, 184, 166, .25); border-radius: 3px; }
.report-foot { padding: 12px 24px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--paper-2); }

.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 1px; }

/* ============ Dark video section ============ */
.dark-section { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.dark-section .section-video { object-position: 100% 50%; opacity: .9; }
.dark-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(6, 16, 29, .97) 0%, rgba(6, 16, 29, .9) 45%, rgba(6, 16, 29, .35) 100%);
}
@media (max-width: 900px) { .dark-section::before { background: rgba(6, 16, 29, .88); } }
.dark-section .container { position: relative; z-index: 1; }
.dark-section .kicker { color: var(--teal-2); }
.dark-section .section-head p { color: rgba(226, 236, 245, .7); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 700px; }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 26px; border-radius: var(--radius); background: rgba(16, 37, 63, .55); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); }
.pillar .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(45, 212, 191, .12); color: var(--teal-2); margin-bottom: 16px; }
.pillar .ic svg { width: 21px; height: 21px; }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { color: rgba(226, 236, 245, .68); font-size: 15px; }

/* ============ Pilot / Contact ============ */
.pilot { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .pilot { grid-template-columns: 1fr; gap: 40px; } }
.contact-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .card { padding: 22px; } }

/* ============ Forms ============ */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-toggle svg { width: 18px; height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.check a { color: var(--teal-ink); text-decoration: underline; }
.form-msg { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.form-msg.show { display: block; }
.form-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pw-meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 0 24px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--teal-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ============ Footer ============ */
.footer { background: var(--navy-950); color: rgba(226, 236, 245, .65); padding: 72px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.disclaimer { margin-top: 48px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-dark); font-size: 13px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; font-size: 13px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Auth pages ============ */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-side { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .section-video { object-position: 70% 50%; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 29, .55) 0%, rgba(6, 16, 29, .2) 40%, rgba(6, 16, 29, .92) 100%); }
.auth-side > :not(video) { position: relative; z-index: 1; }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-side blockquote { margin: 0; max-width: 460px; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.3; }
.auth-side blockquote + p { margin-top: 14px; color: rgba(226, 236, 245, .65); max-width: 440px; }
.auth-main { display: flex; flex-direction: column; padding: 32px 24px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-top .brand { color: var(--ink); }
.auth-form { width: 100%; max-width: 460px; margin: auto; padding: 40px 0; }
.auth-form h1 { font-size: 32px; font-weight: 800; }
.auth-form > p { color: var(--ink-2); margin: 10px 0 30px; }
.auth-alt { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.auth-alt a { color: var(--teal-ink); font-weight: 600; }

/* ============ Dashboard ============ */
.app-top { background: var(--navy-950); color: #fff; }
.app-top .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.app-top .spacer { flex: 1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #042f2e; font-weight: 800; font-size: 14px; }
.app-main { padding: 48px 0 80px; background: var(--paper-2); min-height: calc(100vh - 64px); }
.app-main h1 { font-size: 30px; font-weight: 800; }
.app-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
.status { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: #fffbeb; border: 1px solid #fde68a; color: #78350f; margin-top: 24px; }
.status svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.dropzone { margin-top: 18px; border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; color: var(--ink-3); background: var(--paper-2); }
.dropzone svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--ink-3); }
.dropzone b { color: var(--ink); display: block; margin-bottom: 4px; }
.kv { display: grid; gap: 14px; margin-top: 16px; font-size: 14.5px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
body.auth-pending .app-main { visibility: hidden; }

/* ============ Stroke: stats + report pills ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 30px 28px; border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 70%); }
.stat b { display: block; font-family: var(--display); font-size: clamp(36px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: var(--teal-2); line-height: 1.05; }
.stat:nth-child(2) b { color: #fbbf24; }
.stat p { margin-top: 10px; color: rgba(226, 236, 245, .75); font-size: 15.5px; }
#why .caption { margin-top: 18px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: rgba(5, 150, 105, .12); color: #047857; }
.pill.warn { background: rgba(245, 158, 11, .16); color: #b45309; }
.finding h4 .flag { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.finding { border-left-color: var(--danger); }
.compare-legend i { box-sizing: border-box; }

/* ============ Registration: "check your email" screen ============ */
.auth-done { text-align: left; outline: none; }
.done-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(20, 184, 166, .12); color: var(--teal-ink); margin-bottom: 22px; }
.done-icon svg { width: 32px; height: 32px; }
.auth-done > p { color: var(--ink-2); margin: 10px 0 0; }
.auth-done > p b { color: var(--ink); overflow-wrap: anywhere; }
.done-steps { margin: 24px 0 14px; padding: 18px 20px 18px 40px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; color: var(--ink-2); }
.done-steps li::marker { color: var(--teal-ink); font-weight: 700; }
.auth-done .hint { font-size: 13.5px; color: var(--ink-3); }
.auth-done .form-msg { margin-top: 14px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.done-actions .btn { flex: 1 1 200px; }
#loginResend svg { width: 18px; height: 18px; }

/* ============ AI demo ============ */
.demo-lead { color: var(--ink-2); margin-top: 10px; max-width: 720px; }
.demo-sub { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.sample { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; transition: border-color .2s, transform .2s; }
.sample:hover:not(:disabled) { border-color: var(--teal); transform: translateY(-1px); }
.sample:disabled { opacity: .55; cursor: not-allowed; }
.sample span { font-size: 13px; color: var(--ink-3); }
.upload-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; align-items: end; }
.upload-form .btn { grid-column: 1 / -1; justify-self: start; }
.upload-form input[type=file] { height: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14px; max-width: 100%; }
@media (max-width: 560px) { .upload-form { grid-template-columns: 1fr; } }
.ok-text { color: var(--ok); }
.demo-result { margin-top: 24px; }
.progress-row { display: flex; align-items: center; gap: 14px; }
.progress-row + .form-msg.show { margin-top: 14px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.viewer-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; align-items: start; }
@media (max-width: 900px) { .viewer-wrap { grid-template-columns: 1fr; } }
.stack { position: relative; aspect-ratio: 1; background: #000; border-radius: var(--radius); overflow: hidden; touch-action: pan-y; }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stack .side, .stack .slice-no { position: absolute; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 700; }
.side-r { left: 12px; top: 50%; } .side-l { right: 12px; top: 50%; }
.slice-no { right: 12px; bottom: 10px; font-weight: 500 !important; }
#slider { width: 100%; margin-top: 14px; accent-color: var(--teal); }
.viewer-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.tog { align-items: center; cursor: pointer; }
.tog input { margin-top: 0; }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sw.ai { background: #ef4444; } .sw.doc { background: #22c55e; }
.upload-form .field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* ============ AI report ============ */
.report { margin-top: 24px; max-width: 900px; }
.rep-frame { width: 100%; border-collapse: collapse; }
.rep-frame td { padding: 0; vertical-align: top; }
.rep-pad { height: 0; }
@media print { .rep-pad { height: 12mm; } }
.report-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.rep-field { white-space: pre-wrap; }
.rep-field.edited { background: rgba(20, 184, 166, .08); border-radius: 4px; }
.editing .rep-field { outline: 1px dashed var(--teal); outline-offset: 3px; border-radius: 4px; cursor: text; }
.editing .rep-field:focus { outline: 2px solid var(--teal); background: rgba(20, 184, 166, .06); }
.rep-field:empty::before { content: attr(data-ph); color: var(--ink-3); }
.rep-doctext { min-height: 72px; padding: 2px 0; line-height: 24px; background: repeating-linear-gradient(transparent 0 23px, var(--line) 23px 24px); }
.rep-val { display: block; min-height: 22px; font-weight: 600; color: var(--ink); }
.rep-sign-row i { font-style: normal; }
.rep-meta .rep-pending { color: #b45309; }
.rep-meta .rep-ok { color: var(--ok); }
.rep-edited { margin-top: 6px; font-weight: 600; color: var(--ink-2); }
.rep-head { border-bottom: 2px solid var(--navy-900); padding-bottom: 14px; }
.rep-brand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ink-3); }
.rep-brand b { font-family: var(--display); font-size: 18px; color: var(--navy-900); }
.rep-head h2 { font-size: 24px; margin-top: 8px; }
.rep-warn { margin-top: 8px; font-size: 13px; font-weight: 600; color: #b45309; }
.rep-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 14px; }
.rep-meta dt { color: var(--ink-3); }
.rep-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rep-sec { margin-top: 22px; }
.rep-sec h3 { font-size: 16px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy-700); }
.rep-sec p + p { margin-top: 6px; }
.rep-flag { color: #b91c1c; font-weight: 700; }
.rep-note { font-size: 13px; color: var(--ink-3); }
.rep-imp { font-weight: 700; font-size: 17px; }
.rep-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.rep-table th, .rep-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.rep-table th { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.rep-table th, .rep-table td:not(:nth-child(3)) { white-space: nowrap; }
.rep-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 560px) { .rep-figs { grid-template-columns: 1fr; } }
.rep-figs figure { margin: 0; }
.rep-figs img { width: 100%; border-radius: 8px; background: #000; }
.rep-figs figcaption { font-size: 12px; color: var(--ink-3); margin-top: 4px; text-align: center; }
.rep-limits p { font-size: 13px; color: var(--ink-2); }
.rep-sign-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; margin-top: 28px; font-size: 13px; color: var(--ink-3); }
.rep-sign-row span { display: flex; flex-direction: column; }
.rep-sign-row i { border-top: 1px solid var(--ink-3); padding: 4px 0 0 2px; }

@media print {
  @page { size: A4; margin: 0 14mm; }   /* no top/bottom margin: no room for the browser's header/footer */
  body { background: #fff; }
  body[data-page="demo"] .app-top,
  body[data-page="demo"] .app-main h1,
  body[data-page="demo"] .demo-lead,
  body[data-page="demo"] .status,
  body[data-page="demo"] .app-grid,
  body[data-page="demo"] .demo-result,
  body[data-page="demo"] .report-actions { display: none !important; }
  body[data-page="demo"] .app-main { padding: 0; background: #fff; min-height: 0; }
  .report { margin: 0; max-width: none; border: 0; box-shadow: none; padding: 0; font-size: 12.5px; }
  .rep-head h2 { font-size: 20px; }
  .rep-sec { margin-top: 14px; }
  .rep-sec h3 { font-size: 13px; margin-bottom: 4px; }
  .rep-imp { font-size: 14px; }
  .rep-table { font-size: 12px; margin-top: 8px; }
  .rep-table th, .rep-table td { padding: 4px 8px; }
  .rep-figs { width: 72%; margin: 10px auto 0; }
  .rep-meta { grid-template-columns: max-content 1fr max-content 1fr; gap: 3px 14px; margin-top: 10px; }
  .rep-sign-row { margin-top: 18px; }
  .rep-figs figure, .rep-table tr, .rep-sign { break-inside: avoid; }
  .rep-field:empty::before { content: none; }
  .rep-field.edited { background: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============ DICOM upload ============ */
.dz-active { cursor: pointer; transition: border-color .2s, background .2s; }
.dz-active.over { border-color: var(--teal); background: rgba(20, 184, 166, .06); }
.dz-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dz-buttons label { cursor: pointer; }
.dz-status { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.nifti { margin-top: 18px; }
.nifti summary { cursor: pointer; color: var(--ink-3); font-size: 14px; }
.patient-local { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.patient-local b { color: var(--ink); margin-right: 6px; }
