:root {
  color-scheme: light;
  --white: #fff;
  --red: #bc1b1b;
  --red-hover: #941515;
  --red-wash: #fff5f4;
  --red-line: #edd0cd;
  --ink: #292929;
  --muted: #656565;
  --line: #dedede;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page-shell { width: min(1264px, 100% - 96px); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 12px; z-index: 3; background: var(--white); color: var(--red); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 36px; font-weight: 850; letter-spacing: -.04em; text-decoration: none; color: var(--red); line-height: 1.1; }
.header-link { flex-shrink: 0; font-size: 14px; color: var(--red); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 68px; padding: 78px 0 85px; }
h1 { color: var(--red); font-size: clamp(68px, 7.1vw, 102px); font-weight: 800; line-height: .99; letter-spacing: -.065em; margin: 0; }
.cpr-name { white-space: nowrap; }
.wordplay { position: relative; display: inline-block; }
.wordplay svg { position: absolute; bottom: -9px; left: 2%; width: 98%; height: 12px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.hero-description { font-size: 20px; line-height: 1.5; margin: 32px 0 0; }
.test-card { background: var(--red-wash); border: 1px solid var(--red-line); border-radius: 18px; padding: 32px 34px 27px; }
.test-card h2 { color: var(--red); font-size: 25px; font-weight: 700; letter-spacing: -.6px; margin: 0 0 24px; }
.cpr-input { display: flex; align-items: center; justify-content: center; gap: 5px; background: var(--white); border: 1px solid #a78b89; border-radius: 8px; padding: 18px 12px; }
.cpr-input:focus-within { outline: 3px solid var(--red); outline-offset: 4px; }
.cpr-input.has-error { border-color: var(--red); }
.cpr-input input { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(23px, 2.2vw, 31px); font-variant-numeric: tabular-nums; letter-spacing: .035em; background: transparent; border: 0; color: var(--ink); min-width: 0; padding: 0; border-radius: 0; line-height: 1.3; }
.cpr-input input:focus { outline: 0; }
#birth-digits { width: 6.5ch; }
#secret-digits { width: 4.3ch; }
.cpr-input input::placeholder { color: #767676; opacity: 1; }
.hyphen { font-size: 27px; line-height: 1; padding-inline: 2px; color: #767676; }
.field-hint { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 10px 0 22px; }
.input-error { color: var(--red); font-size: 14px; line-height: 1.4; margin: -6px 0 14px; }
.test-button { display: block; width: 100%; padding: 17px 20px; border: 1px solid var(--red); border-radius: 8px; background: var(--red); color: var(--white); font-weight: 650; font-size: 17px; line-height: 1.3; }
.test-button:hover { background: var(--red-hover); border-color: var(--red-hover); }
.test-button:active { transform: translateY(1px); }
.example-button { display: block; width: 100%; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 17px 0 22px; font-size: 13px; color: var(--ink); line-height: 1.4; }
.privacy-note { margin: 0; border-top: 1px solid var(--red-line); padding-top: 18px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.result { display: grid; grid-template-columns: 1fr 1fr; column-gap: 75px; padding: 42px 0 50px; border-top: 1px solid var(--red); }
.result h2 { min-height: 2.12em; font-size: clamp(40px, 4.8vw, 65px); letter-spacing: -.055em; line-height: 1.06; color: var(--red); margin: 0; }
.result h2:focus { outline: none; }
.result.is-revealing h2 { opacity: .3; }
.result.is-settled h2 { animation: verdict-reveal 900ms ease-out both; }
.rating { --rating-position: 0; position: relative; margin-top: 18px; padding-bottom: 39px; }
.rating-scale { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.rating-scale::before, .rating-scale::after { content: ""; position: absolute; top: 25px; left: 12.5%; height: 2px; }
.rating-scale::before { width: 75%; background: var(--line); }
.rating-scale::after { width: calc(var(--rating-position) * 25%); background: var(--red); }
.rating-scale li { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; color: var(--muted); padding-inline: 4px; }
.rating-star { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; background: var(--white); color: #c8c1c0; }
.rating-star svg { display: block; width: 40px; height: 40px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-box: view-box; transform-origin: 50% 50%; }
.is-filled .rating-star { color: var(--red); }
.result.is-settled [aria-current="true"] .rating-star svg { animation: star-turn 1500ms cubic-bezier(.16, .65, .22, 1) both; }
.rating-label { max-width: 100px; min-height: 40px; margin-top: 10px; font-size: 13px; line-height: 1.45; }
.rating-scale [aria-current="true"] .rating-label { color: var(--red); font-weight: 700; }
.rating-marker { position: absolute; bottom: 0; left: calc(12.5% + var(--rating-position) * 25%); transform: translateX(-50%); min-width: 60px; padding: 5px 9px; border-radius: 5px; background: var(--red); color: var(--white); font-size: 11px; line-height: 1.3; white-space: nowrap; text-align: center; }
.rating-marker::before { content: ""; position: absolute; top: -5px; left: calc(50% - 5px); border-bottom: 5px solid var(--red); border-inline: 5px solid transparent; }
.result-actions { min-height: 37px; margin-top: 18px; }
.result.is-revealing .result-details { opacity: 0; visibility: hidden; }
.result.is-settled .result-details { animation: explanation-reveal 700ms ease-out both; }
@keyframes verdict-reveal { from { opacity: .3; } to { opacity: 1; } }
@keyframes explanation-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes star-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.result-details h3 { margin: 5px 0 18px; font-size: 20px; letter-spacing: -.4px; }
.result-details ul { padding-left: 20px; font-size: 16px; line-height: 1.6; }
.result-details li { padding-left: 4px; margin-bottom: 9px; }
.validation-status { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 20px 0 12px; }
.reset-button { border: 0; background: none; padding: 8px 0; color: var(--red); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.serious { background: var(--red); color: var(--white); border-radius: 18px; padding: 36px 45px 42px; }
.serious-content { max-width: 960px; }
.serious h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.17; letter-spacing: -1.3px; font-weight: 750; margin: 0 0 32px; }
.hand-underline { display: inline-block; position: relative; white-space: nowrap; }
.hand-underline svg { position: absolute; width: 100%; height: 16px; left: 0; bottom: -13px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.serious-content > p { font-size: 15px; line-height: 1.65; max-width: 650px; margin-bottom: 23px; }
.serious-content > .serious-intro { margin: 0 0 18px; font-size: 15px; }
.advice-link { display: inline-block; font-size: 16px; line-height: 1.5; font-weight: 650; }
.serious a:focus-visible { outline-color: var(--white); }
.how-it-works { padding: 26px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.how-it-works summary { cursor: pointer; width: fit-content; line-height: 1.6; }
.how-content { max-width: 760px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 30px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.site-footer p { margin: 0; }

@media (min-width: 1500px) { .hero { gap: 110px; } }
@media (max-width: 1050px) {
  .page-shell { width: calc(100% - 64px); }
  .hero { gap: 35px; }
  h1 { font-size: clamp(61px, 7.2vw, 83px); }
  .test-card { padding-inline: 24px; }
  .serious { padding: 35px 30px; }
  .site-footer { flex-direction: column; gap: 3px; }
}
@media (max-width: 760px) {
  .page-shell { width: min(560px, 100% - 40px); }
  .site-header { padding: 22px 0; gap: 12px; }
  .header-link { font-size: 12px; }
  .wordmark { font-size: 20px; }
  .hero { grid-template-columns: 1fr; padding: 42px 0; gap: 36px; }
  h1 { font-size: clamp(44px, 13vw, 85px); }
  .hero-description { font-size: 18px; margin-top: 26px; }
  .test-card { padding: 25px 25px 24px; }
  .test-card h2 { font-size: 24px; }
  .cpr-input input { font-size: clamp(24px, 6.1vw, 32px); }
  .test-button { font-size: 16px; }
  .serious { padding: 26px 24px 28px; }
  .serious h2 { font-size: 34px; letter-spacing: -.85px; }
  .serious-content > p { font-size: 14px; }
  .advice-link { font-size: 15px; }
  .result { grid-template-columns: 1fr; gap: 25px; padding: 34px 0; }
  .result h2 { font-size: 46px; }
  .rating-label { font-size: 12px; }
  .site-footer { font-size: 11px; padding-block: 21px 26px; }
}
@media (max-width: 350px) {
  .page-shell { width: calc(100% - 28px); }
  .test-card { padding-inline: 18px; }
  .cpr-input { padding-inline: 7px; gap: 2px; }
  .serious { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .result.is-settled h2, .result.is-settled .result-details,
  .result.is-settled [aria-current="true"] .rating-star svg { animation: none; }
}
