/* Locket website + app. 60% white and grey #f5f6f8, 30% navy #12304f (chrome, text, secondary buttons, neutral pills), 10% one blue #0067b8 on pressable things only.
   Inter self-hosted, no external requests, light mode only. Phone first: 16px fields, 44px targets, no sideways scroll at 390px. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --white: #fff; --grey: #f5f6f8; --navy: #12304f; --accent: #0067b8; --accent-press: #005a9f;
  --ink: #26384c; --muted: #4d5c70; --line: #d6dce5; --pill: #e8ebf0;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--ink); background: var(--white); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: var(--navy); text-underline-offset: .22em; }
strong { font-weight: 600; color: var(--navy); }
code { font-family: var(--mono); font-size: .9em; background: var(--grey); padding: .1em .35em; border-radius: 4px; color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .9375rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
@media (max-width: 860px) { .wrap { padding: 0 20px; } }

/* header + footer */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.logo { width: 28px; height: 28px; flex: none; }
.site-header nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { background: var(--grey); }
@media (max-width: 640px) { .site-header nav .opt { display: none; } }
.site-footer { background: var(--navy); color: #dbe3ee; padding: 40px 0; font-size: .9375rem; }
.site-footer a { color: #fff; } .site-footer p { max-width: none; margin: 0 0 8px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }

/* buttons: blue lives here and nowhere else */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-press); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); } .btn-secondary:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--pill); color: var(--navy); font-size: .8125rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.pill.dark { background: var(--navy); color: #fff; }

/* landing */
.band { padding: clamp(52px, 7vw, 96px) 0; } .band.grey { background: var(--grey); }
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(44px, 6vw, 80px); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; align-items: center; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { max-width: 14ch; } .hero .lede { margin: 22px 0 0; font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 50ch; }
.status { margin: 20px 0 0; color: var(--muted); font-size: 1rem; }
.video { margin: 0; }
.video .frame { aspect-ratio: 16 / 9; background: var(--navy); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(18,48,79,.08), 0 14px 36px -14px rgba(18,48,79,.28); }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); max-width: none; }
.sec-head { margin-bottom: clamp(24px, 4vw, 44px); } .sec-head h2 { max-width: 24ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 3px solid var(--navy); padding-top: 18px; }
.steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy); color: var(--navy); font-weight: 600; margin-bottom: 12px; }
.steps h3 { margin-bottom: 8px; } .steps p { margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; }
.two > div { border-top: 3px solid var(--line); padding-top: 18px; } .two h3 { margin-bottom: 10px; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.bridge { margin-top: 32px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; color: var(--navy); font-weight: 500; max-width: 40ch; }
.ticks { list-style: none; padding: 0; margin: 0; } .ticks li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; max-width: none; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.ticks.no li::before { background: none; border: 2px solid var(--muted); width: 9px; height: 9px; }
.cta { text-align: left; } .cta h2 { max-width: 20ch; }

/* forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); }
.narrow { max-width: 460px; margin: 0 auto; } .center-page { padding: clamp(32px, 6vw, 72px) 0; background: var(--grey); min-height: 70vh; }
label { display: block; font-weight: 600; color: var(--navy); margin: 16px 0 6px; font-size: .9375rem; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--white); border: 1px solid #8a96a5; border-radius: 8px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--navy); outline-offset: 1px; }
.hint { color: var(--muted); font-size: .875rem; margin: 6px 0 0; max-width: none; }
.msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--grey); border: 1px solid var(--line); color: var(--navy); max-width: none; }
.msg.err { border-color: var(--navy); border-width: 2px; font-weight: 500; }
.code-in { letter-spacing: .4em; font-size: 1.5rem; text-align: center; font-family: var(--mono); }

/* app shell */
.app-body { background: var(--grey); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: var(--navy); color: #fff; }
.topbar .bar { min-height: 60px; } .topbar .brand { color: #fff; font-size: 1.1rem; }
.topbar .who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: .9375rem; }
.topbar a, .linkbtn { color: #fff; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; min-height: 44px; padding: 0 6px; }
.seg { display: inline-flex; border: 1px solid #fff; border-radius: 8px; overflow: hidden; }
.seg button { min-height: 40px; padding: 0 14px; background: transparent; color: #fff; border: 0; font: 500 .9375rem var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 600; }
.seg button { white-space: nowrap; }
@media (max-width: 520px) { .topbar .bar { flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; } .topbar .who { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; } .seg { flex: 1; } .seg button { flex: 1; padding: 0 8px; } }
.banner { background: var(--pill); color: var(--navy); font-size: .9375rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.banner p { margin: 0; max-width: none; }
.shell { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.side { position: sticky; top: 16px; display: grid; gap: 4px; }
.side button, .side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; background: transparent; border: 0; color: var(--navy); font: 500 1rem var(--font); text-align: left; cursor: pointer; text-decoration: none; }
.side button:hover, .side a:hover { background: var(--pill); }
.side button[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 600; }
.side .count { background: var(--pill); color: var(--navy); border-radius: 999px; font-size: .8125rem; min-width: 24px; padding: 2px 8px; text-align: center; font-weight: 600; }
.side button[aria-current="page"] .count { background: #fff; }
.panel { min-width: 0; } .panel h1 { font-size: 1.6rem; letter-spacing: -0.01em; margin-bottom: 6px; } .panel > .sub { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; padding-bottom: 96px; }
  .side { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: auto; display: flex; overflow-x: auto; background: var(--white); border-top: 1px solid var(--line); padding: 6px 8px; gap: 2px; }
  .side button, .side a { flex: none; flex-direction: column; justify-content: center; gap: 2px; min-width: 76px; padding: 0 8px; font-size: .8125rem; text-align: center; }
}

/* lists: fixed-width pill and action columns so every row lines up */
.list { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 7rem 7rem; gap: 12px 16px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .t { font-weight: 600; color: var(--navy); } .row .b { margin: 4px 0 0; max-width: none; color: var(--ink); white-space: pre-wrap; }
.row .meta { margin: 6px 0 0; color: var(--muted); font-size: .875rem; max-width: none; }
.row .act { width: 7rem; min-height: 44px; }
.row .pillcol { display: flex; flex-wrap: wrap; gap: 6px; }
.row.head { background: var(--grey); font-size: .8125rem; font-weight: 600; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.row.cols3 { grid-template-columns: minmax(0, 1fr) 8rem 7rem; } .row.audit { grid-template-columns: 9.5rem 11rem minmax(0, 1fr) 6rem; align-items: center; }
.row.people { grid-template-columns: 12rem minmax(0, 1fr) 7rem; align-items: center; }
.btn.sm { min-height: 44px; padding: 0 12px; font-size: .9375rem; }
.dup { margin: 8px 0 0; padding: 8px 10px; border: 2px solid var(--navy); border-radius: 8px; font-size: .875rem; color: var(--navy); max-width: none; }
.reject-box { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 8px; }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; max-width: none; margin: 0; }
@media (max-width: 800px) {
  .row, .row.cols3, .row.audit, .row.people { grid-template-columns: minmax(0, 1fr); gap: 8px; } .row.head { display: none; }
  .row .act { width: 100%; } .reject-box { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .row .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
}
.canon { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font: 400 .9rem/1.6 var(--mono); color: var(--navy); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30rem; overflow-y: auto; }
.meter { height: 10px; border-radius: 999px; background: var(--pill); overflow: hidden; margin: 8px 0 4px; } .meter > i { display: block; height: 100%; background: var(--navy); }
.stack { display: grid; gap: 16px; } .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } }
.key { font-family: var(--mono); font-size: .85rem; word-break: break-all; background: var(--grey); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; margin: 8px 0; color: var(--navy); }
.grants { display: flex; flex-wrap: wrap; gap: 8px; } .grants label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 6px; font-size: .875rem; } .grants select { min-height: 44px; width: auto; padding: 4px 8px; font-size: 16px; }
table.api { width: 100%; border-collapse: collapse; font-size: .9375rem; } table.api th, table.api td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; } table.api th { color: var(--muted); font-size: .8125rem; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; } .tablewrap table.api { min-width: 560px; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 12px; } .doc h3 { margin: 20px 0 6px; } .doc { max-width: 820px; }
.reduce-motion-safe { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* utilities (the CSP forbids inline style attributes) */
.mw16 { max-width: 16ch; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .h1s { font-size: 2.2rem; } .grid2.top { align-items: start; }
.site-footer strong { color: #fff; }
