/* next4OT home page (v3, 2026 redesign). Hand-written; legal and security pages still use site.css.
   Fonts are self-hosted from /fonts so no visitor request ever goes to a third party. */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/geist-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/geist-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0b0f17;
  --ink-2: #3c4557;
  --ink-3: #5a6375;
  --line: #e5e8ee;
  --line-strong: #d3d8e2;
  --accent: #1d4ed8;
  --accent-ink: #1e40af;
  --accent-soft: #e8efff;
  --focus: #2563eb;

  --yes-fg: #166534; --yes-bg: #dcfce7;
  --no-fg: #991b1b;  --no-bg: #fee2e2;
  --msg-fg: #92400e; --msg-bg: #fef3c7;
  --ne-fg: #4b5563;  --ne-bg: #eef0f4;
  --out-fg: #5a6375; --out-bg: #ffffff;
  --forced-fg: #5b21b6; --forced-bg: #ede9fe;
  --next-fg: #1e40af; --next-bg: #dbeafe;

  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --container: 1200px;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav > .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav .logo { flex: 0 0 auto; display: block; }
.nav .logo img { height: 34px; width: auto; max-width: none; }
.cta-short { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 4px 0 12px; }
.mobile-menu .wrap { display: block; }
.mobile-menu a { display: block; padding: 14px 0; font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: 0; }
.mobile-menu.open { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b2230; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .9rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 4vw, 48px); text-align: center; }
.hero .eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 auto 18px; text-align: center; max-width: none; }
.hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero p {
  margin: 28px auto 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Live callout log ---------- */
.demo { padding: 8px 0 clamp(72px, 9vw, 128px); }
.log-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11,15,23,.04), 0 24px 60px -30px rgba(11,15,23,.25);
  overflow: hidden;
}
.log-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff;
}
.log-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.log-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.log-title .sep { color: var(--ink-3); font-weight: 400; }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.log-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.log { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .86rem; }
table.log caption { text-align: left; padding: 10px 18px; font-size: .78rem; color: var(--ink-3); caption-side: bottom; border-top: 1px solid var(--line); }
table.log th, table.log td { padding: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.log thead th { background: var(--bg-soft); text-align: left; font-weight: 500; color: var(--ink-2); position: sticky; top: 0; }
table.log thead th:first-child, table.log tbody th { position: sticky; left: 0; background: #fff; z-index: 2; }
table.log thead th:first-child { background: var(--bg-soft); z-index: 3; }
table.log th:not(:first-child), table.log td { border-left: 1px solid var(--line); }
.job { padding: 10px 14px; min-width: 150px; }
.job .t { display: block; font-weight: 600; color: var(--ink); font-size: .86rem; }
.job .d { display: block; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); margin-top: 2px; }
.job .s { display: inline-block; margin-top: 7px; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); background: #fff; }
.job .s.open { color: var(--accent-ink); border-color: #bfd0ff; background: var(--accent-soft); }
.job .s.prog { color: var(--msg-fg); border-color: #f5d58a; background: var(--msg-bg); }
.job .s.filled { color: var(--yes-fg); border-color: #a7e3bd; background: var(--yes-bg); }
table.log .off-h { padding: 10px 14px; font-weight: 500; color: var(--ink-2); }
table.log th.officer { padding: 0 14px; min-width: 220px; white-space: nowrap; height: 44px; text-align: left; }
.officer-in { display: flex; align-items: center; gap: 10px; }
.officer .pos { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); width: 22px; }
.officer .nm { font-weight: 500; color: var(--ink); }
.officer .bd { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
tr.cur th.officer { box-shadow: inset 3px 0 0 var(--accent); }
td.cell { height: 44px; padding: 0 10px; min-width: 150px; transition: background .4s; }
td.cell.flash { background: #fffbe6; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 6px; line-height: 1.2;
  animation: pop .28s cubic-bezier(.2,.9,.3,1.3) both;
}
.chip small { font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: 0; }
.chip.yes { background: var(--yes-bg); color: var(--yes-fg); }
.chip.no { background: var(--no-bg); color: var(--no-fg); }
.chip.msg { background: var(--msg-bg); color: var(--msg-fg); }
.chip.ne { background: var(--ne-bg); color: var(--ne-fg); }
.chip.out { background: var(--out-bg); color: var(--out-fg); border: 1px dashed var(--line-strong); }
.chip.forced { background: var(--forced-bg); color: var(--forced-fg); }
.chip.next { background: var(--next-bg); color: var(--next-fg); }
.chip.first { margin-left: 6px; background: #fff; color: var(--accent-ink); border: 1px solid #bfd0ff; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
th.job.enter { animation: slide .5s ease-out both; }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.demo-note { margin: 14px 4px 0; font-size: .82rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.replay { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.replay svg { width: 14px; height: 14px; }

/* ---------- Statements ---------- */
.claims { padding: 0 0 clamp(72px, 9vw, 128px); }
.claim {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.claim:nth-child(even) > .claim-text { order: 2; }
.claim h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.claim p { margin: 18px 0 0; max-width: var(--measure); color: var(--ink-2); font-size: 1.08rem; text-wrap: pretty; }
.claim-vis { min-width: 0; }

.mini {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(11,15,23,.04), 0 18px 48px -32px rgba(11,15,23,.25);
  font-size: .9rem;
}
.mini-title { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-list .pos { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); width: 24px; }
.mini-list .nm { flex: 1; font-weight: 500; }
.mini-list .you { font-size: .7rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.mini-list .hrs { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.mini-channels { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mini-channels span { font-size: .74rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--bg-soft); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline .tm { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }
.timeline .who { font-weight: 500; }
.timeline .who small { display: block; font-weight: 400; color: var(--ink-3); font-size: .78rem; }

.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.setting { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg-soft); }
.setting b { display: block; font-weight: 600; font-size: .86rem; }
.setting span { display: block; font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.setting .sw { float: right; width: 30px; height: 18px; border-radius: 999px; background: var(--ink); position: relative; margin-top: 2px; }
.setting .sw::after { content: ''; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.setting .sw.off { background: var(--line-strong); }
.setting .sw.off::after { right: auto; left: 2px; }

/* ---------- How it works ---------- */
.steps { padding: clamp(56px, 7vw, 96px) 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.steps h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; font-weight: 600; }
.steps .lead { margin: 0 0 36px; color: var(--ink-2); }
.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { min-width: 0; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .78rem; color: var(--accent-ink); margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Extra duty ---------- */
.extra { padding: clamp(56px, 7vw, 96px) 0; }
.extra .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.extra h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.extra p { margin: 18px 0 0; color: var(--ink-2); font-size: 1.08rem; max-width: var(--measure); }
.invoice { font-size: .88rem; }
.invoice .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.invoice .hd b { font-weight: 600; }
.invoice .hd span { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice td { padding: 8px 0; border-top: 1px solid var(--line); }
.invoice td:last-child { text-align: right; font-family: var(--mono); font-size: .8rem; }
.invoice tr.total td { font-weight: 600; border-top: 2px solid var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.faq h2 { margin: 0 0 24px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; font-weight: 600; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--ink-3); flex-shrink: 0; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: var(--measure); }

/* ---------- Contact ---------- */
.contact { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); background: var(--bg-soft); border-top: 1px solid var(--line); }
.contact .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.contact .lead { margin: 18px 0 0; color: var(--ink-2); font-size: 1.08rem; max-width: 32rem; }
.contact .lead + .lead { margin-top: 12px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(11,15,23,.04); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field label .req { color: var(--no-fg); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.field textarea { resize: vertical; min-height: 88px; }
.field ::placeholder { color: #9aa3b2; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; height: 50px; }
.status { margin: 12px 0 0; font-size: .92rem; text-align: center; }
.status.ok { color: var(--yes-fg); }
.status.err { color: var(--no-fg); }
.fine { margin: 12px 0 0; font-size: .8rem; color: var(--ink-3); text-align: center; }
.fine a { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { padding: 28px 0; font-size: .86rem; color: var(--ink-3); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .claim, .extra .row, .contact .row { grid-template-columns: 1fr; }
  .claim:nth-child(even) > .claim-text { order: 0; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav .logo img { height: 30px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .menu-btn { display: inline-flex; }
  .hero h1 { max-width: 12ch; }
  .step-grid { grid-template-columns: 1fr; gap: 20px; }
  .two { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .settings { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, th.job.enter { animation: none; }
  td.cell { transition: none; }
}

/* Narrow screens: tighter callout-log columns so two jobs fit beside the officer column */
.job .d { white-space: nowrap; }
@media (max-width: 720px) {
  table.log { min-width: 0; font-size: .8rem; }
  table.log th.officer { min-width: 150px; padding: 0 10px; }
  .officer-in { gap: 7px; }
  .officer .bd { display: none; }
  .officer .pos { width: 16px; }
  .job { min-width: 128px; padding: 8px 10px; }
  .job .d { font-size: .66rem; }
  td.cell { min-width: 128px; padding: 0 8px; }
  .log-head { padding: 12px 14px; }
  .legend { font-size: .72rem; }
}
