:root {
  --canvas: oklch(97.2% 0.007 248);
  --surface: oklch(99.4% 0.004 248);
  --surface-muted: oklch(95.8% 0.008 248);
  --ink: oklch(24% 0.018 252);
  --ink-soft: oklch(43% 0.018 252);
  --muted: oklch(58% 0.014 252);
  --line: oklch(88.8% 0.012 248);
  --line-strong: oklch(79% 0.019 248);
  --accent: oklch(48% 0.072 250);
  --accent-strong: oklch(39% 0.075 250);
  --accent-soft: oklch(92.5% 0.027 247);
  --success: oklch(50% 0.095 158);
  --success-soft: oklch(94% 0.035 158);
  --danger: oklch(50% 0.13 25);
  --danger-soft: oklch(95% 0.034 25);
  --shadow: 0 20px 58px oklch(35% 0.035 250 / 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.52 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -70px; left: 12px; z-index: 50; padding: 10px 14px; border-radius: 9px; background: var(--ink); color: var(--surface); }
.skip-link:focus { top: 12px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(22px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-actions { display: flex; gap: 14px; align-items: center; }
.brand { display: flex; width: 126px; }
.brand img { width: 100%; height: auto; }
.text-button, .account-summary button, .forgot-button, .back-button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--accent-strong); font-size: 12px; font-weight: 700; cursor: pointer; text-underline-offset: 3px; }
.text-button:hover, .account-summary button:hover, .forgot-button:hover, .back-button:hover { text-decoration: underline; }
.account-summary { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 12px; }
.setup-shell { width: min(1120px, calc(100% - 36px)); min-height: 650px; display: grid; grid-template-columns: 340px minmax(0, 1fr); margin: 44px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.setup-rail { display: flex; flex-direction: column; padding: 48px 38px 34px; border-right: 1px solid var(--line); background: var(--surface-muted); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 13px; font-size: 28px; line-height: 1.16; letter-spacing: -.035em; }
h2 { margin-bottom: 10px; font-size: 30px; line-height: 1.16; letter-spacing: -.035em; }
h2[tabindex="-1"]:focus { outline: none; }
.setup-rail > div > p:last-child, .step-heading > p:last-child { max-width: 62ch; margin-bottom: 0; color: var(--muted); }
.progress-list { display: grid; gap: 3px; margin: 42px 0; padding: 0; list-style: none; }
.progress-list li { min-height: 58px; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; padding: 7px 9px; border-radius: 11px; color: var(--muted); }
.progress-list li > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 11px; font-weight: 750; }
.progress-list strong, .progress-list small { display: block; }
.progress-list strong { color: var(--ink-soft); font-size: 13px; }
.progress-list small { margin-top: 1px; font-size: 10px; }
.progress-list li.current { background: var(--accent-soft); color: var(--accent); }
.progress-list li.current > span { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.progress-list li.current strong { color: var(--accent-strong); }
.progress-list li.complete > span { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.rail-note { margin: auto 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.setup-content { min-width: 0; padding: 53px clamp(36px, 6vw, 72px) 46px; }
.step { width: min(480px, 100%); }
.wide-step { width: 100%; }
.step-heading { margin-bottom: 30px; }
.status-message { max-width: 620px; margin-bottom: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); color: var(--ink-soft); font-size: 12px; }
.status-message.error { border-color: oklch(82% 0.055 25); background: var(--danger-soft); color: var(--danger); }
.auth-methods-loading { min-height: 48px; margin: 0; color: var(--muted); font-size: 12px; }
.auth-unavailable { display: grid; gap: 4px; padding: 14px; border: 1px solid oklch(82% 0.055 25); border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.auth-unavailable a { color: inherit; font-weight: 750; text-underline-offset: 2px; }
.auth-demo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.auth-unavailable .auth-demo-actions a { min-height: 44px; border-color: var(--line-strong); background: var(--surface); color: var(--accent-strong); text-align: center; }
.google-wrap { min-height: 48px; }
#google-button { min-height: 44px; max-width: 100%; overflow: hidden; }
#google-unavailable { margin: 0; color: var(--muted); font-size: 12px; }
.separator { display: flex; align-items: center; gap: 12px; margin: 25px 0; color: var(--muted); font-size: 10px; }
.separator::before, .separator::after { height: 1px; flex: 1; background: var(--line); content: ""; }
form { display: grid; gap: 17px; }
label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 680; }
label small { color: var(--muted); font-size: 10px; font-weight: 500; }
input, select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; background: var(--surface); color: var(--ink); transition: border-color 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms cubic-bezier(.22,1,.36,1); }
input::placeholder { color: var(--muted); }
input:hover, select:hover { border-color: var(--accent); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 0; color: var(--danger); font-size: 10px; font-weight: 600; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform 180ms cubic-bezier(.22,1,.36,1), background 180ms cubic-bezier(.22,1,.36,1), border-color 180ms cubic-bezier(.22,1,.36,1); }
.button:hover { border-color: var(--accent); }
.button:active { transform: translateY(1px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.button.primary:hover { background: var(--accent-strong); }
.button:disabled { cursor: wait; opacity: .58; }
.forgot-button { min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
.terms-copy { margin: 18px 0 0; color: var(--muted); font-size: 10px; }
.terms-copy a { color: var(--accent-strong); font-weight: 700; text-underline-offset: 2px; }
.state-symbol { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-size: 18px; font-weight: 800; }
.verification-actions { display: grid; gap: 10px; }
.waiting-symbol span { width: 20px; height: 20px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.trial-terms { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin: -10px 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); color: var(--ink-soft); font-size: 11px; }
.trial-terms p { margin: 0; }
.trial-terms strong { color: var(--ink); }
.plan-option { min-width: 0; display: flex; flex-direction: column; padding: 22px 19px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.plan-option.recommended, .plan-option.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.plan-kicker { min-height: 18px; margin-bottom: 7px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.plan-selection-note { margin: -12px 0 22px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; }
.plan-option h3 { margin: 0 0 10px; font-size: 16px; }
.plan-price { margin: 0 0 17px; font-size: 24px; font-weight: 760; letter-spacing: -.03em; }
.plan-price small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.plan-features { min-height: 118px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 11px; }
.plan-features li { position: relative; margin: 8px 0; padding-left: 16px; }
.plan-features li::before { position: absolute; left: 0; color: var(--success); content: "✓"; font-weight: 800; }
.plan-option .button { margin-top: auto; }
.back-button { margin-top: 22px; }
.support-link { display: inline-block; margin-top: 18px; color: var(--accent-strong); font-size: 11px; font-weight: 700; }

@media (max-width: 900px) {
  .setup-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .setup-rail { padding: 38px 25px 28px; }
  .setup-content { padding-inline: 34px; }
  .plan-list { grid-template-columns: 1fr; }
  .trial-terms { grid-template-columns: 1fr; gap: 8px; }
  .plan-features { min-height: 0; }
}

@media (max-width: 700px) {
  .topbar { height: 64px; padding: 0 16px; }
  .brand { width: 112px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions > .text-button { display: none; }
  .account-summary span { display: none; }
  .setup-shell { width: 100%; min-height: calc(100vh - 64px); display: block; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .setup-rail { padding: 23px 20px 17px; border: 0; border-bottom: 1px solid var(--line); }
  .setup-rail > div, .rail-note { display: none; }
  .progress-list { grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; }
  .progress-list li { min-height: 48px; display: flex; justify-content: center; padding: 4px; }
  .progress-list li > div { display: none; }
  .setup-content { padding: 36px 20px 48px; }
  h2 { font-size: 27px; }
  .auth-demo-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
