/* Mission: Us public site: the keypad gate (/) and the website (/site/). Dark only.
   Green is her side, amber is his; the logo uses both. Responsive from 360 px phones to 1440 px. */

@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('/fonts/oswald-500.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('/fonts/oswald-600.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('/fonts/oswald-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url('/fonts/plex-mono-600.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #08090A;
  --surface: #101110;
  --border: #23231F;
  --text: #EDE9E1;
  --muted: #A39E93;
  --agent: #3DFFA2;
  --handler: #FFB347;
  --danger: #FF6B6B;
  --agent-surface: #0D1513;
  --agent-line: #22332D;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: var(--handler); }
a:hover { color: #FFD08A; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--agent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Logo: MISSION:US, the colon is two stacked dots, amber over green ── */
.logo { display: inline-flex; align-items: center; line-height: 1; font: 700 30px var(--display); letter-spacing: 3px; color: var(--text); text-decoration: none; }
.logo .colon { display: inline-flex; flex-direction: column; gap: 5px; margin: 0 7px; }
.logo .colon i { width: 8px; height: 8px; border-radius: 50%; background: var(--handler); }
.logo .colon i + i { background: var(--agent); }
.logo.small { font-size: 22px; letter-spacing: 2px; }
.logo.small .colon { gap: 4px; margin: 0 6px; }
.logo.small .colon i { width: 7px; height: 7px; }

/* ═════════════ Gate ═════════════ */
.gate {
  position: relative; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: max(40px, env(safe-area-inset-top, 0px)) var(--gutter) max(28px, env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse at 50% 40%, #0E1512, var(--bg) 65%);
}
.grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(#111412 1px, transparent 1px), linear-gradient(90deg, #111412 1px, transparent 1px);
  background-size: 48px 48px; }
.gate > * { position: relative; }
.gate-row { width: 100%; max-width: 1080px; display: flex; align-items: center; justify-content: center; gap: 48px; }
.globe-col { flex: 1 1 380px; max-width: 520px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.keypad-col { flex: 1 1 340px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.globe { width: 100%; max-width: 480px; aspect-ratio: 1; display: block; }
.loc { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.loc-tag { font-size: 10px; letter-spacing: 3px; color: #8A9491; }
.loc-tag[data-state="asking"] { color: var(--handler); }
.loc-tag[data-state="gps"] { color: var(--agent); }
.loc-tag[data-state="denied"] { color: #FF8A8A; }
.loc-place { font: 500 20px var(--display); letter-spacing: 1px; text-transform: uppercase; }
.loc-coords { font-size: 11px; color: #8A9491; font-variant-numeric: tabular-nums; }
.locbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #1E4A33; background: #0B1712; color: var(--agent); font-size: 12px; cursor: pointer; }
.locbtn:hover { border-color: var(--agent); }
.locbtn:disabled { opacity: .6; cursor: default; }

.locked, .granted { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.restricted { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 3px; color: var(--danger); }
.gate h1 { margin: 0; font: 600 34px/1.05 var(--display); text-transform: uppercase; }
.gate .lede { margin: 0; font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 14px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #3A4F48; transition: background .12s, border-color .12s; }
.dots i.on { background: var(--agent); border-color: var(--agent); box-shadow: 0 0 10px var(--agent); }
.dots.bad i { background: var(--danger); border-color: var(--danger); box-shadow: none; }
.dots.bad { animation: shake .4s; }
.status { min-height: 18px; font-size: 12px; color: var(--agent); }
.status.bad { color: var(--danger); }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; justify-items: center; }
.key { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--agent-line); background: var(--agent-surface); color: var(--text); font: 400 26px var(--display); cursor: pointer; padding: 0; transition: transform .1s, border-color .15s; }
.key:hover { border-color: #3A5A4F; }
.key:active { transform: scale(.94); border-color: var(--agent); }
.key.util { font: 400 12px var(--mono); letter-spacing: 2px; color: #8FA59D; border-color: transparent; background: transparent; }
.key:disabled { opacity: .35; cursor: not-allowed; }
.hint { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px dashed #3A4F48; font-size: 12px; line-height: 1.5; }
.hint b { display: block; font-size: 10px; letter-spacing: 2px; color: var(--agent); font-weight: 500; }
.ask { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ask label { font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.ask .row { display: flex; gap: 8px; }
.field { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 13px var(--mono); }
.field:focus { outline: none; border-color: var(--handler); }
.req { min-height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--handler); color: #1A1004; font-weight: 600; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.linkbtn { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.note-ok { font-size: 12px; color: var(--handler); }
.note-err { font-size: 12px; color: var(--danger); }
.grant { position: relative; width: 170px; height: 170px; border-radius: 50%; border: 1px solid var(--agent); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 60px rgba(61,255,162,.25); }
.grant .beam { position: absolute; left: 0; right: 0; height: 4px; background: var(--agent); box-shadow: 0 0 18px 5px rgba(61,255,162,.55); animation: beam-full 1s ease-in-out infinite alternate; }
.granted-tag { font-size: 11px; letter-spacing: 3px; color: var(--agent); }
.enter { display: flex; align-items: center; justify-content: center; min-height: 56px; width: 100%; border-radius: 12px; background: var(--agent); color: #04120B; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 3px; }
.enter:hover { color: #04120B; background: #6BFFBA; }
.gate-foot { font-size: 10px; letter-spacing: 2px; color: #6E695F; text-align: center; max-width: 900px; }
.gate-foot a { color: #8A847A; }

/* Below 900 px the globe stacks above the keypad and shrinks to the screen width. */
@media (max-width: 899px) {
  .gate { justify-content: flex-start; gap: 20px; }
  .gate-row { flex-direction: column; gap: 28px; }
  .globe-col, .keypad-col { flex: none; width: 100%; }
  .globe { max-width: min(420px, 100%); }
}
/* Phones: a smaller globe so the keypad starts within the first screen. */
@media (max-width: 599px) {
  .gate { padding-top: max(24px, env(safe-area-inset-top, 0px)); }
  .gate-row { gap: 22px; }
  .globe { max-width: min(250px, 72vw); }
  .globe-col { gap: 10px; }
  .loc-place { font-size: 17px; }
}
@media (max-width: 380px) {
  .key { width: 64px; height: 64px; }
  .keys { gap: 12px 18px; }
  .gate h1 { font-size: 30px; }
}

/* ═════════════ Website ═════════════ */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 640px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.page { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 128px); padding-bottom: 48px; overflow-x: clip; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 12px; background: var(--handler); color: #1A1004; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-align: center; }
.cta:hover { color: #1A1004; background: #FFC670; }
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 12px; border: 1px solid #2A2A26; color: var(--text); text-decoration: none; font-size: 13px; }
.ghost:hover { border-color: var(--agent); color: var(--text); }
.kicker { font-size: 11px; letter-spacing: 3px; color: var(--handler); }
.h2 { margin: 0; font: 600 clamp(32px, 4.4vw, 52px)/1.02 var(--display); text-transform: uppercase; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.card p, .card .body { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.head-stack { display: flex; flex-direction: column; gap: 12px; }
.section { display: flex; flex-direction: column; gap: 36px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #1C1C19; background: transparent; transition: background .2s; }
.site-header.stuck { background: rgba(8,9,10,.92); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 72px; padding-block: 8px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.navl { color: var(--muted); text-decoration: none; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.navl:hover { color: var(--text); }
.nav .cta { min-height: 44px; padding: 0 18px; font-size: 12px; }
@media (max-width: 720px) {
  .nav .navl.hide-sm { display: none; }  /* section links: the page scrolls to them anyway */
}
/* Phones: one header row. Sign in moves to the footer. */
@media (max-width: 419px) {
  .site-header .wrap { flex-wrap: nowrap; min-height: 64px; }
  .nav .navl.hide-xs { display: none; }
  .nav .cta { padding: 0 14px; font-size: 11px; letter-spacing: 1px; }
  .site-header .logo.small { font-size: 19px; letter-spacing: 1.5px; }
}
.site-footer .show-xs { display: none; }
@media (max-width: 419px) { .site-footer .show-xs { display: inline-flex; } }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: clamp(24px, 5vw, 56px); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { margin: 0; font: 700 clamp(44px, 7vw, 92px)/.95 var(--display); text-transform: uppercase; }
.hero h1 .g { color: var(--agent); } .hero h1 .a { color: var(--handler); }
.hero p { margin: 0; font-size: clamp(14px, 1.4vw, 16px); line-height: 1.7; color: var(--muted); max-width: 520px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero small { font-size: 12px; color: var(--muted); }
.hero-demo { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.chip-try { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #1E4A33; color: var(--agent); font-size: 12px; }
.chip-try i { width: 7px; height: 7px; border-radius: 50%; background: var(--agent); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.step-no { font: 400 44px var(--display); color: var(--handler); line-height: 1; }
.card-title { font: 400 22px var(--display); text-transform: uppercase; }
.mission-tag { font-size: 10px; letter-spacing: 2px; color: var(--handler); }
.mission-name { font: 400 21px var(--display); text-transform: uppercase; }

.finale { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px); border-radius: 24px; border: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0%, #121A16, var(--bg) 70%); }
.finale > div { flex: 1 1 340px; min-width: 0; }
.finale .copy { display: flex; flex-direction: column; gap: 14px; }
.finale p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 440px; }
.unit { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.badges { display: flex; align-items: center; }
.badge { width: clamp(110px, 30vw, 132px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.badge small { font-size: 9px; letter-spacing: 2px; color: #8FA59D; }
.badge b { font: 400 20px var(--display); text-transform: uppercase; }
.badge.agent { border: 1.5px solid var(--agent); background: var(--agent-surface); }
.badge.handler { border: 1.5px solid var(--handler); background: #140F07; }
.badges .link { width: 34px; height: 2px; background: var(--text); transition: opacity .9s; }
.badges.apart .agent { transform: translateX(-40px); }
.badges.apart .handler { transform: translateX(40px); }
.badges.apart .link { opacity: 0; }
.unit-status { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; letter-spacing: 2px; text-align: center; }
.unit-status span { color: var(--agent); }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > .copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.sides { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.card.her { background: #070B0A; border-color: var(--agent-line); }
.side-tag { font-size: 10px; letter-spacing: 2px; }

.faq-wrap { max-width: 860px; }
.faq { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 12px 4px; border: 0; border-bottom: 1px solid #1C1C19; background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.faq .sign { color: var(--handler); font-size: 20px; flex: none; }
.faq-a { margin: 0; padding: 14px 4px 22px; font-size: 13px; line-height: 1.7; color: var(--muted); }

.final { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(48px, 7vw, 72px) 24px; border-radius: 24px; border: 1px solid var(--handler); background: #17120A; text-align: center; }
.final .h2 { font-size: clamp(36px, 5.5vw, 64px); }
.final small { font-size: 12px; color: var(--muted); }
.final .share { background: none; border: 0; padding: 0; color: var(--handler); text-decoration: underline; cursor: pointer; font-size: 12px; min-height: 44px; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid #1C1C19; font-size: 12px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 22px; }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }

/* Section fade-up: only applied by script, so the page is complete without it. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ── Hero phone demo (her experience, in miniature) ── */
.phone { position: relative; width: 320px; max-width: 100%; height: 660px; border-radius: 44px; border: 1px solid var(--agent-line); background: #070B0A; box-shadow: 0 0 0 10px #121412, 0 40px 120px rgba(61,255,162,.10); overflow: hidden; color: #D7E5DF; display: flex; flex-direction: column; padding: 44px 22px 24px; }
@media (max-width: 360px) { .phone { height: 620px; padding: 36px 16px 20px; } }
.phone .bar { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 2px; color: #8FA59D; }
.phone .stage { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.phone .center { align-items: center; justify-content: center; text-align: center; gap: 24px; }
.phone .tiny { font-size: 9px; letter-spacing: 3px; color: var(--agent); }
.phone .name { font: 600 28px/1 var(--display); text-transform: uppercase; }
.phone .dk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 0; justify-items: center; margin-top: auto; }
.phone .key { width: 62px; height: 62px; font-size: 24px; color: #D7E5DF; }
.phone .key.util { font-size: 11px; }
.phone .dots i { width: 12px; height: 12px; }
.phone .msg { font-size: 10px; min-height: 14px; color: #8FA59D; }
.phone .msg.bad { color: var(--danger); }
.scanner { position: relative; width: 170px; height: 170px; border-radius: 50%; border: 1px solid var(--agent-line); background: radial-gradient(circle at 50% 40%, #13201C, #0A110F 72%); cursor: pointer; padding: 0; overflow: hidden; display: grid; place-items: center; animation: idle 2.4s ease-in-out infinite; }
.scanner svg { width: 100px; height: 100px; stroke: #3A5A4F; }
.scanner.on { border-color: var(--agent); animation: none; box-shadow: 0 0 40px rgba(61,255,162,.35); }
.scanner.on svg { stroke: var(--agent); }
.scanner .beam { position: absolute; left: 0; right: 0; height: 4px; top: -8px; background: var(--agent); box-shadow: 0 0 18px 5px rgba(61,255,162,.55); animation: beam-scan .7s ease-in-out 2 alternate; }
.doc { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.doc .title { font: 400 26px/1 var(--display); text-transform: uppercase; }
.voice { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; border: 1px solid var(--agent-line); background: var(--agent-surface); font-size: 8px; letter-spacing: 1px; color: #8FA59D; }
.voice span:first-child { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--agent); display: grid; place-items: center; }
.redact { display: block; height: 10px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--agent-line) 0 5px, #1A2824 5px 10px); }
.dcta { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; border: 0; border-radius: 12px; background: var(--agent); color: #04120B; font-weight: 600; font-size: 12px; letter-spacing: 2px; cursor: pointer; margin-top: auto; }
.burn { animation: burn 1.3s ease-in forwards; }
.replay { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--agent-line); background: transparent; color: #D7E5DF; font-size: 11px; cursor: pointer; }
.fade { animation: fade .45s ease-out; }

.legal { max-width: 720px; margin: 0 auto; padding: 64px var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.legal h1 { margin: 0; font: 600 40px var(--display); text-transform: uppercase; }
.legal p { margin: 0; color: var(--muted); line-height: 1.7; }

@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes beam-full { from { top: 0; } to { top: 166px; } }
@keyframes beam-scan { from { top: -8px; } to { top: 172px; } }
@keyframes idle { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,255,162,0); } 50% { box-shadow: 0 0 0 10px rgba(61,255,162,.08); } }
@keyframes burn { 0% { clip-path: inset(0 0 0 0); } 60% { filter: sepia(1) saturate(4) hue-rotate(-30deg) brightness(1.3); } 100% { clip-path: inset(0 0 100% 0); filter: brightness(.3); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .badges.apart .agent, .badges.apart .handler { transform: none; }
  .badges.apart .link { opacity: 1; }
}
.locked .stack { display: flex; flex-direction: column; align-items: center; gap: 8px; }
