/* Securealy design system. Contract: docs/design-system.md. Paper and ink, one accent, grade colors. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F5F2EC;
  --paper-2: #ECE8E0;
  --ink: #171512;
  --ink-2: #5A564F;
  --rule: rgba(23, 21, 18, .14);
  --accent: #2140D6;
  --grade-a: #1E7A46;
  --grade-b: #4A8A2A;
  --grade-c: #B8860B;
  --grade-d: #C2531B;
  --grade-f: #B4231F;
  --on-accent: #F5F2EC;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;

  --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-17: 17px; --fs-20: 20px;
  --fs-24: 24px; --fs-32: 32px; --fs-44: 44px; --fs-64: 64px; --fs-96: 96px;
  --grade-size: 112px;

  --gutter: 16px;
  --section: 64px;
  --text-col: 42rem;
  --report-col: 60rem;
  --page-max: 76rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110;
    --paper-2: #1B1917;
    --ink: #EDE9E1;
    --ink-2: #A39E95;
    --rule: rgba(237, 233, 225, .16);
    --accent: #7E93FF;
    --grade-a: #4FC57E;
    --grade-b: #86CB5A;
    --grade-c: #E3B341;
    --grade-d: #F07E45;
    --grade-f: #F25D57;
    --on-accent: #121110;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1B1917;
  --ink: #EDE9E1;
  --ink-2: #A39E95;
  --rule: rgba(237, 233, 225, .16);
  --accent: #7E93FF;
  --grade-a: #4FC57E;
  --grade-b: #86CB5A;
  --grade-c: #E3B341;
  --grade-d: #F07E45;
  --grade-f: #F25D57;
  --on-accent: #121110;
  color-scheme: dark;
}

@media (min-width: 48rem) {
  :root { --gutter: 32px; --section: 96px; --grade-size: 160px; }
}
@media (min-width: 64rem) {
  :root { --gutter: 48px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-16);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 48rem) { body { font-size: var(--fs-17); } }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1, h2, .display {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  line-height: .98;
  font-weight: 500;
}
h1 { font-size: var(--fs-44); letter-spacing: -.01em; }
h2 { font-size: var(--fs-32); }
h3 { font-size: var(--fs-20); line-height: 1.3; }
h4 { font-size: var(--fs-17); line-height: 1.35; }
@media (min-width: 48rem) {
  h1 { font-size: var(--fs-64); letter-spacing: -.015em; }
  h2 { font-size: var(--fs-44); }
}
.h-xl { font-size: var(--fs-64); }
@media (min-width: 48rem) { .h-xl { font-size: var(--fs-96); letter-spacing: -.02em; } }

p, ul, ol, dl, table, pre, figure, blockquote { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 500; }
small, .small { font-size: var(--fs-14); }
.muted { color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
img, svg { max-width: 100%; height: auto; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
code { font-size: .92em; }
pre {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: var(--fs-13);
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
pre code { font-size: inherit; }
.evidence {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout */
.wrap { max-width: var(--page-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.text { max-width: var(--text-col); }
.report { max-width: var(--report-col); }
.section { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.section.first, .section.flush { border-top: 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { max-width: var(--text-col); margin: 0; }
.label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.lede { font-size: var(--fs-20); line-height: 1.45; max-width: var(--text-col); }
@media (min-width: 48rem) { .lede { font-size: var(--fs-24); } }
.stack > * + * { margin-top: 24px; }
.split { display: grid; gap: 32px; }
.split > *, .cols > *, .result-head > *, .plans > *, .steps li > *, .rows > * > * { min-width: 0; }
.split h2 { margin-bottom: 12px; }
@media (min-width: 48rem) {
  .split { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .split.label-col { grid-template-columns: 11rem 1fr; }
}
.cols { display: grid; gap: 32px; }
@media (min-width: 48rem) { .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.rows > * { padding: 24px 0; border-top: 1px solid var(--rule); }
.rows > *:last-child { border-bottom: 1px solid var(--rule); }
.box { border: 1px solid var(--rule); border-radius: 4px; padding: 24px; }
.box > :last-child { margin-bottom: 0; }
.hidden { display: none !important; }
.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; }

/* Header and footer */
a.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 100; text-decoration: none; border-radius: 2px; }
a.skip:focus { left: 8px; }
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.wordmark { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.wordmark img { width: 115px; height: 28px; }
.wm-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wm-light { display: none; }
  :root:not([data-theme="light"]) .wm-dark { display: inline; }
}
:root[data-theme="dark"] .wm-light { display: none; }
:root[data-theme="dark"] .wm-dark { display: inline; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1.5px; }
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: var(--fs-14); color: var(--ink-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot a { color: var(--ink-2); }
.site-foot p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 2px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:hover { text-decoration: none; }
.btn.primary:hover { filter: brightness(.94); }
.btn:not(.primary):hover { background: var(--paper-2); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Inputs */
input[type="text"], input[type="email"], input[type="url"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-16);
}
input[type="url"], input.mono { font-family: var(--mono); font-size: 15px; }
input:focus { outline: 0; border-color: var(--ink); }
input::placeholder { color: var(--ink-2); opacity: .8; }
.field { display: flex; gap: 12px; flex-wrap: wrap; }
.field input { flex: 1 1 14rem; }
.msg { margin: 10px 0 0; font-size: var(--fs-14); min-height: 1.4em; }
.msg.ok { color: var(--grade-a); }
.msg.err { color: var(--grade-f); }
.capture { max-width: var(--text-col); }
.capture p { margin-bottom: 12px; }

/* The grader input: the hero. Button inside the right edge. */
.grader { position: relative; max-width: var(--text-col); }
.grader input {
  height: 56px;
  padding-right: 128px;
  font-size: var(--fs-16);
}
.grader .btn { position: absolute; right: 6px; top: 6px; height: 44px; min-height: 44px; }
@media (max-width: 30rem) {
  .grader input { padding-right: 14px; }
  .grader .btn { position: static; width: 100%; margin-top: 10px; }
}
.grader-note { font-size: var(--fs-14); color: var(--ink-2); margin-top: 12px; }

/* Grade stamp */
.stamp { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.stamp .ring {
  display: flex; align-items: center; justify-content: center;
  width: calc(var(--grade-size) * 1.35);
  height: calc(var(--grade-size) * 1.35);
  border: 1.5px solid var(--g, var(--ink-2));
  border-radius: 50%;
  color: var(--g, var(--ink-2));
}
.stamp .letter {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  font-weight: 600;
  font-size: var(--grade-size);
  line-height: 1;
  letter-spacing: -.02em;
  transform: translateY(-.02em);
}
.stamp .score { font-family: var(--mono); font-size: var(--fs-14); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stamp.small { gap: 6px; }
.stamp.small .ring { width: 64px; height: 64px; }
.stamp.small .letter { font-size: 44px; }
.stamp.pending .ring { border-style: dashed; }
.g-A { --g: var(--grade-a); } .g-B { --g: var(--grade-b); } .g-C { --g: var(--grade-c); } .g-D { --g: var(--grade-d); } .g-F { --g: var(--grade-f); }

/* Score bar */
.scorebar { height: 4px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; margin: 12px 0 0; }
.scorebar i { display: block; height: 100%; background: var(--g, var(--ink-2)); }

/* Check rows */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.checks li { border-bottom: 1px solid var(--rule); }
.check {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  align-items: baseline;
}
.check .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); margin-top: 2px; align-self: start; transform: translateY(6px); }
.check.pass .dot { background: var(--grade-a); }
.check.warn .dot { background: var(--grade-c); }
.check.fail .dot { background: var(--grade-d); }
.check.blocker .dot, .check.fail.blocker .dot { background: var(--grade-f); }
.check.skip .dot, .check.error .dot { background: transparent; border: 1.5px solid var(--ink-2); width: 8px; height: 8px; }
.check .title { font-weight: 500; }
.check .title a { color: inherit; text-decoration: none; }
.check .title a:hover { text-decoration: underline; }
.check .tag { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; margin-left: 8px; }
.check .evidence-line { grid-column: 2; font-family: var(--mono); font-size: var(--fs-14); color: var(--ink-2); overflow-wrap: anywhere; }
.check .fix { grid-column: 3; grid-row: 1; font-size: var(--fs-14); white-space: nowrap; justify-self: end; }
@media (max-width: 30rem) {
  .check { grid-template-columns: 16px 1fr; }
  .check .fix { grid-column: 2; grid-row: auto; justify-self: start; }
}
.group-head { padding: 28px 0 10px; display: flex; align-items: baseline; gap: 12px; }
.group-head h3 { font-size: var(--fs-17); font-weight: 500; }
.group-head .count { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
details.passed > summary { cursor: pointer; padding: 16px 0; list-style: none; display: flex; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--rule); font-weight: 500; }
details.passed > summary::-webkit-details-marker { display: none; }
details.passed > summary::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grade-a); transform: translateY(-1px); }
details.passed > summary .hint { font-weight: 400; color: var(--ink-2); font-size: var(--fs-14); }
details.passed[open] > summary .hint { visibility: hidden; }

/* Progress list: rows appear one by one as results arrive. */
.progress .check { animation: appear .32s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.progress .check.pending .dot { border: 1.5px solid var(--rule); background: transparent; }
.progress .check.pending .title { color: var(--ink-2); font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
  .progress .check { animation: none; }
  html { scroll-behavior: auto; }
}

/* Summary counts */
.counts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: var(--fs-14); }
.counts li { display: flex; align-items: center; gap: 8px; }
.counts i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.counts .n { font-variant-numeric: tabular-nums; color: var(--ink); }
.counts .k { color: var(--ink-2); }

/* Result header */
.result-head { display: grid; gap: 32px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .result-head { grid-template-columns: auto 1fr; gap: 48px; } }
.result-head .stamp { justify-self: start; }
.result-head .host { font-family: var(--mono); font-size: var(--fs-14); color: var(--ink-2); overflow-wrap: anywhere; }
.result-head h1 { font-size: var(--fs-32); margin: 8px 0 12px; }
@media (min-width: 48rem) { .result-head h1 { font-size: var(--fs-44); } }
.result-head .capped { color: var(--grade-f); font-weight: 500; }
.stackline { font-family: var(--mono); font-size: var(--fs-14); color: var(--ink-2); margin: 16px 0 0; }
.stackline span + span::before { content: ' · '; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: var(--fs-16); }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; }
td.mono { font-family: var(--mono); font-size: var(--fs-14); }
.table-wrap { overflow-x: auto; }

/* Catalogue */
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cat-row .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.cat-row a { color: var(--ink); text-decoration: none; font-weight: 500; }
.cat-row a:hover { text-decoration: underline; }
.cat-row .what { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--fs-14); margin: 0; }

/* Pricing */
.plans { display: grid; gap: 0; }
.plans > * { padding: 24px 0; border-top: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plans > * { border-top: 0; padding-top: 0; }
  .plans > * + * { border-left: 1px solid var(--rule); padding-left: 32px; margin-left: 32px; }
}
.price { font-family: var(--display); font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1; font-size: var(--fs-44); font-weight: 500; line-height: 1; margin: 8px 0 4px; }
.price small { font-family: var(--mono); font-size: var(--fs-14); font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.plan { display: flex; flex-direction: column; }
.plan ul { padding-left: 1.1em; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-14); color: var(--ink-2); padding-top: 4px; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: var(--text-col); }

/* Prose pages */
.prose { max-width: var(--text-col); }
.prose h2 { font-size: var(--fs-24); margin: 40px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose pre { margin: 16px 0 24px; }
.prose table { font-size: var(--fs-14); }

/* Share row */
.share { display: grid; gap: 16px; }
.share .badge { display: inline-block; border: 1px solid var(--rule); border-radius: 4px; padding: 6px; }
.share input { font-family: var(--mono); font-size: var(--fs-14); }

/* Inline 16px icons as 1.5px strokes */
.ico { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; vertical-align: -3px; }

/* Misc */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; font-size: var(--fs-14); }
.kv dt { font-family: var(--mono); color: var(--ink-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.notice { border: 1px solid var(--rule); border-radius: 4px; padding: 16px 20px; max-width: var(--text-col); }
.notice p:last-child { margin-bottom: 0; }

/* Interval toggle (monthly / annual) on the monitor plans */
.toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; }
.toggle button { min-height: 40px; padding: 0 16px; background: transparent; border: 0; color: var(--ink); font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; }
.toggle button + button { border-left: 1px solid var(--ink); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
