/* Phoenix Security. Brand guide colors only: navy, Tropique, noir, blanc. */

/* Self-hosted so no visitor IP reaches a third party. Variable fonts, latin subset from
   Google Fonts (covers French). Licenses: /assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --navy: #0F1123;
  --tropique: #888B7F;
  --noir: #1D1D1B;
  --blanc: #FFFFFF;

  /* Tropique pulled darker so it can carry small text on white (7:1). */
  --tropique-ink: #55584E;

  /* Form errors only. 6.5:1 on white, 5.2:1 on the darkest mist band, where both forms sit. */
  --error: #B3261E;

  --font-sans: "Source Sans 3", "Myriad Pro", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --page: 1360px;
  --rule: 1px solid var(--tropique);
  --rule-strong: 2px solid var(--navy);
  --head-h: 72px;

  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem);
  --step-3: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.625rem, 1.2rem + 5.2vw, 5.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must win over display rules such as form { display: grid }. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 24px);
  scrollbar-color: var(--tropique) var(--blanc);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  caret-color: var(--navy);
}

::selection { background: var(--navy); color: var(--blanc); }
.cover ::selection, .foot ::selection { background: var(--blanc); color: var(--navy); }

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--tropique);
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.cover :focus-visible, .foot :focus-visible { outline-color: var(--blanc); }

h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--space-2); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  letter-spacing: 0;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.reg {
  margin-top: var(--space-4);
  max-width: 70ch;
  padding-top: var(--space-2);
  border-top: var(--rule-strong);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--navy);
  color: var(--blanc);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { top: 8px; }

/* ---------- Running head ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: var(--rule);
}
.head .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--head-h);
}
.head .brand { flex: none; display: block; }
.head .brand img { height: 48px; width: auto; }

.head .current {
  flex: 1;
  min-width: 0;
  color: var(--tropique-ink);
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.head .current.on { opacity: 1; transform: none; }
.head .current b { color: var(--navy); font-weight: 700; margin-right: 0.35em; font-variant-numeric: tabular-nums; }

.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav ul { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--noir); }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--tropique); }
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; }
.nav a.btn { color: var(--blanc); text-decoration: none; }
.nav a.btn:hover { color: var(--navy); }

.lang { display: flex; gap: 2px; font-size: 0.875rem; font-weight: 700; }
.lang a, .lang span { padding: 4px 6px; text-decoration: none; }
.lang span { background: var(--navy); color: var(--blanc); }
.lang a { color: var(--tropique-ink); }
.lang a:hover { color: var(--navy); }

.menu-btn { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.25em;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--blanc);
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { background: var(--blanc); color: var(--navy); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn.small { min-height: 40px; font-size: 0.9375rem; padding: 0 1em; }

.btn.on-navy { background: var(--blanc); color: var(--navy); border-color: var(--blanc); }
.btn.on-navy:hover { background: var(--navy); color: var(--blanc); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--tropique);
}
.textlink svg { width: 16px; height: 16px; }

/* ---------- Cover ---------- */

/* Navy field lit by two slow-moving glows: a lighter navy and a Tropique haze.
   Both stay inside the brand hues; the layer drifts so the cover never sits still. */
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--blanc);
}
.cover::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 48% at 80% 28%, rgba(136, 139, 127, 0.34), rgba(136, 139, 127, 0) 72%),
    radial-gradient(46% 56% at 12% 88%, rgba(52, 60, 118, 0.7), rgba(52, 60, 118, 0) 72%),
    linear-gradient(135deg, #0F1123 0%, #171B36 55%, #0F1123 100%);
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(-4%, -3%, 0) rotate(-2deg); }
  to { transform: translate3d(4%, 3%, 0) rotate(3deg); }
}
.cover .grid {
  padding-block: clamp(3.5rem, 8vw, 7rem) var(--space-5);
}
.cover h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 17ch;
}
.cover .lede {
  margin-top: var(--space-4);
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--blanc);
}
.cover .lede span { color: var(--tropique); }
.cover .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.cover .textlink { color: var(--blanc); }

/* Contents strip */
.contents {
  border-top: 1px solid rgba(136, 139, 127, 0.55);
}
.contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.contents li { border-right: 1px solid rgba(136, 139, 127, 0.35); }
.contents li:last-child { border-right: 0; }
.contents a {
  display: flex;
  gap: 0.5em;
  padding: 1rem 0.9rem 1.1rem;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blanc);
  height: 100%;
}
.contents li:first-child a { padding-left: 0; }
.contents a b { color: var(--tropique); font-variant-numeric: tabular-nums; font-weight: 700; }
.contents a:hover { text-decoration: underline; text-decoration-color: var(--tropique); }

/* ---------- Clauses ---------- */

.clause {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

/* Bands: paper, mist (Tropique tint) and navy (static cover gradient) alternate down the page. */
.tone-paper { background: var(--blanc); }
.tone-mist {
  background: linear-gradient(170deg, #F3F3F0 0%, #E6E7E2 100%);
}
.tone-mist .clause > .num { color: var(--tropique-ink); }
.tone-navy {
  background:
    radial-gradient(40% 70% at 90% 10%, rgba(136, 139, 127, 0.24), rgba(136, 139, 127, 0) 72%),
    radial-gradient(45% 80% at 5% 100%, rgba(52, 60, 118, 0.6), rgba(52, 60, 118, 0) 72%),
    linear-gradient(160deg, #0F1123 0%, #171B36 60%, #0F1123 100%);
  color: var(--blanc);
}
.tone-navy ::selection { background: var(--blanc); color: var(--navy); }
.tone-navy :focus-visible { outline-color: var(--blanc); }
.tone-navy .clause h2,
.tone-navy .sequence h3 { color: var(--blanc); }
.tone-navy .sequence li,
.tone-navy .rules li { border-color: rgba(136, 139, 127, 0.5); }
.tone-navy .sequence .n,
.tone-navy .sub > .n { color: var(--tropique); }
.clause > .num {
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.05;
  color: var(--tropique);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.clause > .body { min-width: 0; }
.clause h2 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.clause .intro {
  margin-top: var(--space-3);
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.45;
}
.clause .body > * + .block { margin-top: var(--space-5); }

.sub {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: var(--space-2);
}
.sub > .n {
  font-weight: 700;
  color: var(--tropique-ink);
  font-variant-numeric: tabular-nums;
}
.sub h3 { font-size: var(--step-1); font-weight: 700; color: var(--navy); line-height: 1.2; }
.sub p { margin-top: 0.35rem; max-width: 64ch; }

/* ---------- Specimens (services table) ---------- */

.specimens {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-5);
  font-size: 1rem;
  line-height: 1.5;
}
.specimens thead th {
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tropique-ink);
  padding: 0 var(--space-2) 0.75rem 0;
  border-bottom: var(--rule-strong);
  vertical-align: bottom;
}
.specimens tbody th, .specimens td {
  text-align: left;
  vertical-align: top;
  padding: 1.25rem var(--space-2) 1.35rem 0;
  border-bottom: var(--rule);
}
.specimens tbody th { width: 24%; }
.specimens td:last-child { width: 30%; }
.specimens tbody th .name {
  display: block;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.specimens tbody th a.name:hover { text-decoration: underline; text-decoration-color: var(--tropique); }
.specimens tbody th .n {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--tropique-ink);
  margin-bottom: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.specimens tbody th .more {
  display: inline-flex;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--noir);
  gap: 0.35em;
  align-items: center;
}
.specimens tbody th .more svg { width: 14px; height: 14px; }
.specimens td.excl { color: var(--tropique-ink); }
.specimens td.std { font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; width: 15%; }
.specimens tbody tr { transition: background-color 160ms ease-out; }

/* ---------- Method sequence ---------- */

.sequence {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  counter-reset: step;
}
.sequence li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 18rem) minmax(0, 1fr);
  column-gap: var(--space-2);
  padding-block: 1.25rem;
  border-top: var(--rule);
}
.sequence li:last-child { border-bottom: var(--rule); }
.sequence .n { font-weight: 700; color: var(--tropique-ink); font-variant-numeric: tabular-nums; }
.sequence h3 { font-size: var(--step-1); font-weight: 700; color: var(--navy); line-height: 1.2; }
.sequence p { max-width: 60ch; }

/* ---------- Exhibit: a page from a report ---------- */

.exhibit {
  --sheet-pad: clamp(1.25rem, 4.5vw, 3.75rem);
  max-width: 64rem;
  margin-top: var(--space-5);
  padding: 0 var(--sheet-pad);
  background: var(--blanc);
  border: 1px solid rgba(15, 17, 35, 0.08);
  box-shadow: 0 1px 2px rgba(15, 17, 35, 0.06), 0 28px 56px -24px rgba(15, 17, 35, 0.3);
}

/* Running head, as on every page of a report. */
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem var(--space-2);
  padding-block: 1.1rem 0.9rem;
  border-bottom: 1px solid var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tropique-ink);
}
.sheet-head img { height: 28px; width: auto; }
.sheet-head p { margin: 0; }
.sheet-head .ex { margin-left: auto; }

/* Title and severity. */
.finding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  padding-block: var(--space-4) var(--space-3);
}
.finding h3 {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.015em;
  max-width: 24ch;
  text-wrap: balance;
}
.sev { display: grid; justify-items: end; gap: 0.45rem; }
.sev-name { margin: 0; font-size: var(--step-1); font-weight: 800; line-height: 1; color: var(--navy); }
.scale { display: grid; grid-template-columns: repeat(5, 1.25rem); gap: 3px; }
.scale span { height: 0.45rem; background: rgba(136, 139, 127, 0.32); }
.scale span.on { background: var(--navy); }

.exhibit-preview {
  max-width: 60ch;
  padding-bottom: var(--space-3);
  font-size: 1.125rem;
  line-height: 1.5;
}
.exhibit-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-top: var(--rule-strong);
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.exhibit-details > summary::-webkit-details-marker { display: none; }
.exhibit-details > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.exhibit-details[open] > summary::after { content: "−"; }
.exhibit-details > summary:hover { text-decoration: underline; }
.exhibit-details > summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.exhibit-details .details-close, .exhibit-details[open] .details-open { display: none; }
.exhibit-details[open] .details-close { display: inline; }

/* Attribute table. */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--space-4);
  margin: 0;
  border-top: var(--rule-strong);
}
.facts div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: var(--rule);
  min-width: 0;
}
.facts dt { font-size: 0.875rem; font-weight: 700; color: var(--tropique-ink); }
.facts dd { margin: 0; font-weight: 600; color: var(--noir); overflow-wrap: anywhere; }
.facts dd.mono { font-family: var(--font-mono); font-weight: 400; font-size: 0.8125rem; line-height: 1.6; }

/* Sections, in reading order. */
.part { padding-top: var(--space-4); }
.part h4 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.part p { max-width: 68ch; }

.notes { list-style: none; margin: 0 0 var(--space-3); padding: 0; max-width: 68ch; }
.notes > li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.5rem; padding: 0.3rem 0; cursor: default; }
.notes > li .mark {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--navy);
  color: var(--blanc);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}
.notes > li:focus-visible { outline-offset: 2px; }

/* Figures: the evidence, captioned below as in a report. */
.traffic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-3);
}
.traffic figure { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.traffic figcaption {
  order: 2;
  padding-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tropique-ink);
}
.traffic pre {
  flex: 1;
  margin: 0;
  padding: var(--space-2) 0;
  background: #F5F5F2;
  border: 1px solid rgba(136, 139, 127, 0.4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  overflow-x: auto;
  scrollbar-width: thin;
}
.traffic code { display: block; }
.traffic .ln {
  display: block;
  padding: 0 var(--space-2);
  white-space: pre;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.traffic .ln.proof { background: rgba(136, 139, 127, 0.2); }
.traffic .ln.proof.lit { background: var(--navy); color: var(--blanc); }
.traffic .mark {
  display: inline-block;
  min-width: 1.5em;
  margin-left: 1ch;
  padding: 0 0.3em;
  background: var(--navy);
  color: var(--blanc);
  font-weight: 700;
  text-align: center;
}
.traffic .ln.lit .mark { background: var(--blanc); color: var(--navy); }
.traffic .redact { background: var(--noir); color: var(--noir); border-radius: 0; user-select: none; }
.traffic .ln.lit .redact { background: var(--blanc); color: var(--blanc); }

/* Remediation. */
.fix .steps { list-style: none; margin: 0; padding: 0; counter-reset: fix; max-width: 72ch; }
.fix .steps li {
  counter-increment: fix;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-top: var(--rule);
  line-height: 1.5;
}
.fix .steps li:last-child { border-bottom: var(--rule); }
.fix .steps li::before {
  content: counter(fix);
  font-weight: 700;
  color: var(--tropique-ink);
  font-variant-numeric: tabular-nums;
}
.fix-note { margin-top: var(--space-2); font-weight: 600; }

/* Retest and references side by side, then the page foot. */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.pair h4 { font-size: var(--step-0); margin-bottom: 0.4rem; }
.pair p { font-size: 1rem; line-height: 1.55; }
.sheet-foot {
  margin-top: var(--space-4);
  padding-block: 0.9rem 1.1rem;
  border-top: var(--rule);
  font-size: 0.8125rem;
  color: var(--tropique-ink);
}

@media (max-width: 960px) {
  .traffic, .pair, .facts { grid-template-columns: minmax(0, 1fr); }
  .pair { gap: var(--space-3); }
}
@media (max-width: 600px) {
  .finding { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sev { justify-items: start; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .sheet-head .ex { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Plain tables (deliverables, certifications) ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-5);
}
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 1rem var(--space-2) 1.1rem 0;
  border-bottom: var(--rule);
}
.table thead th {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tropique-ink);
  border-bottom: var(--rule-strong);
  padding-bottom: 0.75rem;
}
.table tbody th { font-weight: 700; color: var(--navy); width: 28%; }
.table td.quiet { color: var(--tropique-ink); }
.deliverable-cards { display: none; }

@media (max-width: 600px) {
  .deliverables-table { display: none; }
  .deliverable-cards { display: grid; gap: 0; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
  .deliverable-cards > li { padding-block: var(--space-2); border-top: var(--rule); }
  .deliverable-cards > li:last-child { border-bottom: var(--rule); }
  .deliverable-cards h3 { font-size: var(--step-1); font-weight: 700; color: var(--navy); }
  .deliverable-cards dl { display: grid; gap: 0.6rem; margin: 0.6rem 0 0; }
  .deliverable-cards dt { font-size: 0.8125rem; font-weight: 700; color: var(--tropique-ink); }
  .deliverable-cards dd { margin: 0.1rem 0 0; }
}

/* ---------- Rules list ---------- */

.rules { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.rules li { padding-block: 1rem; border-top: var(--rule); }
.rules li:last-child { border-bottom: var(--rule); }

/* ---------- Operator ---------- */

.operator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}



.operator .table { margin-top: 0; }
.research {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--rule-strong);
}
.research h4 { font-size: var(--step-1); font-weight: 700; color: var(--navy); }
.research p { margin-top: 0.5rem; max-width: 60ch; }
.research .note { color: var(--tropique-ink); font-size: 0.9375rem; }
.operator .table { align-self: start; }

/* ---------- Giveaway notice ---------- */

.notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
  padding: var(--space-3) 0;
  border-top: var(--rule-strong);
  border-bottom: var(--rule-strong);
}
.notice h3 { font-size: var(--step-1); color: var(--navy); font-weight: 800; }
.notice p { margin-top: 0.25rem; color: var(--tropique-ink); }

/* ---------- Form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}
form { display: grid; gap: var(--space-3); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; } /* level inputs in a .row */
.field label, fieldset legend {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
}
.field .hint { font-size: 0.875rem; color: var(--tropique-ink); }
.opt { font-weight: 400; color: var(--tropique-ink); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--noir);
  background: var(--blanc);
  border: 1px solid var(--tropique);
  border-bottom: 2px solid var(--navy);
  border-radius: 0;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--tropique-ink); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 0;
  border-color: var(--navy);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-bottom-width: 3px; }
.err { font-size: 0.875rem; font-weight: 700; color: var(--error); }
.err::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; background: var(--error); margin-right: 0.45em; vertical-align: 0.05em; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { margin-bottom: 0.5rem; padding: 0; }
.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--rule);
  border-left: var(--rule);
}
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-right: var(--rule);
  border-bottom: var(--rule);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
.check:hover { background: rgba(136, 139, 127, 0.12); }
.check:has(input:checked) { background: var(--navy); color: var(--blanc); }
input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid currentColor;
  color: inherit;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9375rem; color: var(--noir); }
.consent input { margin-top: 3px; color: var(--navy); }
/* The unticked box turns red while its message shows. Keyed on the message: these boxes have no id,
   so site.js does not mark them aria-invalid. */
.field:has(> .err) .consent input { color: var(--error); }

.submit { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.form-status { font-weight: 700; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="ok"] { color: var(--navy); }

.aside { border-top: var(--rule-strong); padding-top: var(--space-3); align-self: start; }
.aside h3 { font-size: var(--step-1); color: var(--navy); font-weight: 700; }
.aside ol { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.aside li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: 0.7rem 0; border-bottom: var(--rule); }
.aside li b { color: var(--tropique-ink); font-variant-numeric: tabular-nums; }
.aside p { margin-top: var(--space-3); font-size: 0.9375rem; color: var(--tropique-ink); }

.sent {
  border: var(--rule-strong);
  padding: var(--space-4) var(--space-3);
}
.sent h3 { font-size: var(--step-2); color: var(--navy); font-weight: 800; }
.sent p { margin-top: var(--space-2); max-width: 52ch; }
.quick-pay {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: var(--rule-strong);
}
.quick-pay h3 { color: var(--navy); font-size: var(--step-1); font-weight: 700; }
.quick-pay p, .sent .quick-pay p { margin: 0; max-width: 60ch; }
.quick-pay .btn { background: transparent; color: var(--navy); }
.quick-pay .btn:hover { background: var(--navy); color: var(--blanc); }
.sent .quick-pay .btn { background: var(--navy); color: var(--blanc); }
.sent .quick-pay .btn:hover { background: var(--blanc); color: var(--navy); }
.quick-pay .pay-note { color: var(--tropique-ink); font-size: 0.9375rem; }
@media (max-width: 600px) {
  .quick-pay .btn { width: 100%; justify-content: center; }
}

/* ---------- Foot ---------- */

.foot {
  background:
    radial-gradient(40% 90% at 92% 100%, rgba(136, 139, 127, 0.26), rgba(136, 139, 127, 0) 72%),
    linear-gradient(180deg, #171B36 0%, #0F1123 70%);
  color: var(--blanc);
}
.foot .grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.foot img { height: 44px; width: auto; }
.foot .entity { margin-top: var(--space-3); color: var(--tropique); font-size: 0.9375rem; }
.foot h2 { font-size: 0.9375rem; font-weight: 700; color: var(--tropique); margin-bottom: 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.foot a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--tropique); }
.foot .colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
  padding-block: var(--space-2) var(--space-3);
  border-top: 1px solid rgba(136, 139, 127, 0.55);
  font-size: 0.875rem;
  color: var(--tropique);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav ul { gap: var(--space-2); }
  .head .current { display: none; }
  .contents ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contents li:nth-child(4n) { border-right: 0; }
  .contents li:nth-child(5) a { padding-left: 0; }
  .contents li { border-bottom: 1px solid rgba(136, 139, 127, 0.35); }
}

@media (max-width: 960px) {
  .clause { grid-template-columns: minmax(0, 1fr); }
  .clause > .num { font-size: var(--step-2); margin-bottom: 0.25rem; }
  .specimens thead { display: none; }
  .specimens, .specimens tbody, .specimens tr, .specimens th, .specimens td { display: block; width: 100%; }
  .specimens tbody tr { border-bottom: var(--rule-strong); padding-block: 1.25rem; }
  .specimens tbody th, .specimens td { border: 0; padding: 0.35rem 0; width: auto; }
  .specimens tbody th { width: auto; }
  .specimens td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tropique-ink);
    font-family: var(--font-sans);
  }
  .specimens td.std, .specimens td:last-child { width: auto; }
  .sequence li { grid-template-columns: 3rem minmax(0, 1fr); }
  .sequence li p { grid-column: 2; margin-top: 0.35rem; }
  .operator, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .foot .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-left: auto;
    min-height: 40px;
    padding: 0 0.9rem;
    background: var(--blanc);
    color: var(--navy);
    border: 2px solid var(--navy);
    font: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
  }
  .nav {
    position: absolute;
    top: var(--head-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blanc);
    border-bottom: var(--rule-strong);
    padding: 0 var(--gutter) var(--space-3);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 0.9rem 0; border-bottom: var(--rule); font-size: 1.125rem; }
  .lang { margin-top: var(--space-2); }
  .nav .btn { margin-top: var(--space-2); justify-content: center; }
}

@media (max-width: 600px) {
  :root { --head-h: 64px; }
  .head .brand img { height: 40px; }
  .contents ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contents li { border-right: 0; }
  .contents li:nth-child(odd) { border-right: 1px solid rgba(136, 139, 127, 0.35); }
  .contents li a { padding-left: 0.9rem; }
  .contents li:nth-child(odd) a { padding-left: 0; }
  .sub { grid-template-columns: 3rem minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .notice { grid-template-columns: minmax(0, 1fr); }
  .foot .grid { grid-template-columns: minmax(0, 1fr); }
  .cover .actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

/* ---------- Company ---------- */
.operator h3 { font-size: var(--step-1); font-weight: 700; color: var(--navy); }
.operator .table { margin-top: var(--space-2); }

.operator .research { margin-top: 0; padding-top: 0; border-top: 0; }


/* ---------- Document pages (privacy) ---------- */
.cover-page .grid { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.cover-page h1 { font-size: var(--step-3); max-width: 22ch; }
.cover-page .lede { margin-top: var(--space-3); }
.cover .updated { margin-top: var(--space-3); color: var(--tropique); font-size: 0.9375rem; }
.offer .offer-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  max-width: 54rem;
  margin-top: var(--space-3);
  padding-block: 0.8rem;
  border-block: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  line-height: 1.35;
}
.offer .offer-promo strong {
  padding: 0.35rem 0.65rem;
  background: var(--blanc);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.offer .offer-promo span { color: var(--blanc); }
.offer .lede { margin-top: var(--space-3); }

.legal { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.legal-sec {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: var(--rule);
}
.legal-sec:first-child { border-top: 0; padding-top: 0; }
.legal-sec:last-child { padding-bottom: 0; }
.legal-sec > .num {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.1;
  color: var(--tropique-ink);
  font-variant-numeric: tabular-nums;
}
.legal-sec > .body { min-width: 0; }
.legal-sec h2 { font-size: var(--step-2); font-weight: 800; color: var(--navy); letter-spacing: -0.015em; }
.legal-sec .body > p, .legal-sec .list { margin-top: var(--space-2); max-width: 68ch; }
.legal-sec .list { padding-left: 1.2em; }
.legal-sec .list li + li { margin-top: 0.35rem; }
.legal-sec .list li::marker { color: var(--tropique-ink); }
.legal-sec .table { margin-block: var(--space-3); font-size: 1rem; line-height: 1.5; }
.legal-sec .table tbody th { width: 18%; }

@media (max-width: 960px) {
  .legal-sec { grid-template-columns: minmax(0, 1fr); }
  .legal-sec > .num { margin-bottom: 0.25rem; }
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack th, .table.stack td { display: block; width: 100%; }
  .table.stack tbody tr { border-bottom: var(--rule-strong); padding-block: 1rem; }
  .table.stack tbody th, .table.stack td { border: 0; padding: 0.3rem 0; width: auto; }
  .table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tropique-ink);
  }
}

/* ---------- 404 page: the cover fills the screen, so no bare strip shows under a short page ---------- */
.cover.lost { min-height: calc(100svh - var(--head-h)); display: grid; align-content: center; }

/* ---------- Service pages (/services/<slug>/) ---------- */
.cover .kicker { margin-bottom: var(--space-2); color: var(--tropique); font-size: 0.9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.qa { margin: var(--space-2) 0 0; max-width: 68ch; }
.qa > div { padding-block: var(--space-2); border-top: var(--rule); }
.qa > div:first-child { border-top: 0; padding-top: 0; }
.qa dt { font-weight: 700; color: var(--navy); }
.qa dd { margin: 0.35rem 0 0; }
.svc-next {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.svc-next h2 { font-size: var(--step-2); font-weight: 800; color: var(--blanc); letter-spacing: -0.015em; }
.svc-next .ask p { margin: var(--space-2) 0 var(--space-3); max-width: 48ch; }
.svc-next .others h2 { font-size: var(--step-0); }
.svc-next .others ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.svc-next .others li { border-top: 1px solid rgba(136, 139, 127, 0.5); }
.svc-next .others li:last-child { border-bottom: 1px solid rgba(136, 139, 127, 0.5); }
.svc-next .others a { display: flex; gap: 1rem; padding-block: 0.75rem; color: var(--blanc); text-decoration: none; font-weight: 700; }
.svc-next .others a:hover { text-decoration: underline; text-decoration-color: var(--tropique); }
.svc-next .others b { color: var(--tropique); font-variant-numeric: tabular-nums; min-width: 2.25rem; }
@media (max-width: 960px) {
  .svc-next { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}

/* ---------- Giveaway form (/pentest/) ---------- */
.entry { margin-top: var(--space-3); max-width: 46rem; }
.checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
input[type="radio"] {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
input[type="radio"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
input[type="radio"]:checked::after { transform: scale(1); }
.field .label { font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.field .fixed {
  padding: 0.65rem 0.8rem;
  border-left: var(--rule-strong);
  background: var(--blanc);
  font-weight: 600;
}
.ticks { display: grid; gap: var(--space-2); padding-top: var(--space-2); border-top: var(--rule-strong); }
.statements .label { font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.statements .list { margin: 0.5rem 0 var(--space-1); padding-left: 1.2em; font-size: 1rem; }
.statements .list li + li { margin-top: 0.35rem; }
.tone-mist .sent { background: var(--blanc); }

@media (max-width: 600px) {
  .checks.two { grid-template-columns: minmax(0, 1fr); }
}
