/* PaidCorrectly app pages (/check, result, checkout, paid, report, 404) in the G1 "Aurora" look.
   Same class names and markup as before; only the visuals changed. Fonts are self-hosted (/assets/fonts, from the
   design build); the brand mark is /assets/brand-mark.svg. No third-party requests. */
[hidden] { display: none !important; }
.callout[hidden] { display:none; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
:root {
  --ink:#0B1B2B; --muted:#475569; --subtle:#64748B; --line:#E2E8F0; --line-strong:#D5DCE6; --surface:#F7F9FC; --card:#fff;
  --brand:#5B50F0; --brand-600:#4A3FE0; --brand-700:#3B31C4; --brand-50:#F1F0FF; --brand-100:#E4E1FF;
  --lagoon:#14B8C8; --coral:#FF7A59; --citrine:#F5B83D;
  --ok:#0E9F6E; --ok-text:#0B7A55; --ok-50:#E8F7F1; --under:#D97706; --under-text:#B45309; --under-50:#FEF5E7; --err:#DC2626; --err-text:#B91C1C; --err-50:#FEF2F2;
  --warn: var(--under-50);
  --sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 1px 2px rgb(11 27 43 / .04), 0 8px 24px -12px rgb(11 27 43 / .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font: 16px/1.55 var(--sans); font-feature-settings: "cv11", "ss01"; color:var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(42rem 22rem at 100% -6rem, rgb(91 80 240 / .13), transparent 70%),
    radial-gradient(30rem 18rem at 72% -8rem, rgb(20 184 200 / .11), transparent 70%),
    /* The mark's coral-to-citrine overlap, as a faint trace where the indigo and lagoon fields meet. */
    radial-gradient(24rem 13rem at 86% 2rem, rgb(255 122 89 / .085), transparent 70%),
    radial-gradient(20rem 12rem at 74% 5rem, rgb(245 184 61 / .075), transparent 70%),
    #fff;
  background-repeat: no-repeat; min-height: 100vh; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
a { color: var(--brand); text-underline-offset: 3px; }
main { max-width: 1040px; margin: 0 auto; padding: 20px 20px 64px; }
@media (min-width: 640px) { main { padding: 28px 32px 80px; } }

/* Staging / test-copy banner */
.test-banner { background: var(--ink); color:#E2E8F0; text-align:center; font-size:12.5px; padding:6px 16px; letter-spacing: .01em; }
.test-banner.staging { background: var(--under-50); color: var(--under-text); font-weight:600; font-size:13px; padding:7px 16px; border-bottom: 1px dashed rgb(217 119 6 / .5); }

/* Header + footer */
header.site { position: relative; max-width:none; margin:0; padding: 0 20px; height: 64px; display:flex; justify-content:space-between; align-items:center; gap:12px;
  border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .82); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
header.site::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background: linear-gradient(90deg, transparent, var(--brand) 26%, var(--lagoon) 52%, var(--coral) 72%, var(--citrine) 86%, transparent); opacity:.55; }
@media (min-width: 640px) { header.site { padding: 0 max(32px, calc((100% - 1040px) / 2 + 32px)); } }
header.site .link { color: var(--ink); text-decoration:none; font-size:14px; font-weight:500; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background:#fff; box-shadow: 0 1px 2px rgb(11 27 43 / .05); transition: background-color .15s, border-color .15s; }
header.site .link:hover { background: var(--surface); border-color:#B8C2D1; }
footer.site { max-width:1040px; margin:0 auto; padding: 22px 20px 40px; display:block; color:var(--subtle); font-size:13.5px; line-height:1.6; border-top:1px solid var(--line); }
@media (min-width: 640px) { footer.site { padding: 24px 32px 48px; } }
footer.site p { margin: 0; max-width: 72ch; }
.brand { display:inline-flex; align-items:center; gap:10px; font-weight:600; font-size:17px; letter-spacing:-0.01em; color:var(--ink); text-decoration:none; border-radius: 8px; }
.brand img { display:block; height: 28px; width: auto; }
footer.site .brand-foot { display:inline-flex; margin-bottom: 12px; }
footer.site .brand-foot img { height: 24px; }
.print-logo { display:none; }

/* Type */
h1 { font-size: 28px; line-height:1.15; font-weight: 600; letter-spacing:-0.022em; margin: 6px 0 12px; text-wrap: balance; }
@media (min-width: 640px) { h1 { font-size: 34px; } }
h2 { font-size: 19px; line-height:1.3; font-weight:600; letter-spacing:-0.015em; margin: 28px 0 10px; text-wrap: balance; }
h3 { font-size: 16px; font-weight:600; margin: 20px 0 6px; }
p { text-wrap: pretty; }
.lead { font-size:17px; color:var(--muted); max-width: 680px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .07em; font-size: 12.5px; font-weight:600; color: var(--brand); margin: 0; }
.notice { background: var(--under-50); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid rgb(217 119 6 / .2); }

/* Surfaces */
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding: 10px 20px 24px; margin: 18px 0; box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .card { padding: 14px 32px 32px; } }
.card > h2:first-child, .card > .eyebrow:first-child { margin-top: 18px; }
.card > h1:first-child { margin-top: 18px; }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; }

/* Forms */
label { display:flex; flex-direction:column; font-size:14px; font-weight:500; color: var(--ink); gap:6px; }
label.inline { flex-direction:row; align-items:center; gap:8px; margin-top: 10px; font-weight: 400; }
label.choice { flex-direction:row; align-items:center; gap:10px; font-size:15px; font-weight:400; padding: 9px 12px; border:1px solid var(--line); border-radius:10px; margin: 6px 0; cursor: pointer; transition: border-color .15s, background-color .15s; }
label.choice:hover { border-color: #B8C2D1; background: var(--surface); }
label.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; }
input, select { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); height: 40px; padding: 0 12px; border:1px solid var(--line-strong); border-radius:10px; background:#fff; min-width:0;
  box-shadow: 0 1px 2px rgb(11 27 43 / .04); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #94A3B8; }
input:hover, select:hover { border-color: #B8C2D1; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(91 80 240 / .18); }
input[type="checkbox"], input[type="radio"] { height: 18px; width: 18px; padding: 0; accent-color: var(--brand); box-shadow:none; flex: none; }
input[inputmode="decimal"], input[inputmode="numeric"] { font-variant-numeric: tabular-nums; }
select { padding-right: 32px; appearance: none; -webkit-appearance: none;
  background: #fff linear-gradient(45deg, transparent 50%, #64748B 50%) no-repeat calc(100% - 13px) 50% / 5px 5px,
    linear-gradient(-45deg, transparent 50%, #64748B 50%) no-repeat calc(100% - 18px) 50% / 5px 5px; background-color:#fff; }
table.edit input { width: 100%; min-width: 92px; }
table.edit input[type="date"] { min-width: 140px; }
table.edit td { padding: 6px 6px; border-bottom: 0; }
table.edit th { padding: 6px 6px; }

/* Tables */
table { border-collapse: collapse; width:100%; }
th, td { text-align:left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { font-weight:600; color: var(--subtle); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align:right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-family: var(--mono); font-size: 13.5px; letter-spacing: -0.01em; }
.scroll { overflow-x:auto; border: 1px solid var(--line); border-radius: 12px; }
.scroll > table th:first-child, .scroll > table td:first-child { padding-left: 14px; }
.scroll > table th:last-child, .scroll > table td:last-child { padding-right: 14px; }
.scroll > table tr:last-child td { border-bottom: 0; }
.scroll > table thead th { background: var(--surface); }
.nowrap { white-space:nowrap; }
.lines-wrap { max-width:100%; -webkit-overflow-scrolling:touch; }

/* Buttons */
button, .button { font: inherit; font-size: 15px; font-weight: 600; cursor:pointer; border-radius: 10px; padding: 0 18px; height: 44px; border: 1px solid transparent; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap: 8px; transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s; }
.primary { background: var(--brand); border-color: var(--brand); color:#fff; box-shadow: 0 1px 2px rgb(11 27 43 / .10), inset 0 1px 0 rgb(255 255 255 / .14); }
.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.primary:active { background: var(--brand-700); transform: translateY(1px); box-shadow: none; }
.primary:disabled { opacity:.55; cursor: not-allowed; transform:none; }
.secondary { background:#fff; border-color: var(--line-strong); color: var(--ink); box-shadow: 0 1px 2px rgb(11 27 43 / .05); }
.secondary:hover { background: var(--surface); border-color: #B8C2D1; }
.secondary:active { background: #EEF2F7; transform: translateY(1px); }
.link { background:none; border:none; color: var(--brand); padding: 4px 0; height: auto; font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; box-shadow: none; display: inline; }
.link:hover { color: var(--brand-700); }
td .link { font-size: 13px; font-weight: 500; color: var(--subtle); }
td .link:hover { color: var(--err-text); }

/* Disclosure, questions */
details { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--surface); }
details[open] { padding-bottom: 16px; background: #fff; }
summary { cursor:pointer; font-weight:600; padding: 13px 0; list-style: none; display:flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:""; width: 8px; height: 8px; flex: none; margin-right: 4px; border-right: 2px solid #64748B; border-bottom: 2px solid #64748B; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
fieldset.question { border:1px solid var(--line); border-radius:14px; margin: 14px 0; padding: 12px 16px 14px; background: #fff; }
legend { font-weight:600; padding: 0 6px; font-size: 15px; }

/* Callouts */
.callout { background: var(--brand-50); border: 1px solid rgb(91 80 240 / .16); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.callout p { margin: 4px 0; }
.callout.warn { background: var(--under-50); border-color: rgb(217 119 6 / .25); }
.callout.error { background: var(--err-50); border-color: rgb(220 38 38 / .22); color: var(--ink); }
.callout.error strong { color: var(--err-text); }
.callout ul { margin: 6px 0 0; padding-left: 20px; }

/* Result figures */
.stat-row { display:flex; flex-wrap:wrap; gap: 12px; margin: 16px 0; }
.stat { flex: 1 1 180px; border:1px solid var(--line); border-radius:12px; padding: 14px 16px; background: var(--surface); }
.stat-label { display:block; font-size: 12.5px; font-weight: 500; color: var(--subtle); }
.stat-value { display:block; margin-top: 4px; font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.range-line { font-size: 19px; line-height: 1.45; font-weight: 600; margin: 8px 0; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.range-note { margin: 4px 0; color: var(--muted); }
.disclaimer-short { font-size: 13.5px; line-height: 1.6; color: var(--subtle); margin: 8px 0 16px; }
.nudge { font-size: 13px; color: var(--subtle); margin: 6px 0 0; }
.disclaimer { font-size: 13px; line-height: 1.6; color: var(--subtle); border-top:1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.tag { background: var(--under-50); color: var(--under-text); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 8px; white-space: nowrap; }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; margin: 14px 0; }
ol.steps { padding-left: 22px; } ol.steps li { margin: 6px 0; font-variant-numeric: tabular-nums; }
blockquote.template { border-left: 3px solid var(--brand); margin: 10px 0; padding: 10px 16px; color: var(--ink); background: var(--surface); border-radius: 0 10px 10px 0; }
.reading h3 { background: var(--brand-50); padding: 8px 12px; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .lines-wrap { overflow:visible !important; }
  .test-banner, header.site, footer.site, .no-print { display:none !important; }
  /* Black-and-white logo at the top of the printed report (the colour header is hidden in print). */
  .print-logo { display:block; height: 22px; width:auto; margin: 0 0 14px; }
  body { background:#fff; font-size: 12px; } main { padding: 0; max-width:none; }
  .card { border:none; padding:0; margin:0; box-shadow:none; }
  .scroll { border: 0; }
  section, .reading { break-inside: avoid-page; }
  table { break-inside: auto; } tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
/* Short tables (tiers, bonuses) sit outside a scroller, so they must fit a 360px phone. */
#tiers, #spiffs { width: 100%; table-layout: auto; }
#tiers input, #spiffs input { min-width: 0; }
@media (max-width: 560px) {
  #tiers td, #tiers th, #spiffs td, #spiffs th { padding-left: 3px; padding-right: 3px; }
  #tiers td:last-child, #spiffs td:last-child { width: 1%; white-space: nowrap; }
}
/* The offer box on the free result. */
.callout > h2:first-child { margin-top: 6px; }
.callout > ul + .button { margin-top: 16px; }
.callout:has(> .button.primary) { padding: 18px 20px; background: linear-gradient(135deg, rgb(91 80 240 / .07), rgb(20 184 200 / .06) 60%, rgb(245 184 61 / .06)); }
@media (max-width: 560px) {
  .stat-row { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; } .stat-value { font-size: 19px; }
}
.stat { display:flex; flex-direction:column; } .stat-value { margin-top: auto; padding-top: 4px; }
/* /sample/: the example label on the sample free result. */
.sample-pill { display:inline-flex; align-items:center; gap:8px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.4;
  color: var(--under-text); background: var(--under-50); box-shadow: inset 0 0 0 1px rgb(217 119 6 / .28); }
.sample-pill::before { content:""; width: 7px; height: 7px; flex: none; border-radius: 999px; background: linear-gradient(135deg, var(--coral), var(--citrine)); }

/* Footer links + site-wide disclaimer (injected at build time from web/site-config.mjs). */
footer.site .foot-links { display:flex; flex-wrap:wrap; gap: 6px 18px; margin: 14px 0 10px; }
footer.site .foot-links a { color: var(--muted, #475569); text-decoration: underline; text-underline-offset: 2px; }
footer.site .foot-links a:hover { color: var(--ink, #0f172a); }
footer.site .foot-disclaimer { font-size: 12.5px; color: var(--subtle); max-width: 80ch; }
