/* Trident Defense Tech and RMF Sprint marketing sites (marketing/build.py). No inline styles: CSP style-src 'self'. */
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0C1A2E;        /* page */
  --panel: #12233B;      /* raised surfaces */
  --rule: #26405F;       /* lines */
  --text: #E7EEF6;
  --muted: #A6B8CD;
  --cyan: #2FD3EA;       /* brand, links, focus */
  --on-cyan: #04232B;
  --ok: #4ADE9A;         /* Compliant */
  --warn: #F5B54A;       /* Non-Compliant */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
code, .id { font-family: var(--mono); font-size: 0.92em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--on-cyan); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.05rem; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.97rem; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn {
  display: inline-block; padding: 0.62em 1.1em; border-radius: 6px; font-weight: 650; text-decoration: none;
  background: var(--cyan); color: var(--on-cyan); border: 2px solid var(--cyan); line-height: 1.2;
}
.btn:hover { background: #7BE6F4; border-color: #7BE6F4; }
.btn.quiet { background: transparent; color: var(--text); border-color: var(--rule); }
.btn.quiet:hover { border-color: var(--cyan); color: var(--cyan); }
.nav .btn { color: var(--on-cyan); }
.nav .btn:hover { color: var(--on-cyan); }

.site-foot { border-top: 1px solid var(--rule); margin-top: 96px; padding: 40px 0 56px; color: var(--muted); font-size: 0.93rem; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 24px 56px; justify-content: space-between; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--text); }
.site-foot p { margin: 0 0 0.5em; }

main section { padding: 72px 0 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* RMF Sprint hero: a typeset SCTM excerpt, the product's own output */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 64px; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.sctm { margin: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); overflow: hidden; }
.sctm figcaption { padding: 12px 16px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }
.sctm table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
.sctm th, .sctm td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.sctm tr:last-child td { border-bottom: 0; }
.sctm th { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.sctm td.id { white-space: nowrap; color: var(--text); }
.sctm td.stmt { color: var(--muted); }
.status { display: inline-block; font-weight: 650; white-space: nowrap; }
.status.ok { color: var(--ok); }
.status.nc { color: var(--warn); }
.status.inh { color: var(--cyan); }
.status.nr { color: var(--muted); }
.status::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; margin-right: 0.45em; vertical-align: 0.05em; }
@media (max-width: 640px) {
  .sctm table, .sctm tbody, .sctm tr, .sctm td { display: block; width: 100%; }
  .sctm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sctm tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .sctm td { border: 0; padding: 4px 16px; }
}

/* The RMF steps (SP 800-37): a real sequence, so it is numbered */
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 40px; padding: 28px 0; border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .steps > li { grid-template-columns: 220px minmax(0, 1fr); } }
.steps h3 { margin: 0; }
.steps h3::before { content: counter(step) ". "; color: var(--cyan); }
.steps ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; max-width: var(--measure); }
.steps .step-note { color: var(--muted); font-size: 0.95rem; margin: 6px 0 0; }

.callout { border-left: 4px solid var(--cyan); padding: 4px 0 4px 20px; margin-top: 32px; max-width: var(--measure); }

/* Demo */
.demo { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 1024px) { .demo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.demo video { width: 100%; border-radius: 10px; border: 1px solid var(--rule); background: #000; aspect-ratio: 16 / 9; }
.demo ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.small { font-size: 0.92rem; color: var(--muted); }

/* Pricing table */
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--rule); border-radius: 10px; }
.pricing { border-collapse: collapse; width: 100%; min-width: 620px; }
.pricing .btn { white-space: nowrap; }
.pricing .po-link { display: block; margin-top: 10px; }
.pricing th, .pricing td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.pricing thead th { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; background: var(--panel); }
.pricing tbody th { font-weight: 600; color: var(--muted); width: 18%; }
.pricing tr:last-child td, .pricing tr:last-child th { border-bottom: 0; }
.price { font-size: 1.3rem; font-weight: 700; display: block; white-space: nowrap; }
.planned { color: var(--warn); font-weight: 650; }

/* FAQ */
.faq { margin-top: 24px; max-width: 80ch; }
.faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; }
.faq summary:hover { color: var(--cyan); }
.faq details > div { margin-top: 12px; color: var(--muted); }
.faq details p, .faq details ul { color: var(--muted); }

/* Trident Defense Tech */
.tdt-hero { padding-top: 88px; max-width: 880px; }
.tdt-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 40px; padding: 32px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); margin-top: 24px; }
@media (min-width: 768px) { .product { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; } }
.product img { width: 64px; height: 64px; }
.product .actions { margin-top: 0; flex-direction: column; align-items: stretch; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; margin: 24px 0 0; max-width: 900px; }
@media (min-width: 768px) { .facts { grid-template-columns: 200px minmax(0, 1fr); } }
.facts dt { font-weight: 650; padding: 16px 0 0; }
.facts dd { margin: 0; padding: 4px 0 16px; color: var(--muted); border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .facts dt { padding: 16px 0; border-bottom: 1px solid var(--rule); } .facts dd { padding: 16px 0; } }

/* Legal and help pages */
.doc { max-width: 900px; padding-top: 56px; }
.doc h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc p, .doc li { max-width: var(--measure); }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc .table-scroll table { min-width: 640px; }
.doc dl div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.doc dt { font-weight: 650; }
.doc dd { margin: 0; color: var(--muted); }
.doc .app-copy > div { margin-bottom: 1em; }
.notice { border: 1px solid var(--warn); border-radius: 8px; padding: 14px 18px; margin: 0 0 28px; max-width: var(--measure); }
.notice strong { color: var(--warn); }
.updated { color: var(--muted); font-size: 0.93rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
