/* Visitor Simulator landing page. rc-frame.work's palette and type, with one signature:
   the route map, drawn in the logo's own language (ringed start, dotted route, orange goal).
   Light only. Contrast figures are against white unless noted. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f6f8fb;
  --line: #e3e8ef;
  --ink: #17283e;      /* headings, 14.9:1 */
  --text: #273c58;     /* body, 11.2:1 */
  --muted: #5d6b82;    /* small text, 5.4:1 (5.1:1 on --panel) */
  --accent: #2859ad;   /* actions and links, 6.7:1; white on it 6.7:1 */
  --route: #2a60dc;    /* a visitor's path, graphics only */
  --goal: #f0643c;     /* the goal dot, graphics only (3.2:1, never text) */
  --radius: 14px;
  --shell: min(1240px, calc(100% - 96px));
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.accent {
  color: var(--accent);
  display: block;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header: a functional layer, so it may float over content. Solid when people ask for less
   transparency. */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-transparency: reduce) {
  .header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.header-in {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding-block: 12px;
}

.nav a:hover {
  color: var(--accent);
}

/* Buttons: rc-frame.work's solid blue and quiet outline, at 44px or more. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #1f4a93;
}

.btn-quiet {
  border-color: #cfd8e5;
  color: var(--ink);
  background: #fff;
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 36em;
}

.fine,
.note {
  font-size: 14px;
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding-block: 72px 88px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fine {
  margin-top: 18px;
}

.window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgb(23 40 62 / 0.04), 0 24px 60px -24px rgb(23 40 62 / 0.22);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dde8;
}

.address {
  flex: 1;
  max-width: 260px;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.window-body {
  position: relative;
}

.map {
  display: block;
  width: 100%;
  height: auto;
}

.wf { fill: #e6ebf2; }
.wf-strong { fill: #cfd9e6; }
.wf-mid { fill: #d6dfea; }
.wf-panel { fill: #f3f6fa; }
.wf-image { fill: #e8edf4; }
.wf-card { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.wf-ink { fill: var(--ink); }
.wf-label { fill: #fff; font: 600 12px var(--font); }
.wf-price { fill: var(--ink); font: 700 22px var(--font); letter-spacing: -0.02em; }
.wf-banner { fill: #2b3c54; }
.wf-banner-line { fill: #4a5d78; }
.wf-banner-btn { fill: #f6f8fb; }

.route {
  fill: none;
  stroke: var(--route);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0.1 11;
}

.draw {
  fill: none;
  stroke: #fff;
  stroke-width: 16;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.start { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.goal { fill: var(--goal); }
.stuck-ring { fill: #fff; stroke: var(--ink); stroke-width: 3.5; }
.stuck-x { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }

.tag,
.callout {
  position: absolute;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: 0 4px 14px -6px rgb(23 40 62 / 0.25);
}

/* Each tag sits just right of its visitor's starting ring (positions in % of the map). */
.tag-1 { left: 10%; top: 66%; }
.tag-2 { left: 10%; top: 38%; }
.tag-3 { left: 10%; top: 17%; }

.callout {
  right: 3%;
  bottom: 27%;
  border-radius: 10px;
  padding: 8px 12px;
  white-space: normal;
  max-width: 214px;
}

.callout strong {
  display: block;
  font-weight: 650;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key {
  width: 16px;
  height: 16px;
  flex: none;
}

.key-wide {
  width: 28px;
}

/* The one orchestrated moment: each route draws itself once, then its end appears.
   With reduced motion, everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .draw { animation: draw 1.3s cubic-bezier(0.33, 0, 0.2, 1) both; }
  .d3 { animation-delay: 0.25s; }
  .d2 { animation-delay: 0.55s; animation-duration: 1.5s; }
  .d1 { animation-delay: 0.85s; }

  .goal,
  .stuck {
    transform-box: fill-box;
    transform-origin: center;
    animation: arrive 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.3) both;
  }
  .p3 { animation-delay: 1.5s; }
  .p2 { animation-delay: 2s; }
  .p1 { animation-delay: 2.1s; }

  .callout {
    animation: fade-up 0.4s ease-out 2.2s both;
  }
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes arrive {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Steps */
.steps-band {
  background: var(--panel);
  border-block: 1px solid var(--line);
  padding-block: 80px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.steps li {
  border-top: 1px solid #d3dce8;
  padding-top: 22px;
}

.step-n {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.steps p,
.features p,
.person p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
}

/* Sections */
.section {
  padding-block: 104px 24px;
}

.section-head {
  max-width: 760px;
}

.section-lead {
  margin-top: 20px;
  font-size: 18px;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
}

.device {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 16px;
}

.person .goal-line {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.goal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--goal);
  flex: none;
}

.goals {
  margin-top: 36px;
}

.goals-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.chips .chip-own {
  border-style: dashed;
  border-color: #b8c5d8;
  color: var(--accent);
  font-weight: 600;
}

.goals .note {
  margin-top: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 40px;
  margin-top: 52px;
}

.features-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.features svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: #eef3fb;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}

.features .slash {
  stroke: var(--ink);
}

/* Report */
.report-band {
  margin-top: 104px;
  padding-block: 96px;
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.ticks {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.share-note {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid #d3dce8;
}

.share-note p {
  margin-top: 8px;
  font-size: 16px;
}

.report {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(23 40 62 / 0.04), 0 24px 60px -28px rgb(23 40 62 / 0.25);
  padding: 26px;
}

.report-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.report-head strong {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.report-head span {
  font-size: 13px;
  color: var(--muted);
}

.report-score {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 20px;
}

.ring {
  flex: none;
}

.ring-track { fill: none; stroke: #e7edf6; stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }

.score {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.score strong {
  white-space: nowrap;
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.score span {
  font-size: 13px;
  color: var(--muted);
}

.report-score .score + .score {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.report-findings {
  display: grid;
  gap: 8px;
}

.report-findings li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.f-text {
  color: var(--ink);
}

.f-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* Severity carries its name in words; the tint only repeats it. */
.sev {
  min-width: 64px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.sev-high { color: #9a3412; background: #fdece4; } /* 6.4:1 */
.sev-med { color: #7a4d00; background: #fdf3dc; }  /* 6.9:1 */
.sev-low { color: #44546b; background: #eef2f8; }  /* 6.9:1 */

.replay {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.replay li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumb {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(#cfd9e6, #cfd9e6) 14% 14% / 46% 7% no-repeat,
    linear-gradient(#e6ebf2, #e6ebf2) 14% 28% / 70% 4% no-repeat,
    linear-gradient(#e6ebf2, #e6ebf2) 14% 36% / 58% 4% no-repeat,
    linear-gradient(#eef2f7, #eef2f7) 50% 78% / 72% 34% no-repeat,
    #fff;
}

.thumb-stuck {
  background:
    linear-gradient(#2b3c54, #2b3c54) 50% 92% / 90% 22% no-repeat,
    linear-gradient(#cfd9e6, #cfd9e6) 14% 14% / 46% 7% no-repeat,
    linear-gradient(#e6ebf2, #e6ebf2) 14% 28% / 70% 4% no-repeat,
    #fff;
}

.report-figure .note {
  margin-top: 14px;
}

/* Questions */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  padding-bottom: 22px;
  max-width: 44em;
}

/* Closing call to action */
.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 104px;
  padding-block: 96px;
  background: var(--ink);
  color: #c9d4e5; /* 10.0:1 on --ink */
}

.cta-band h2 {
  color: #fff;
}

.cta-band .accent {
  color: #9fb4d6; /* 7.1:1 on --ink */
}

.cta-route {
  position: absolute;
  right: max(24px, calc((100% - 1240px) / 2));
  top: 50%;
  width: min(520px, 42%);
  height: auto;
  transform: translateY(-50%);
}

.cta-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cta-in p {
  max-width: 34em;
  font-size: 18px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: #e7eef9;
}

.cta-band .btn:focus-visible {
  outline-color: #fff;
}

/* Footer */
.footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}

.footer-brand img {
  display: block;
  height: 40px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-right: auto;
}

.footer-links a {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  padding-block: 10px;
}

.footer-links a:hover {
  color: var(--accent);
}

.copy {
  font-size: 13px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

/* Footer's "Cookie settings": a button styled as the links beside it, revealed by
   consent.js so it never shows dead without JavaScript. */
.footer-link {
  background: none;
  border: 0;
  padding: 10px 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* The cookie choice, built by consent.js. Two equal buttons: rejecting is exactly as easy
   as accepting. Same component as rc-frame.work, in this site's tokens. */
.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 24px 70px rgb(10 14 26 / 0.16);
}

.consent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.consent h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

.consent h2:focus {
  outline: none;
}

.consent p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 8px 0 0;
}

.consent p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent .consent-status {
  font-size: 13px;
  color: var(--muted);
}

.consent-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.consent-close:hover {
  background: var(--panel);
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.consent-actions button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.consent-actions button:hover {
  background: var(--ink);
  color: #fff;
}

.consent-actions button:focus-visible,
.consent-close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media print {
  .consent { display: none; }
}

/* Request page */
.request {
  padding-block: 56px 96px;
}

.request-head {
  max-width: 780px;
}

.request-head h1 {
  font-size: clamp(36px, 4.4vw, 56px);
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.block {
  border: 0;
  margin: 0 0 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.block > legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.block > legend + * {
  clear: both;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 8px 0 0;
  min-width: 0;
}

fieldset.field > legend {
  padding: 0;
  margin: 0 0 10px;
}

.block-n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef3fb;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.sub-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.sub-label {
  margin: 8px 0 10px;
}

/* A label with a quiet note on the right: "Business name ... Optional". */
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.optional {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.hint {
  font-size: 14px;
  color: var(--muted);
}

.error {
  font-size: 14px;
  font-weight: 600;
  color: #b42318; /* 6.0:1 */
}

/* Text fields: the edge is 3:1 against white, so the field reads as a field without its label. */
.input,
.request textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #8795ab;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:hover,
.request textarea:hover {
  border-color: #5d6b82;
}

.request textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.input::placeholder,
.request textarea::placeholder {
  color: #7a879b; /* 3.7:1, placeholder only */
}

.input:focus,
.request textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(40 89 173 / 0.18);
}

.input[aria-invalid="true"],
.request textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}

.field-row .field {
  margin-bottom: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  cursor: pointer;
}

.check input,
.option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Devices: a segmented control (five closely related, mutually exclusive choices) over a
   drawing of the split. Native radios underneath, so keyboard and screen readers work as usual. */
.segmented {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #eef2f7;
}

.segmented label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.segmented label:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 0.55);
}

.segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented label:has(input:checked) {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(23 40 62 / 0.14), 0 0 0 1px rgb(23 40 62 / 0.04);
}

.segmented label:has(input:focus-visible) {
  outline: 3px solid rgb(40 89 173 / 0.45);
  outline-offset: 1px;
}

.mix {
  margin-top: 16px;
}

.mix-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf6;
}

.seg {
  flex: 0 0 0;
  transition: flex-grow 0.3s ease;
}

.seg-phone { background: var(--route); }
.seg-desktop { background: var(--ink); }
.seg-tablet { background: #7d9bd1; }

.mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.mix-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mix-key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.key-phone::before { background: var(--route); }
.key-desktop::before { background: var(--ink); }
.key-tablet::before { background: #7d9bd1; }

.mix-key b {
  display: none;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* The checked radio decides the widths and the numbers. */
.devices:has([value="mobile_first"]:checked) .seg-phone { flex-grow: 60; }
.devices:has([value="mobile_first"]:checked) .seg-desktop { flex-grow: 30; }
.devices:has([value="mobile_first"]:checked) .seg-tablet { flex-grow: 10; }
.devices:has([value="balanced"]:checked) .seg-phone { flex-grow: 45; }
.devices:has([value="balanced"]:checked) .seg-desktop { flex-grow: 45; }
.devices:has([value="balanced"]:checked) .seg-tablet { flex-grow: 10; }
.devices:has([value="desktop_heavy"]:checked) .seg-phone { flex-grow: 25; }
.devices:has([value="desktop_heavy"]:checked) .seg-desktop { flex-grow: 65; }
.devices:has([value="desktop_heavy"]:checked) .seg-tablet { flex-grow: 10; }
.devices:has([value="phones_only"]:checked) .seg-phone { flex-grow: 1; }
.devices:has([value="desktop_only"]:checked) .seg-desktop { flex-grow: 1; }
.devices:has([value="mobile_first"]:checked) b[data-mix="mobile_first"],
.devices:has([value="balanced"]:checked) b[data-mix="balanced"],
.devices:has([value="desktop_heavy"]:checked) b[data-mix="desktop_heavy"],
.devices:has([value="phones_only"]:checked) b[data-mix="phones_only"],
.devices:has([value="desktop_only"]:checked) b[data-mix="desktop_only"] {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .seg,
  .segmented label {
    transition: none;
  }
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover {
  border-color: #b8c5d8;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: #f3f7fd;
}

.option:has(input:focus-visible) {
  outline: 3px solid rgb(40 89 173 / 0.35);
}

.option-wide {
  margin-bottom: 10px;
}

.option-body {
  display: grid;
  gap: 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.option-body strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.own-goals {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.own-goals .sub-label {
  margin: 0;
}

.link-btn {
  justify-self: start;
  background: none;
  border: 0;
  padding: 10px 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.link-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.range-head output {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.range {
  width: 100%;
  height: 44px;
  accent-color: var(--accent);
}

.reveal {
  margin: 4px 0 14px;
}

.submit-row {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.submit-row .btn {
  justify-self: start;
  min-width: 200px;
}

.form-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fef3f2;
  border: 1px solid #f3c4bf;
  color: #912018;
  font-weight: 600;
}

button.btn {
  font-family: inherit;
  cursor: pointer;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* "Is this your website?" */
.site-preview {
  margin: -4px 0 20px;
  display: grid;
  gap: 10px;
}

.site-preview.is-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.sp-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d5deea;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sp-spinner { animation-duration: 2.4s; }
}

.sp-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.sp-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.sp-text {
  grid-column: 2;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sp-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.sp-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-url {
  font-size: 13px;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-image {
  grid-column: 3;
  width: 132px;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.sp-head .sp-label {
  margin: 0;
}

.sp-notes {
  display: grid;
  gap: 8px;
}

/* The words carry the meaning; the tint and the icon repeat it. */
.sp-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}

.sp-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-note--info { background: #f3f7fd; border-color: #d6e2f5; color: #1f3f78; }   /* 9.6:1 */
.sp-note--caution { background: #fff8e6; border-color: #f1d58c; color: #6b4b00; } /* 7.5:1 */
.sp-note--warn { background: #fef3f2; border-color: #f3c4bf; color: #912018; }    /* 8.0:1 */

.sp-hint {
  font-size: 13px;
  color: var(--muted);
}

/* Bots fill .hp in; people never see it. .sr-only is read aloud and never drawn. */
.hp,
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.estimate {
  position: sticky;
  top: 96px;
}

.estimate-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(23 40 62 / 0.04), 0 24px 60px -32px rgb(23 40 62 / 0.25);
}

.estimate-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.estimate-price {
  margin-top: 6px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s ease;
}

.estimate-price.is-updating {
  opacity: 0.45;
}

.estimate-split {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.estimate-split b {
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--accent); /* 6.0:1 on the tint */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: 2px;
  white-space: nowrap;
}

.estimate-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.estimate-summary {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.estimate-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.estimate-summary dt {
  color: var(--muted);
}

.estimate-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.estimate-included {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.estimate-included .sub-label {
  margin: 0 0 10px;
  font-size: 14px;
}

.ticks-small {
  gap: 8px;
  margin-top: 0;
  font-size: 15px;
}

.ticks-small li {
  padding-left: 26px;
}

.ticks-small li::before {
  width: 12px;
  height: 7px;
}

.estimate-send {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  font-size: 16px;
}

.estimate-fine {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.estimate-bar {
  display: none;
}

/* Request sent, legal pages */
.sent {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding-block: 64px;
}

.legal {
  padding-block: 56px 96px;
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(36px, 4.4vw, 52px);
}

.legal .updated {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.legal h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.65;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0;
  display: grid;
  gap: 6px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.legal th {
  color: var(--ink);
  font-weight: 600;
}

.legal .table-wrap {
  overflow-x: auto;
}

.nowrap {
  white-space: nowrap;
}

.legal address {
  font-style: normal;
  margin: 12px 0;
  line-height: 1.6;
}

/* Pricing band on the home page */
.pricing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.pricing-band .from {
  font-size: 15px;
  color: var(--muted);
}

.pricing-band .from strong {
  display: block;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pricing-band p + p {
  margin-top: 8px;
}

/* Not found */
.missing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding-block: 64px;
}

.missing .brand-mark {
  margin-bottom: 24px;
}

/* Regular to compact. Same content at every width; only the arrangement changes. */
@media (max-width: 1080px) {
  .request { padding-bottom: 120px; }
  .request-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .estimate { position: static; }
  /* Without the sidebar beside the form, the price and the send button ride along at the
     bottom instead (the sidebar's own button would only repeat it). */
  .js .estimate-send,
  .js .estimate-fine { display: none; }
  .js .estimate-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px max(16px, calc((100% - 1240px) / 2)) calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.94);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--line);
  }
  .estimate-bar-price { display: grid; line-height: 1.15; font-size: 13px; color: var(--muted); }
  .estimate-bar-price strong { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .report-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 32px); }
  body { font-size: 17px; }
  .header-in { height: 64px; gap: 12px; }
  .brand-text span { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .btn-small { padding: 0 14px; }
  .hero { padding-block: 40px 64px; }
  .actions .btn { flex: 1 1 100%; }
  .tag { display: none; }
  /* On a phone the callout becomes a caption under the drawing, so it hides no route. */
  .callout { position: static; display: block; max-width: none; margin: 0 12px 12px; font-size: 13px; box-shadow: none; background: var(--panel); }
  .steps-band { padding-block: 64px; }
  .steps,
  .people,
  .features,
  .features-4 { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-block: 80px 16px; }
  .report-band,
  .cta-band { margin-top: 80px; padding-block: 72px; }
  .report { padding: 18px; }
  .report-score { gap: 14px; }
  .ring { width: 64px; height: 64px; }
  .score strong { font-size: 22px; }
  .report-score .score + .score { padding-left: 16px; }
  .report-findings li { grid-template-columns: auto minmax(0, 1fr); }
  .f-count { grid-column: 2; }
  .faq summary { font-size: 17px; }
  .block { padding: 20px; }
  .options,
  .field-row { grid-template-columns: 1fr; }
  .submit-row .btn { justify-self: stretch; }
  .segmented { grid-template-columns: 1fr; }
  .sp-card { grid-template-columns: auto minmax(0, 1fr); }
  .sp-image { grid-column: 1 / -1; width: 100%; }
  .segmented label { justify-content: space-between; padding-inline: 16px; text-align: left; }
  /* Stacked, the chosen row also carries a checkmark, not only a lighter background. */
  .segmented label:has(input:checked)::after {
    content: "";
    width: 12px;
    height: 7px;
    margin: -3px 2px 0 12px;
    border-left: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg);
  }
  .estimate-bar .btn { padding: 0 18px; }
  .pricing-band { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .consent { right: 8px; bottom: 8px; width: calc(100% - 16px); padding: 16px; }
  .consent-actions { grid-template-columns: 1fr; }
  .cta-route { display: none; }
}
