/* ScopePay public website. Same institutional palette as the app: navy chrome,
   white panels, cool grey, one blue for action. The hero "proof" panel is the
   single expressive element; everything else stays quiet. */
@import url('fonts/fonts.css');

:root {
  --navy: #0f2747;
  --navy-2: #163661;
  --navy-ink: #c3d1e6;
  --blue: #1b5fc1;
  --blue-hover: #164f9f;
  --ink: #17202e;
  --ink-2: #3f4b5c;
  --muted: #6b7686;
  --line: #dde2e9;
  --line-soft: #ebeef2;
  --page: #f2f4f7;
  --pos: #0b7a47;
  --pos-bg: #e7f4ec;
  --pend: #9a5b00;
  --pend-bg: #fdf3e1;
  --neg: #b42318;
  --neg-bg: #fdecea;
  --r: 6px;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-size: 16px; line-height: 1.6; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: var(--r); font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf0f8; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-outline { border-color: var(--line); color: var(--blue); background: #fff; }
.btn-outline:hover { border-color: #b9c6d8; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: #fff; position: relative; z-index: 2; }
.header-row { display: flex; align-items: center; gap: 40px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.2px; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a, .nav-link { color: var(--navy-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .nav-link:hover, .site-nav a[aria-current] { color: #fff; }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: #7fb0f5; }
.header-account { margin-left: auto; display: flex; align-items: center; gap: 22px; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: center; }
.hero h1 { font-size: 56px; font-weight: 600; letter-spacing: -1.8px; line-height: 1.04; max-width: 11ch; }
.lede { font-size: 19px; color: var(--navy-ink); margin-top: 24px; max-width: 34em; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: #93a7c4; }

.proof { margin: 0; position: relative; padding-bottom: 132px; }
.proof-panel { background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 30px 60px rgba(4, 14, 30, 0.45); overflow: hidden; }
.proof-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.proof-head strong { display: block; font-size: 17px; }
.proof-kicker { display: block; font-size: 13px; color: var(--muted); }
.proof-amount { font-size: 26px; font-weight: 300; letter-spacing: -0.5px; }
.proof-rows { list-style: none; margin: 0; padding: 4px 0; }
.proof-rows li { display: grid; grid-template-columns: 22px 1fr auto 74px; gap: 4px 12px; align-items: center; padding: 10px 22px; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.proof-rows li:last-child { border-bottom: 0; }
.proof-rows .d { font-weight: 500; }
.proof-rows .c { font-size: 13px; color: var(--blue); border: 1px solid #c8d8f0; border-radius: 4px; padding: 0 6px; }
.proof-rows .s { font-size: 13px; font-weight: 500; text-align: right; }
.proof-rows .s.met { color: var(--pos); }
.proof-rows .s.partial { color: var(--pend); }
.proof-rows .s.missing { color: var(--neg); }
.proof-rows .note { grid-column: 2 / -1; font-size: 13px; color: var(--ink-2); background: #f7f8fa; border-left: 3px solid var(--line); padding: 5px 10px; border-radius: 3px; }
.proof-rows li:nth-child(3) .note { background: #fffaf0; border-left-color: #d48a12; color: #6f4300; }
.proof-rows li:nth-child(4) .note { background: #fff6f5; border-left-color: var(--neg); color: #8e1c13; }
.v { width: 20px; height: 20px; border-radius: 50%; position: relative; }
.v.met { background: var(--pos); }
.v.met::after { content: ''; position: absolute; left: 6.5px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.v.partial { border: 2px solid #d48a12; background: linear-gradient(90deg, #fff 50%, #d48a12 50%); }
.v.missing { border: 2px solid var(--neg); }
.v.missing::before, .v.missing::after { content: ''; position: absolute; left: 7px; top: 3px; width: 2px; height: 10px; background: var(--neg); transform: rotate(45deg); }
.v.missing::after { transform: rotate(-45deg); }
.proof-receipt { position: absolute; right: -24px; bottom: 0; width: 260px; background: #fff; color: var(--ink); border-radius: 8px; padding: 14px 16px 16px; box-shadow: 0 18px 40px rgba(4, 14, 30, 0.4); border-top: 4px solid var(--pos); font-size: 13px; animation: settle 0.7s 0.5s ease-out both; }
.receipt-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.receipt-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--ink-2); }
.receipt-row span:last-child { color: var(--ink); font-weight: 500; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 500; }
.paid-badge { font-size: 12px; font-weight: 600; color: var(--pos); background: var(--pos-bg); border-radius: 999px; padding: 2px 10px; }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--page); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-title { font-size: 34px; font-weight: 600; letter-spacing: -0.8px; max-width: 22ch; }
.section-link { margin-top: 36px; font-weight: 500; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 40em; }
.wide-shot { margin-top: 36px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.quote { border-top: 2px solid var(--ink); padding-top: 20px; }
.quote .said { font-size: 22px; font-weight: 500; letter-spacing: -0.3px; margin-bottom: 10px; color: var(--ink); }
.quote p { color: var(--ink-2); }
.bridge { margin-top: 48px; font-size: 20px; max-width: 36em; color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.steps li { padding: 28px 24px 30px; border-left: 1px solid var(--line-soft); }
.steps li:first-child { border-left: 0; }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy p { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; font-size: 17px; color: var(--ink-2); }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 6px; height: 11px; border: solid var(--pos); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 39, 71, 0.05); }
.mock-row { padding: 18px 22px; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-2); display: grid; gap: 8px; }
.mock-label { font-size: 13px; color: var(--muted); }
.mock-quote { color: var(--ink); font-weight: 500; font-size: 17px; }
.tag { justify-self: start; font-size: 13px; font-weight: 500; border-radius: 999px; padding: 1px 10px; }
.tag-red { background: var(--neg-bg); color: var(--neg); }
.mock-order { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 0; background: #fafbfd; border-radius: 0 0 8px 8px; }
.mock-order strong { display: block; color: var(--ink); }
.mock-meta { display: block; font-size: 13px; color: var(--muted); }
.mock-total { font-size: 24px; font-weight: 300; color: var(--ink); }
.mock-portal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mock-portal-head strong { display: block; font-size: 17px; }
.mock-portal-body { padding: 18px 22px; }
.mini-shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-shots span { aspect-ratio: 4 / 3; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(180deg, #e9edf3 0 22%, #f7f8fa 22% 100%); position: relative; }
.mini-shots span::after { content: ''; position: absolute; left: 12%; right: 30%; top: 40%; height: 6px; background: #d5dce6; border-radius: 3px; box-shadow: 0 12px 0 #e2e7ee; }
.mock-portal-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fafbfd; border-radius: 0 0 8px 8px; }
.mock-input { flex: 1; border: 1px solid #c9d1dc; border-radius: 4px; padding: 8px 10px; font-size: 15px; background: #fff; }
.mock-button { background: var(--blue); color: #fff; border-radius: var(--r); padding: 8px 16px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.pillars h3 { font-size: 19px; margin-bottom: 10px; }
.pillars p { color: var(--ink-2); }
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; }
.cta-band-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.6px; }
.cta-band p { color: var(--navy-ink); margin-top: 10px; max-width: 34em; }
.cta-band .cta-row { margin-top: 0; }

/* ---------- inner pages ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 60px; }
.page-hero h1 { font-size: 44px; font-weight: 600; letter-spacing: -1.2px; max-width: 18ch; }
.page-hero .lede { margin-top: 18px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.4px; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.walk { display: grid; gap: 80px; }
.walk-step { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.walk-step:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.walk-step:nth-child(even) .walk-copy { order: 2; }
.walk-copy h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; margin-top: 4px; }
.walk-copy p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.walk-copy ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 44px rgba(15, 39, 71, 0.12); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }
.shot.narrow { max-width: 440px; justify-self: center; width: 100%; }
.shot figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line-soft); }

.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.plan-main { padding: 36px; border-right: 1px solid var(--line); }
.plan-price { font-size: 56px; font-weight: 300; letter-spacing: -1.6px; margin: 12px 0 4px; line-height: 1; }
.plan-price small { font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.plan-main p { color: var(--ink-2); }
.plan-main .cta-row { margin-top: 28px; }
.plan-list { padding: 36px; background: #fafbfd; }
.plan-list h3 { font-size: 16px; margin-bottom: 14px; }
.faq { margin-top: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 46em; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.facts-grid > div { padding: 28px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.facts-grid > div:nth-child(2n) { border-right: 0; }
.facts-grid h3 { font-size: 18px; margin-bottom: 8px; }
.facts-grid p, .facts-grid li { color: var(--ink-2); font-size: 15px; }
.facts-grid ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- auth pages ---------- */
.auth { background: var(--page); padding: 56px 0 88px; min-height: calc(100vh - 68px - 220px); }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 36px; }
.auth-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; }
.auth-card .sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.auth-form { display: grid; gap: 16px; margin-top: 28px; }
.auth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.auth-form input { font: inherit; font-size: 16px; border: 1px solid #c9d1dc; border-radius: 4px; padding: 10px 12px; min-height: 44px; }
.auth-form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27, 95, 193, 0.15); }
.auth-form .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.auth-form .btn { width: 100%; min-height: 46px; margin-top: 4px; }
.form-error { background: #fff6f5; border: 1px solid #f3cfcb; border-left: 3px solid var(--neg); color: #8e1c13; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.form-error[hidden] { display: none; }
.auth-alt { margin-top: 22px; font-size: 15px; color: var(--ink-2); text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-demo { width: 100%; margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { background: #0b1d36; color: var(--navy-ink); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-blurb { margin-top: 14px; max-width: 26em; color: #93a7c4; font-size: 14px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer h2 { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.site-footer nav a { color: var(--navy-ink); text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #7f93b1; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .walk-step, .walk-step:nth-child(even), .plan { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .proof { max-width: 560px; }
  .proof-receipt { right: 8px; }
  .split-reverse .split-copy, .walk-step:nth-child(even) .walk-copy { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .plan-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-nav { display: none; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-row { gap: 12px; height: 60px; }
  .header-account { gap: 12px; }
  .header-account .nav-link { font-size: 14px; }
  .header-account .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.2px; }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .proof { padding-bottom: 0; }
  .proof-receipt { position: static; width: auto; margin-top: 12px; }
  .proof-rows li { grid-template-columns: 22px 1fr auto; padding: 10px 14px; }
  .proof-rows .c { display: none; }
  .proof-head { padding: 14px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 27px; }
  .quotes, .pillars, .footer-grid, .facts-grid { grid-template-columns: 1fr; gap: 28px; }
  .facts-grid { gap: 0; }
  .facts-grid > div { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line-soft); }
  .steps li:first-child { border-top: 0; }
  .split { gap: 32px; }
  .page-hero h1 { font-size: 34px; }
  .plan-main, .plan-list { padding: 24px; }
  .auth-card { padding: 24px; margin: 0 16px; }
}
