/* One visual language for progress, results, and the personal-check explanation. */
:root { --signal-good:#14764f; --signal-attention:#9a6500; --signal-bad:#b53737; --signal-neutral:#64717c; }
.signal { display:block; width:100%; height:auto; color:var(--signal-neutral); overflow:visible; }
.signal-good, [data-tone=good] { --signal-color:var(--signal-good); --signal-wash:#e8f5ed; }
.signal-attention, [data-tone=attention] { --signal-color:var(--signal-attention); --signal-wash:#fff4da; }
.signal-bad, [data-tone=bad] { --signal-color:var(--signal-bad); --signal-wash:#fceaea; }
.signal-neutral, [data-tone=neutral] { --signal-color:var(--signal-neutral); --signal-wash:#edf0f2; }
.signal-pending, [data-tone=pending] { --signal-color:#0058c3; --signal-wash:#e9f1fd; }
.signal-halo { fill:var(--signal-wash,#edf0f2); }
.signal-disc { fill:var(--signal-color,#64717c); }
.signal-stroke { stroke:white; stroke-width:5; stroke-dasharray:1; animation:signal-draw .65s .12s both; }
.signal-pending .signal-disc { animation:signal-breathe 2s ease-in-out infinite; }
.score-ring .signal-halo { fill:none; stroke:#e5e9eb; stroke-width:6; r:43; }
.score-ring .signal-disc { fill:var(--signal-wash); }
.score-arc { stroke:var(--signal-color); stroke-width:6; stroke-linecap:round; animation:score-draw 1.1s ease-out both; }
@keyframes signal-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@keyframes signal-breathe { 50% { opacity:.55; } }
@keyframes score-draw { from { stroke-dasharray:0 100; } }
@keyframes reveal-up { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes countdown { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@keyframes stage-spin { to { transform:rotate(360deg); } }

/* A form becomes a clearly different scene as soon as a check begins. */
.selfcheck-panel { min-width:0; background:#fff; border:1px solid #ccd8df; box-shadow:0 18px 60px #172e3c08; border-radius:20px; padding:32px; }
.selfcheck-section { padding-top:40px; align-items:center; }
.selfcheck-intro .check-path { display:block; width:min(100%,420px); height:auto; margin:24px 0 0; }
.selfcheck-intro > p { max-width:390px; margin-top:20px; }
.check-perks { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.check-perks span { background:#eaf3ef; color:#236147; padding:6px 10px; border-radius:30px; font-size:12px; font-weight:600; }
.check-progress { text-align:center; animation:reveal-up .35s both; }
.check-art { display:block; width:min(100%,330px); height:auto; margin:0 auto 16px; }
.check-address { font-size:13px; color:#52616b; overflow-wrap:anywhere; margin:0 0 12px; }
.check-progress h3 { font-size:30px; line-height:1.15; letter-spacing:-.025em; outline:none; }
.check-progress #check-progress-copy { margin:16px auto 20px; max-width:360px; font-size:15px; color:#52616b; }
.check-stages { display:flex; justify-content:center; gap:20px; padding:20px 0; list-style:none; margin:0; border-top:1px solid #e2e8eb; font-size:13px; }
.check-stages li { display:flex; align-items:center; gap:8px; color:#52616b; }
.stage-dot { width:16px; height:16px; border:2px solid #ccd5dc; border-radius:50%; flex-shrink:0; }
#check-stage-page:not([data-done=true]) .stage-dot, #check-stage-speed[data-active=true] .stage-dot { border-top-color:#0058c3; animation:stage-spin 1.3s linear infinite; }
#check-stage-page[data-done=true] .stage-dot { background:#14764f; border-color:#14764f; position:relative; }
#check-stage-page[data-done=true] .stage-dot::after { content:''; position:absolute; width:7px; height:4px; top:3px; left:2px; border-bottom:2px solid #fff; border-left:2px solid #fff; transform:rotate(-45deg); }
.check-actions { display:grid; gap:10px; margin-top:24px; }
.check-actions .button { margin:0; font-family:inherit; min-height:48px; }
.button-secondary { background:#fff; color:#172e3c; border:1px solid #bac7ce; }
.button-secondary:hover { background:#eef3f5; }
.check-countdown { font-size:12px; color:#52616b; margin:20px auto 0; }
.check-countdown span { display:block; height:3px; background:#14764f; margin:12px auto 0; max-width:200px; transform-origin:left; animation:countdown 2s linear forwards; }
.check-error-mark { display:grid; place-items:center; width:100px; height:100px; border-radius:50%; background:#fff4da; color:#9a6500; font-size:54px; margin:34px auto; }
.check-progress[data-phase=success] { animation:reveal-up .4s both; }
.selfcheck-panel #check-error { padding:14px; background:#fff1ea; border-radius:8px; font-size:14px; }
#check-fields .button { min-height:52px; font-family:inherit; }

/* Results read as a dashboard first, a document only when expanded. */
.report-hero { padding-block:28px 32px; }
.report-identity { margin-bottom:24px; }
.report-verdict-row { display:grid; grid-template-columns:136px minmax(0,1fr); align-items:center; gap:30px; }
.report-signal { width:136px; animation:reveal-up .6s both; }
.report-rating { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; color:var(--signal-color); margin-bottom:12px !important; }
#report-verdict { font-size:clamp(34px,4vw,54px); max-width:770px; line-height:1.06; }
.report-intro { font-size:16px; line-height:1.5; margin-top:16px !important; }
.report-lights { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; }
.report-light { display:flex; align-items:center; gap:7px; color:var(--signal-color); background:var(--signal-wash); padding:6px 12px 6px 7px; border-radius:30px; font-size:13px; font-weight:600; }
.report-light .signal { width:26px; }
.report-utilities { margin-top:18px; }
.report-utilities + .report-note { margin-top:8px; }
.report-overview { padding-bottom:40px; }
.report-categories { gap:14px; border:0; background:transparent; overflow:visible; }
.result-category { display:flex; flex-direction:column; align-items:center; text-align:center; padding:22px 14px; border:1px solid #d7e0e3; border-radius:16px; background:#fff; box-shadow:0 8px 28px #172e3c04; animation:reveal-up .55s both; }
.result-category + .result-category { border-left:1px solid #d7e0e3; }
.result-category:nth-child(2) { animation-delay:.08s; }
.result-category:nth-child(3) { animation-delay:.16s; }
.result-category:nth-child(4) { animation-delay:.24s; }
.result-category[data-tone] { border-top:1px solid #d7e0e3; }
.category-label { font-size:14px; color:#172e3c; font-weight:600; }
.category-mark { width:106px; height:106px; position:relative; margin-top:18px; }
.category-score { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:2px; color:var(--signal-color); }
.category-score strong { font-family:'Hanken Grotesk',sans-serif; font-size:36px; letter-spacing:-.06em; }
.category-score span { font-size:12px; margin-top:12px; }
.category-status { font-size:22px; color:var(--signal-color) !important; text-decoration:none; min-height:44px; display:flex; align-items:center; justify-content:center; margin-top:6px !important; }
.category-status:hover { text-decoration:underline; }
.category-copy { font-size:12px; margin-top:0 !important; max-width:210px; }
.report-detail-grid { gap:42px; grid-template-columns:minmax(0,1fr) 280px; }
.report-findings-section > h2 { font-size:32px; margin-bottom:20px; }
.result-finding { grid-template-columns:48px minmax(0,1fr); gap:16px; padding:24px 0; }
.finding-number { width:48px; }
.finding-tag { margin:0 0 10px !important; color:var(--signal-attention); font-size:10px; }
.result-finding[data-severity=bad] .finding-tag { color:var(--signal-bad); }
.result-finding h3 { font-size:24px; }
.finding-action { background:transparent; padding:0; border:0; font-size:15px; color:#52616b; }
.finding-action strong { color:#172e3c; }
.finding-evidence summary { font-size:13px; }
.report-limitations-section { margin-top:24px; padding:0 20px; border-radius:10px; }
.report-limitations-section > summary { min-height:58px; display:list-item; padding:18px 0; font-size:15px; font-weight:600; cursor:pointer; }
.report-help { border-radius:14px; border-top:0; padding:24px; }
.report-help > h2 { font-size:26px; }
.report-scan-art { width:min(360px,100%); height:auto; }
.report-loading { padding-block:24px 40px; }
.report-loading h1 { font-size:42px; }

/* Small, purposeful movement throughout the landing page. */
.motion-icon { width:48px; height:48px; color:#0058c3; flex-shrink:0; }
.motion-icon path { stroke-dasharray:100; animation:icon-draw 1.3s ease-out both; }
@keyframes icon-draw { from { stroke-dashoffset:100; } to { stroke-dashoffset:0; } }
.situation-grid article { transition:transform .25s,border-color .25s; }
.situation-grid article:hover { transform:translateY(-4px); border-color:#0058c3; }
.situation-grid h3 { align-items:center; }
.situation-grid p { margin-left:60px; }
.steps { counter-reset:step; }
.steps li::before { counter-increment:step; content:counter(step,decimal-leading-zero); display:grid; place-items:center; width:46px; height:46px; margin-bottom:16px; color:#0058c3; border:1px solid #b8cce4; border-radius:50%; font-family:'Hanken Grotesk',sans-serif; font-size:20px; }
.route { transition:background .25s; }
.route:hover { background:#f1f6fb; }
.motion-reveal { animation:reveal-up .65s both; }
@media(max-width:700px) {
  .selfcheck-panel { padding:24px 18px; border-radius:16px; }
  .selfcheck-intro .check-path { max-width:300px; margin-top:10px; }
  .check-art { width:260px; }
  .check-progress h3 { font-size:27px; }
  .report-verdict-row { grid-template-columns:74px minmax(0,1fr); gap:16px; align-items:start; }
  .report-signal { width:74px; }
  #report-verdict { font-size:32px; }
  .report-rating { font-size:10px; margin-bottom:8px !important; }
  .report-intro { font-size:14px; margin-top:12px !important; }
  .report-lights { gap:6px; margin-block:20px; }
  .report-light { font-size:12px; }
  .report-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .result-category { padding:18px 9px; }
  .category-label { font-size:12px; }
  .category-mark { width:88px; height:88px; margin-top:12px; }
  .category-score strong { font-size:30px; }
  .category-status { font-size:19px; }
  .category-copy { font-size:11px; }
  .report-detail-grid { grid-template-columns:1fr; gap:28px; }
  .result-finding { grid-template-columns:36px minmax(0,1fr); gap:12px; }
  .finding-number { width:36px; }
  .result-finding h3 { font-size:22px; }
  .report-findings-section > h2 { font-size:30px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
.check-header { position:fixed; inset:0 0 auto; z-index:50; background:#ffffffed; backdrop-filter:blur(12px); border-bottom:1px solid #dbe2e6; }
.check-header nav { min-height:76px; display:flex; align-items:center; gap:24px; }
.check-header a { font-size:14px; font-weight:600; text-decoration:none; display:flex; align-items:center; min-height:44px; }
.check-header .check-brand { color:#0058c3; font:700 25px 'Hanken Grotesk',sans-serif; margin-right:auto; }
.page-shell .pilot-content { padding-top:76px; }
html:has(.check-header) { scroll-padding-top:100px; }
.report-lights-label { align-self:center; color:#52616b; font-size:12px; margin-right:4px; }
@media(max-width:700px) {
  .check-header nav { gap:14px; }
  .check-header a { font-size:12px; }
  .check-header .check-brand { font-size:22px; }
  .report-lights-label { flex-basis:100%; margin-bottom:2px; }
}
/* Explain the service; these are report categories, not simulated findings. */
.personal-check-section { padding-block:80px; background:#f1f5f7; }
.personal-check-grid { display:grid; grid-template-columns:1.05fr 1fr; gap:90px; align-items:center; }
.personal-check-copy h2 { font-size:clamp(36px,4vw,52px); letter-spacing:-.025em; }
.personal-check-intro { font-size:18px; color:#52616b; margin:24px 0 30px; max-width:450px; }
.personal-check-steps { list-style:none; margin:0; padding:0; display:grid; gap:24px; }
.personal-check-steps li { display:grid; grid-template-columns:36px minmax(0,1fr); gap:14px; }
.personal-check-steps li > span { display:grid; place-items:center; align-self:start; width:34px; height:34px; border:1px solid #bed0df; border-radius:50%; color:#0058c3; font-size:12px; }
.personal-check-steps h3 { font-size:18px; line-height:1.3; padding-top:5px; }
.personal-check-steps p { font-size:14px; line-height:1.6; margin:6px 0 0; color:#52616b; }
.personal-check-scope { font-size:12px; color:#52616b; margin:28px 0 0; max-width:380px; }
.check-deliverable { min-width:0; max-width:440px; width:100%; margin-inline:auto; }
.check-devices { width:100%; max-width:360px; margin:auto; }
.check-devices svg { display:block; width:100%; height:auto; }
.check-device-label { margin:7px 0 0; text-align:center; color:#52616b; font-size:12px; }
.check-connection { display:block; width:32px; height:48px; margin:4px auto; }
.check-report-sheet { border:1px solid #d4dfe5; border-radius:14px; background:#fff; box-shadow:0 16px 40px #172e3c08; padding:26px; }
.check-report-heading { display:flex; gap:14px; align-items:center; padding-bottom:22px; border-bottom:1px solid #e2e8eb; }
.check-report-heading > svg { color:#0058c3; flex-shrink:0; }
.check-report-heading p { font-size:12px; color:#52616b; margin:0 0 5px; }
.check-report-heading h3 { font-size:19px; line-height:1.25; }
.check-report-legend { margin:0; }
.check-report-legend > div { padding-top:20px; }
.check-report-legend dt { display:flex; align-items:center; gap:12px; font-size:16px; font-weight:700; }
.check-report-legend dt svg { width:30px; height:30px; flex-shrink:0; }
.check-report-legend dd { margin:3px 0 0 42px; color:#52616b; font-size:13px; }
.legend-good dt svg { color:#14764f; }
.legend-attention dt svg { color:#b53737; }
.legend-open dt svg { color:#64717c; }
.check-deliverable.motion-reveal { animation:none; }
.check-deliverable.motion-reveal .check-connection path { stroke-dasharray:1; animation:signal-draw .65s ease-out both; }
.check-deliverable.motion-reveal .check-report-legend > div { animation:reveal-up .4s .5s both; }
.check-deliverable.motion-reveal .check-report-legend > div:nth-child(2) { animation-delay:.65s; }
.check-deliverable.motion-reveal .check-report-legend > div:nth-child(3) { animation-delay:.8s; }
@media(max-width:1000px) { .personal-check-grid { gap:42px; } }
@media(max-width:700px) {
  .personal-check-section { padding-block:48px; }
  .personal-check-grid { grid-template-columns:1fr; gap:36px; }
  .personal-check-copy h2 { font-size:38px; }
  .personal-check-intro { font-size:16px; margin-block:20px 26px; }
  .personal-check-steps { gap:20px; }
  .check-devices { max-width:280px; }
  .check-report-sheet { padding:22px 18px; }
  .check-report-heading { gap:10px; }
  .check-report-heading h3 { font-size:18px; }
  .check-report-legend dd { font-size:12px; }
}
/* Small reading cues, tied to scrolling rather than an artificial timer. */
.page-reading-progress { position:absolute; inset:auto 0 -1px; height:3px; pointer-events:none; overflow:hidden; }
.page-reading-progress span { display:block; width:100%; height:100%; background:#0058c3; transform:scaleX(0); transform-origin:left; }
.scroll-motion-enabled .page-reading-progress span { transform:scaleX(var(--page-progress,0)); }
.personal-check-steps { position:relative; }
.scroll-motion-enabled .personal-check-steps::before,
.scroll-motion-enabled .personal-check-steps::after { content:''; position:absolute; top:17px; left:16px; width:2px; height:var(--trail-height,0px); pointer-events:none; }
.scroll-motion-enabled .personal-check-steps::before { background:#d2dfe8; }
.scroll-motion-enabled .personal-check-steps::after { background:#0058c3; transform:scaleY(var(--trail-progress,0)); transform-origin:top; }
.personal-check-steps li > span { position:relative; z-index:1; background:#f1f5f7; transition:background .25s,color .25s,border-color .25s,box-shadow .25s; }
.scroll-motion-enabled .personal-check-steps .is-read > span { background:#0058c3; border-color:#0058c3; color:#fff; box-shadow:0 0 0 5px #0058c30c; }
.scroll-motion-enabled .check-devices { transform:translateY(var(--device-shift,0px)); }
.hero-copy em { position:relative; display:inline-block; }
.hero-copy em::after { content:''; position:absolute; bottom:-9px; left:0; height:3px; width:100%; border-radius:2px; background:#0058c3; transform-origin:left; animation:headline-line .85s .3s both; }
@keyframes headline-line { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.hero .button::after { content:''; width:20px; height:20px; flex-shrink:0; background:currentColor; mask:url('/assets/arrow-right.svg') center / contain no-repeat; transition:transform .2s; }
.hero .button:is(:hover,:focus-visible)::after { transform:translateX(4px); }
.portrait figcaption { transition:transform .25s,box-shadow .25s; }
.portrait:hover figcaption { transform:translateY(-4px); box-shadow:0 12px 32px #172e3c14; }
.motion-icon path { animation:none; }
.motion-reveal .motion-icon path { animation:icon-draw .9s .1s both; }
.check-deliverable.motion-reveal .check-devices circle { animation:device-dot 1s .15s both; }
.check-deliverable.motion-reveal .check-devices circle:nth-of-type(2) { animation-delay:.3s; }
.check-deliverable.motion-reveal .check-devices circle:nth-of-type(3) { animation-delay:.45s; }
@keyframes device-dot { 50% { fill:#0058c3; } }
.questions details[open] > p { animation:reveal-up .25s both; }
@media(prefers-reduced-motion:reduce) {
  .page-reading-progress { display:none; }
  .check-devices, .portrait:hover figcaption, .hero .button::after { transform:none !important; }
}
