/* The Haba Mail element kit and home page.
 *
 * Rules this file exists to hold, from the overhaul specification:
 *   radius 0 everywhere · no decorative shadow, glow, gradient or blur · no opacity used to make a
 *   colour · spacing on the 8px grid · 1px rules · a 2px ink border reserved for the one thing on a
 *   screen nobody expects, never more than one.
 *
 * Every colour is a token from brand-tokens.css. scripts/check-ui-rules.mjs fails the build on a
 * stray radius, a stray shadow or a colour literal in this file or styles.css.
 */

:root {
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-6: 24px;
  --gap-8: 32px;
  --gap-10: 40px;
  --gap-12: 48px;
  --gap-16: 64px;
  --gap-20: 80px;
  --gap-24: 96px;
  --gap-28: 112px;
  --shell: 1440px;
  --shell-pad: clamp(20px, 4.5vw, 80px);
  --section-pad: clamp(64px, 9vw, 112px);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* ⚠️ The band carries the ground and spans the viewport. The shell inside carries the width.
   Never put a max-width on a .band, and never put a background on a .shell. */
.band {
  width: 100%;
}

.band-ink {
  background: var(--brand-ink);
  color: var(--brand-paper);
}

.band-paper {
  background: var(--brand-paper);
  color: var(--brand-ink);
}

.band-card {
  background: var(--brand-card);
  color: var(--brand-ink);
}

.ground-ink {
  background: var(--brand-ink);
  color: var(--brand-paper);
}

.ground-paper {
  background: var(--brand-paper);
  color: var(--brand-ink);
}

.ground-card {
  background: var(--brand-card);
  color: var(--brand-ink);
}

/* ---- type ---------------------------------------------------------------------------------- */

.kit h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.kit h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.kit h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.kit p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Silkscreen only at 8, 16 or 24. Uppercase. Never a sentence with a comma. */
/* 16px on marketing pages. 8px is allowed only in dense product UI (dashboard tables, chips) and
   never for information that is not also said elsewhere - it is a label size, not a caption size.
   ⚠️ letter-spacing is 0 and must stay 0: Silkscreen is drawn on an 8px grid and spacing it puts
   the stems on half pixels. scripts/check-ui-rules.mjs fails on any letter-spacing near the
   display font. */
.section-label,
.state-word,
.eyebrow-label {
  font-family: var(--brand-display);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--brand-body-grey);
}

.kit-dense .section-label,
.kit-dense .state-word {
  font-size: 8px;
}

/* The ink-ground override. It must name .band-ink as well as .ground-ink: renaming the wrapper
   class silently dropped it, and --brand-body-grey is a PAPER value that measures 2.94:1 on ink. */
.band-ink .section-label,
.band-ink .eyebrow-label,
.ground-ink .section-label,
.ground-ink .eyebrow-label {
  color: var(--brand-highlight);
}

/* A hint outside a .field.on-ink wrapper still needs the ink-ground muted value. */
.band-ink .field-hint,
.home-hero-note {
  color: var(--brand-label-ink);
}

.mono {
  font-family: var(--brand-mono);
  font-size: 12px;
}

/* ---- lockup -------------------------------------------------------------------------------- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-2);
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.lockup .wordmark {
  font-family: var(--brand-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

/* ---- buttons ------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: var(--gap-4) var(--gap-6);
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--brand-display);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: var(--brand-card);
}

.btn-primary:hover {
  background: var(--brand-rule-ink);
  border-color: var(--brand-rule-ink);
}

/* On ink the primary inverts: paper fill, ink label. 15.97:1 either way. */
.btn-primary.on-ink {
  background: var(--brand-paper);
  border-color: var(--brand-paper);
  color: var(--brand-ink);
}

.btn-primary.on-ink:hover {
  background: var(--brand-card-raised);
  border-color: var(--brand-card-raised);
}

.btn-secondary {
  min-height: 44px;
  background: transparent;
  border-color: currentColor;
  color: inherit;
  /* Silkscreen at 8px is the spec, but a secondary may carry a multi-word sentence label (the
     local demo entry points do). §11 sends those to Plex Sans, so the face follows the string. */
  font-family: var(--brand-sans);
  font-size: 15px;
  text-transform: none;
}

.btn-secondary.shout {
  font-family: var(--brand-display);
  font-size: 8px;
  text-transform: uppercase;
}

.btn-tertiary {
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--brand-sans);
  font-size: 16px;
  text-transform: none;
}

/* Chilli is the only fill besides ink that may carry text. Paper on it is 5.22:1. */
.btn-destructive {
  background: var(--brand-shade);
  border-color: var(--brand-shade);
  color: var(--brand-card);
}

.btn:disabled {
  background: var(--brand-sunken);
  border-color: var(--brand-sunken);
  color: var(--brand-body-grey);
  cursor: not-allowed;
}

/* ⚠️ Never a glow. 2px in the current text colour so it works on either ground. */
.kit :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---- fields -------------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  min-width: 0;
}

.field label {
  font-size: 14px;
  font-weight: 500;
}

.field input {
  min-height: 56px;
  box-sizing: border-box;
  padding: 15px var(--gap-4);
  background: var(--brand-card-raised);
  border: 1px solid var(--brand-ink);
  border-radius: 0;
  color: var(--brand-ink);
  font-family: var(--brand-mono);
  font-size: 16px;
}

.field.on-ink input {
  background: transparent;
  border-color: var(--brand-label-ink);
  color: var(--brand-paper);
}

.field input::placeholder {
  color: var(--brand-body-grey);
  opacity: 1;
}

.field.on-ink input::placeholder {
  color: var(--brand-label-ink);
}

.field input.has-error {
  border: 2px solid var(--brand-shade);
}

.field-hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-body-muted);
  text-wrap: pretty;
}

.field.on-ink .field-hint {
  color: var(--brand-label-ink);
}

.field-error {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-shade);
}

.field.on-ink .field-error {
  color: var(--brand-highlight);
}

.field-error-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--brand-shade);
  color: var(--brand-card);
  font-family: var(--brand-display);
  font-size: 8px;
}

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

/* ---- state marks --------------------------------------------------------------------------- */

/* ⚠️ SHAPE carries the meaning. Solid, half, open, dashed, chilli-with-cross - all legible in
   greyscale, and each always accompanied by its Silkscreen word. */
.state-row {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-2);
}

.state-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid var(--brand-ink);
  border-radius: 0;
  font-family: var(--brand-display);
  font-size: 8px;
  line-height: 1;
}

.state-verified {
  background: var(--brand-ink);
}

/* Half filled: partial evidence. The split is a hard edge, not a gradient of one colour. */
.state-likely {
  background: linear-gradient(90deg, var(--brand-ink) 0 50%, transparent 50% 100%);
}

.state-not_found {
  background: transparent;
}

.state-unknown {
  background: transparent;
  border-style: dashed;
}

.state-invalid {
  background: var(--brand-shade);
  border-color: var(--brand-shade);
  color: var(--brand-card);
}

.on-ink .state-mark {
  border-color: var(--brand-paper);
  color: var(--brand-paper);
}

.on-ink .state-verified {
  background: var(--brand-paper);
}

.on-ink .state-likely {
  background: linear-gradient(90deg, var(--brand-paper) 0 50%, transparent 50% 100%);
}

.on-ink .state-word {
  color: var(--brand-paper);
}

/* ---- section header, grids, inline status -------------------------------------------------- */

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  max-width: 720px;
}

/* 1px gap grid: the rule IS the gap, so an incomplete row shows paper rather than filler cells. */
.cell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  padding: 1px;
}

.cell {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  padding: var(--gap-8) var(--gap-6);
  background: var(--brand-card);
  outline: 1px solid var(--brand-rule);
}

.inline-status {
  display: block;
  margin: 0;
  padding: var(--gap-3) var(--gap-4);
  font-size: 14px;
  line-height: 1.6;
}

.status-done {
  background: var(--brand-ink);
  color: var(--brand-paper);
}

.status-working {
  background: transparent;
  outline: 1px solid var(--brand-ink);
}

.status-failed {
  background: var(--brand-shade);
  color: var(--brand-card);
}

@media (prefers-reduced-motion: reduce) {
  .kit * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- home page ----------------------------------------------------------------------------- */

.home-section {
  padding-top: var(--section-pad);
}

.home-section-last {
  padding-bottom: var(--section-pad);
}

/* The status band should be the first thing you meet on scroll, so the hero owns the first screen
   minus the sticky header. svh rather than vh so a mobile URL bar does not crop it. */
.home-hero {
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 72px), 920px);
}

.home-hero-inner {
  flex: 1 1 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap-6);
  min-width: 0;
}

.home-hero-lede {
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--brand-body-ink);
}

.home-hero-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  max-width: 560px;
}

/* Input and button share one row; the note sits under both. The button is never allowed below the
   note, which is what a column layout did. */
.home-hero-row {
  display: flex;
  gap: var(--gap-3);
  flex-wrap: wrap;
  align-items: flex-end;
}

.home-hero-row .field {
  flex: 1 1 260px;
}

.home-hero-row .btn {
  flex: 0 0 auto;
}

.home-lede {
  max-width: 48ch;
  font-size: 16.5px;
  color: var(--brand-body-paper);
}

.cell-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--brand-body-muted);
  text-wrap: pretty;
}

.cell-index {
  font-family: var(--brand-display);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--brand-shade);
}

.home-jobs,
.reading-grid {
  margin-top: var(--gap-10);
}

.home-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.home-split-copy,
.home-split-aside {
  display: flex;
  flex-direction: column;
  gap: var(--gap-6);
  min-width: 0;
}

/* Where one column is much shorter than the other, the short one follows rather than leaving a
   growing hole beside the long one. 96px clears the sticky header. */
.home-split-aside {
  position: sticky;
  top: 96px;
}

@media (max-width: 880px) {
  .home-split-aside {
    position: static;
  }
}

.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--brand-rule);
}

.rule-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--gap-3);
  padding: var(--gap-4) 0;
  border-bottom: 1px solid var(--brand-rule);
  font-size: 15.5px;
  line-height: 1.55;
}

.rule-index {
  font-family: var(--brand-display);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--brand-shade);
  padding-top: 5px;
}

/* ⚠️ The ONE 2px ink border on this screen. Never more than one per screen. */
.specimen-message {
  border: 2px solid var(--brand-ink);
  background: var(--brand-card-raised);
}

.specimen-message header,
.specimen header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-3);
  flex-wrap: wrap;
  padding: var(--gap-3) var(--gap-6);
  border-bottom: 1px solid var(--brand-rule);
}

.specimen-body {
  padding: var(--gap-6);
  display: flex;
  flex-direction: column;
  gap: var(--gap-4);
  font-family: var(--brand-mono);
  font-size: 13.5px;
  line-height: 1.7;
}

.specimen-headers {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2px var(--gap-2);
  margin: 0;
  color: var(--brand-body-muted);
}

.specimen-headers dt {
  margin: 0;
}

.specimen-headers dd {
  margin: 0;
  color: var(--brand-ink);
  word-break: break-all;
}

.specimen-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  padding-top: var(--gap-4);
  border-top: 1px solid var(--brand-sunken);
}

.specimen-text p {
  font-size: 13.5px;
}

.specimen-identification {
  border-left: 2px solid var(--brand-shade);
  padding-left: var(--gap-3);
  color: var(--brand-body-muted);
}

.home-note {
  font-size: 14px;
  color: var(--brand-body-muted);
}

/* ---- hero specimen ------------------------------------------------------------------------- */

.specimen {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--brand-rule-ink);
  background: var(--brand-ink-panel);
}

.specimen header .section-label {
  color: var(--brand-paper);
}

.specimen header .mono,
.specimen-foot {
  color: var(--brand-label-ink);
}

.specimen-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--gap-4);
  padding: 18px var(--gap-6);
  border-bottom: 1px solid var(--brand-rule-ink);
  align-items: start;
}

.specimen-row > div {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  min-width: 0;
}

.specimen-key {
  font-family: var(--brand-display);
  font-size: 16px;
  line-height: 1.1;
  color: var(--brand-paper);
}

.specimen-say {
  font-size: 14px;
  line-height: 1.55;
  color: var(--brand-body-ink);
}

.specimen-foot {
  padding: var(--gap-3) var(--gap-6);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---- network band -------------------------------------------------------------------------- */

.network-band {
  border-bottom: 1px solid var(--brand-rule);
}

.network-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px var(--gap-10);
  flex-wrap: wrap;
  padding-top: var(--gap-6);
  padding-bottom: var(--gap-6);
}

.network-band-inner > div:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  flex: 1 1 380px;
  min-width: 0;
}

.network-band-label {
  color: var(--brand-shade);
}

.network-count {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

/* Fixed 5 x 5 at 2x. A wrapping flex row re-flowed into a different ragged shape at every width,
   which made the same count look like a different quantity. */
.network-slots {
  display: grid;
  grid-template-columns: repeat(5, 32px);
  gap: 6px;
}

.network-count-text {
  font-family: var(--brand-display);
  font-size: 16px;
}

/* ---- cannot panel, readings, pricing ------------------------------------------------------- */

/* The standard 1px-gap outline grid, like every other cell grid. The old version drew its own
   border AND a border-bottom on each row, which doubled the rule where they met and left a dead
   corner at the end of the list. */
.cannot-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 1px;
  padding: 1px;
}

.cannot-intro {
  display: flex;
  flex-direction: column;
  gap: var(--gap-4);
  padding: clamp(28px, 4vw, 48px);
  background: var(--brand-card);
  outline: 1px solid var(--brand-rule);
}

.cannot-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--brand-card);
  outline: 1px solid var(--brand-rule);
}

/* A separator above every row except the first, and rows stretch to fill the cell height. */
.cannot-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--gap-2);
  flex: 1 1 auto;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 40px);
}

.cannot-list li + li {
  border-top: 1px solid var(--brand-sunken);
}

.cannot-list li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cannot-no {
  font-family: var(--brand-display);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--brand-shade);
  padding-top: 6px;
}

.reading-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--gap-4) var(--gap-12);
  align-items: end;
}

.reading-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

/* Pod, then step, then word, then meaning. The step never sits beside the word: side by side it
   reads as a score out of something, which is the one thing the reading is not. */
.reading-word {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reading-word > span:last-child {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--brand-rule);
  background: var(--brand-card);
  min-width: 0;
}

.pricing-head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  padding: var(--gap-8);
  border-bottom: 1px solid var(--brand-rule);
}

.pricing-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gap-3);
  flex-wrap: wrap;
  font-size: 20px;
  font-weight: 600;
}

.pricing-flag {
  color: var(--brand-shade);
}

/* Letter-spacing lives on the figure, not on the row: inherited tracking squeezed the sentence
   beside the price. */
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: var(--gap-3);
  flex-wrap: wrap;
  line-height: 1;
}

.pricing-amount > span:first-child {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pricing-amount .cell-body {
  font-size: 15px;
  letter-spacing: 0;
}

.pricing-form {
  display: flex;
  gap: var(--gap-3);
  flex-wrap: wrap;
  align-items: flex-end;
  padding-top: 6px;
}

.pricing-form .field {
  flex: 1 1 220px;
}

.pricing-form .btn {
  min-height: 52px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-3);
  padding: 18px var(--gap-8);
  border-bottom: 1px solid var(--brand-sunken);
  align-items: baseline;
  flex-wrap: wrap;
}

.demo-actions {
  display: flex;
  gap: var(--gap-3);
  flex-wrap: wrap;
}

/* ---- site header and footer ---------------------------------------------------------------- */

/* No blur, no shadow, no height change on scroll. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--brand-rule-ink);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3) var(--gap-6);
  flex-wrap: wrap;
  padding-top: var(--gap-3);
  padding-bottom: var(--gap-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--gap-1) var(--gap-6);
  flex-wrap: wrap;
  font-size: 15px;
}

/* Every target is at least 44px tall, per the specification. */
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-link-ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-paper);
}

.site-nav-signin {
  padding: 0 var(--gap-4);
  border: 1px solid var(--brand-label-ink);
  color: var(--brand-paper);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-8);
  padding-top: var(--gap-12);
  padding-bottom: var(--gap-8);
}

.site-footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-6);
  flex-wrap: wrap;
  align-items: flex-start;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  max-width: 360px;
}

.site-footer-brand p {
  font-size: 15px;
  color: var(--brand-body-ink);
}

/* Two forced 140px columns plus a 40px gap is exactly 320px, which overflows a 320px viewport
   before the shell padding is counted. Wrapping columns instead: two where there is room, one
   where there is not. */
.site-footer-nav {
  display: flex;
  gap: var(--gap-6) var(--gap-16);
  flex-wrap: wrap;
  font-size: 15px;
}

.site-footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-1);
  min-width: 160px;
}

.site-footer-list .section-label {
  color: var(--brand-label-ink);
  padding-bottom: 6px;
}

.site-footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-link-ink);
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--brand-paper);
}

/* Nothing below 13px anywhere in the footer. */
.site-footer-legal {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-3);
  flex-wrap: wrap;
  border-top: 1px solid var(--brand-rule-ink);
  padding-top: var(--gap-6);
  /* 14px, not 13. Round 2's floor is "no text under 14px except 12px mono metadata", and where
     that disagrees with the reference's 13px legal line the rule wins. */
  font-size: 14px;
  color: var(--brand-label-ink);
}

.home-hero-note {
  max-width: 560px;
}

.cannot-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- workflow screens: scan progress and result --------------------------------------------- */

.workflow-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-4);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  max-width: 720px;
}

.workflow-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.workflow-lede {
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--brand-body-muted);
  text-wrap: pretty;
}

/* Flat blocks, no shimmer. A moving placeholder implies progress the product cannot report - the
   scan completes atomically, so there is nothing per-record to animate. */
.loading-rows {
  display: flex;
  flex-direction: column;
  margin: var(--gap-4) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--brand-rule);
}

.loading-rows li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--gap-4);
  align-items: center;
  padding: var(--gap-4) 0;
  border-bottom: 1px solid var(--brand-rule);
}

.loading-block {
  height: 16px;
  background: var(--brand-sunken);
}

.loading-rows li:nth-child(even) .loading-block {
  background: var(--brand-rule);
}

.setup-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--brand-rule);
}

.setup-rows li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--gap-4);
  padding: var(--gap-6) 0;
  border-bottom: 1px solid var(--brand-rule);
  align-items: start;
}

.setup-row-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  min-width: 0;
}

.setup-row-body strong {
  font-size: 16.5px;
  font-weight: 600;
}

/* The record itself, in the annotation face. Breakable so a long SPF string cannot push the
   page sideways. */
.setup-row-value {
  font-family: var(--brand-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-body-muted);
  background: var(--brand-sunken);
  padding: var(--gap-2) var(--gap-3);
  overflow-wrap: anywhere;
}

/* ---- the OAuth disclosure -------------------------------------------------------------------- */

.disclosure {
  display: flex;
  flex-direction: column;
  gap: var(--gap-6);
  margin: var(--gap-6) 0;
  text-align: left;
}

/* The sentence that carries the ask. Set larger than body copy on purpose: it is the one thing on
   this screen a reader must not skim past. */
.disclosure-sentence {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--brand-ink);
  max-width: 62ch;
  text-wrap: pretty;
}

.disclosure-rules {
  margin: 0;
  padding: 0;
}

/* The one 2px ink border on this screen. Nothing else here may take it. */
.disclosure-sample {
  max-width: 560px;
}

.disclosure-note {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-body-muted);
  text-wrap: pretty;
}

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  padding: 1px;
}

.disclosure-grid > div {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  padding: var(--gap-6);
  background: var(--brand-card);
  outline: 1px solid var(--brand-rule);
}

.disclosure-grid .plain-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  line-height: 1.5;
}

/* Each line takes a rule rather than a tick. A ✓ beside "cannot read your mail" reads as a feature
   being granted, which is the opposite of what that column says. */
.disclosure-grid .plain-list li {
  padding-left: var(--gap-3);
  border-left: 1px solid var(--brand-rule);
}
