@font-face { font-family: "Inter Brand"; src: url("/static/fonts/inter-black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Roboto Brand"; src: url("/static/fonts/roboto-light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Roboto Brand"; src: url("/static/fonts/roboto-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Brand"; src: url("/static/fonts/roboto-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto Brand"; src: url("/static/fonts/roboto-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #201600;
  --muted: #716b60;
  --line: #ded9d0;
  --surface: #ffffff;
  --soft: #f8f4ec;
  --accent: #e2306c;
  --accent-dark: #bd1f55;
  --blue: #62c9f6;
  --yellow: #fcbd00;
  --success: #17844b;
  --shadow: 0 28px 80px rgba(0, 0, 0, .18);
  font-family: "Roboto Brand", Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: #111; }
button, input, select { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(1220px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  background: var(--surface);
}

.intro {
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  padding: clamp(32px, 5vw, 76px);
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 110% -10%, var(--blue) 0 27%, transparent 27.5%),
    radial-gradient(ellipse at -20% 70%, var(--accent) 0 22%, transparent 22.5%),
    radial-gradient(ellipse at 88% 112%, var(--yellow) 0 29%, transparent 29.5%),
    #fffaf1;
  display: flex;
  flex-direction: column;
}

.intro::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 250px;
  height: 70px;
  right: -48px;
  top: 39%;
  border-radius: 55% 45% 54% 46%;
  background: var(--ink);
  transform: rotate(-12deg);
  opacity: .06;
}

.intro::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 110px;
  left: 34%;
  bottom: -72px;
  border: 16px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: .48;
}

.brand { position: relative; z-index: 2; display: block; flex: 0 0 160px; width: 190px; height: 160px; overflow: hidden; text-decoration: none; }
.brand img { display: block; width: 296px; max-width: none; transform: translate(-53px, -75px); }
.intro-copy { position: relative; z-index: 1; margin: auto 0; padding: 70px 0; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 700; }
.intro .eyebrow { display: inline-flex; margin: 0; padding: 9px 13px; border-radius: 9px; background: var(--ink); color: #fff; }
.intro h1 { max-width: 560px; margin: 20px 0 22px; font-family: "Inter Brand", Inter, sans-serif; font-size: clamp(40px, 5vw, 68px); font-weight: 900; line-height: .96; letter-spacing: -.055em; text-transform: uppercase; }
.intro-copy > p:last-child { max-width: 490px; color: #5e574b; font-size: 18px; font-weight: 300; line-height: 1.55; }
.benefits { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefits div { min-width: 0; padding-top: 17px; border-top: 2px solid rgba(32,22,0,.22); }
.benefits strong, .benefits span { display: block; }
.benefits strong { font-family: "Inter Brand", Inter, sans-serif; font-size: 19px; }
.benefits span { margin-top: 4px; color: #6c6558; font-size: 12px; }

.form-card { padding: clamp(38px, 6vw, 84px) clamp(28px, 7vw, 94px); align-self: center; }
.form-heading { margin-bottom: 32px; }
.step-pill { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--yellow); color: var(--ink); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 700; }
.form-heading h2 { margin: 15px 0 7px; font-family: "Inter Brand", Inter, sans-serif; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; text-transform: uppercase; }
.form-heading > p { margin: 0; color: var(--muted); }
.store-badge { display: inline-flex; align-items: center; gap: 8px; }
.store-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(98,201,246,.17); }
.alert { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #efbbb8; border-radius: 13px; background: #fff3f2; color: #9b1913; line-height: 1.4; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-bottom: 18px; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.field legend { padding: 0; }
.field input, .field select, .phone-wrap { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { padding: 0 15px; }
.field input:focus, .field select:focus, .phone-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(98,201,246,.2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--accent); }
.field small { display: block; margin-top: 7px; color: #929292; font-size: 11px; }
.field-error { display: block; margin-top: 7px; color: var(--accent-dark); font-size: 12px; }
.phone-wrap { display: flex; align-items: center; padding-left: 15px; }
.phone-wrap > span { padding-right: 10px; color: #555; font-weight: 700; border-right: 1px solid var(--line); }
.phone-wrap input { min-height: 50px; border: 0; box-shadow: none !important; }
.gender-field { padding: 0; border: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented span { min-height: 52px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; color: #656565; cursor: pointer; transition: .2s; }
.segmented input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: inset 0 -4px 0 var(--accent); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0,0,0,.1); }
.suggestions { position: absolute; z-index: 10; top: calc(100% - 4px); left: 0; right: 0; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.suggestions button { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.suggestions button:hover, .suggestions button:focus { background: var(--soft); outline: none; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin: 2px 0 7px; color: #5b5b5b; font-size: 12px; line-height: 1.45; cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.checkmark { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #bcbcbc; border-radius: 7px; background: #fff; }
.consent input:checked + .checkmark { border-color: var(--accent); background: var(--accent); }
.consent input:checked + .checkmark::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; }
.consent input:focus-visible + .checkmark { box-shadow: 0 0 0 4px rgba(0,0,0,.1); }
.consent a { text-underline-offset: 2px; }
.consent-error .checkmark { border-color: var(--accent); }
.consent-message { margin: 0 0 10px 33px; }
.submit-button { width: 100%; min-height: 58px; margin-top: 18px; padding: 0 10px 0 20px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 15px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 12px 26px rgba(32,22,0,.2); transition: transform .2s, background .2s; }
.submit-button > span:last-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-size: 20px; }
.submit-button:hover { transform: translateY(-2px); background: #000; }
.submit-button:disabled { cursor: wait; opacity: .7; transform: none; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 13px 0 0; color: #8d8d8d; font-size: 11px; }
.secure-note span { color: var(--success); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success-page, .document-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 12%, var(--blue) 0 12%, transparent 12.5%), radial-gradient(circle at 88% 84%, var(--yellow) 0 16%, transparent 16.5%), radial-gradient(circle at 90% 5%, var(--accent) 0 10%, transparent 10.5%), #fffaf1; }
.success-card, .document-card { width: min(610px, 100%); padding: clamp(30px, 7vw, 62px); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.success-card { text-align: center; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; background: #e3f6eb; color: var(--success); font-size: 34px; font-weight: 900; }
.success-card h1, .document-card h1 { margin: 8px 0 18px; font-family: "Inter Brand", Inter, sans-serif; font-size: clamp(31px, 6vw, 46px); line-height: 1.05; letter-spacing: -.04em; text-transform: uppercase; }
.success-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.wallet-buttons { display: grid; gap: 10px; margin: 28px 0 16px; }
.wallet-button { display: grid; place-items: center; min-height: 54px; padding: 10px 18px; border-radius: 13px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; }
.wallet-button.google { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.success-note { font-size: 12px; }
.document-page { align-items: start; }
.document-card { width: min(820px, 100%); text-align: left; }
.document-card h1 { margin-top: 28px; }
.document-card h2 { margin: 28px 0 10px; font-size: 20px; }
.document-card p { color: #4f4f4f; line-height: 1.7; }
.back-link { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.result-logo { display: block; width: 110px; height: 94px; margin: 0 auto 8px; overflow: hidden; }
.result-logo img { display: block; width: 172px; max-width: none; transform: translate(-31px, -44px); }
.result-logo--left { margin-left: 0; }

@media (max-width: 860px) {
  .page-shell { display: block; width: 100%; background: #fff; }
  .intro { min-height: auto; position: relative; padding: 28px 22px 34px; }
  .intro-copy { padding: 52px 0 36px; }
  .intro h1 { max-width: 580px; font-size: clamp(38px, 10vw, 58px); }
  .intro-copy > p:last-child { margin-bottom: 0; font-size: 16px; }
  .form-card { padding: 38px 22px 50px; }
}

@media (max-width: 560px) {
  .intro { padding-top: max(24px, env(safe-area-inset-top)); }
  .brand { width: 150px; height: 126px; }
  .brand { flex-basis: 126px; }
  .brand img { width: 234px; transform: translate(-42px, -59px); }
  .intro-copy { padding: 44px 0 30px; }
  .intro-copy > p:last-child { margin-left: -10px; padding: 12px 10px; border-radius: 12px; background: rgba(255,250,241,.86); }
  .intro h1 { font-size: 42px; }
  .benefits { gap: 9px; }
  .benefits strong { font-size: 16px; }
  .benefits span { font-size: 10px; }
  .form-card { padding: 34px 18px calc(44px + env(safe-area-inset-bottom)); }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .form-heading h2 { font-size: 34px; }
  .success-page, .document-page { padding: 12px; }
  .success-card, .document-card { padding: 30px 22px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
