/* Insurance Agent — Base styles */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* Type utilities */
.t-display { font-size: 64px; font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.t-h1      { font-size: 40px; font-weight: 600; line-height: 1.1;  letter-spacing: -0.028em; }
.t-h2      { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.t-h3      { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.t-body    { font-size: 15px; font-weight: 400; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.t-small   { font-size: 13px; color: var(--ink-3); }
.t-label, .t-lbl {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.t-mono    { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.t-num     {
  font-size: 48px; font-weight: 600; line-height: 1;
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
}
.num-xl { font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.num-lg { font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.num-md { font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.num-sm { font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -0.02em;  font-variant-numeric: tabular-nums; }

.mono { font-family: var(--mono); }

/* Accessibility: skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 1001; }
.skip-link:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 8px 16px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; z-index: 1001;
}

/* Page containers */
.container { max-width: 1180px; margin: 0 auto; padding: 40px 48px; }
.container-narrow { max-width: 640px; margin: 0 auto; padding: 40px 24px; }

/* App shell: centered single-card pages (auth, upload, processing) */
.page-center {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.page-center > main { width: 100%; display: flex; justify-content: center; }
.page-center .footer-bar { margin-top: auto; }

.ai-disclaimer {
  text-align: center; font-size: 12px; color: var(--ink-3);
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--hairline);
  letter-spacing: 0.02em;
}

/* Error block */
.alert-error {
  background: var(--alert-tint); color: var(--alert-2);
  border: 1px solid var(--alert-rule);
  padding: 12px 16px; border-radius: var(--r-md);
  margin-bottom: 16px; font-size: 14px;
}
.alert-success {
  background: var(--ok-tint); color: var(--ok);
  border: 1px solid var(--ok-rule);
  padding: 12px 16px; border-radius: var(--r-md);
  margin-bottom: 16px; font-size: 14px;
}
.alert-info {
  background: var(--accent-tint); color: var(--ink-2);
  border: 1px solid var(--accent);
  padding: 12px 16px; border-radius: var(--r-md);
  margin-bottom: 16px; font-size: 14px; line-height: 1.5;
}
.alert-info code {
  font-family: var(--mono); font-size: 12px;
  background: rgba(0,0,0,0.05); padding: 1px 5px; border-radius: 4px;
}

@media (max-width: 640px) {
  .container { padding: 24px 16px 64px; }
  .container-narrow { padding: 24px 16px 48px; }
  .t-h1 { font-size: 32px; letter-spacing: -0.02em; }
  .t-h2 { font-size: 24px; }
  .num-xl { font-size: 56px; }
  .num-lg { font-size: 40px; }
  .num-md { font-size: 32px; }
}
