/* BomaSafe: day on the page, night only for the Night Buzzer */
:root {
  --paper: #F3F7F6;
  --bone: #E8F1F0;
  --bone-2: #DCE8E6;
  --ink: #031417;
  --ink-2: #06201F;
  --ink-3: #0B2B2D;
  --text: #0C1F21;
  --muted: #4B6164;
  --line: rgba(3, 20, 23, .11);
  --teal: #009EA9;
  --teal-ink: #00747C;
  --glow: #5CE1E6;
  --green: #10B981;
  --red: #EF4444;
  --amber: #F59E0B;
  --wa: #1FAF55;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gut: clamp(16px, 4.5vw, 40px);
  --r: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; }

/* ---------- type ---------- */
.eyebrow {
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.dark .eyebrow { color: var(--glow); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 0; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(42px, 8.4vw, 86px); }
h2 { font-size: clamp(34px, 5.6vw, 58px); }
h3 { font-size: clamp(21px, 2.3vw, 25px); letter-spacing: -.02em; line-height: 1.15; font-variation-settings: "opsz" 24; }
em.s, .s { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 .s, h2 .s { color: var(--teal); }
.dark h2 .s { color: var(--glow); }
.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--muted); max-width: 36ch; margin: 22px 0 0; }
.dark .lede { color: rgba(232, 241, 240, .72); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 18px 0 0; max-width: 58ch; }
.dark .sec-head p:not(.eyebrow) { color: rgba(232, 241, 240, .7); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--teal); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 16px/1 var(--f-ui); letter-spacing: -.005em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -10px rgba(0, 158, 169, .7);
}
.btn:hover { transform: translateY(-1px); background: #00AAB6; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 30px -12px rgba(0, 158, 169, .8); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.ghost { --bg: transparent; --fg: var(--text); box-shadow: 0 0 0 1.5px var(--line) inset; }
.btn.ghost:hover { background: rgba(3, 20, 23, .04); box-shadow: 0 0 0 1.5px rgba(3,20,23,.25) inset; }
.btn .pi { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-left: -8px; }
.btn .pi svg { width: 9px; margin-left: 2px; }
.btn small { font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.btn.wa { --bg: var(--wa); box-shadow: 0 8px 24px -12px rgba(31, 175, 85, .8); }
.btn.wa:hover { background: #22BD5D; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 30px; height: 33px; }
.wordmark { font: 750 22px/1 var(--f-display); letter-spacing: -.05em; font-variation-settings: "opsz" 48; }
.wordmark b { font-weight: inherit; color: var(--teal); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } .eyebrow { letter-spacing: .1em; } }

/* ---------- boma rings motif (round enclosure with a gate gap) ---------- */
.rings { position: absolute; pointer-events: none; }
.rings circle { fill: none; stroke: var(--teal); }

/* ---------- hero ---------- */
.hero { padding: clamp(30px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 12ch; }
@media (min-width: 901px) { .hero h1 .s { white-space: nowrap; font-size: .96em; } }
.hero h1 .s { display: block; font-size: 1.04em; line-height: .98; margin-top: .06em; }
.hero .lede { max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; font: 500 13px/1.3 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.meta-row li { display: inline-flex; align-items: center; gap: 8px; }
.meta-row li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: center; width: 100%; }
.stage .rings { inset: -14% -18%; width: 136%; height: 128%; }
.device {
  position: absolute; width: 50%; aspect-ratio: 418 / 848; border-radius: 16.3% / 8%;
  padding: 3.3%; background: linear-gradient(150deg, #3a4649 0%, #11191b 35%, #0a0f10 60%, #26312f 100%);
  box-shadow: 0 0 0 1.5px #56666a inset, 0 0 0 4px #0b1112 inset, 0 50px 90px -40px rgba(3, 20, 23, .55), 0 24px 50px -30px rgba(0, 158, 169, .45);
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 13.4% / 6.4%; background: #fff; }
.device::after { content: ""; position: absolute; inset: 3.3%; border-radius: 13.4% / 6.4%; background: linear-gradient(118deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 72%, rgba(255,255,255,.05) 100%); pointer-events: none; }
.stage .d1 { left: 2%; top: 4%; transform: rotate(-4deg); }
.stage .d2 { right: 2%; top: 13%; transform: rotate(3deg); z-index: 2; }
.ping {
  position: absolute; z-index: 3; left: 18%; top: 1%; width: min(300px, 66%);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; padding: 12px 14px; box-shadow: 0 18px 40px -18px rgba(3,20,23,.45), 0 0 0 1px rgba(3,20,23,.06);
  font-size: 13px; line-height: 1.35;
}
.ping .pt { display: flex; align-items: center; gap: 7px; font: 600 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ping .pt img { width: 14px; height: 15px; }
.ping .pt span { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ping b { display: block; font-size: 14px; }
.chip-ok {
  position: absolute; z-index: 3; right: -2%; bottom: 7%;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 500 13px/1 var(--f-ui); box-shadow: 0 16px 34px -16px rgba(3,20,23,.6);
}
.chip-ok i { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.chip-ok small { font-family: var(--f-mono); color: rgba(255,255,255,.55); margin-left: 4px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { max-width: 440px; margin-top: 10px; }
}

/* ---------- film ---------- */
.dark { background: var(--ink); color: var(--bone); }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.film { padding: clamp(60px, 9vw, 120px) 0; background: radial-gradient(120% 80% at 50% 0%, #0A3034 0%, var(--ink) 60%); overflow: hidden; }
.film .sec-head { margin-inline: auto; text-align: center; }
.film .sec-head .eyebrow { justify-content: center; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2vw, 26px); overflow: hidden; background: #020B0D;
  box-shadow: 0 0 0 1px rgba(92, 225, 230, .16), 0 60px 120px -50px rgba(0, 158, 169, .55);
}
.player video, .player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .play {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, rgba(2,11,13,0) 45%, rgba(2,11,13,.72) 100%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: clamp(16px, 4vw, 44px);
}
.player .pb {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 999px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; color: #fff; font: 600 16px var(--f-ui);
  transition: transform .3s var(--ease), background .3s;
}
.player .pb i { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(0,158,169,.25); }
.player .pb i svg { width: 14px; margin-left: 3px; }
.player .pb small { font: 500 12px var(--f-mono); color: rgba(255,255,255,.65); letter-spacing: .04em; }
.player .play:hover .pb { transform: scale(1.04); background: rgba(255,255,255,.18); }
.player.on .play, .player.on .poster { display: none; }
.film-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font: 500 13px var(--f-mono); color: rgba(232,241,240,.55); }
@media (max-width: 600px) { .player .pb small { display: none; } }

/* ---------- problem / gate book ---------- */
.problem { padding: clamp(72px, 10vw, 140px) 0; }
.problem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.problem ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.problem li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.problem li b { color: var(--text); font-weight: 600; }
.problem li svg { margin-top: 3px; color: var(--red); }
.book {
  position: relative; background: #FBF8F0; border-radius: 6px 14px 14px 6px; padding: 30px 26px 26px 54px;
  box-shadow: 0 1px 0 #e9e2cf, 0 2px 0 #f6f1e3, 0 3px 0 #e6dec9, 0 40px 70px -40px rgba(60, 40, 10, .45), 0 0 0 1px rgba(80, 60, 20, .08);
  background-image: repeating-linear-gradient(180deg, transparent 0 37px, rgba(0, 110, 160, .16) 37px 38px);
  background-position: 0 58px; transform: rotate(1.4deg);
}
.book::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 1.5px; background: rgba(220, 60, 60, .38); }
.book h3 { font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #8A7E62; margin-bottom: 22px; }
.book table { width: 100%; border-collapse: collapse; font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 2.1vw, 22px); color: #1E3A6E; }
.book th { font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #9A8F74; text-align: left; padding: 0 6px 8px 0; font-style: normal; }
.book td { height: 38px; padding: 0 6px 0 0; white-space: nowrap; }
.book td.q { color: #B23A3A; }
.book .x { text-decoration: line-through; text-decoration-color: rgba(30, 58, 110, .7); }
.book .stamp {
  position: absolute; right: 18px; bottom: 20px; transform: rotate(-9deg);
  border: 2.5px solid rgba(214, 48, 48, .75); color: rgba(214, 48, 48, .85); border-radius: 8px; padding: 6px 12px;
  font: 700 14px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.book-cap { font: 500 13px var(--f-mono); color: var(--muted); margin-top: 26px; text-align: center; }
@media (max-width: 900px) {
  .problem .wrap { grid-template-columns: 1fr; }
  .book { padding-left: 44px; transform: rotate(.8deg); }
  .book::before { left: 30px; }
  .book .hide-sm { display: none; }
}

/* ---------- flow (3 steps) ---------- */
.flow { padding: clamp(72px, 10vw, 130px) 0; background: var(--bone); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { position: relative; background: var(--paper); border-radius: var(--r); padding: 28px 26px 28px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.step .n { font: 500 12px var(--f-mono); letter-spacing: .12em; color: var(--teal-ink); display: flex; align-items: center; gap: 10px; }
.step .n span { color: var(--muted); }
.step h3 { margin: 22px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--glow); display: grid; place-items: center; margin-top: 22px; }
.flow .alt { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--r); background: var(--ink); color: var(--bone); }
.flow .alt .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(92,225,230,.12); color: var(--glow); display: grid; place-items: center; }
.flow .alt p { margin: 0; font-size: 16px; color: rgba(232,241,240,.78); }
.flow .alt b { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- roles (tabs) ---------- */
.roles { padding: clamp(72px, 10vw, 140px) 0; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bone); box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: clamp(30px, 4vw, 48px); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 11px 20px; font: 600 15px/1 var(--f-ui); color: var(--muted); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.tab .short { display: none; }
@media (max-width: 520px) { .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; } .tab .full { display: none; } .tab .short { display: inline; } }
.tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(3,20,23,.08), 0 6px 16px -8px rgba(3,20,23,.25); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.05; font-variation-settings: "opsz" 72; }
.panel h3 .s { color: var(--teal); }
.panel > div > p { color: var(--muted); margin: 16px 0 0; max-width: 46ch; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; counter-reset: c; }
.checks li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: counter(c, decimal-leading-zero); font: 500 12px/1.9 var(--f-mono); color: var(--teal-ink); }
.checks b { color: var(--text); font-weight: 600; }
.duo { position: relative; display: flex; justify-content: center; gap: 4%; padding: 10px 0; }
.duo .device { position: relative; width: 44%; max-width: 250px; }
.duo .device:nth-child(2) { margin-top: 12%; }
.panel .tag { display: inline-flex; gap: 8px; align-items: center; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel .duo { order: -1; }
  .tab { padding: 11px 15px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .panel.enter .duo .device { animation: rise .7s var(--ease) both; }
  .panel.enter .duo .device:nth-child(2) { animation-delay: .08s; }
  .panel.enter > div:not(.duo) { animation: fade .5s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- night buzzer ---------- */
.night { padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; background: radial-gradient(90% 70% at 85% 30%, #0B3437 0%, var(--ink) 60%), var(--ink); }
.night .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; position: relative; }
.clock { font: 500 clamp(64px, 10vw, 120px)/1 var(--f-mono); letter-spacing: -.04em; color: #fff; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.clock span { color: var(--red); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.night-meta { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(232,241,240,.5); display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.night-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
.night ol { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.night ol li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: rgba(232,241,240,.72); font-size: 16px; }
.night ol li b { color: #fff; font-weight: 600; }
.night ol li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--glow); margin-top: 7px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; font-size: 13px; color: rgba(232,241,240,.85); }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.night .duo .device { box-shadow: 0 0 0 1.5px #56666a inset, 0 0 0 4px #0b1112 inset, 0 60px 100px -40px rgba(0,0,0,.9), 0 30px 80px -30px rgba(0,158,169,.4); }
.night .duo .device.alarm { box-shadow: 0 0 0 1.5px #56666a inset, 0 0 0 4px #0b1112 inset, 0 60px 100px -40px rgba(0,0,0,.9), 0 0 90px -10px rgba(239,68,68,.45); }
@media (prefers-reduced-motion: no-preference) { .night .duo .device.alarm { animation: buzz 3.6s var(--ease) infinite; } }
@keyframes buzz { 0%, 86%, 100% { transform: translate(0); } 88% { transform: translate(-2px, 1px) rotate(-.6deg); } 90% { transform: translate(2px, -1px) rotate(.6deg); } 92% { transform: translate(-2px, 0) rotate(-.4deg); } 94% { transform: translate(1px, 1px); } }
@media (max-width: 900px) { .night .wrap { grid-template-columns: 1fr; } }

/* ---------- everything else ---------- */
.more { padding: clamp(72px, 10vw, 140px) 0 clamp(20px, 4vw, 50px); }
.grid5 { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.card { grid-column: span 2; background: #fff; border-radius: var(--r); padding: 26px 24px 26px; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px rgba(3,20,23,.35); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,158,169,.1); color: var(--teal-ink); margin-bottom: 18px; }
.card.red .ic { background: rgba(239,68,68,.1); color: #C62828; }
.card h3 { font-size: 20px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.more .note { margin-top: 22px; font: 500 13px var(--f-mono); color: var(--muted); display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .grid5 { grid-template-columns: 1fr 1fr; } .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; } .card:nth-child(5) { grid-column: span 2; } }
@media (max-width: 520px) { .grid5 { grid-template-columns: 1fr; } .card:nth-child(5) { grid-column: span 1; } }

/* ---------- record ---------- */
.record { padding: clamp(80px, 11vw, 150px) 0; background: var(--bone); overflow: hidden; }
.record .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.record h2 { font-size: clamp(40px, 6.4vw, 68px); }
.record p { color: var(--muted); }
.record .facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.record .facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--muted); }
.record .facts svg { flex: none; margin-top: 4px; color: var(--teal); }
.record .facts b { color: var(--text); font-weight: 600; }
.log { background: var(--ink); color: var(--bone); border-radius: 22px; padding: 10px; box-shadow: 0 50px 90px -50px rgba(3,20,23,.7); }
.log-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(232,241,240,.55); }
.log-h .live { display: inline-flex; align-items: center; gap: 8px; color: var(--glow); }
.log-h .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px rgba(92,225,230,.2); }
.log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.log li { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset; }
.log time { font: 500 13px var(--f-mono); color: rgba(232,241,240,.55); font-variant-numeric: tabular-nums; }
.log .who { font-size: 14.5px; line-height: 1.35; min-width: 0; }
.log .who b { font-weight: 600; color: #fff; }
.log .who small { display: block; font: 400 12px var(--f-mono); color: rgba(232,241,240,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: rgba(16,185,129,.14); color: #34D399; }
.pill.no { background: rgba(239,68,68,.14); color: #F87171; }
.pill.qr { background: rgba(92,225,230,.12); color: var(--glow); }
.pill.to { background: rgba(245,158,11,.14); color: #FBBF24; }
@media (max-width: 900px) { .record .wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .log li { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 12px 10px; } }

/* ---------- faq ---------- */
.faq { padding: clamp(72px, 10vw, 140px) 0; }
.faq .wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(30px, 6vw, 80px); }
.faq .sec-head { position: sticky; top: 100px; align-self: start; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 18px/1.35 var(--f-ui); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line) inset; position: relative; transition: transform .3s var(--ease), background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--text); transform: translate(-50%, -50%); border-radius: 2px; }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.qa[open] summary i { background: var(--ink); }
.qa[open] summary i::before, .qa[open] summary i::after { background: #fff; }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa .a { padding: 0 50px 24px 0; color: var(--muted); font-size: 16.5px; }
.qa .a p { margin: 0 0 10px; }
@media (max-width: 900px) { .faq .wrap { grid-template-columns: 1fr; } .faq .sec-head { position: static; } .qa .a { padding-right: 0; } }

/* ---------- pilot ---------- */
.pilot { padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; background: radial-gradient(80% 90% at 0% 100%, #0B3437 0%, var(--ink) 55%), var(--ink); }
.pilot .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: start; position: relative; }
.pilot h2 { font-size: clamp(40px, 6.4vw, 70px); }
.pilot .sub { color: rgba(232,241,240,.72); font-size: 18px; margin: 20px 0 0; max-width: 42ch; }
.pilot .inc { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.pilot .inc li { display: flex; gap: 12px; color: rgba(232,241,240,.8); font-size: 16px; }
.pilot .inc svg { flex: none; margin-top: 4px; color: var(--glow); }
.direct { margin-top: 38px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.direct .lbl { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(232,241,240,.5); margin-bottom: 14px; }
.direct .row { display: flex; flex-wrap: wrap; gap: 10px; }
.direct a.lnk { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.16) inset; font-weight: 500; transition: background .2s; }
.direct a.lnk:hover { background: rgba(255,255,255,.06); }

.form { background: var(--paper); color: var(--text); border-radius: 24px; padding: clamp(22px, 3.4vw, 36px); box-shadow: 0 60px 120px -60px rgba(0,0,0,.9); }
.form h3 { font-size: 24px; margin-bottom: 6px; }
.form .hint { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 13.5px var(--f-ui); }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border-radius: 12px; border: 0; background: #fff; padding: 12px 14px; font-size: 16px;
  box-shadow: 0 0 0 1.5px rgba(3,20,23,.12) inset; transition: box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%234B6164' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--teal) inset, 0 0 0 4px rgba(0,158,169,.15); }
.field input:user-invalid { box-shadow: 0 0 0 2px var(--red) inset; }
.form .btn { width: 100%; margin-top: 20px; min-height: 56px; font-size: 17px; }
.form .fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form .err { color: #B91C1C; font-size: 14px; margin: 12px 0 0; text-align: center; }
.done { text-align: center; padding: 30px 6px; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: rgba(16,185,129,.12); color: var(--green); display: grid; place-items: center; }
.done p { color: var(--muted); margin: 10px auto 0; max-width: 34ch; }
.hp { display: none; }
@media (max-width: 900px) { .pilot .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: rgba(232,241,240,.6); border-top: 1px solid rgba(255,255,255,.07); padding: 44px 0 38px; font-size: 14.5px; }
.ftr .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; align-items: flex-start; }
.ftr .wordmark { color: var(--bone); }
.ftr .wordmark b { color: var(--glow); }
.ftr .tl { margin: 10px 0 0; font-family: var(--f-serif); font-style: italic; font-size: 19px; color: rgba(232,241,240,.8); }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; color: rgba(232,241,240,.8); }
.ftr a:hover { color: #fff; }
.ftr .base { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.07); font: 500 12px var(--f-mono); letter-spacing: .04em; color: rgba(232,241,240,.4); }

/* ---------- sticky mobile CTA ---------- */
.mcta { display: none; }
@media (max-width: 700px) {
  .mcta {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 6px; border-radius: 999px; background: rgba(3,20,23,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .mcta.show { transform: none; }
  .mcta .btn { flex: 1; min-height: 46px; font-size: 15px; padding: 0 14px; }
  .mcta .btn.wa { flex: 0 0 auto; width: 46px; padding: 0; }
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
  .hero .load { animation: up 1s var(--ease) both; animation-delay: var(--d, 0s); }
  .stage .device, .stage .ping, .stage .chip-ok { animation: up 1.1s var(--ease) both; }
  .stage .d1 { animation-delay: .25s; --rot: -4deg; }
  .stage .d2 { animation-delay: .38s; --rot: 3deg; }
  .stage .ping { animation-delay: .9s; }
  .stage .chip-ok { animation-delay: 1.35s; }
  .rings .spin { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
}
@keyframes up { from { opacity: 0; transform: translateY(26px) rotate(var(--rot, 0)); } to { opacity: 1; transform: translateY(0) rotate(var(--rot, 0)); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- legal ---------- */
.qa .a a, .form .fine a { color: var(--teal-ink); }
.legal { padding: clamp(40px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 14px; }
.legal .upd { font: 500 13px var(--f-mono); color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; margin: 44px 0 12px; font-variation-settings: "opsz" 36; }
.legal p, .legal li { color: var(--muted); font-size: 17px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal-ink); }
.legal strong { color: var(--text); font-weight: 600; }
