:root {
  color-scheme: light;
  --ink: #102a43;
  --muted: #627d98;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #14b8a6;
  --line: #d9e2ec;
  --surface: #ffffff;
  --soft: #f2f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(150deg, #fff 0 45%, #eef6ff 100%); min-height: 100vh; }
.topbar { height: 86px; max-width: 1180px; margin: auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 205px; height: auto; }
.pilot { padding: 7px 12px; border: 1px solid #b6e3dc; border-radius: 999px; color: #087f73; background: #ecfdf9; font-size: 13px; font-weight: 700; }
main { max-width: 1180px; margin: auto; padding: 54px 28px 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: 78px; align-items: center; min-height: 470px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 700px; font-size: clamp(46px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.lead { margin: 28px 0 0; max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.upload-card { padding: 30px; border: 1px solid rgba(189, 204, 220, .8); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 24px 70px rgba(16,42,67,.12); }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
input[type="text"], input:not([type]) { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--ink); font: inherit; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.drop-zone { margin: 18px 0; min-height: 174px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 2px dashed #b8c9da; border-radius: 15px; background: var(--soft); text-align: center; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--blue); background: #edf4ff; }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.drop-zone span:last-child { color: var(--muted); font-size: 13px; font-weight: 500; }
.file-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); font-size: 24px; }
button { width: 100%; height: 50px; border: 0; border-radius: 11px; color: #fff; background: var(--blue); font: inherit; font-weight: 800; cursor: pointer; transition: .18s ease; }
button:hover { background: var(--blue-dark); transform: translateY(-1px); }
button:disabled { opacity: .6; cursor: wait; transform: none; }
.message { min-height: 20px; margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.message.error { color: #b42318; }
.message.success { color: #087f5b; }
.documents-section { margin-top: 90px; padding-top: 38px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
button.secondary { width: auto; height: 40px; padding: 0 17px; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.documents { display: grid; gap: 10px; }
.document { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); }
.document h3 { margin: 0 0 6px; font-size: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: 13px; }
.tag { color: var(--blue); font-weight: 800; text-transform: uppercase; }
.document a { color: var(--blue); font-weight: 750; text-decoration: none; white-space: nowrap; }
.empty { padding: 32px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
footer { max-width: 1180px; margin: auto; padding: 24px 28px 42px; color: var(--muted); font-size: 13px; }
@media (max-width: 820px) {
  .topbar { padding-inline: 20px; }
  .brand img { width: 174px; }
  main { padding: 34px 20px 60px; }
  .hero { grid-template-columns: 1fr; gap: 42px; }
  .upload-card { padding: 22px; }
  .documents-section { margin-top: 65px; }
  .document { grid-template-columns: 1fr; gap: 12px; }
}

/* Document setup */
.topbar-meta { display: flex; align-items: center; gap: 14px; }
.account { color: var(--muted); font-size: 13px; font-weight: 700; }
.page-loading { min-height: 55vh; display: grid; place-items: center; color: var(--muted); }
.process-note { display: flex; gap: 14px; align-items: center; margin-top: 34px; max-width: 540px; }
.process-note > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 800; }
.process-note p { margin: 0; color: var(--muted); line-height: 1.45; }
.process-note strong { color: var(--ink); }
.document-actions { display: flex; align-items: center; gap: 16px; }
.text-link { color: var(--muted) !important; }
.button-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border-radius: 10px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 800; text-decoration: none; }
.secondary-link { color: var(--ink); border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 11px; font-weight: 800; text-transform: none; }
.status-ready, .status-signed { color: #087f5b; background: #eafbf4; }
.status-sent, .status-in_progress { color: #8a5a00; background: #fff7df; }
.status-canceled, .status-expired, .status-declined { color: #a12a22; background: #fff0ef; }

main.detail-main { max-width: 1440px; padding-top: 26px; }
.breadcrumbs { margin-bottom: 25px; }
.breadcrumbs a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.detail-head h1 { max-width: 920px; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; }
.detail-head p { margin: 11px 0 0; color: var(--muted); }
.detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.8); }
.steps li { position: relative; display: flex; align-items: center; gap: 11px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 19px; left: 54px; right: 15px; height: 1px; background: var(--line); }
.steps li > span { position: relative; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-weight: 800; }
.steps li.done > span { color: #fff; border-color: var(--teal); background: var(--teal); }
.steps li.active > span { color: #fff; border-color: var(--blue); background: var(--blue); }
.steps li div { position: relative; z-index: 1; padding-right: 12px; background: #fff; }
.steps strong, .steps small { display: block; }
.steps small { margin-top: 2px; color: var(--muted); }
.locked-note { margin-bottom: 24px; padding: 15px 18px; border: 1px solid #b7e5d8; border-radius: 12px; color: #176b59; background: #effbf7; line-height: 1.5; }
.workspace-grid { display: grid; grid-template-columns: minmax(420px, .92fr) minmax(550px, 1.08fr); gap: 24px; align-items: start; }
.preview-panel, .setup-card, .review-card, .audit-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 14px 38px rgba(16,42,67,.06); }
.preview-panel { position: sticky; top: 18px; padding: 22px; }
.setup-column { display: grid; gap: 16px; }
.setup-card, .review-card { padding: 24px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-heading .eyebrow, .review-card .eyebrow { margin-bottom: 7px; }
.panel-heading h2, .review-card h2 { font-size: 24px; }
.verified { padding: 5px 9px; border-radius: 7px; color: #087f5b; background: #eafbf4; font-size: 11px; font-weight: 800; }
.pdf-frame { width: 100%; height: min(67vh, 780px); min-height: 560px; display: block; border: 1px solid #c9d6e2; border-radius: 9px; background: #e9eef3; }
.hash-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.hash-row code { overflow: hidden; color: var(--ink); text-overflow: ellipsis; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field.full { grid-column: 1 / -1; }
.field label, .order-field legend { margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 750; }
.field label span { color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; font: inherit; outline: none; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.field input:disabled, .field textarea:disabled { color: #486581; background: #f6f8fa; }
.order-field { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.order-field legend { grid-column: 1 / -1; }
.choice { display: flex; gap: 10px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: #f2f6ff; }
.choice input { accent-color: var(--blue); }
.choice strong, .choice small { display: block; }
.choice small { margin-top: 3px; color: var(--muted); font-weight: 500; line-height: 1.35; }
button.secondary.small { min-width: auto; width: auto; height: 38px; padding-inline: 13px; }
.section-help { margin: -6px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.participant-list { display: grid; gap: 11px; }
.participant { display: grid; grid-template-columns: 34px minmax(0,1fr) 30px; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdff; }
.participant-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #eaf1ff; font-size: 13px; font-weight: 800; }
.participant-fields { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; }
.required-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; margin: 1px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.required-check input { accent-color: var(--blue); }
.participant-tools { display: flex; flex-direction: column; gap: 4px; }
.participant-tools button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; padding: 0; color: var(--muted); background: #fff; font-size: 15px; }
.participant-tools button:hover { color: var(--blue); border-color: var(--blue); transform: none; }
.participant-tools button.danger:hover { color: #b42318; border-color: #e5a19b; }
.review-card { border-color: #bfd0e2; background: linear-gradient(145deg, #fff, #f4f8fc); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.review-grid div { padding: 13px; border-radius: 10px; background: #fff; }
.review-grid span, .review-grid strong { display: block; }
.review-grid span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.review-grid strong { font-size: 15px; }
.review-warning { margin: 14px 0; color: #7a5b14; font-size: 13px; line-height: 1.5; }
.finalized-text { margin: 17px 0 0; color: #087f5b; line-height: 1.5; }
.action-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.action-row button.secondary { width: 100%; height: 50px; }
.audit-card { padding: 0 20px; box-shadow: none; }
.audit-card summary { padding: 17px 0; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.audit-card ol { list-style: none; margin: 0; padding: 0 0 16px; }
.audit-card li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #edf1f5; font-size: 12px; }
.audit-card time { color: var(--muted); }
.request-list { display: grid; gap: 12px; margin-top: 18px; }
.request-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.request-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.request-head strong, .request-head span { display: block; }
.request-head div > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 13px; }
.link-row input { min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; color: var(--muted); background: var(--soft); }
.link-row button, .manual-code { width: auto; height: 42px; padding-inline: 14px; }
.manual-code { margin-top: 10px; }
.code-slot { margin: 9px 0 0; }
.otp-code { color: var(--ink); font-size: 28px; font-weight: 850; letter-spacing: .18em; }
.dispatch-tools { margin-top: 14px; }
.dispatch-tools button { height: 42px; }
.not-found { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
.not-found h1 { font-size: 42px; }
.not-found a { margin-top: 24px; color: var(--blue); font-weight: 800; }

@media (max-width: 1080px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .pdf-frame { min-height: 520px; height: 62vh; }
}

/* Participant signing */
body.signing-mode { background: #f4f8fc; }
.signing-mode .topbar { height: 74px; }
.signing-mode .brand img { width: 180px; }
main.signing-main { max-width: 1280px; padding-top: 32px; }
.signing-head { margin-bottom: 28px; }
.signing-head h1 { max-width: 880px; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; }
.signing-head > p:last-child { margin: 13px 0 0; color: var(--muted); }
.signing-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 24px; align-items: start; }
.signing-preview, .signing-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 38px rgba(16,42,67,.06); }
.signing-preview .pdf-frame { height: 68vh; min-height: 560px; }
.signing-card { position: sticky; top: 18px; padding: 25px; }
.signing-card h2 { margin-top: 15px; font-size: 27px; }
.signing-card > p { color: var(--muted); line-height: 1.55; }
.signing-card dl { display: grid; gap: 0; margin: 20px 0; }
.signing-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid #edf1f5; }
.signing-card dt { color: var(--muted); }
.signing-card dd { margin: 0; font-weight: 750; text-align: right; }
.manual-note { padding: 13px; border-radius: 10px; color: #6e5414 !important; background: #fff8e5; font-size: 13px; }
.otp-entry { margin: 18px 0 14px; }
.otp-entry input { height: 58px; font-size: 26px; font-weight: 800; letter-spacing: .25em; text-align: center; }
.consent-check { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.45; }
.consent-check input { margin-top: 3px; accent-color: var(--blue); }
.consent-check a { color: #1f58c7; text-underline-offset: 2px; }
.signing-result { margin-top: 20px; padding: 17px; border-radius: 12px; color: var(--muted); background: var(--soft); line-height: 1.55; }
.signing-result.success { color: #087f5b; background: #eafbf4; }
.signing-result.error { color: #a12a22; background: #fff0ef; }
.signing-error { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
.signing-error h1 { max-width: 700px; font-size: 44px; }
.signing-error > p:last-child { color: var(--muted); }

@media (max-width: 900px) {
  .signing-layout { grid-template-columns: 1fr; }
  .signing-card { position: static; order: -1; }
  .signing-preview .pdf-frame { min-height: 460px; height: 60vh; }
}

@media (max-width: 620px) {
  .link-row { grid-template-columns: 1fr; }
  .link-row button { width: 100%; }
  main.signing-main { padding-top: 20px; }
  .signing-preview, .signing-card { padding: 15px; }
  .signing-preview .pdf-frame { min-height: 390px; }
  .request-head { flex-direction: column; }
}

@media (max-width: 720px) {
  .account { display: none; }
  .detail-head { align-items: flex-start; flex-direction: column; }
  .steps { padding: 13px; }
  .steps li { gap: 6px; }
  .steps li:not(:last-child)::after { display: none; }
  .steps li > span { width: 30px; height: 30px; font-size: 12px; }
  .steps small { display: none; }
  .workspace-grid { display: block; }
  .preview-panel { margin-bottom: 16px; padding: 15px; }
  .pdf-frame { min-height: 410px; height: 58vh; }
  .setup-card, .review-card { padding: 18px; }
  .field-grid, .order-field { grid-template-columns: 1fr; }
  .participant { grid-template-columns: 30px minmax(0,1fr) 28px; padding: 11px; }
  .participant-fields { grid-template-columns: 1fr; }
  .required-check { grid-column: 1; }
  .review-grid { grid-template-columns: 1fr; }
  .action-row { grid-template-columns: 1fr; }
  .document-actions { justify-content: space-between; }
}

/* Public premium landing */
body.landing-mode, body.registration-mode { --night: #050b16; --night-soft: #0a1424; --electric: #5b7cff; --mint: #70f0cf; color: #ecf3ff; background: var(--night); }
.landing-mode .topbar, .registration-mode .topbar { position: relative; z-index: 20; max-width: 1320px; height: 92px; padding: 22px 32px; }
.landing-mode .brand img, .registration-mode .brand img { width: 184px; filter: brightness(0) invert(1); }
.landing-nav { border-bottom: 1px solid rgba(255,255,255,.08); }
.landing-links { display: flex; align-items: center; gap: 34px; }
.landing-links a, .nav-login { color: #aebbd0; font-size: 14px; font-weight: 650; text-decoration: none; transition: color .2s ease; }
.landing-links a:hover, .nav-login:hover { color: #fff; }
.landing-auth { display: flex; align-items: center; gap: 20px; }
.nav-register { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 18px; border: 1px solid rgba(112,240,207,.4); border-radius: 11px; color: #07121f; background: var(--mint); font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 0 28px rgba(112,240,207,.14); }
main.landing-main { max-width: none; margin: 0; padding: 0; overflow: hidden; }
.landing-hero { position: relative; min-height: 740px; display: grid; grid-template-columns: minmax(0,.92fr) minmax(520px,1.08fr); gap: 60px; align-items: center; max-width: 1320px; margin: auto; padding: 78px 32px 110px; }
.landing-hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; color: #9fb0ca; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero-kicker span { width: 30px; height: 1px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.landing-hero h1 { max-width: 760px; color: #f5f8ff; font-size: clamp(51px, 5.1vw, 77px); line-height: .98; letter-spacing: -.06em; }
.landing-hero h1 em { color: transparent; background: linear-gradient(100deg, #84ffe0, #7ea1ff 70%); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.landing-hero-copy > p { max-width: 620px; margin: 28px 0 0; color: #9cabc2; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 37px; }
.landing-primary, .landing-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 55px; padding: 0 22px; border-radius: 13px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.landing-primary { gap: 18px; color: #06101d; background: var(--mint); box-shadow: 0 16px 44px rgba(71,225,187,.18); }
.landing-primary span { font-size: 19px; }
.landing-primary:hover, .landing-secondary:hover { transform: translateY(-2px); }
.landing-primary:hover { box-shadow: 0 20px 55px rgba(71,225,187,.28); }
.landing-secondary { color: #e4ebf7; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.035); }
.landing-secondary:hover { border-color: rgba(255,255,255,.32); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #8595ad; font-size: 12px; font-weight: 650; }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--mint); font-style: normal; }
.hero-aura { position: absolute; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.hero-aura-one { width: 560px; height: 560px; right: -180px; top: -120px; background: radial-gradient(circle, rgba(70,102,255,.18), transparent 68%); }
.hero-aura-two { width: 500px; height: 500px; left: 20%; bottom: -360px; background: radial-gradient(circle, rgba(49,217,177,.1), transparent 68%); }
.product-stage { position: relative; min-height: 530px; display: grid; place-items: center; perspective: 1200px; }
.stage-grid { position: absolute; inset: 2% -20% -10% 0; opacity: .18; background-image: linear-gradient(rgba(111,140,180,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(111,140,180,.25) 1px, transparent 1px); background-size: 34px 34px; transform: rotateX(63deg) rotateZ(-9deg); mask-image: linear-gradient(to bottom, transparent, #000 28%, transparent 88%); }
.product-window { position: relative; z-index: 2; width: min(680px,100%); overflow: hidden; border: 1px solid rgba(154,180,225,.2); border-radius: 22px; background: rgba(10,20,36,.9); box-shadow: 0 45px 100px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.04); transform: rotateY(-5deg) rotateX(2deg); backdrop-filter: blur(22px); }
.window-bar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
.window-brand { color: #fff; font-size: 15px; font-weight: 850; letter-spacing: -.03em; }
.window-brand span, .phone-brand span { color: var(--electric); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #40516b; }
.window-content { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 350px; }
.document-preview { padding: 24px; border-right: 1px solid rgba(255,255,255,.08); background: #101d2e; }
.document-page { height: 100%; padding: 28px 25px; border-radius: 4px; color: #1b2b40; background: #f9fbfd; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.document-page > span { color: #7690b0; font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.document-page h3 { margin: 14px 0 30px; font-size: 21px; letter-spacing: -.04em; }
.document-page p { height: 5px; margin: 0 0 12px; border-radius: 5px; background: #dbe4ed; }
.document-page p.short { width: 70%; }
.signature-line { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 76px; }
.signature-line i { display: block; border-top: 1px solid #b9c8d8; }
.flow-preview { padding: 27px 22px; }
.flow-label { color: #6f86a4; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.flow-preview > h3 { margin: 8px 0 22px; color: #f0f5fd; font-size: 20px; }
.flow-person { display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.07); }
.flow-person i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #9fb7ff; background: #172747; font-size: 8px; font-style: normal; font-weight: 800; }
.flow-person strong, .flow-person small { display: block; }
.flow-person strong { color: #dfe9f8; font-size: 10px; }
.flow-person small { margin-top: 3px; color: #70839f; font-size: 8px; }
.flow-person b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #071922; background: var(--mint); font-size: 9px; }
.flow-person.active { margin: 3px -9px 0; padding: 13px 9px; border: 1px solid rgba(112,240,207,.2); border-radius: 11px; background: rgba(112,240,207,.045); }
.window-proof { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 15px 19px; border-top: 1px solid rgba(255,255,255,.08); color: #6f839f; font-size: 9px; }
.window-proof code { color: #9fb0c8; }
.window-proof strong { padding: 6px 9px; border-radius: 7px; color: #64dbbb; background: rgba(112,240,207,.08); }
.floating-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(13,25,43,.92); box-shadow: 0 18px 55px rgba(0,0,0,.38); backdrop-filter: blur(16px); }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { color: #edf5ff; font-size: 11px; }
.floating-card small { margin-top: 3px; color: #7387a4; font-size: 9px; }
.floating-status { right: -14px; top: 35px; }
.floating-status > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #071922; background: var(--mint); font-weight: 900; }
.floating-file { left: -28px; bottom: 33px; }
.floating-file > i { width: 34px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: #adc0ff; background: #1b2c52; font-size: 8px; font-style: normal; font-weight: 900; }
.signal-strip { max-width: 1320px; display: grid; grid-template-columns: repeat(4,1fr); margin: 0 auto; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.025); }
.signal-strip div { padding: 24px 27px; border-right: 1px solid rgba(255,255,255,.08); }
.signal-strip div:last-child { border: 0; }
.signal-strip strong, .signal-strip span { display: block; }
.signal-strip strong { color: #eaf1fc; font-size: 15px; }
.signal-strip span { margin-top: 5px; color: #71839d; font-size: 11px; }
.landing-section { padding: 132px 32px; color: #102238; background: #f6f8fb; }
.features-section { margin-top: 110px; }
.section-intro { max-width: 1260px; margin: 0 auto 54px; display: grid; grid-template-columns: 1.15fr .85fr; column-gap: 70px; align-items: end; }
.section-intro .landing-eyebrow { grid-column: 1 / -1; }
.landing-eyebrow { margin: 0 0 18px; color: #516cff; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.section-intro h2 { max-width: 760px; font-size: clamp(40px,5vw,66px); line-height: 1.02; letter-spacing: -.055em; }
.section-intro > p:last-child { margin: 0 0 3px; color: #64758b; font-size: 16px; line-height: 1.7; }
.section-intro.centered { display: block; max-width: 760px; text-align: center; }
.section-intro.centered h2 { margin-inline: auto; }
.section-intro.centered > p:last-child { max-width: 620px; margin: 21px auto 0; }
.feature-grid { max-width: 1260px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.feature-card { position: relative; min-height: 330px; overflow: hidden; padding: 31px; border: 1px solid #e0e6ee; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(19,36,62,.045); }
.feature-card-wide { grid-column: span 2; }
.feature-index { position: absolute; right: 28px; top: 27px; color: #aeb9c7; font-size: 10px; font-weight: 850; }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #dae2ec; border-radius: 12px; color: #4866ff; background: #f5f7ff; font-size: 18px; font-weight: 800; }
.feature-card h3 { margin: 50px 0 13px; font-size: 25px; letter-spacing: -.035em; }
.feature-card p { max-width: 580px; margin: 0; color: #6a7a8f; line-height: 1.65; }
.mini-flow { display: flex; align-items: center; gap: 11px; margin-top: 30px; }
.mini-flow span { padding: 9px 13px; border: 1px solid #dbe3ec; border-radius: 9px; color: #4c6077; background: #f8fafc; font-size: 10px; font-weight: 800; }
.mini-flow i { width: 22px; height: 1px; background: #cbd5e1; }
.dark-card { color: #eff5ff; border-color: #101e33; background: #091423; box-shadow: 0 22px 55px rgba(7,17,31,.16); }
.dark-card .feature-index { color: #53647d; }
.dark-card .feature-icon { border-color: #253653; color: var(--mint); background: #102039; }
.dark-card p { color: #8798b1; }
.dark-card code { position: absolute; left: 31px; right: 31px; bottom: 31px; padding: 14px; border: 1px solid #21314b; border-radius: 10px; color: #8ea4c5; background: #0d1a2d; font-size: 10px; }
.proof-card { display: grid; grid-template-columns: 1fr .9fr; gap: 35px; align-items: center; }
.proof-card h3 { margin-top: 28px; }
.proof-stack { display: grid; gap: 8px; }
.proof-stack span { display: flex; justify-content: space-between; gap: 18px; padding: 14px 15px; border: 1px solid #dfe6ee; border-radius: 10px; color: #52677e; background: #f9fbfd; font-family: ui-monospace, monospace; font-size: 10px; }
.proof-stack b { color: #0a9b77; }
.how-section { color: #edf4ff; background: #07111e; }
.how-section .section-intro h2 { color: #f4f7fd; }
.how-section .section-intro > p:last-child { color: #8292aa; }
.steps-showcase { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 24px; align-items: center; }
.steps-showcase > article { min-height: 345px; padding: 29px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.025); }
.steps-showcase > article > span { color: #52647f; font-size: 10px; font-weight: 900; }
.steps-showcase > i { color: #3c4e68; font-size: 22px; font-style: normal; }
.step-orbit { width: 74px; height: 74px; display: grid; place-items: center; margin: 35px 0 33px; border: 1px solid rgba(112,240,207,.24); border-radius: 50%; color: var(--mint); background: radial-gradient(circle, rgba(112,240,207,.1), transparent 70%); box-shadow: 0 0 35px rgba(112,240,207,.05); font-size: 20px; font-weight: 800; }
.steps-showcase h3 { margin: 0 0 13px; color: #edf4ff; font-size: 22px; }
.steps-showcase p { margin: 0; color: #8292aa; font-size: 14px; line-height: 1.65; }
.mobile-section { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 100px max(32px,calc((100vw - 1260px)/2)); color: #12243a; background: #eef3fa; }
.mobile-copy h2 { margin: 0; font-size: clamp(46px,5vw,70px); line-height: 1; letter-spacing: -.06em; }
.mobile-copy > p:not(.landing-eyebrow):not(.store-note) { max-width: 580px; margin: 25px 0 0; color: #687a90; font-size: 16px; line-height: 1.7; }
.store-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 31px; }
.store-badge { height: 61px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 13px; border: 1px solid #1d2c40; border-radius: 12px; color: #f3f6fb; background: #0a1422; text-align: left; }
.store-badge:hover { background: #111f31; transform: translateY(-1px); }
.store-badge i { width: 24px; color: #fff; font-size: 18px; font-style: normal; text-align: center; }
.store-badge span, .store-badge small { display: block; white-space: nowrap; }
.store-badge span { font-size: 12px; line-height: 1.2; }
.store-badge small { margin-bottom: 2px; color: #8493a7; font-size: 7px; letter-spacing: .1em; }
.store-note { min-height: 18px; margin: 12px 0 0; color: #7b8da3; font-size: 11px; }
.phone-stage { position: relative; min-height: 540px; display: grid; place-items: center; }
.phone-aura { position: absolute; width: 470px; height: 470px; border-radius: 50%; background: radial-gradient(circle, rgba(85,116,255,.24), rgba(95,223,195,.09) 45%, transparent 69%); }
.phone { position: relative; width: 260px; height: 530px; padding: 8px; border: 1px solid #32445c; border-radius: 39px; background: #07111e; box-shadow: 0 44px 80px rgba(25,43,71,.25); transform: rotate(5deg); }
.phone-top { position: absolute; z-index: 2; width: 88px; height: 24px; left: 50%; top: 10px; transform: translateX(-50%); border-radius: 15px; background: #050b13; }
.phone-screen { height: 100%; padding: 34px 18px 20px; border-radius: 31px; color: #eaf2fe; background: linear-gradient(160deg,#0c1b31,#08111f 70%); }
.phone-brand { font-size: 14px; font-weight: 850; }
.phone-caption { display: block; margin-top: 36px; color: #647895; font-size: 7px; font-weight: 850; letter-spacing: .16em; }
.phone-screen h3 { margin: 10px 0 20px; font-size: 25px; line-height: 1.08; letter-spacing: -.045em; }
.phone-file { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
.phone-file i { width: 34px; height: 40px; display: grid; place-items: center; border-radius: 7px; color: #aabaff; background: #192c52; font-size: 7px; font-style: normal; font-weight: 900; }
.phone-file strong, .phone-file small { display: block; }
.phone-file strong { font-size: 9px; }
.phone-file small { margin-top: 3px; color: #6d809c; font-size: 7px; }
.phone-party { margin: 18px 0; padding: 12px 0; border-block: 1px solid rgba(255,255,255,.08); }
.phone-party span, .phone-party strong { display: block; }
.phone-party span { color: #6d809c; font-size: 7px; }
.phone-party strong { margin-top: 5px; font-size: 10px; }
.phone-screen button { height: 44px; color: #07141f; border-radius: 10px; background: var(--mint); font-size: 9px; }
.phone-safe { margin-top: 14px; color: #687c99; font-size: 7px; text-align: center; }
.pricing-section { background: #fff; }
.pricing-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; align-items: stretch; }
.price-card { position: relative; min-height: 530px; display: flex; flex-direction: column; padding: 30px; border: 1px solid #dfe6ee; border-radius: 21px; background: #fff; }
.price-name { color: #607086; font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.price-card h3 { margin: 26px 0 10px; color: #11243a; font-size: 35px; letter-spacing: -.05em; }
.price-card h3 small { color: #8290a3; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.price-card div > p { margin: 0; color: #75859a; font-size: 13px; }
.price-card ul { list-style: none; display: grid; gap: 15px; margin: 38px 0; padding: 0; }
.price-card li { position: relative; padding-left: 23px; color: #51647b; font-size: 13px; line-height: 1.45; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #0b9d79; font-weight: 900; }
.price-card > a { min-height: 48px; display: flex; align-items: center; justify-content: center; margin-top: auto; border: 1px solid #d4dce7; border-radius: 11px; color: #172a41; font-size: 13px; font-weight: 800; text-decoration: none; }
.price-card.featured { color: #eaf2ff; border-color: #132743; background: #081523; box-shadow: 0 28px 70px rgba(13,31,55,.18); transform: translateY(-12px); }
.price-card.featured .price-name, .price-card.featured h3 { color: #f3f7ff; }
.price-card.featured h3 small, .price-card.featured div > p, .price-card.featured li { color: #8d9db3; }
.price-card.featured > a { color: #07131e; border-color: var(--mint); background: var(--mint); }
.popular { position: absolute; right: 22px; top: 21px; padding: 6px 8px; border-radius: 6px; color: var(--mint); background: rgba(112,240,207,.08); font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.pricing-note { margin: 29px 0 0; color: #8a98aa; font-size: 11px; text-align: center; }
.faq-section { background: #07111f; }
.faq-section .section-intro h2 { color: #f2f6fd; }
.faq-section .section-intro > p:last-child { color: #8495ad; }
.faq-list { max-width: 1180px; display: grid; gap: 9px; margin: auto; }
.faq-list details { border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.025); transition: border-color .2s ease, background .2s ease; }
.faq-list details[open] { border-color: rgba(112,240,207,.28); background: rgba(112,240,207,.035); }
.faq-list summary { min-height: 72px; display: grid; grid-template-columns: 44px 1fr 32px; gap: 16px; align-items: center; padding: 12px 20px; color: #dfe8f5; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: #657894; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.faq-list summary strong { font-size: 16px; }
.faq-list summary i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #70f0cf; font-size: 18px; font-style: normal; transition: transform .2s ease; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details > p { max-width: 880px; margin: -2px 52px 0 80px; padding: 0 0 24px; color: #8799b1; font-size: 14px; line-height: 1.7; }
.faq-list details > p a { color: #70f0cf; text-underline-offset: 3px; }
.landing-cta { max-width: 1260px; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin: 90px auto; padding: 65px; border: 1px solid rgba(255,255,255,.11); border-radius: 28px; background: radial-gradient(circle at 80% 0,rgba(88,118,255,.18),transparent 36%), #091522; }
.landing-cta h2 { color: #f3f7ff; font-size: clamp(42px,5vw,66px); line-height: 1; letter-spacing: -.055em; }
.landing-cta p:not(.landing-eyebrow) { margin: 20px 0 0; color: #8292a9; }
.landing-primary.light { color: #07141f; background: #f3f7ff; box-shadow: none; }
.landing-cta > div:last-child { display: grid; gap: 14px; min-width: 230px; }
.cta-login { color: #91a2bb; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.landing-footer { max-width: 1260px; display: grid; grid-template-columns: 1fr auto; gap: 45px; margin: 0 auto; padding: 55px 0 42px; border-top: 1px solid rgba(255,255,255,.09); color: #74869f; }
.footer-brand { color: #f1f6fd; font-size: 20px; font-weight: 850; text-decoration: none; }
.landing-footer p { margin: 9px 0 0; }
.footer-links { max-width: 760px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 27px; }
.footer-links a { color: #8797ad; font-size: 12px; text-decoration: none; }
.footer-note { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.06); font-size: 10px; }

/* Registration placeholder until account backend is introduced */
main.registration-main { max-width: 1160px; min-height: calc(100vh - 190px); display: grid; grid-template-columns: 1.08fr .92fr; padding-top: 85px; }
.registration-card { padding: 35px 45px 65px 0; }
.registration-back { display: inline-block; margin-bottom: 65px; color: #7e90aa; font-size: 12px; font-weight: 700; text-decoration: none; }
.registration-card h1 { color: #f3f7ff; font-size: clamp(47px,5vw,70px); line-height: 1; }
.registration-card > p:not(.landing-eyebrow) { max-width: 620px; margin: 26px 0 0; color: #90a0b7; font-size: 16px; line-height: 1.7; }
.registration-options { display: flex; gap: 11px; margin-top: 34px; }
.registration-note { max-width: 620px; display: flex; gap: 12px; margin-top: 38px; padding: 17px; border: 1px solid rgba(112,240,207,.13); border-radius: 13px; color: #7f91aa; background: rgba(112,240,207,.03); font-size: 11px; line-height: 1.55; }
.registration-note > span { color: var(--mint); font-weight: 900; }
.registration-note p { margin: 0; }
.registration-note strong { color: #b6c4d7; }
.registration-aside { align-self: center; display: grid; gap: 0; padding: 48px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: linear-gradient(155deg,rgba(80,111,255,.13),rgba(255,255,255,.02)); }
.registration-aside > span { color: var(--mint); font-size: 12px; font-weight: 850; }
.registration-aside blockquote { margin: 48px 0 55px; color: #e6eefb; font-size: 25px; font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.registration-aside > div { display: flex; gap: 15px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); color: #9aaac0; font-size: 12px; }
.registration-aside i { color: #566b88; font-style: normal; }

@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; padding-top: 65px; text-align: center; }
  .landing-hero-copy { max-width: 820px; margin: auto; }
  .hero-kicker, .hero-actions, .hero-trust { justify-content: center; }
  .product-stage { width: min(720px,100%); margin: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-wide { grid-column: span 2; }
  .mobile-section { gap: 30px; }
  .store-grid { grid-template-columns: 1fr; max-width: 280px; }
  .store-badge { width: 100%; }
  .landing-footer { margin-inline: 32px; }
}

@media (max-width: 820px) {
  .landing-mode .topbar, .registration-mode .topbar { height: 76px; padding: 17px 20px; }
  .landing-links { display: none; }
  .landing-auth { gap: 12px; }
  .nav-login { display: none; }
  .nav-register { min-height: 39px; padding-inline: 14px; }
  .landing-hero { min-height: auto; padding: 70px 20px 85px; }
  .landing-hero h1 { font-size: clamp(43px,12vw,66px); }
  .landing-hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { width: 100%; }
  .product-stage { min-height: 440px; margin-top: 15px; }
  .product-window { transform: none; }
  .window-content { grid-template-columns: 1fr; }
  .document-preview { display: none; }
  .flow-preview { min-height: 300px; }
  .floating-status { right: -5px; top: 25px; }
  .floating-file { left: -5px; bottom: 18px; }
  .signal-strip { grid-template-columns: 1fr 1fr; margin-inline: 20px; }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .landing-section { padding: 90px 20px; }
  .features-section { margin-top: 70px; }
  .section-intro { display: block; margin-bottom: 38px; }
  .section-intro > p:last-child { margin-top: 21px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: 1; }
  .proof-card { grid-template-columns: 1fr; }
  .steps-showcase { grid-template-columns: 1fr; }
  .steps-showcase > i { display: none; }
  .steps-showcase > article { min-height: auto; }
  .mobile-section { grid-template-columns: 1fr; padding: 85px 20px; text-align: center; }
  .mobile-copy > p:not(.landing-eyebrow):not(.store-note), .store-grid { margin-inline: auto; }
  .phone-stage { min-height: 560px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-list summary { grid-template-columns: 32px 1fr 30px; gap: 10px; padding-inline: 14px; }
  .faq-list summary strong { font-size: 14px; line-height: 1.35; }
  .faq-list details > p { margin: 0 46px 0 56px; padding-bottom: 20px; font-size: 13px; }
  .price-card { min-height: 490px; }
  .price-card.featured { transform: none; }
  .landing-cta { align-items: stretch; flex-direction: column; margin: 60px 20px; padding: 40px 26px; }
  .landing-footer { grid-template-columns: 1fr; gap: 25px; margin-inline: 20px; }
  .footer-links { justify-content: flex-start; }
  .footer-note { grid-column: 1; }
  main.registration-main { grid-template-columns: 1fr; padding: 55px 20px 75px; }
  .registration-card { padding: 0; }
  .registration-back { margin-bottom: 45px; }
  .registration-options { align-items: stretch; flex-direction: column; }
  .registration-aside { margin-top: 50px; padding: 30px; }
}

@media (max-width: 480px) {
  .landing-mode .brand img, .registration-mode .brand img { width: 145px; }
  .landing-auth .nav-register { font-size: 12px; }
  .landing-hero h1 { font-size: 43px; }
  .hero-trust { gap: 10px 15px; }
  .floating-card { padding: 10px; }
  .floating-card strong { font-size: 9px; }
  .signal-strip div { padding: 18px; }
  .feature-card { min-height: auto; padding: 25px; }
  .feature-card h3 { margin-top: 38px; }
  .mini-flow { align-items: stretch; flex-direction: column; }
  .mini-flow i { width: 1px; height: 10px; margin-left: 20px; }
  .faq-list summary { grid-template-columns: 1fr 30px; }
  .faq-list summary span { display: none; }
  .faq-list details > p { margin-inline: 14px 42px; }
  .phone { transform: none; }
}

/* Phone authentication and referrals */
.is-hidden { display: none !important; }
.auth-card { max-width: 680px; }
.auth-card h1 { max-width: 660px; }
.phone-auth-form { display: grid; gap: 13px; max-width: 560px; margin-top: 32px; }
.phone-auth-form > label:not(.auth-consent) { color: #b7c5d9; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.phone-auth-form > input { width: 100%; height: 62px; padding: 0 19px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; outline: none; color: #f6f9ff; background: rgba(255,255,255,.055); font: 700 18px/1 var(--font, Inter, Arial, sans-serif); transition: border-color .18s, box-shadow .18s, background .18s; }
.phone-auth-form > input::placeholder { color: #65758d; }
.phone-auth-form > input:focus { border-color: rgba(112,240,207,.55); background: rgba(255,255,255,.075); box-shadow: 0 0 0 4px rgba(112,240,207,.08); }
.phone-auth-form .otp-input { height: 72px; text-align: center; font-size: 27px; letter-spacing: .38em; font-variant-numeric: tabular-nums; }
.auth-consent { display: grid; grid-template-columns: 19px 1fr; gap: 11px; align-items: start; margin: 3px 0 5px; color: #8293ab; font-size: 11px; line-height: 1.5; cursor: pointer; }
.auth-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #70f0cf; }
.auth-consent a { color: #dce8fb; font-weight: 750; text-decoration-color: rgba(220,232,251,.45); text-underline-offset: 2px; }
.auth-submit { width: 100%; border: 0; cursor: pointer; }
.auth-submit:disabled { opacity: .58; cursor: wait; }
.auth-message { min-height: 20px; margin: 0; font-size: 11px; }
.auth-message.success { color: #70f0cf; }
.auth-message.error { color: #ff8f9b; }
.auth-text-button { justify-self: center; padding: 8px; border: 0; color: #8495ae; background: transparent; font-size: 11px; text-decoration: underline; cursor: pointer; }
.auth-switch { margin-top: 24px !important; color: #7f90a9 !important; font-size: 12px !important; }
.auth-switch a { color: #dbe6f7; font-weight: 800; }
.referral-invite { max-width: 560px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; margin-top: 28px; padding: 15px 17px; border: 1px solid rgba(112,240,207,.18); border-radius: 14px; background: rgba(112,240,207,.045); }
.referral-invite span { color: #70f0cf; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.referral-invite strong { color: #f0f7ff; font-size: 15px; letter-spacing: .12em; }
.referral-invite small { grid-column: 1 / -1; color: #788ba4; font-size: 10px; }
.auth-aside blockquote { margin-bottom: 45px; font-size: 30px; }

main.account-main { max-width: 1220px; min-height: calc(100vh - 190px); padding: 82px 28px 90px; }
.account-loading { min-height: 55vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: #8495ad; }
.account-hero { display: grid; grid-template-columns: 1fr 340px; gap: 70px; align-items: end; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.09); }
.account-hero h1 { max-width: 760px; margin: 12px 0 20px; color: #f3f7ff; font-size: clamp(48px,6vw,80px); line-height: .98; letter-spacing: -.055em; }
.account-hero > div > p:last-child { max-width: 560px; color: #8799b1; font-size: 15px; line-height: 1.7; }
.account-identity { display: grid; gap: 9px; padding: 27px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(145deg,rgba(91,124,255,.13),rgba(255,255,255,.025)); }
.account-identity span { color: #7588a2; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.account-identity strong { color: #f3f7ff; font-size: 23px; }
.account-identity small { color: #71839c; font-size: 10px; }
.account-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; margin-top: 30px; }
.referral-panel, .account-roadmap { padding: 32px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.025); }
.account-panel-head { display: flex; justify-content: space-between; gap: 20px; }
.account-panel-head span, .account-status { color: #70f0cf; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.account-panel-head h2, .account-roadmap h2 { margin: 8px 0 0; color: #eef4ff; font-size: 27px; letter-spacing: -.03em; }
.account-panel-head > strong { min-width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(112,240,207,.2); border-radius: 50%; color: #70f0cf; background: rgba(112,240,207,.06); font-size: 22px; }
.referral-panel > p, .account-roadmap > p { margin: 18px 0 0; color: #8293ab; font-size: 12px; line-height: 1.65; }
.referral-link { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 24px; }
.referral-link input { min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: #bccbe0; background: #07101d; font-size: 11px; }
.referral-link button, .admin-code-list button { padding: 0 18px; border: 0; border-radius: 11px; color: #061018; background: #70f0cf; font-size: 10px; font-weight: 850; cursor: pointer; }
.referral-list { margin: 20px 0 0; padding: 0; list-style: none; }
.referral-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; border-top: 1px solid rgba(255,255,255,.07); color: #a9b8cc; font-size: 11px; }
.referral-list time { color: #687a93; }
.referral-list .account-empty { color: #687a93; line-height: 1.5; }
.account-roadmap { background: linear-gradient(150deg,rgba(91,124,255,.12),rgba(255,255,255,.02)); }
.account-roadmap ol { margin: 24px 0 0; padding: 0; list-style: none; }
.account-workspace-link { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 14px 16px; border-radius: 11px; color: #07121d; background: #70f0cf; font-size: 11px; font-weight: 850; text-decoration: none; }
.account-roadmap li { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.07); color: #a8b6ca; font-size: 11px; }
.account-roadmap i { color: #61728a; font-style: normal; }
.account-actions { display: flex; justify-content: space-between; margin-top: 24px; }
.account-actions a, .account-actions button { padding: 11px 0; border: 0; color: #7e90a9; background: transparent; font-size: 11px; text-decoration: none; cursor: pointer; }

main.admin-main { max-width: 1000px; }
.admin-auth { padding: 54px 0 90px; }
.admin-auth h1 { margin: 7px 0 0; color: #10233f; font-size: 42px; }
.admin-block { margin-top: 42px; }
.admin-block h2 { margin: 0 0 8px; color: #132a47; font-size: 24px; }
.admin-code-list { display: grid; gap: 10px; margin-top: 28px; }
.admin-code-list article { display: grid; grid-template-columns: 1fr auto auto; gap: 22px; align-items: center; padding: 18px 20px; border: 1px solid #dce6f1; border-radius: 14px; background: #fff; }
.admin-code-list article div { display: grid; gap: 4px; }
.admin-code-list span { color: #122844; font-size: 14px; font-weight: 800; }
.admin-code-list small { color: #7e8fa5; font-size: 10px; }
.admin-code-list code { color: #3955c6; font-size: 21px; font-weight: 900; letter-spacing: .14em; }
.admin-code-list button { min-height: 38px; color: #fff; background: #2744c7; }
.admin-assignment-list { display: grid; gap: 10px; margin-top: 24px; }
.admin-assignment-list article { display: grid; grid-template-columns: minmax(220px,1fr) minmax(230px,.8fr) auto; gap: 12px; align-items: center; padding: 17px 19px; border: 1px solid #dce6f1; border-radius: 14px; background: #fff; }
.admin-assignment-list article > div { display: grid; gap: 4px; }
.admin-assignment-list strong { color: #122844; font-size: 13px; }
.admin-assignment-list small { color: #7e8fa5; font-size: 10px; }
.admin-assignment-list select { min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #d4dfeb; border-radius: 9px; color: #263d59; background: #f8fbfe; font-size: 11px; }
.admin-assignment-list button { min-height: 40px; padding: 0 15px; border: 0; border-radius: 9px; color: #fff; background: #2744c7; font-size: 10px; font-weight: 850; cursor: pointer; }
.admin-assignment-list button:disabled { opacity: .65; }

.workspace-topbar { max-width: 1180px; }
.workspace-nav { display: flex; gap: 8px; margin-left: auto; margin-right: 24px; }
.workspace-nav a { padding: 9px 12px; border-radius: 9px; color: #5f7188; font-size: 11px; font-weight: 750; text-decoration: none; }
.workspace-nav a:hover { color: #17304f; background: #edf3f9; }

/* Mobile workspace navigation */
.mobile-dock { display: none; }
.mobile-upload-title { display: none; }

body.account-mode { color: #ecf3ff; background: #050b16; }
.account-mode .workspace-topbar { border-bottom: 1px solid rgba(255,255,255,.08); }
.account-mode .brand img { filter: brightness(0) invert(1); }
.account-mode .workspace-nav a { color: #91a1b8; }
.account-mode .workspace-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.account-mode .pilot { color: #70f0cf; border-color: rgba(112,240,207,.25); background: rgba(112,240,207,.07); }
.account-mode .account { color: #8293ab; }
.account-mode footer { color: #71839b; }

/* Legal pages */
body.legal-mode { background: #f4f7fb; }
.legal-topbar { max-width: 1100px; border-bottom: 1px solid #dce5ee; }
.legal-home-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 750; text-decoration: none; }
main.legal-main { max-width: 1100px; padding-top: 34px; }
.legal-tabs { position: sticky; z-index: 5; top: 0; display: flex; gap: 8px; margin-bottom: 26px; padding: 10px; border: 1px solid #dce5ee; border-radius: 14px; background: rgba(244,247,251,.94); backdrop-filter: blur(16px); }
.legal-tabs a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 9px; color: #62758d; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.legal-tabs a.active { color: #fff; background: #153b72; }
.legal-document { overflow: hidden; border: 1px solid #dce5ee; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(16,42,67,.08); }
.legal-document > header { padding: 54px 60px 42px; color: #f3f7ff; background: linear-gradient(135deg,#071426,#102b50); }
.legal-document > header .eyebrow { color: #70f0cf; }
.legal-document > header h1 { max-width: 830px; font-size: clamp(40px,5.3vw,68px); }
.legal-document > header > p:not(.eyebrow) { max-width: 720px; margin: 24px 0 0; color: #a9b8cc; font-size: 17px; line-height: 1.65; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.legal-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #93a8c2; font-size: 11px; }
.legal-draft-banner { margin: 34px 60px 0; padding: 18px 20px; border: 1px solid #f0d18b; border-radius: 13px; color: #71520d; background: #fff9e9; }
.legal-draft-banner strong { font-size: 13px; }
.legal-draft-banner p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; }
.legal-sections { padding: 18px 60px 44px; }
.legal-sections section { padding: 30px 0; border-bottom: 1px solid #e8eef4; }
.legal-sections h2, .legal-sources h2 { margin-bottom: 14px; color: #173452; font-size: 23px; }
.legal-sections p, .legal-sections li, .legal-sources p { color: #526b84; font-size: 15px; line-height: 1.75; }
.legal-sections p { margin: 10px 0 0; }
.legal-sections ul { margin: 12px 0 0; padding-left: 21px; }
.legal-sections li + li { margin-top: 5px; }
.legal-sections a, .legal-sources a { color: #225cd1; }
.legal-sections code { padding: 2px 5px; border-radius: 5px; background: #edf3f8; font-size: 12px; }
.legal-sources { padding: 32px 60px 44px; background: #f5f8fb; }
.legal-sources > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legal-sources a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid #d8e2ec; border-radius: 9px; background: #fff; font-size: 12px; font-weight: 750; text-decoration: none; }
.legal-footer { max-width: 1100px; display: grid; grid-template-columns: auto 1fr auto; gap: 25px; align-items: center; border-top: 1px solid #dce5ee; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
.legal-footer a { color: #5f7289; text-decoration: none; }
.legal-footer span { font-size: 11px; }

@media (max-width: 800px) {
  main.account-main { padding: 55px 20px 70px; }
  .account-hero, .account-grid { grid-template-columns: 1fr; }
  .account-hero { gap: 32px; }
  .account-identity { max-width: 420px; }
  .admin-code-list article { grid-template-columns: 1fr auto; }
  .admin-code-list button { grid-column: 1 / -1; }
  .admin-assignment-list article { grid-template-columns: 1fr; }
  .workspace-nav { display: none; }
  .mobile-dock { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 67px; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; padding: 7px 8px; border: 1px solid rgba(25,55,91,.13); border-radius: 21px; background: rgba(255,255,255,.94); box-shadow: 0 18px 50px rgba(16,42,67,.22); backdrop-filter: blur(18px); }
  .mobile-dock a { min-height: 51px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; color: #75869a; font-size: 10px; font-weight: 750; text-decoration: none; }
  .mobile-dock a > span { font-size: 18px; line-height: 1; }
  .mobile-dock a.active { color: #1d55ca; background: #edf3ff; }
  .mobile-dock .mobile-dock-upload { color: #fff; background: #205bd5; box-shadow: 0 9px 22px rgba(32,91,213,.24); }
  .mobile-dock .mobile-dock-upload > span { font-size: 24px; }
  .account-mode .mobile-dock { border-color: rgba(255,255,255,.1); background: rgba(10,22,39,.94); }
  .account-mode .mobile-dock a { color: #73859e; }
  .account-mode .mobile-dock a.active { color: #70f0cf; background: rgba(112,240,207,.08); }
  .account-mode .mobile-dock .mobile-dock-upload { color: #06121d; background: #70f0cf; }
  main.home-main, main.detail-main, main.account-main { padding-bottom: calc(115px + env(safe-area-inset-bottom)); }
  .legal-footer { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .auth-card h1 { font-size: 43px; }
  .phone-auth-form .otp-input { padding-left: 25px; font-size: 22px; }
  .referral-link { grid-template-columns: 1fr; }
  .referral-link button { min-height: 44px; }
  .account-hero h1 { font-size: 46px; }
  .referral-panel, .account-roadmap { padding: 24px; }
  .account-panel-head h2, .account-roadmap h2 { font-size: 23px; }
}

@media (max-width: 720px) {
  .workspace-topbar { height: 72px; padding: 13px 18px; }
  .workspace-topbar .brand img { width: 148px; }
  .workspace-topbar .pilot { padding: 6px 9px; font-size: 10px; }
  .home-main { padding-top: 20px; }
  .home-main .hero { min-height: 0; gap: 28px; }
  .home-main .hero h1 { font-size: clamp(40px,12vw,58px); }
  .home-main .lead { margin-top: 20px; font-size: 15px; line-height: 1.55; }
  .process-note { margin-top: 22px; font-size: 13px; }
  .upload-card { scroll-margin-top: 18px; padding: 19px; border-radius: 19px; }
  .mobile-upload-title { display: block; margin-bottom: 15px; color: #173452; font-size: 19px; font-weight: 850; }
  .drop-zone { min-height: 135px; margin: 14px 0; }
  .drop-zone strong { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .documents-section { margin-top: 52px; padding-top: 30px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 27px; }
  .document { gap: 15px; padding: 17px; border-radius: 16px; }
  .document h3 { font-size: 17px; }
  .meta { gap: 8px 12px; font-size: 12px; }
  .document-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
  .document-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; }
  .document-actions .button-link { min-height: 44px; }
  main.detail-main { padding-top: 18px; }
  .breadcrumbs { margin-bottom: 18px; }
  .detail-head { gap: 18px; margin-bottom: 20px; }
  .detail-head h1 { overflow-wrap: anywhere; font-size: 35px; }
  .detail-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .detail-actions a { width: 100%; min-height: 46px; }
  .steps { margin-bottom: 18px; }
  .steps li div { padding-right: 5px; }
  .steps strong { font-size: 12px; }
  .workspace-grid { display: flex; flex-direction: column; }
  .setup-column { width: 100%; order: 1; }
  .preview-panel { width: 100%; order: 2; margin: 0; }
  .panel-heading { align-items: center; }
  .panel-heading h2, .review-card h2 { font-size: 22px; }
  .participants-card .panel-heading { align-items: flex-start; }
  .participants-card .panel-heading > button { min-height: 44px; }
  .participant { grid-template-columns: 30px minmax(0,1fr) 38px; gap: 9px; }
  .participant-tools button { width: 38px; height: 38px; }
  .required-check { min-height: 36px; }
  .choice { min-height: 64px; align-items: flex-start; }
  .audit-card li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pdf-frame { min-height: 360px; height: 52vh; }
  .hash-row { align-items: flex-start; flex-direction: column; }
  .hash-row code { max-width: 100%; }
  .account-hero { padding-bottom: 34px; }
  .account-hero h1 { font-size: 43px; }
  .account-grid { margin-top: 20px; }
  .account-identity { width: 100%; padding: 22px; }
  .account-identity strong { font-size: 20px; }
  .account-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .account-actions a, .account-actions button { min-height: 44px; }
  .legal-topbar { height: 72px; padding: 13px 18px; }
  .legal-topbar .brand img { width: 150px; }
  main.legal-main { padding: 20px 14px 58px; }
  .legal-tabs { overflow-x: auto; margin-inline: -2px; scrollbar-width: none; }
  .legal-tabs::-webkit-scrollbar { display: none; }
  .legal-document { border-radius: 19px; }
  .legal-document > header { padding: 38px 24px 32px; }
  .legal-document > header h1 { font-size: 39px; overflow-wrap: anywhere; }
  .legal-document > header > p:not(.eyebrow) { font-size: 15px; }
  .legal-draft-banner { margin: 22px 18px 0; }
  .legal-sections { padding: 8px 24px 28px; }
  .legal-sections section { padding: 25px 0; }
  .legal-sections h2, .legal-sources h2 { font-size: 21px; }
  .legal-sections p, .legal-sections li, .legal-sources p { font-size: 14px; line-height: 1.68; }
  .legal-sources { padding: 28px 24px 32px; }
  .legal-sources > div { display: grid; }
  .legal-sources a { min-height: 46px; }
  .legal-footer { padding-inline: 20px; }
}

@media (max-width: 420px) {
  .workspace-topbar .pilot { display: none; }
  .mobile-dock { left: 8px; right: 8px; }
  .process-note { display: none; }
  .home-main .hero { gap: 23px; }
  .section-heading .secondary { padding-inline: 12px; }
  .participant { grid-template-columns: 1fr 38px; }
  .participant-number { grid-column: 1 / -1; }
  .legal-home-link { padding-inline: 11px; font-size: 12px; }
}
