:root {
  color-scheme: light;
  --ink: #29272d;
  --muted: #686572;
  --line: #e5e3ea;
  --surface: #f6f6f9;
  --navy: #252667;
  --violet: #504aaa;
  --cyan: #78cbd5;
  --pink: #e3539c;
  --magenta: #c51e8a;
  --success: #177c4b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); margin: 0; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
.topbar { width: 100%; }
main, footer { margin-inline: auto; max-width: 1180px; width: calc(100% - 48px); }
.topbar {
  align-items: center; background: linear-gradient(105deg, #242665 0%, #504aaa 42%, #a62a93 76%, #c51e8a 100%);
  box-shadow: 0 8px 30px rgba(36, 38, 101, .22); display: flex; justify-content: space-between;
  min-height: 76px; padding-inline: max(24px, calc((100vw - 1180px) / 2)); position: sticky; top: 0; z-index: 1000;
}
.topbar::after { background: linear-gradient(90deg, transparent, rgba(120,203,213,.9), rgba(255,255,255,.7), transparent); bottom: 0; content: ""; height: 2px; inset-inline: 0; position: absolute; }
.brand { align-items: center; color: #fff; display: inline-flex; font-size: 1.18rem; font-weight: 800; gap: 11px; letter-spacing: .01em; text-decoration: none; }
.brand img { background: #fff; border: 2px solid rgba(255,255,255,.7); border-radius: 11px; box-shadow: 0 5px 16px rgba(0,0,0,.16); }
nav { display: flex; gap: 28px; }
nav a { border-radius: 8px; color: rgba(255,255,255,.9); font-weight: 700; padding: 8px 10px; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
nav a:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-1px); }
footer a { color: #4f4c56; font-weight: 650; text-decoration: none; }
footer a:hover { color: var(--magenta); }
.hero { align-items: center; display: grid; gap: 70px; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); min-height: 610px; padding: 72px 0 88px; }
.hero h1, .document-page h1 { font-size: clamp(2.55rem, 5.2vw, 4.9rem); letter-spacing: -.055em; line-height: .99; margin: 14px 0 24px; max-width: 850px; }
.eyebrow { color: var(--magenta); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.25rem; line-height: 1.55; max-width: 760px; }
.lead.compact { max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 11px; display: inline-flex; font-weight: 750; justify-content: center; min-height: 50px; padding: 0 21px; text-decoration: none; }
.button.primary { background: linear-gradient(135deg, var(--violet), var(--magenta)); box-shadow: 0 12px 28px rgba(80, 74, 170, .24); color: #fff; }
.button.secondary { background: #fff; border-color: #d9d6e1; color: var(--navy); }
.button:hover { transform: translateY(-1px); }
.release-note { color: #77737d; font-size: .88rem; max-width: 650px; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(37, 38, 103, .13); min-width: 0; overflow: hidden; padding: 28px; position: relative; transform: translateZ(0); transition: box-shadow .25s ease, transform .25s ease; }
.status-card:hover { box-shadow: 0 30px 80px rgba(37, 38, 103, .19); transform: translateY(-3px); }
.status-card::before { background: linear-gradient(90deg, var(--navy), var(--violet), var(--cyan), var(--pink), var(--magenta)); content: ""; height: 5px; inset: 0 0 auto; position: absolute; }
.status-heading { align-items: center; display: flex; gap: 15px; }
.status-heading h2 { font-size: 1.25rem; line-height: 1.2; margin: 3px 0 0; }
.status-label { color: var(--muted); font-size: .77rem; font-weight: 750; text-transform: uppercase; }
.status-result { align-items: flex-start; background: var(--surface); border-radius: 13px; display: flex; gap: 13px; margin: 26px 0 16px; min-height: 78px; padding: 17px; width: 100%; }
.status-result > div { flex: 1 1 auto; min-width: 0; width: calc(100% - 23px); }
.status-result strong { display: block; font-size: 1rem; line-height: 1.35; overflow-wrap: break-word; }
.status-result div > span { color: var(--muted); display: block; font-size: .87rem; line-height: 1.45; margin-top: 5px; overflow-wrap: break-word; }
.status-dot { background: #92909a; border-radius: 50%; flex: 0 0 auto; height: 10px; margin-top: 7px; width: 10px; }
.status-dot.ready { background: var(--success); box-shadow: 0 0 0 4px rgba(23,124,75,.12); }
.status-dot.missing { background: var(--magenta); box-shadow: 0 0 0 4px rgba(197,30,138,.12); }
.status-dot.checking { animation: pulse 1s infinite alternate; }
.text-button { background: transparent; border: 0; border-radius: 7px; color: var(--violet); cursor: pointer; display: inline-flex; font: inherit; font-weight: 750; padding: 7px 9px; transition: background .18s ease, color .18s ease; }
.text-button:hover { background: rgba(80,74,170,.09); color: var(--magenta); }
.text-button:focus-visible { outline: 3px solid rgba(120,203,213,.65); outline-offset: 2px; }
.status-blocker { align-items: center; animation: fade-in .18s ease both; backdrop-filter: blur(7px); background: rgba(249,249,252,.97); display: flex; inset: 5px 0 0; justify-content: center; padding: 24px; position: absolute; z-index: 4; }
.blocker-panel { align-items: center; background: #fff; border: 1px solid rgba(80,74,170,.13); border-radius: 15px; box-shadow: 0 14px 34px rgba(37,38,103,.13); display: flex; flex-direction: column; gap: 13px; padding: 24px 28px; text-align: center; }
.status-blocker strong { color: var(--navy); font-size: .94rem; line-height: 1.35; }
.spinner { animation: spin .8s linear infinite; border: 3px solid rgba(80,74,170,.16); border-radius: 50%; border-top-color: var(--magenta); height: 36px; width: 36px; }
.trust-strip { border-block: 1px solid var(--line); display: grid; gap: 34px; grid-template-columns: repeat(3, 1fr); padding: 32px 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { color: var(--muted); font-size: .9rem; }
.steps { padding: 100px 0; }
.section-heading h2, .notice h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; line-height: 1.08; margin: 10px 0 40px; }
.steps ol { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.steps li:hover { border-color: rgba(80,74,170,.35); box-shadow: 0 18px 38px rgba(37,38,103,.1); transform: translateY(-5px); }
.steps li > span { align-items: center; background: var(--navy); border-radius: 50%; color: #fff; display: flex; font-weight: 800; height: 34px; justify-content: center; margin-bottom: 20px; width: 34px; }
.steps p { color: var(--muted); margin-bottom: 0; }
.notice { align-items: center; background: var(--navy); border-radius: 24px; color: #fff; display: flex; gap: 50px; justify-content: space-between; margin-bottom: 100px; padding: 42px; }
.notice h2 { margin-bottom: 15px; }
.notice p { color: #d8d8e8; margin: 0; max-width: 750px; }
.notice .eyebrow { color: var(--cyan); }
footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 34px 0 44px; }
footer img { height: auto; max-width: 190px; }
footer div { align-items: center; display: flex; flex-wrap: wrap; gap: 22px; }
.document-page { max-width: 880px; padding: 82px 0 110px; }
.document-page h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.document-page section { border-top: 1px solid var(--line); padding: 26px 0 14px; }
.document-page h2 { font-size: 1.35rem; margin: 0 0 8px; }
.document-page p, .document-page li { color: #56525d; }
.document-page code { background: var(--surface); border-radius: 4px; color: var(--navy); padding: 2px 5px; }
.updated { color: var(--muted); margin-bottom: 48px; }
.support-box { background: var(--surface); border: 0 !important; border-radius: 18px; margin-top: 30px; padding: 28px !important; }
.smartscreen-help { background: linear-gradient(135deg, rgba(80,74,170,.075), rgba(120,203,213,.11)); border-left: 5px solid var(--violet) !important; }
.smartscreen-help ol { margin-bottom: 18px; padding-left: 24px; }
.smartscreen-help li + li { margin-top: 8px; }
.error-body { background: radial-gradient(circle at 50% 42%, rgba(120,203,213,.18), transparent 34%), #fff; display: flex; flex-direction: column; min-height: 100vh; }
.error-body > .topbar, .error-body > footer { flex: 0 0 auto; }
.error-page { align-items: center; display: flex; flex: 1 0 auto; flex-direction: column; justify-content: center; min-height: calc(100vh - 236px); padding: clamp(52px, 8vh, 92px) 0; text-align: center; }
.error-copy { align-items: center; display: flex; flex-direction: column; max-width: 920px; }
.error-code-label { background: linear-gradient(100deg, var(--violet), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(1.35rem, 2.6vw, 2.15rem); font-weight: 900; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.error-copy h1 { font-size: clamp(3rem, 6vw, 5.7rem); letter-spacing: -.06em; line-height: .96; margin: 22px 0 26px; max-width: 900px; }
.error-copy p { color: var(--muted); font-size: 1.15rem; margin-inline: auto; max-width: 760px; }
.error-copy .actions { justify-content: center; }
.error-visual { height: 360px; margin-top: 36px; max-width: 560px; position: relative; width: 100%; }
.error-number { background: linear-gradient(115deg, rgba(37,38,103,.13), rgba(197,30,138,.14)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(11rem, 22vw, 17rem); font-weight: 950; inset: 50% auto auto 50%; letter-spacing: -.1em; line-height: .78; position: absolute; transform: translate(-52%, -56%); user-select: none; }
.document-missing { background: rgba(255,255,255,.96); border: 1px solid rgba(80,74,170,.2); border-radius: 8px 24px 8px 8px; box-shadow: 0 28px 70px rgba(37,38,103,.2); height: 255px; left: 50%; padding: 42px 34px 28px; position: absolute; top: 45%; transform: translate(-50%, -50%) rotate(2deg); width: 205px; }
.document-missing::before { background: linear-gradient(90deg, var(--navy), var(--violet), var(--cyan), var(--pink), var(--magenta)); content: ""; height: 6px; inset: 0 0 auto; position: absolute; }
.document-lines { display: grid; gap: 13px; }
.document-lines i { background: #e9e8ee; border-radius: 10px; display: block; height: 8px; }
.document-lines i:nth-child(2) { width: 82%; }
.document-lines i:nth-child(3) { width: 62%; }
.signature-zone { align-items: center; background: rgba(227,83,156,.05); border: 2px dashed rgba(197,30,138,.62); border-radius: 10px; bottom: 28px; color: var(--magenta); display: flex; font-size: .7rem; font-weight: 850; inset-inline: 24px; justify-content: center; letter-spacing: .055em; min-height: 66px; position: absolute; text-align: center; text-transform: uppercase; }
.coordinates { bottom: 0; display: flex; gap: 9px; justify-content: center; left: 50%; position: absolute; transform: translateX(-50%); }
.coordinate { background: var(--navy); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; box-shadow: 0 8px 22px rgba(37,38,103,.2); color: #fff; display: inline-block; font-size: .8rem; font-weight: 800; min-width: 62px; padding: 7px 11px; }
body.motion-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.75,.25,1); }
body.motion-ready .reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { to { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 820px) {
  .topbar { align-items: center; padding: 14px 24px; }
  nav { gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
  nav a { font-size: .9rem; }
  .hero { gap: 45px; grid-template-columns: 1fr; padding: 70px 0; }
  .trust-strip, .steps ol { grid-template-columns: 1fr; }
  .notice, footer { align-items: flex-start; flex-direction: column; }
  .error-page { min-height: calc(100vh - 260px); padding-bottom: 52px; }
}
@media (max-width: 520px) {
  main, footer { width: calc(100% - 30px); }
  .topbar { padding-inline: 15px; }
  .topbar nav a:first-child { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 2.7rem; }
  .actions .button { width: 100%; }
  .notice { padding: 28px 22px; }
  .error-copy h1 { font-size: 3.15rem; }
  .error-visual { height: 320px; }
  .document-missing { height: 230px; width: 185px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
