/* Sell My Policy: global styles
   Tokens and values come from DESIGN.md. Existing pages still use inline styles,
   which override anything here, so this file is safe to load everywhere.
   New work should use the tokens and the .smp-* classes below instead of
   adding more inline styles. */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --smp-blue: #2F6A8C;
  --smp-blue-deep: #1E4E6A;
  --smp-gold: #FFD866;
  --smp-gold-deep: #F5C242;
  --smp-gold-tint: #FFF4D6;
  --smp-gold-text: #6B4A07;
  --smp-ink: #111111;
  --smp-text: #333333;
  --smp-text-muted: #555555;
  --smp-white: #FFFFFF;
  --smp-bg-soft: #F4F8FB;
  --smp-border: #C9D6DF;
  --smp-border-soft: #E4ECF1;
  --smp-green: #8CC9A0;
  --smp-green-deep: #5FA77A;

  /* Type */
  --smp-font: 'Nunito', Arial, sans-serif;
  --smp-fs-body: 18px;
  --smp-fs-input: 20px;
  --smp-fs-button: 21px;
  --smp-fs-h1: clamp(40px, 6vw, 76px);
  --smp-fs-h2: clamp(32px, 4vw, 48px);

  /* Shape */
  --smp-radius-pill: 999px;
  --smp-radius-input: 16px;
  --smp-radius-card: 24px;
  --smp-radius-card-lg: 28px;

  /* Layout */
  --smp-section-pad: 80px 5%;
  --smp-header-h: 82px;
  --smp-header-h-wrap: 150px;
  --smp-tap-min: 48px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--smp-white);
  font-family: var(--smp-font);
  color: var(--smp-ink);
}

section { scroll-margin-top: 96px; }

:focus-visible {
  outline: 3px solid var(--smp-blue);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.smp-section {
  padding: var(--smp-section-pad);
  box-sizing: border-box;
  text-align: center;
}
.smp-section--soft { background: var(--smp-bg-soft); }
.smp-section--white { background: var(--smp-white); }

/* ---------- Type ---------- */
.smp-h1 {
  margin: 0;
  font-size: var(--smp-fs-h1);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
}
.smp-h2 {
  margin: 0 0 12px;
  font-size: var(--smp-fs-h2);
  font-weight: 800;
}
.smp-text { font-size: var(--smp-fs-body); color: var(--smp-text); }
.smp-text--muted { color: var(--smp-text-muted); }

/* ---------- Buttons ---------- */
.smp-btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--smp-tap-min);
  padding: 18px 36px;
  border: none;
  border-radius: var(--smp-radius-pill);
  font-size: var(--smp-fs-button);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: var(--smp-blue);
  color: var(--smp-white);
}
.smp-btn:hover { background: var(--smp-blue-deep); }

.smp-btn--secondary {
  background: var(--smp-white);
  color: var(--smp-ink);
  border: 2px solid var(--smp-ink);
  font-weight: 700;
}
.smp-btn--secondary:hover { background: var(--smp-bg-soft); }

.smp-btn--choice {
  height: 64px;
  min-width: 160px;
  padding: 0 32px;
  font-size: 22px;
  background: var(--smp-white);
  color: var(--smp-ink);
  border: 2px solid var(--smp-blue);
}
.smp-btn--choice.is-selected {
  background: var(--smp-blue);
  color: var(--smp-white);
}

/* ---------- Forms ---------- */
.smp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--smp-fs-body);
  font-weight: 700;
}
.smp-input {
  font-family: inherit;
  font-size: var(--smp-fs-input);
  padding: 14px 18px;
  border-radius: var(--smp-radius-input);
  border: 2px solid var(--smp-border);
  background: var(--smp-white);
}

/* ---------- Cards ---------- */
.smp-card {
  background: var(--smp-white);
  border: 2px solid var(--smp-border-soft);
  border-radius: var(--smp-radius-card);
  padding: 28px;
  box-sizing: border-box;
}
.smp-card--soft { background: var(--smp-bg-soft); }
.smp-callout {
  background: var(--smp-gold-tint);
  color: var(--smp-gold-text);
  border-radius: var(--smp-radius-card);
  padding: 20px 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .smp-root { padding-top: var(--smp-header-h-wrap) !important; }
  section { scroll-margin-top: 160px; }
}
@media (max-width: 600px) {
  .smp-fab-text { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
