/* Medicare Hero — Informative Medicare promotions & discount alerts */
:root {
  --ink: #102a43;
  --ink-soft: #486581;
  --navy: #0b1f33;
  --navy-mid: #243b53;
  --sky: #2b6cb0;
  --sky-bright: #3b82c4;
  --sky-soft: #e8f1fa;
  --sky-line: #c5d9ec;
  --amber: #c27803;
  --amber-soft: #fff4dd;
  --paper: #eef3f8;
  --white: #ffffff;
  --line: #d3deea;
  --warn-bg: #fff6e8;
  --warn-ink: #7a4a12;
  --success: #1a7a4c;
  --danger: #b42318;
  --shadow: 0 22px 55px rgba(16, 42, 67, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(43, 108, 176, 0.18), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(194, 120, 3, 0.08), transparent 48%),
    linear-gradient(180deg, #dce7f2 0%, var(--paper) 26%, #f5f8fb 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sky);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-mid);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(238, 243, 248, 0.88);
  border-bottom: 1px solid rgba(211, 222, 234, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--sky-bright), var(--navy));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 22px rgba(11, 31, 51, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: white !important;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  font-size: 0.88rem !important;
}

.nav-cta:hover {
  background: var(--navy-mid);
  color: white !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-bright), var(--navy));
  color: white;
  box-shadow: 0 14px 30px rgba(11, 31, 51, 0.28);
}

.btn-primary:hover {
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: #b7c7d8;
}

.btn-block {
  width: 100%;
}

/* Full-bleed hero */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(115deg, rgba(11, 31, 51, 0.88) 0%, rgba(16, 42, 67, 0.72) 42%, rgba(43, 108, 176, 0.45) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(194, 120, 3, 0.22), transparent 50%),
    linear-gradient(160deg, #0b1f33 0%, #1e4a7a 55%, #2b6cb0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
  animation: grid-drift 28s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 3.4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: end;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 10ch;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  animation: rise-in 0.75s ease both;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  max-width: 22ch;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.96);
  animation: rise-in 0.75s ease both 0.08s;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin: 0;
  animation: rise-in 0.75s ease both 0.16s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  animation: rise-in 0.75s ease both 0.24s;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #e0a33a, #c27803);
  box-shadow: 0 14px 30px rgba(194, 120, 3, 0.35);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.phone-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(100%, 290px);
  background: linear-gradient(160deg, #13293f, #0b1f33);
  border-radius: 36px;
  padding: 1rem 0.9rem 1.2rem;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: white;
  animation: floaty 6s ease-in-out infinite;
}

.phone-notch {
  width: 42%;
  height: 18px;
  margin: 0 auto 0.9rem;
  background: #071524;
  border-radius: 999px;
}

.msg {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
  backdrop-filter: blur(8px);
}

.msg strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.msg p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.msg:nth-child(2) {
  animation: rise-in 0.7s ease both 0.15s;
}

.msg:nth-child(3) {
  animation: rise-in 0.7s ease both 0.35s;
}

.msg:nth-child(4) {
  animation: rise-in 0.7s ease both 0.55s;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}

.orb-a {
  width: 220px;
  height: 220px;
  background: rgba(43, 108, 176, 0.28);
  top: 10%;
  right: 8%;
  animation: pulse 7s ease-in-out infinite;
}

.orb-b {
  width: 140px;
  height: 140px;
  background: rgba(194, 120, 3, 0.2);
  bottom: 12%;
  left: 8%;
  animation: pulse 8s ease-in-out infinite reverse;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 1rem;
}

/* Disclaimer */
.disclaimer {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-block: 1px solid #f0d7b8;
  padding: 0.85rem 0;
  font-size: 0.9rem;
}

.disclaimer strong {
  font-weight: 700;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(211, 222, 234, 0.7);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.4rem;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.step,
.topic,
.info-panel,
.faq-item,
.sample {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.04);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sky-soft);
  color: var(--sky);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step p,
.topic p,
.info-panel p,
.faq-item p,
.sample p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.topic h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.topic-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sky-soft);
  color: var(--sky);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.info-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.info-panel.notice {
  background: linear-gradient(160deg, #fff, var(--sky-soft));
  border-color: var(--sky-line);
}

.samples {
  display: grid;
  gap: 0.8rem;
}

.sample {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.sample-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item h3 {
  margin-bottom: 0.4rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.trust-chip {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Forms */
.form-shell {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.form-shell h1 {
  max-width: none;
}

.form-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

input,
select,
textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(43, 108, 176, 0.25);
  border-color: var(--sky);
}

.consent-box {
  grid-column: 1 / -1;
  background: var(--sky-soft);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.consent-box p {
  margin: 0 0 0.7rem;
}

.consent-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.8rem;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--sky);
}

.consent-check label {
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.fine-print {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
  display: none;
}

.form-error.show {
  display: block;
}

.success-panel {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.success-panel.show {
  display: block;
}

.success-panel .check {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8f7ef;
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-hero {
  padding: 2.6rem 0 1.2rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.03);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 1.6rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.meta-line {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.soft-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.soft-list li:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}

.site-footer h4 {
  color: white;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: white;
}

.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

.footer-note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(48px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-inner,
  .steps,
  .topics,
  .split,
  .cards-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 4rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    justify-content: center;
  }

  .phone-stage {
    min-height: 360px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sample {
    grid-template-columns: 1fr;
  }
}
