/* Mantle Medical — "Midnight Precision"
   Dark-first. One light chapter (.band--light). No inline styles anywhere (CSP). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #07110F;
  --bg-deep: #040B09;
  --surface: #0C1916;
  --surface-2: #11211D;

  --ink: #E6F0EC;
  --ink-strong: #F2F8F5;
  --ink-2: #A9BDB7;
  --ink-nav: #B4C7C1;
  --ink-soft: #C9D8D3;
  --muted: #8AA39C;       /* 7.1:1 on --bg, 6.2:1 on --surface-2 */
  --faint: #3E534D;       /* decorative only */
  --ph-line: #4E655F;

  --line: rgba(220, 255, 240, 0.08);
  --line-2: rgba(220, 255, 240, 0.12);
  --line-3: rgba(220, 255, 240, 0.18);
  --fill: rgba(220, 255, 240, 0.08);

  --accent: #5FE3B6;
  --on-accent: #03100B;
  --on-accent-2: #0A2A20;
  --accent-soft: color-mix(in oklch, var(--accent) 16%, transparent);

  --danger: #FF9C8F;      /* 8.9:1 on --surface */

  --light-bg: #F1F4F1;
  --light-ink: #0B1513;
  --light-muted: #4A5C57; /* 6.4:1 on --light-bg */
  --light-line: rgba(11, 21, 19, 0.14);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: 32px;
  --header-h: 72px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: color-mix(in oklch, var(--accent) 35%, transparent); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.h-display {
  font-weight: 500; font-size: clamp(40px, 4.6vw, 56px); line-height: 1;
  letter-spacing: -0.045em; color: var(--ink-strong);
  text-wrap: balance;
}
.lead { color: var(--ink-2); }

/* Placeholder / confirm tags: dashed underline mono text */
.tag {
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--muted); border-bottom: 1px dashed var(--ph-line);
  line-height: 1.4; white-space: normal; text-transform: none;
  vertical-align: baseline;
}
.band--light .tag { color: var(--light-muted); border-bottom-color: #8FA19C; }
.tile--accent .tag { color: var(--on-accent-2); border-bottom-color: var(--on-accent-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; line-height: 1.2;
  border: 1px solid transparent; text-align: center;
  transition: filter .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn--ghost { border-color: var(--line-3); color: var(--ink); }
.btn--ghost:hover { background: rgba(230, 240, 236, 0.08); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.lnk {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500;
}
.lnk svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lnk:hover { text-decoration: underline; text-underline-offset: 4px; }
.lnk:hover svg { transform: translateX(2px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { width: 28px; height: 28px; flex: none; }
/* Selectors must target the <symbol> originals: <use> clones match against them. */
.m-outer { stroke: var(--accent); }
.m-inner { stroke: var(--ink); stroke-opacity: .45; }
.m-core { fill: var(--ink); }
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.brand__sub { color: var(--ink-2); font-weight: 500; }
.brand:hover .brand__name { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 15, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled { background: rgba(7, 17, 15, 0.86); border-bottom-color: var(--line-2); }
/* backdrop-filter makes the header the containing block for the fixed menu; drop it while open. */
.site-header.menu-is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-nav); transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: #fff; background: rgba(230, 240, 236, 0.05); }
.site-nav a[aria-current] { color: var(--ink-strong); }
.site-nav a[aria-current]::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px;
}
.site-menu__cta { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid var(--line-3); background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 500;
}
.nav-toggle:hover { background: rgba(230, 240, 236, 0.06); }
.nav-toggle__icon { width: 18px; height: 18px; }
.nav-toggle__bar { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .25s var(--ease), opacity .2s; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-menu {
    display: none;
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    padding: 24px var(--gutter) 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    flex-direction: column; gap: 24px;
  }
  .site-menu.is-open { display: flex; }
  .site-menu::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(220,255,240,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(220,255,240,0.035) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: linear-gradient(#000, transparent 70%);
    mask-image: linear-gradient(#000, transparent 70%);
  }
  .site-menu > * { position: relative; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; font-size: 26px; letter-spacing: -0.03em; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: flex; min-height: 64px; padding: 0 4px; border-radius: 0; color: var(--ink); font-weight: 500; }
  .site-nav a:hover { background: transparent; color: var(--accent); }
  .site-menu__cta { display: inline-flex; align-self: flex-start; }
  .site-menu .site-menu__note { display: block; }
}
.site-menu__note { display: none; font-size: 14px; color: var(--muted); }
@media (min-width: 961px) {
  .site-menu { display: flex; align-items: center; }
}
@media (max-width: 479px) {
  .header-cta { display: none; }
}

/* ---------- Grid backdrops ---------- */
.gridlines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(220,255,240,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,255,240,0.045) 1px, transparent 1px);
  background-size: 80px 80px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 40%, transparent 100%);
}
.gridlines--cols {
  background-image: linear-gradient(90deg, rgba(220,255,240,0.04) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: clip; }
.hero__grid {
  position: relative;
  padding-top: 88px; padding-bottom: 112px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 32px; }
.hero h1 {
  font-weight: 500; font-size: clamp(52px, 6.9vw, 104px); line-height: 0.94; letter-spacing: -0.055em;
  color: var(--ink-strong);
}
.hero .lead { max-width: 480px; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.trustline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-size: 14px; color: var(--muted);
}
.trustline li { display: inline-flex; align-items: center; gap: 8px; }
.trustline .sep { color: var(--faint); }

@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: 1fr; gap: 72px; padding-top: 72px; padding-bottom: 88px; }
  .hero .lead { max-width: 560px; }
}
@media (max-width: 720px) {
  .trustline { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trustline .sep { display: none; }
  .hero__grid { padding-top: 48px; padding-bottom: 64px; gap: 48px; }
  .hero__text { gap: 26px; }
  .hero h1 { font-size: clamp(46px, 13.4vw, 64px); }
  .hero .lead { font-size: 18px; }
  .hero .btn-row .btn { flex: 1 1 auto; }
}

/* Product composite (sample UI) */
.hero-ui { position: relative; min-height: 540px; }
.hero-ui__glow {
  position: absolute; left: -10%; right: -10%; top: -12%; bottom: -12%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--accent) 9%, transparent), transparent 100%);
}
.hero-ui__caption {
  position: absolute; left: 6%; top: -32px;
  font-size: 13px; color: var(--muted);
}
.win {
  position: relative; margin-left: 6%;
  border-radius: 14px; background: #0B1715; border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -24px rgba(0,0,0,0.7);
  overflow: hidden;
}
.win__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.win__title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.pill { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.micro { font-size: 12px; color: var(--muted); }
.win__tabs { display: flex; gap: 6px; padding: 12px 18px; border-bottom: 1px solid rgba(220,255,240,0.06); font-size: 12px; }
.win__tabs span { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.win__tabs .is-active { background: rgba(220,255,240,0.09); color: var(--ink); }
.q-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid rgba(220,255,240,0.06);
}
.q-row:last-child { border-bottom: 0; }
.q-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.q-row__name { font-size: 14px; font-weight: 500; }
.q-row__meta { font-size: 12.5px; color: var(--muted); }
.q-row--done .q-row__name { text-decoration: line-through; text-decoration-color: rgba(230,240,236,0.4); color: var(--ink-2); }
.q-row--done .avatar { opacity: .7; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill); color: var(--ink-soft); font-size: 11px; font-weight: 600;
}
.avatar--accent { background: color-mix(in oklch, var(--accent) 18%, #0E1C18); color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 6px;
}
.chip svg { width: 12px; height: 12px; }
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.chip--outline { border: 1px solid rgba(220,255,240,0.16); color: var(--ink); }
.chip--quiet { border: 1px solid rgba(220,255,240,0.16); color: var(--ink-nav); }
.chip--plain { color: var(--ink-nav); padding-left: 0; padding-right: 0; }
.chip--round { border-radius: 999px; gap: 6px; }
.chip--round svg { width: 11px; height: 11px; }
.win__spacer { height: 112px; }

.float-card {
  border: 1px solid rgba(220,255,240,0.14); background: #0E1B18;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -16px rgba(0,0,0,0.75);
  display: flex; flex-direction: column;
}
.float-card--record {
  position: absolute; left: 0; bottom: -8px; width: 300px;
  border-radius: 12px; padding: 16px; gap: 14px;
}
.float-card--spark {
  position: absolute; right: -28px; bottom: -36px; width: 232px;
  border-radius: 12px; padding: 14px 16px; gap: 8px;
}
.float-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.float-card__head--base { align-items: baseline; }
.float-card__body { display: flex; flex-direction: column; gap: 4px; }
.float-card__title { font-size: 15px; font-weight: 500; }
.float-card__sub { font-size: 12.5px; color: var(--muted); }
.stack { display: flex; align-items: center; }
.stack span:not(.stack__note) {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #1A2E29; border: 2px solid #0A1613; font-size: 10px; color: var(--ink-soft);
}
.stack span + span:not(.stack__note) { margin-left: -6px; }
.stack__note { margin-left: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.spark__value { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.spark__value small { font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 6px; font-weight: 400; }
.spark__line { width: 100%; height: 40px; }
.spark__line .ln { stroke: var(--accent); }
.spark__line .base { stroke: rgba(220,255,240,0.1); }

@media (max-width: 1060px) {
  .hero-ui { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 720px) {
  .hero-ui { min-height: 0; }
  .hero-ui__glow { display: none; }
  .win { margin-left: 0; }
  .win__spacer { display: none; }
  .float-card--record, .float-card--spark { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; margin-top: 16px; }
  .hero-ui__caption { position: static; margin-top: 14px; }
  .win__bar .micro { display: none; }
}

/* Hero motion: the product panels fade in once. Nothing loops. */
@keyframes mm-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .win { animation: mm-in .6s var(--ease) .05s both; }
  .float-card--record { animation: mm-in .6s var(--ease) .2s both; }
  .float-card--spark { animation: mm-in .6s var(--ease) .3s both; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0 112px; }
.section__head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px; align-items: end; margin-bottom: 48px;
}
.section__head-main { display: flex; flex-direction: column; gap: 20px; }
.section__head-aside { display: flex; flex-direction: column; gap: 12px; max-width: 440px; color: var(--ink-2); }
@media (max-width: 720px) {
  .section { padding: 80px 0 72px; }
  .section__head { margin-bottom: 36px; gap: 18px; }
}

/* Light band: three routes */
.band--light { background: var(--light-bg); color: var(--light-ink); }
.band--light a:hover { color: var(--light-ink); }
.band--light :focus-visible { outline-color: #0E6B4F; }
.routes { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.routes__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.routes__head .eyebrow { color: var(--light-muted); }
.routes__head h2 { font-weight: 500; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.1; }
.routes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--light-line); }
.route { padding: 28px 28px 8px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid rgba(11,21,19,0.1); }
.route:first-child { padding-left: 0; }
.route:last-child { padding-right: 0; border-right: 0; }
.route__who { font-size: 14px; font-weight: 500; color: var(--light-muted); }
.route__text { font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; text-wrap: pretty; }
.route .lnk { margin-top: auto; }
@media (max-width: 900px) {
  .routes__list { grid-template-columns: 1fr; }
  .route, .route:first-child, .route:last-child { padding: 24px 0 8px; border-right: 0; border-bottom: 1px solid rgba(11,21,19,0.1); }
  .route:last-child { border-bottom: 0; }
  .routes { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(220,255,240,0.09);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 200px;
  transition: border-color .25s var(--ease);
}
.tile:hover { border-color: var(--line-3); }
.tile h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile__kicker { font-size: 13px; font-weight: 500; color: var(--muted); }
.tile__kicker--accent { color: var(--accent); }
.tile--lg { grid-column: span 4; grid-row: span 2; padding: 32px; justify-content: space-between; gap: 32px; min-height: 440px; }
.tile--lg > * { position: relative; z-index: 1; }
.tile--lg h3 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; }
.tile--lg p { font-size: 16px; }
.tile__intro { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.tile--sm { grid-column: span 2; min-height: 212px; }
.tile--half { grid-column: span 3; }
.tile--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; justify-content: space-between; }
.tile--accent:hover { border-color: transparent; }
.tile--accent .tile__kicker { color: var(--on-accent-2); }
.tile--accent h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.tile--accent p { color: var(--on-accent-2); }
.tile__icon { width: 28px; height: 28px; }
.tile__icon .s { stroke: var(--accent); }
.tile__icon .f { fill: var(--accent); }
.tile__stack { display: flex; flex-direction: column; gap: 8px; }
.bubble {
  align-self: flex-start; max-width: 92%;
  border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--line);
  padding: 12px 14px; font-size: 13.5px; line-height: 1.45; color: #D5E2DE;
}
.bubble-meta { font-size: 12px; color: var(--muted); }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.mini { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mini__title { font-size: 14px; font-weight: 500; }
.checks { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.checks li { display: flex; gap: 8px; align-items: center; }
.checks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.checks li.is-open::before { background: transparent; border: 1px solid var(--muted); }
.bars { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.bars li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 22px; gap: 10px; align-items: center; color: var(--ink-2); }
.bars .n { font-variant-numeric: tabular-nums; text-align: right; }
.bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar i.w72 { width: 72%; }
.bar i.w46 { width: 46%; opacity: .7; }
.bar i.w28 { width: 28%; opacity: .5; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .tile--lg, .tile--sm, .tile--half { grid-column: auto; grid-row: auto; min-height: 0; }
  .tile--lg { padding: 24px; gap: 28px; }
  .tile { padding: 24px; }
}

/* How it works */
.how { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 28px 32px; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(220,255,240,0.09);
}
.step__num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line-3); color: var(--ink); font-size: 14px; font-weight: 500;
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.step__num { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 45%, transparent); }
.step__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.how__cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.how__cta p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step__num { margin-bottom: 8px; }
}

/* Privacy chapter */
.privacy { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy .section__head { margin-bottom: 56px; }
.priv-list { border-top: 1px solid var(--line-2); }
.priv-row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  padding: 28px 0; border-bottom: 1px solid rgba(220,255,240,0.1); align-items: baseline;
  transition: background-color .2s;
}
.priv-row:hover { background: rgba(230, 240, 236, 0.025); }
.priv-row__key { font-size: 15px; font-weight: 500; color: var(--accent); }
.priv-row__claim { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; text-wrap: pretty; }
.priv-row__detail { color: var(--ink-2); font-size: 16px; }
.privacy__foot { margin-top: 56px; }
@media (max-width: 960px) {
  .priv-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .priv-row__claim { font-size: 21px; }
}

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq__head { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head p { color: var(--ink-2); }
.faq__head a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.accordion { border-top: 1px solid var(--line-2); }
.accordion__item { border-bottom: 1px solid rgba(220,255,240,0.1); }
.accordion__heading { font-size: inherit; font-weight: inherit; }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 20px 0; background: none; border: 0; text-align: left;
  font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink);
  border-radius: 0;
}
.accordion__btn:hover { color: #fff; }
.accordion__btn:focus-visible { outline-offset: 4px; border-radius: 6px; }
.accordion__icon {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-3); transition: background-color .2s, border-color .2s, transform .3s var(--ease);
}
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: currentColor; border-radius: 1px; transition: transform .3s var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__btn[aria-expanded="true"] .accordion__icon { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.accordion__btn[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }
.accordion__panel { display: grid; grid-template-rows: 1fr; }
.js .accordion__panel { grid-template-rows: 0fr; transition: grid-template-rows .26s var(--ease); }
.js .accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__inner { overflow: hidden; }
.accordion__inner p { padding: 0 56px 28px 0; color: var(--ink-2); max-width: 680px; }
.accordion__inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { position: static; }
  .accordion__btn { font-size: 17px; min-height: 64px; }
  .accordion__inner p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .accordion__panel { transition: none; }
}

/* Contact */
.contact { position: relative; border-top: 1px solid var(--line); overflow: clip; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact__intro h2 {
  font-weight: 500; font-size: clamp(48px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.05em; color: var(--ink-strong);
}
.contact__intro .lead { max-width: 460px; }
.next { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-2); max-width: 480px; }
.next__title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.next li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.next li > span:first-child { font-size: 14px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 1px; }
.contact__meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(220,255,240,0.03);
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.notice strong { color: var(--ink); font-weight: 500; }

.form-wrap { position: relative; }
.form-panel {
  position: relative;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.7);
  padding: 32px;
}
.form-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-panel__title { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__req { font-size: 13px; color: var(--muted); }
.req { color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-3); background: rgba(4, 11, 9, 0.6);
  color: var(--ink); font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--surface); color: var(--ink); }
.field ::placeholder { color: #6F8781; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(220,255,240,0.28); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 30%, transparent);
  background-color: rgba(4, 11, 9, 0.85);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklch, var(--danger) 30%, transparent); }
.field__help { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__error { display: flex; gap: 6px; align-items: baseline; font-size: 13.5px; color: var(--danger); }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--danger); color: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 600; transform: translateY(2px); }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.field--check input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; border-radius: 6px;
  display: grid; place-items: center; cursor: pointer;
}
.field--check input::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent);
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease);
}
.field--check input:checked { background: var(--accent); border-color: var(--accent); }
.field--check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--check label { flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.field--check label a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { flex-basis: 100%; padding-left: 34px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__summary, .form__alert {
  border-radius: 12px; padding: 16px 18px; border: 1px solid color-mix(in oklch, var(--danger) 55%, transparent);
  background: color-mix(in oklch, var(--danger) 8%, transparent); font-size: 14.5px;
}
.form__summary:focus-visible { outline-offset: 2px; }
.form__summary-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.form__summary-list { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; list-style: disc; color: var(--danger); }
.form__summary-list a { color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }
.form__alert p { color: var(--ink); }
.form__alert a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 4px; }
.form__foot p { font-size: 13px; color: var(--muted); max-width: 300px; }
.form__submit { min-width: 180px; }
.form__submit[disabled] { opacity: .75; cursor: progress; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in oklch, var(--on-accent) 30%, transparent); border-top-color: var(--on-accent); }
.form__submit[aria-busy="true"] .spinner { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .form__submit[aria-busy="true"] .spinner { animation: spin .8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 0 8px; }
.form-success__icon { width: 44px; height: 44px; color: var(--accent); }
.form-success__icon circle, .form-success__icon path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.form-success p { color: var(--ink-2); }

@media (max-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 560px) {
  .form-panel { padding: 22px 18px; border-radius: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .form__foot p { max-width: none; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; align-items: center; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.site-footer__brand .brand__mark { width: 22px; height: 22px; }
.site-footer__brand .brand__name { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.site-footer__tagline { font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; margin: 0 -10px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); border-radius: 8px; }
.footer-nav a:hover { color: #fff; }
.site-footer__fine {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px 40px;
  padding-top: 24px; border-top: 1px solid rgba(220,255,240,0.06);
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
}
.site-footer__fine strong { color: var(--ink-2); font-weight: 500; }
.site-footer__fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid rgba(220,255,240,0.06);
  font-size: 13px; color: var(--muted);
}
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.site-footer__bottom a:hover { color: #fff; }

/* ---------- Subpages (legal, 404) ---------- */
.page-hero { position: relative; border-bottom: 1px solid var(--line); overflow: clip; }
.page-hero__inner { position: relative; padding-top: 88px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; max-width: 880px; margin-left: 0; }
.page-hero h1 { font-weight: 500; font-size: clamp(44px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.05em; color: var(--ink-strong); }
.page-hero .lead { font-size: 18px; max-width: 620px; }
.page-meta { font-size: 14px; color: var(--muted); }
.page-banner {
  display: flex; gap: 12px; align-items: flex-start; max-width: 720px;
  padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--ph-line); background: rgba(220,255,240,0.03);
  font-size: 14.5px; color: var(--ink-2);
}
.prose-wrap { padding-top: 72px; padding-bottom: 112px; }
.prose { max-width: 720px; display: flex; flex-direction: column; }
.prose > p:first-child { font-size: 19px; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 24px; }
.prose h2 {
  display: flex; align-items: baseline; gap: 16px;
  font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.25;
  padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line);
}
.prose h2 .n { font-size: 15px; color: var(--muted); font-weight: 500; min-width: 24px; font-variant-numeric: tabular-nums; }
.prose h2 + p { margin-top: 10px; }
.prose p { color: var(--ink-2); }
.prose p .tag { margin-right: 4px; }
.page-404 { min-height: calc(100vh - var(--header-h) - 1px); display: flex; align-items: center; }
.page-404 .page-hero__inner { padding-bottom: 112px; }

@media (max-width: 720px) {
  .page-hero__inner { padding-top: 56px; padding-bottom: 44px; }
  .prose-wrap { padding-top: 48px; padding-bottom: 80px; }
  .page-404 { min-height: 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-ui, .form-wrap, .gridlines { display: none !important; }
  body { background: #fff; color: #000; }
}
