/* The tool UI: tokens, the persistent layout (header, three columns), and the
   shared components every screen uses. Colors are eyedropped from the mockup. */

:root {
  --bg: #F3F4F1;          /* page */
  --surface: #FFFFFF;     /* cards, header */
  --cream: #FFFDF9;
  --navy: #2C3340;        /* dark buttons, selected chips, new side */
  --ink: #2C3340;
  --text: #4A5160;
  --muted: #656B76;       /* 5:1 on cream */
  --faint: #A3A8B0;
  --hint: #6F7580;        /* placeholder text in a field: 4.6:1 on white */
  --line: #E2E5DF;
  --line-strong: #CDD1CA;
  --green: #356B4B;       /* 5:1 on --green-soft, 6:1 on white */
  --green-soft: #E7F0EA;
  --gold: #C8902A;
  --gold-text: #82580F;   /* 5:1 on --gold-soft */
  --gold-soft: #FBF3E4;
  --sev-critical: #C2412F;
  --sev-high: #D8731F;
  --track: #E2E5DF;
  --tint: #EEF0EC;        /* quiet fills: segmented tabs, hovers */
  --tint-strong: #E9EBE6;
  --wash: #F4F5F1;        /* the faintest fill, within cards */
  --soft: #FAFAF8;        /* a card within a card, and row hovers */
  --tint-soft: #F1F2EE;
  --steel: #739CB5;       /* Sasaron's steel water blue: the Security check's threshold */

  --radius: 10px;
  --radius-sm: 7px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(44, 51, 64, .05), 0 8px 24px rgba(44, 51, 64, .06);

  --gutter: clamp(20px, 2.6vw, 40px);
  --header-h: 68px;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14.5px;
  --fs-lg: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 400 var(--fs-md)/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.015em; line-height: 1.15; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout, as in the original mockup: header, your details beside your first look, and
   the security strip along the bottom. On a laptop the whole thing fits the window. ---------- */

body {
  display: grid;
  grid-template-rows: var(--header-h) minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
}

.top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top__logo { height: 34px; width: auto; display: block; }

.top__team { justify-self: end; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.top__nav { justify-self: center; display: flex; align-items: center; gap: 16px; min-width: 0; }
.top__nav[hidden] { display: none; }
.top .btn { white-space: nowrap; }

.stage {
  display: grid;
  grid-template-columns: minmax(380px, 4fr) minmax(0, 6fr);
  gap: clamp(24px, 3vw, 48px);
  padding: 24px var(--gutter) 28px;
  min-height: 0;
}
.panel {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 4px 24px;
  margin: -4px;
}
.view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.view__above:empty, .view__below:empty { display: none; }

/* ---------- Stepper ---------- */

.stepper { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.stepper li { display: flex; align-items: center; }
.stepper li + li::before {
  content: ""; width: 20px; height: 1.5px; margin: 0 10px; background: var(--line-strong);
}
.stepper li.is-done + li::before { background: var(--green); }
.stepper__step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 2px; border: 0; background: none;
  font-size: var(--fs-sm); color: var(--muted); white-space: nowrap;
}
.stepper__n {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.is-current .stepper__step { color: var(--ink); font-weight: 600; }
.is-current .stepper__n { background: var(--navy); border-color: var(--navy); color: #fff; }
.is-done .stepper__step { color: var(--green); }
.is-done .ico--check { width: 20px; height: 20px; }
button.stepper__step:hover .stepper__label { text-decoration: underline; text-underline-offset: 3px; }

 






.top__nav .stepper { padding-left: 16px; border-left: 1px solid var(--line); }

/* ---------- Preview frame (the right column) ---------- */

.frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame__bar, .rail__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;                       /* the same space above and below */
  border-bottom: 1px solid var(--line);
}
/* Title and its subheading share a line when there's room, and wrap beneath it when there isn't;
   either way the bar's padding stays even. */
.frame__titles, .rail__titles { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.frame__tools { display: flex; align-items: center; gap: 4px; }
.frame__tools[hidden] { display: none; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.tool:hover { border-color: var(--navy); }
.tool svg { width: 15px; height: 15px; flex: none; }
.tool--icon { width: 28px; padding: 0; justify-content: center; }

.frame__label, .rail__title { flex: 0 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.frame__domain, .rail__domain {
  max-width: 100%; margin: 0;
  font: 12px/1.5 var(--mono); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Status pills in the column headers */
.pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
  background: #F0F1EE; color: var(--muted);
}
.pill--busy { background: var(--gold-soft); color: var(--gold-text); }
.pill--done { background: var(--green-soft); color: var(--green); }
.frame__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; }
/* The first look sits inset like a page in a browser window, with the same space on every side. */
.frame { position: relative; }
.frame__body { padding: 16px; background: #F1F2EE; scroll-padding: 16px; }
.frame__body > .mc { min-height: calc(100% - 0px); border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(44, 51, 64, .07); overflow: hidden; }

/* "Scroll through your page": a pill over the bottom of the first look, with a soft fade above
   it while there is more below. It glides down on its own and stops the moment they scroll. */
.frame::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 64px; pointer-events: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to bottom, rgba(241, 242, 238, 0), rgba(241, 242, 238, .95));
  opacity: 0; transition: opacity .25s;
}
.frame.has-more::after { opacity: 1; }
.tour {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 12px;
  border: 1px solid var(--navy); border-radius: var(--radius-pill); background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  box-shadow: 0 4px 14px rgba(44, 51, 64, .18); transition: background-color .15s;
}
.tour:hover { background: #3A4252; }
.tour svg { width: 14px; height: 14px; flex: none; }
.tour[hidden] { display: none; }

/* Extra lines for the first look sit under it, so the three column tops always line up. */
.view__above { order: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: var(--fs-sm); color: var(--muted); }
.view__below { font-size: var(--fs-sm); color: var(--muted); text-align: center; }

/* ---------- Shared components ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 7px 16px;
  border: 1.5px solid var(--navy); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:hover { background: #F4F5F7; }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--navy); color: #fff; border-color: var(--navy); border-radius: var(--radius-sm); }
.btn--dark:hover { background: #3A4252; }
.btn--lg { min-height: 48px; padding: 12px 22px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--quiet { border-color: var(--line-strong); font-weight: 500; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link {
  border: 0; padding: 0; background: none; color: var(--ink);
  font-size: inherit; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.link:hover { text-decoration-color: currentColor; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); font-size: var(--fs-sm); color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.chip--multi { display: inline-flex; align-items: center; gap: 0; }
.chip__tick { width: 0; height: 12px; opacity: 0; transition: width .15s, opacity .15s, margin .15s; }
.chip--multi[aria-pressed="true"] .chip__tick { width: 12px; margin-right: 5px; opacity: 1; }

.input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: var(--fs-md);
}
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44, 51, 64, .1); }
.input::placeholder { color: var(--hint); }

.ico { display: inline-block; width: 16px; height: 16px; flex: none; }
.ico--check circle { fill: var(--green); }
.ico--warn .ico__shape { fill: var(--gold); stroke: var(--gold); }
.ico--critical .ico__shape { fill: var(--sev-critical); stroke: var(--sev-critical); }
.ico--high .ico__shape { fill: var(--sev-high); stroke: var(--sev-high); }
.ico--moderate .ico__shape { fill: var(--gold); stroke: var(--gold); }

/* Severity pill: icon + level, Rapid7 style but calm. */
.sev {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 1px 8px 1px 5px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.7; white-space: nowrap;
}
.sev .ico { width: 13px; height: 13px; }
.sev--critical { background: #FBEAE7; color: #9E2E21; }
.sev--high { background: #FCEEE2; color: #94490D; }
.sev--moderate { background: var(--gold-soft); color: var(--gold-text); }
.ico--info circle:first-child { stroke: var(--faint); }
.ico--info circle:last-child { fill: var(--faint); }
.ico--dot { position: relative; }
.ico--dot::after { content: ""; position: absolute; inset: 4.5px; border-radius: 50%; background: #B7A27A; }
.ico--wait { border: 1.5px solid var(--line-strong); border-radius: 50%; }
.ico--spin {
  border: 1.75px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%;
  animation: spin .8s linear infinite;
}

.avatars { display: inline-flex; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); display: block; object-fit: cover; box-shadow: 0 1px 2px rgba(44, 51, 64, .15); }
/* Who someone works for. */





.avatar-wrap { position: relative; display: block; }
.avatar-wrap + .avatar-wrap { margin-left: -9px; }
/* Name and role on hover, for the call team faces. */
.avatar-wrap[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  padding: 6px 10px; border-radius: var(--radius-sm); background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 20;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  width: max-content; max-width: min(560px, calc(100vw - 32px)); text-align: center;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff; font-size: var(--fs-sm); font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.details {
  width: min(560px, calc(100vw - 32px)); padding: 28px;
  border: 0; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  color: var(--text);
}
.details::backdrop { background: rgba(44, 51, 64, .45); }
.details h2 { font-size: 20px; margin-bottom: 6px; }
.details > p { font-size: var(--fs-sm); margin-bottom: 12px; }
.details form { margin-top: 18px; }
.details--small { width: min(420px, calc(100vw - 32px)); }
.details__actions { display: flex; gap: 8px; }

/* Start fresh: only once there is something to clear. */
.top__fresh { display: none; margin-right: 6px; font-size: var(--fs-sm); color: var(--muted); }
body.is-scanned .top__fresh { display: inline-block; }
/* The call team's faces appear once the check has matched them to the site. */
.top__team .avatars { transition: opacity .3s; }
body:not(.is-scanned) .top__team .avatars { display: none; }

/* The note that opens under "Copy a link to your results". */
.keep__btn { display: inline-flex; align-items: center; gap: 6px; }
.keep__btn .ico--link { width: 15px; height: 15px; }
.keep__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--green-soft); text-align: left; animation: rise .3s ease both; }
.keep__note[hidden] { display: none; }
.keep__note .ico { margin-top: 2px; }
.keep__note p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--text); }
.keep__note strong { display: block; color: var(--ink); }
.details dl { margin: 0 0 22px; display: grid; gap: 14px; }
.details dt { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.details dd { margin: 2px 0 0 24px; font-size: var(--fs-sm); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Below ~1180px: tighten the header, and the security check moves under the other two.
   Below 900px: stack everything, plain scrolling page. ---------- */

@media (max-width: 1340px) {
  .stepper__label { display: none; }
  .is-current .stepper__label { display: inline; }
}
@media (max-width: 1180px) {
  .stepper__label { display: none; }
  .is-current .stepper__label { display: inline; }
  body { display: block; height: auto; }
  .top { height: var(--header-h); }
  .stage { grid-template-columns: minmax(340px, 4fr) minmax(0, 6fr); }
  .panel { overflow: visible; }
  .view { min-height: 640px; }
}
@media (max-width: 900px) {
  
  body { display: block; height: auto; }
  .top { grid-template-columns: 1fr auto; padding: 12px 16px; height: auto; }
  .top__nav { grid-column: 1 / -1; grid-row: 2; flex-direction: column; gap: 10px; justify-self: stretch; }
  
  
  .top__nav .stepper { justify-content: center; padding-left: 0; border-left: 0; }
  .stepper li + li::before { width: 12px; margin: 0 6px; }
  .top__team .avatars { display: none; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }  /* minmax(0, ...) so a long line truncates instead of widening the page */
  .panel { overflow: visible; }
  .frame__body { max-height: 70vh; }
  .view { min-height: 0; }
}

/* Your results: the right column shows the security detail in place of the first look. */
.view .rail { flex: 1 1 auto; }
body:not([data-route="security"]) .view .rail { display: none; }
body[data-route="security"] .view .frame { display: none; }

/* The breadcrumb above each page's heading. */
.crumb { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumb span { margin: 0 4px; color: var(--faint); }

/* The next step lives in one place on every step: the Back / Next bar (stepbar.css). */

/* A person without a photo yet: their initials on a quiet disc, the same size as a photo. */
.face-initials {
  display: inline-grid; place-items: center; flex: none;
  width: var(--face, 32px); height: var(--face, 32px); border-radius: 50%;
  background: #DDE4DF; color: #3A5547;
  font-size: calc(var(--face, 32px) * .36); font-weight: 650; letter-spacing: .02em; line-height: 1;
}
.face-initials.avatar { border: 2px solid var(--surface); }
.crew__people .face-initials { box-shadow: 0 0 0 2px var(--surface), 0 1px 3px rgba(44, 51, 64, .2); }

/* The business type picker's "Something else" field. */
.type-other { margin-top: 8px; width: 100%; max-width: 360px; }
.type-other[hidden] { display: none; }

/* What sets our sites apart: three short lines beside the first look. */
/* They sit above the first look (the slot normally sits below it). */
.view__above:has(> .principles) { order: 0; }
.principles { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principles li { padding-top: 10px; border-top: 2px solid var(--line-strong); }
.principles strong { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 650; line-height: 1.3; }
.principles span { display: block; margin-top: 3px; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; gap: 10px; } }
.keep__note { flex-wrap: wrap; }
.keep__note > p { flex: 1 1 0; min-width: 0; margin: 0; }
.keep__note .keep__link { flex-basis: 100%; margin: 6px 0 0 26px; }
.keep__link code { font: 11.5px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }

/* QA pass 2026-10-26: every control at least 24px tall to tap (WCAG 2.2 target size), text links
   included, without changing how they line up with the text around them. */
button.link, .keep__btn, .stack__how summary, .res-fold__sum { min-height: 24px; }
button.link { padding-block: 2px; line-height: 20px; vertical-align: middle; }
.score__info, .strip__info { min-width: 24px; min-height: 24px; }
/* The scrollable first look can be reached and scrolled by keyboard. */
.frame__body:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
/* A long title (security-first) wraps rather than running under the buttons beside it; its
   subheading then takes its own line, at full width, instead of being squeezed. */
.frame__domain, .rail__domain { flex: 1 0 100%; }
@media (min-width: 1281px) { .frame__domain, .rail__domain { flex: 0 1 auto; } }
/* Phones: the title and its subheading get the full width; Change style, share, and the status drop below. */
@media (max-width: 600px) {
  .frame__bar { flex-wrap: wrap; row-gap: 10px; }
  .frame__titles { flex-basis: 100%; }
}

/* ---------- Density (2026-10-26) ----------
   On laptop-sized windows everything is drawn at 90%, close to what Timothy sees at 80% browser zoom,
   so the header, both columns, and the strip fit without zooming out. Wide monitors (1920 and up)
   keep full size; tablets and phones keep their own layouts. The body's height is divided by the
   same factor so the page still fills the window exactly. */
@media (min-width: 1181px) and (max-width: 1919px) {
  body { zoom: .9; height: calc(100vh / .9); height: calc(100dvh / .9); }
  /* At 90%, a 27px control is drawn at about 24px, the smallest comfortable tap (WCAG 2.2). */
  button.link, .keep__btn, .stack__how summary, .res-fold__sum { min-height: 27px; }
  .stepper__step { min-height: 27px; min-width: 27px; justify-content: center; }
  .score__info, .strip__info { min-width: 27px; min-height: 27px; }
}

/* ---------- Header: three calm zones ----------
   Steps show their numbers, with only the current step's name, until the window is truly wide
   (hovering or focusing a number still says its name). The account sits in one small round button. */
.top { gap: 20px; }
.stepper li + li::before { width: 14px; margin: 0 8px; }
@media (max-width: 1919px) {
  .stepper__label { display: none; }
  .is-current .stepper__label { display: inline; }
  .top__team .avatars { display: none; }
}












/* ---------- Your site's security: two even columns ---------- */
@media (min-width: 901px) {
  body[data-route="security"] .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- The optional last step (Pricing) ----------
   Drawn lighter than the three before it wherever it stands, so it reads as an extra: a dashed
   line leads to it, its number sits in a dashed ring (a small tick in the same ring once it has
   been opened), and a quiet "Optional" follows its name. Only while it is the current step does
   its number fill in, like any other. */
.stepper li + li.is-optional::before { height: 0; background: none; border-top: 1.5px dashed var(--line-strong); }
.is-optional .stepper__n { border-style: dashed; }
.is-optional.is-current .stepper__n { border-style: solid; }
.is-optional.is-done .stepper__n { border-color: var(--green); color: var(--green); }
.is-optional.is-done .stepper__n svg { width: 60%; height: 60%; }
.stepper__opt { margin-left: 5px; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }

button.link { min-width: 24px; }
@media (min-width: 1181px) and (max-width: 1919px) {
  button.link { min-width: 27px; }
}

/* ---------- Steps: names expand on hover ----------
   Where only the current step shows its name, hovering or focusing any other step opens its name in
   a soft pill. It animates the name's real width (a grid column from 0fr to 1fr), so the motion
   lasts the whole half second instead of snapping open, then closes a little quicker.
   Reduced motion: no slide. */
@media (max-width: 1919px) {
  .stepper__label { display: inline-grid !important; grid-template-columns: 0fr; margin-left: -8px; opacity: 0; vertical-align: middle;
    transition: grid-template-columns .3s cubic-bezier(.4, 0, .2, 1), opacity .18s ease, margin-left .3s cubic-bezier(.4, 0, .2, 1); }
  .stepper__label > span { min-width: 0; overflow: hidden; white-space: nowrap; }
  .is-current .stepper__label { grid-template-columns: 1fr; margin-left: 0; opacity: 1; transition: none; }
  .stepper__step:hover .stepper__label,
  .stepper__step:focus-visible .stepper__label { grid-template-columns: 1fr; margin-left: 0; opacity: 1;
    transition: grid-template-columns .5s cubic-bezier(.22, .61, .36, 1), opacity .35s ease .08s, margin-left .5s cubic-bezier(.22, .61, .36, 1); }
}
.stepper__step { padding: 4px 8px 4px 4px; border-radius: var(--radius-pill); transition: background-color .35s ease; }
button.stepper__step:hover, button.stepper__step:focus-visible { background: var(--tint); }
button.stepper__step:hover .stepper__label { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .stepper__label { transition: none !important; } }

   /* .chk: results.css loads later */

/* "/100" after a score, so 45 reads as 45 out of 100, not 45 percent. */
.per { margin-left: 1px; font-size: .5em; font-weight: 600; letter-spacing: 0; }

/* Tablets and small laptops: the steps show numbers only (the line above the heading names the
   step, and hovering a number still says its name). */
@media (min-width: 901px) and (max-width: 1180px) {
  .top__nav { gap: 12px; }
  .top__nav .stepper { padding-left: 12px; }
  .is-current .stepper__label { grid-template-columns: 0fr; margin-left: -8px; opacity: 0; }
}
/* Phones: Start fresh stays in the header beside Book a call, so there is always a way to try
   another address. The header's parts sit a little closer, and the logo is a little smaller on
   narrow phones, so the words never run into the logo. Under 350px there isn't room for all
   three; Confirm details keeps its "Start over with a different address" link. */
@media (max-width: 480px) {
  .top { column-gap: 12px; }
  .top__fresh { margin-right: 0; }
}
@media (max-width: 374px) { .top__logo { height: 30px; } }
@media (max-width: 349px) { body.is-scanned .top__fresh { display: none; } }

/* ---------- Your site's security: its own light ----------
   The new site is made on warm paper. Your site's security uses the cool blue-grey of Sasaron's
   sky, cool hairlines and fills, and a steel line under the header. Same furniture, different
   light. */
/* Only once the first screen is drawn (main.js adds .can-fade), so a page load doesn't fade in. */
body.can-fade { transition: background-color .5s cubic-bezier(.22, .61, .36, 1); }
body.can-fade .top { transition: box-shadow .5s cubic-bezier(.22, .61, .36, 1); }
body[data-route="security"] {
  --bg: #E9EFF5;          /* muted text 4.6:1 */
  --line: #D9E0E8;
  --line-strong: #C2CCD7;
  --track: #DCE3EB;
  --tint: #E1E8F0;
  --tint-strong: #D9E1EA;
  --wash: #F2F5F9;
  --soft: #F7F9FB;
  --tint-soft: #EDF1F6;
}
body[data-route="security"] .top { box-shadow: inset 0 -2px 0 var(--steel); }
