/* ScopedAudit — landing page.
   Same identity as the Audit360 application: ink + ochre on paper,
   IBM Plex Sans / Mono, self-hosted (no third-party request). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ink: #12161d;
  --ink-2: #1b212b;
  --ink-border: #2a323e;
  --ink-text: #f3efe6;
  --ink-muted: #9aa3b1;
  --ochre: #f0a93c;
  --ochre-hover: #f6ba5c;
  --ochre-text: #96520a; /* ochre for text on paper */
  --on-ochre: #201503;

  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efebe2;
  --border: #e3ded3;
  --text: #1b1f27;
  --text-2: #535b69;

  --radius: 12px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ochre-text);
  margin-bottom: 14px;
}
.lede { font-size: 1.16rem; color: var(--text-2); max-width: 56ch; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 9px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-sm { padding: 8px 15px; font-size: 0.93rem; }
.btn-primary { background: var(--ochre); color: var(--on-ochre); }
.btn-primary:hover { background: var(--ochre-hover); }
.btn-ghost { border-color: var(--ink-border); color: var(--ink-text); }
.btn-ghost:hover { border-color: var(--ink-muted); }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--ink);
  color: var(--ink-text);
  position: relative;
  overflow: hidden;
}
.hero::before { /* radar rings, the brand motif */
  content: "";
  position: absolute; right: -260px; top: -200px;
  width: 900px; height: 900px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 219px, var(--ink-border) 220px, transparent 221.5px),
    radial-gradient(circle, transparent 334px, var(--ink-border) 335px, transparent 336.5px),
    radial-gradient(circle, transparent 448px, var(--ink-border) 449px, transparent 450px);
  opacity: .8; pointer-events: none;
}
.hero > * { position: relative; }
.hero .eyebrow { color: var(--ochre); }
.hero .lede { color: var(--ink-muted); }

.nav { display: flex; align-items: center; gap: 28px; padding-block: 20px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink-text); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--ink-border); border-radius: 8px; overflow: hidden; }
.lang button {
  font: 500 0.78rem var(--mono); color: var(--ink-muted); background: none;
  border: 0; padding: 7px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink-border); color: var(--ink-text); }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-muted); }

.console {
  margin: 0; min-width: 0;
  background: #0c0f14; border: 1px solid var(--ink-border); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.console-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--ink-border);
  font-size: 0.86rem; color: var(--ink-text);
}
.console-title { font-weight: 500; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-live {
  font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: #6fcf97; border: 1px solid rgba(111, 207, 151, .4); border-radius: 999px; padding: 2px 9px;
}
.stop {
  font: 600 0.72rem var(--mono); letter-spacing: .06em;
  background: #c93a3a; color: #fff; border-radius: 6px; padding: 4px 10px;
}
.console-body {
  margin: 0; padding: 18px 16px; overflow-x: auto;
  font: 400 0.82rem/1.85 var(--mono); color: #d5dae3;
}
.c-guard { color: var(--ochre); }
.c-task { color: #6cb0f5; }
.c-dim { color: #77818f; }
.c-ok { color: #6fcf97; }
.c-err { color: #f08a7c; }
.caret { display: inline-block; width: 8px; height: 1em; margin-left: 6px; vertical-align: -2px; background: var(--ochre); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console figcaption { padding: 0 16px 14px; font-size: 0.76rem; color: #77818f; }


/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.alt { background: var(--surface-2); }
.section.dark { background: var(--ink); color: var(--ink-text); }
.section.dark .eyebrow { color: var(--ochre); }
.section.dark .lede { color: var(--ink-muted); margin-top: 20px; }
.section h2 + .lede { margin-top: 20px; }

.cards { display: grid; gap: 18px; margin-top: 44px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.98rem; }
.num { display: block; font: 500 0.8rem var(--mono); color: var(--ochre-text); margin-bottom: 16px; }

.steps {
  list-style: none; margin: 44px 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 18px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 500 0.8rem var(--mono); color: var(--ochre-text); margin-bottom: 10px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 0.98rem; }

.postures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: 56px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.postures > div { background: var(--surface); padding: 22px; }
.postures h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.postures p { font-size: 0.92rem; color: var(--text-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li {
  position: relative; padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--ink-border); color: var(--ink-muted);
}
.checks li:first-child { padding-top: 4px; }
.checks li:first-child::before { top: 9px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 23px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--ochre);
}
.checks strong { color: var(--ink-text); font-weight: 600; }

.stack { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.stack > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.stack dt { font: 500 0.78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding-top: 3px; }
.stack dd { margin: 0; font-weight: 500; }

/* ------------------------------------------------------------ contact form */
/* Same look as the hero console: an ink panel with dark fields, so the form
   belongs to the page instead of sitting on it as a white box. */
.next { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: next; display: grid; gap: 16px; max-width: 46ch; }
.next li { counter-increment: next; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--ink-text); }
.next li::before {
  content: counter(next);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--ink-border); color: var(--ochre); font: 500 0.85rem var(--mono);
}
.next li { padding-top: 0; line-height: 1.45; }
.next li > * { align-self: center; }
.contact-alt { margin-top: 30px; color: var(--ink-muted); font-size: 0.95rem; }
.contact-alt a { color: var(--ochre); text-underline-offset: 3px; }

.form {
  background: var(--ink-2); color: var(--ink-text);
  border: 1px solid var(--ink-border); border-radius: 16px;
  padding: clamp(20px, 3vw, 34px);
  display: grid; gap: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.seg {
  border: 1px solid var(--ink-border); margin: 0; padding: 4px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: #0c0f14; border-radius: 11px;
}
.seg label { position: relative; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: block; padding: 9px 10px; border-radius: 8px; white-space: nowrap;
  font-weight: 500; font-size: 0.95rem; color: var(--ink-muted);
  transition: background-color .15s, color .15s;
}
.seg label:hover span { color: var(--ink-text); }
.seg input:checked + span { background: var(--ochre); color: var(--on-ochre); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink-text); }
.opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink-text);
  background: #0c0f14; border: 1px solid var(--ink-border); border-radius: 9px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #3a4452; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(240, 169, 60, .22); }
.field [aria-invalid="true"] { border-color: #f08a7c; box-shadow: 0 0 0 3px rgba(240, 138, 124, .18); }
/* Keep browser autofill from painting the fields light. */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink-text);
  box-shadow: 0 0 0 1000px #0c0f14 inset;
  caret-color: var(--ink-text);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-end { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.form .btn { border: 0; padding-inline: 26px; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form-note { font-size: 0.82rem; line-height: 1.4; color: var(--ink-muted); }
.form-status { font-size: 0.95rem; padding: 11px 14px; border-radius: 9px; border: 1px solid var(--ink-border); background: #0c0f14; }
.form-status:empty { display: none; }
.form-status[data-kind="ok"] { color: #6fcf97; border-color: rgba(111, 207, 151, .4); }
.form-status[data-kind="error"] { color: #f08a7c; border-color: rgba(240, 138, 124, .4); }

.footer { background: var(--ink); border-top: 1px solid var(--ink-border); color: var(--ink-muted); padding-block: 44px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; }
.footer img { height: 30px; width: auto; margin-bottom: 12px; }
.warning { border-left: 3px solid var(--ochre); padding-left: 16px; }
.copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--ink-border); font-size: 0.84rem; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .cards.four, .steps, .postures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .split, .cards.three, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards.four, .steps, .postures { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 12px; }
  .nav .btn { display: none; }
  .brand img { height: 30px; }
  .stack > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .field-row, .form-end { grid-template-columns: minmax(0, 1fr); }
  .form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}
