/* yourmedicareplan.us — hand-written CSS. Spec §5: monochrome, type-led. */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */

@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --ink:    #111111;
  --paper:  #FFFFFF;
  --gray-1: #6B6B6B;
  --gray-2: #C9C9C9;
  --gray-3: #F2F2F2;
  --focus:  #1A5FD6;

  --font-display: "Archivo Expanded", "Arial Black", sans-serif;
  --font-utility: "Archivo", Arial, sans-serif;
  --font-body: "Newsreader", Georgia, serif;

  --wrap: 1080px;
  --section-gap: 120px;
}

/* ---------- Reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

a { color: var(--ink); text-underline-offset: 3px; }

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

::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 24px;
  z-index: 100;
  font-family: var(--font-utility);
  font-size: 17px;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: calc(var(--section-gap) / 2); }
.section + .section { padding-top: calc(var(--section-gap) / 2); }

.rule {
  border: 0;
  border-top: 6px solid var(--ink);
  margin: 0;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Type ---------- */

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: none;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
}

.small { font-size: 17px; color: var(--gray-1); }

/* ---------- Header ---------- */

.site-header { padding-block: 28px; }

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding-block: 8px;
}
.wordmark-tld { color: var(--gray-1); }

.header-phone { text-align: right; margin-left: auto; }

.header-tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-decoration: none;
  display: inline-block;
  padding-block: 4px;
}

.header-meta {
  font-family: var(--font-utility);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--gray-1);
  margin: 4px 0 0;
  line-height: 1.45;
}

/* ---------- Hero ---------- */

.hero { padding-block: 88px 72px; }

.hero h1 { margin-bottom: 32px; }

.hero-sub {
  font-size: 21px;
  margin-bottom: 4px;
}

.hero-states {
  font-size: 17px;
  color: var(--gray-1);
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.support-line {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.4;
  max-width: 30ch;
  margin-bottom: 24px;
}

.hero-disclosure {
  font-size: 17px;
  color: var(--gray-1);
  max-width: 48ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 32px;
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
}
.btn-primary:hover { background: #000; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover { background: var(--gray-3); }

/* ---------- "You may want to call if" ---------- */

.call-if-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 64px;
  max-width: 960px;
}

.call-if-list li {
  break-inside: avoid;
  padding-left: 40px;
  position: relative;
  margin-bottom: 20px;
  font-size: 21px;
}

.call-if-list li::before {
  content: "\2014"; /* em dash */
  position: absolute;
  left: 0;
  font-family: var(--font-utility);
}

/* ---------- Mail pile band ---------- */

.band {
  background: var(--gray-3);
  padding-block: calc(var(--section-gap) / 2);
}

.band-copy p {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 46ch;
  margin-bottom: 0.9em;
}
.band-copy p:last-child { margin-bottom: 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1080px;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 8px;
}

.step p { font-size: 19px; margin: 0; }

/* ---------- Testimonials (empty in v1) ---------- */

.testimonial p { font-size: 26px; font-weight: 500; }
.testimonial footer {
  font-family: var(--font-utility);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-1);
}

/* ---------- Form ---------- */

.form-section { padding-block: calc(var(--section-gap) / 2); }

.form-wrap {
  max-width: 620px;
  margin-inline: auto;
  padding-inline: 24px;
}

.form-wrap h2 { font-size: 42px; }

.form-lede { font-size: 21px; margin-bottom: 40px; }

.field { margin-bottom: 28px; }

.field label,
.field-consent label {
  display: block;
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.label-optional { color: var(--gray-1); text-transform: none; letter-spacing: 0; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 21px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--gray-2);
  border-radius: 4px;
}

.field select { appearance: auto; }

.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-error {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--focus);
  font-family: var(--font-utility);
  font-size: 17px;
  letter-spacing: 0.02em;
  margin: 8px 0 0;
}
.field-error::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--focus);
  transform: translateY(1px);
}

.field.has-error input,
.field.has-error select { border-color: var(--focus); }

.field-note {
  font-size: 17px;
  color: var(--gray-1);
  margin: 8px 0 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-consent { margin-top: 36px; }

.consent-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}

.consent-row input[type="checkbox"] {
  width: 32px;
  height: 32px;
  margin: 4px 0 0;
  accent-color: var(--ink);
}

.consent-row label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}

.btn-submit { width: 100%; margin-top: 32px; }

.form-phone-alt {
  font-size: 17px;
  color: var(--gray-1);
  margin-top: 24px;
}
.form-phone-alt a { color: var(--ink); }

.draft-note {
  border: 3px dashed var(--gray-2);
  border-radius: 4px;
  padding: 28px;
  margin-top: 40px;
}
.draft-note-tag {
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.draft-note p { font-size: 19px; }
.draft-note p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 72px 56px;
  margin-top: calc(var(--section-gap) / 2);
}

.site-footer a { color: var(--paper); }

.footer-tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  text-decoration: none;
  display: inline-block;
  padding-block: 8px;
}

.footer-meta {
  font-family: var(--font-utility);
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 4px 0 8px;
}

.footer-disclosure { font-size: 17px; margin-bottom: 40px; }

.footer-disclosures p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 68ch;
  color: #DDDDDD;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 40px 0 32px;
  font-family: var(--font-utility);
  font-size: 17px;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-copy { font-size: 17px; color: #DDDDDD; margin: 0; }

/* ---------- Sticky call bar (mobile only) ---------- */

.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  background: var(--ink);
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.callbar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  min-height: 56px;
}

.callbar-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--paper);
}

.callbar-btn {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 4px;
}

/* ---------- Content pages ---------- */

.page-title { padding-block: 72px 0; }
.page-title h1 { font-size: 56px; line-height: 1.05; }

.callout {
  border-left: 6px solid var(--ink);
  padding: 8px 0 8px 28px;
  margin: 2em 0;
}
.callout p { margin-bottom: 0; font-weight: 500; }

.page-cta {
  margin: 3em 0 1em;
}

/* ---------- FAQ ---------- */

.faq-item { margin-bottom: 3em; }
.faq-item h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 0.4em;
}

/* ---------- Motion ---------- */

.js .fade-item {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 300ms ease-out forwards;
}
.js .fade-item:nth-child(1) { animation-delay: 0ms; }
.js .fade-item:nth-child(2) { animation-delay: 60ms; }
.js .fade-item:nth-child(3) { animation-delay: 120ms; }
.js .fade-item:nth-child(4) { animation-delay: 180ms; }
.js .fade-item:nth-child(5) { animation-delay: 240ms; }
.js .fade-item:nth-child(6) { animation-delay: 300ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .fade-item { animation: none; opacity: 1; transform: none; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */

@media print {
  .js .fade-item,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .callbar,
  .skip-link { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  :root { --section-gap: 72px; }

  body { font-size: 19px; padding-bottom: 96px; }

  h1 { font-size: 42px; }
  h2 { font-size: 32px; }

  .hero { padding-block: 48px 40px; }
  .hero-sub { font-size: 19px; }
  .support-line { font-size: 22px; }

  .header-inner { align-items: center; }
  .header-phone { text-align: right; }
  .header-tel { font-size: 21px; }

  .hero-ctas .btn { width: 100%; }

  .call-if-list { columns: 1; }
  .call-if-list li { font-size: 19px; }

  .band-copy p { font-size: 21px; }

  .steps { grid-template-columns: 1fr; gap: 36px; }

  .form-wrap h2 { font-size: 32px; }

  .field-row { grid-template-columns: 1fr 1fr; }

  .page-title h1 { font-size: 36px; }
  .faq-item h2 { font-size: 24px; }

  .footer-tel { font-size: 30px; }

  .callbar { display: block; }
}

@media (max-width: 400px) {
  .field-row { grid-template-columns: 1fr; }
  .callbar-num { font-size: 22px; }
}
