:root {
  color-scheme: light;
  --paper: #f7faff;
  --ink: #102144;
  --muted: #5d6b82;
  --line: #dce5f1;
  --accent: #245bff;
  --accent-hover: #174be6;
  --ice: #edf3ff;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
.header, footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header { padding: 22px max(30px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.6px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 11px; font-weight: 650; color: var(--accent); letter-spacing: .1px; }
nav { display: flex; gap: 24px; font-size: 13px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; }
main { max-width: 1000px; margin: 0 auto; padding: 58px 30px 72px; min-height: 72vh; }
h1, h2, h3 { color: var(--ink); font-family: inherit; }
h1 { font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -1.5px; margin: 0 0 18px; }
h2 { font-size: 20px; font-weight: 650; letter-spacing: -.5px; line-height: 1.35; margin: 0 0 13px; }
h3 { font-size: 16px; font-weight: 650; line-height: 1.4; margin: 0 0 9px; }
p { margin: 0 0 16px; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.lead { max-width: 640px; font-size: 16px; line-height: 1.7; }
.panel { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 20px #10214405; }
.panel p { overflow-wrap: anywhere; }
.onboarding { max-width: 620px; margin: 0 auto; }
.onboarding-form { margin-top: 28px; }
.onboarding-form > .field:first-child { margin-top: 0; }
.field { display: block; margin-top: 20px; font-size: 13px; font-weight: 600; }
.field input, .field select { display: block; width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid #c8d4e5; border-radius: 10px; padding: 12px 14px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover { border-color: #9caecb; }
.field input::placeholder { color: #6b7890; }
.field small { display: block; margin-top: 7px; font-size: 12px; line-height: 1.65; color: var(--muted); font-weight: 400; }
.optional { font-weight: 400; color: var(--muted); }
.accept { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.8; color: var(--muted); margin: 24px 0; }
.accept input { width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0; accent-color: var(--accent); }
.btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; border-radius: var(--radius); padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1.5; font-weight: 600; gap: 9px; min-height: 46px; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 4px 12px #245bff18; }
.btn.secondary { background: #fff; color: var(--accent); border-color: #c8d6ef; }
.btn.secondary:not(:disabled):hover { background: var(--ice); border-color: #a7bef0; box-shadow: none; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 17px 0 0; }
.message { border: 1px solid #cfddfa; background: var(--ice); border-radius: var(--radius); padding: 15px 18px; margin: 0 0 24px; font-size: 13px; color: #25477a; }
.message.error { border-color: #f0c8c3; background: #fff4f2; color: #a42c22; }
.grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 22px; margin-top: 32px; }
.grid > * { min-width: 0; }
.label { font-size: 12px; font-weight: 500; color: var(--muted); display: block; margin-bottom: 8px; }
.value { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.6px; }
.detail { padding: 18px 0; border-top: 1px solid var(--line); margin-top: 18px; }
.detail p { font-size: 13px; margin-bottom: 6px; }
.status { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 9px; background: #eaf1ff; border-radius: 6px; color: #1c4bc9; }
.usage { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.usage strong { font-size: 40px; font-weight: 650; letter-spacing: -1px; line-height: 1.25; }
.usage span { color: var(--muted); font-size: 13px; }
.meter { height: 6px; background: #e7edf7; border-radius: 6px; margin: 18px 0 10px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.plan { padding: 25px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.plan .price { font-size: 28px; font-weight: 650; letter-spacing: -1px; margin: 10px 0; }
.plan .price span { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.plan p { font-size: 13px; }
.plan .btn { margin-top: auto; }
.plan.selected { border-color: #7ca1ff; background: #f6f9ff; }
.section { margin-top: 38px; }
.section h2 { font-size: 21px; }
.loading { padding: 30px 0; }
.error-text { font-size: 13px; color: #a42c22; margin-top: 18px; }
.policy { max-width: 860px; background: #fff; }
.policy section { margin-top: 32px; }
.policy p { font-size: 14px; line-height: 1.9; }
.policy h1 { font-size: clamp(32px,4vw,40px); }
.policy h2 { font-size: 18px; }
.policy .eyebrow { font-size: 12px; line-height: 1.6; }
body.policy-page { background: #fff; }
.account-actions { justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.account-actions > div { min-width: 0; max-width: 100%; }
.account-actions h1 { margin-bottom: 12px; }
.account-actions h1, .account-actions p, .account-email { overflow-wrap: anywhere; }
.setup-options { margin-top: 18px; }
.setup-link { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.setup-link h3 { color: var(--accent); }
.setup-link:hover { border-color: #92b1ff; box-shadow: 0 5px 20px #245bff0a; }
.setup-link p { margin-bottom: 0; }
.form-action { margin-top: 16px; }
.account-footer { justify-content: space-between; }
footer { max-width: 1120px; margin: auto; padding: 24px 30px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.skip { position: fixed; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #fff; transform: translateY(-200%); z-index: 10; }
.skip:focus { transform: none; }
[hidden] { display: none !important; }
.form-busy { opacity: .65; pointer-events: none; }
@media(max-width:680px) {
  .header, footer { padding: 20px; align-items: flex-start; gap: 16px; }
  .header nav { gap: 12px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  main { padding: 36px 20px 52px; }
  h1 { font-size: 32px; letter-spacing: -1px; }
  .lead { font-size: 15px; }
  .panel { padding: 24px 21px; }
  .field input, .field select { font-size: 16px; }
  .grid, .plans { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .plan { padding: 24px; }
  .plan .btn { align-self: flex-start; }
  .account-actions { gap: 20px; }
  .section { margin-top: 30px; }
  footer { flex-direction: column; }
  .value { overflow-wrap: anywhere; }
  .onboarding .btn { max-width: 100%; white-space: normal; }
  .setup-options { gap: 12px; }
  .account-footer { align-items: flex-start; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; } }
