/* ==========================================================================
   Compliant Health Plan — Medicare Advantage demo site
   Design system: clean white canvas, high-energy southwestern accents
   ========================================================================== */

:root {
  /* Core palette */
  --ic-sunset:      #FF6B35;   /* primary energy */
  --ic-sunset-dark: #E4501B;
  --ic-turquoise:   #00B8A9;   /* secondary energy */
  --ic-turquoise-dk:#009184;
  --ic-gold:        #FFB627;   /* highlight */
  --ic-indigo:      #14243F;   /* deep text / headers */
  --ic-magenta:     #D62E6A;   /* tertiary pop */

  /* Neutrals */
  --white:   #FFFFFF;
  --off:     #FAFBFC;
  --line:    #E6EAF0;
  --slate:   #4A5768;
  --slate-lt:#6B7A8F;

  /* System */
  --radius:   16px;
  --radius-s: 10px;
  --radius-pill: 999px;
  --shadow:    0 2px 4px rgba(20,36,63,.04), 0 12px 32px rgba(20,36,63,.07);
  --shadow-lg: 0 8px 20px rgba(20,36,63,.08), 0 24px 60px rgba(20,36,63,.11);
  --grad-hot:  linear-gradient(115deg, var(--ic-sunset) 0%, var(--ic-magenta) 100%);
  --grad-cool: linear-gradient(115deg, var(--ic-turquoise) 0%, #2AA9E0 100%);
  --grad-warm: linear-gradient(115deg, var(--ic-gold) 0%, var(--ic-sunset) 100%);
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ic-turquoise-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ic-indigo);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 750; }
p  { margin: 0 0 1.1em; }
.lead { font-size: 1.18rem; color: var(--slate); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.bg-off { background: var(--off); }
.center { text-align: center; }
.center .lead { max-width: 720px; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ic-sunset);
  margin-bottom: 14px;
}
.eyebrow.cool { color: var(--ic-turquoise-dk); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-hot); color: #fff; box-shadow: 0 8px 22px rgba(255,107,53,.32); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255,107,53,.42); }
.btn-teal { background: var(--grad-cool); color: #fff; box-shadow: 0 8px 22px rgba(0,184,169,.3); }
.btn-teal:hover { box-shadow: 0 12px 30px rgba(0,184,169,.4); }
.btn-ghost { background: #fff; color: var(--ic-indigo); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ic-turquoise); color: var(--ic-turquoise-dk); }
.btn-white { background: #fff; color: var(--ic-sunset-dark); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ic-indigo); color: #C9D4E4;
  font-size: .85rem; padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar strong { color: var(--ic-gold); }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none !important; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand-text { line-height: 1.05; }
.brand-text b { display: block; color: var(--ic-indigo); font-size: 1.05rem; font-weight: 850; letter-spacing: -.02em; }
.brand-text span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ic-sunset); font-weight: 700; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--radius-s);
  color: var(--ic-indigo); font-weight: 650; font-size: .95rem;
  text-decoration: none !important; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--off); color: var(--ic-turquoise-dk); }
.nav-links a.active { color: var(--ic-sunset-dark); background: #FFF3EE; }
.nav-links a.nav-cta {
  background: var(--grad-cool); color: #fff; margin-left: 8px;
  box-shadow: 0 6px 16px rgba(0,184,169,.28);
}
.nav-links a.nav-cta:hover { color: #fff; }

.navtoggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 9px 13px; font-size: 1.1rem; cursor: pointer;
  color: var(--ic-indigo);
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 84px; position: relative; overflow: hidden; background: #fff; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -180px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,182,39,.20), rgba(255,107,53,.10) 45%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -260px; left: -200px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(0,184,169,.18), rgba(255,255,255,0) 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 span.hl {
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 15px; font-size: .87rem; font-weight: 650; color: var(--ic-indigo);
  box-shadow: 0 2px 8px rgba(20,36,63,.05);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ic-turquoise); }
.pill .dot.warm { background: var(--ic-sunset); }
.pill .dot.gold { background: var(--ic-gold); }

.page-hero { padding: 62px 0 46px; border-bottom: 1px solid var(--line); background: var(--off); }
.page-hero h1 { margin-bottom: .35em; }
.crumbs { font-size: .85rem; color: var(--slate-lt); margin-bottom: 14px; }
.crumbs a { color: var(--slate-lt); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #D8E0EA; }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 54px; height: 54px; margin-bottom: 16px; }

.card-flat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-accent { border-top: 4px solid var(--ic-sunset); }
.card-accent.teal { border-top-color: var(--ic-turquoise); }
.card-accent.gold { border-top-color: var(--ic-gold); }

/* Plan cards */
.plan { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.plan .ribbon {
  position: absolute; top: 18px; right: -34px; transform: rotate(38deg);
  background: var(--grad-warm); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 42px;
}
.plan .price { font-size: 2.6rem; font-weight: 850; color: var(--ic-indigo); letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--slate-lt); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li {
  padding: 9px 0 9px 30px; position: relative; border-bottom: 1px dashed var(--line);
  font-size: .96rem;
}
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ic-turquoise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan .btn { margin-top: auto; justify-content: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 2.3rem; font-weight: 850; letter-spacing: -.03em; line-height: 1;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat.teal b { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { display: block; margin-top: 9px; font-size: .88rem; color: var(--slate-lt); font-weight: 600; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n {
  counter-increment: s; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-cool); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 1rem;
}
.step .n::before { content: counter(s); }
.step h4 { margin: 6px 0 4px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .96rem; }

/* CTA band */
.cta-band { background: var(--grad-hot); color: #fff; border-radius: 24px; padding: 52px 48px; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.10);
}
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .inner { position: relative; z-index: 1; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band.cool { background: var(--grad-cool); }
.cta-band.cool .btn-white { color: var(--ic-turquoise-dk); }

/* Interop specific */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.flow .node {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; position: relative;
}
.flow .node b { display: block; color: var(--ic-indigo); font-size: .98rem; margin-bottom: 6px; }
.flow .node small { color: var(--slate-lt); font-size: .84rem; line-height: 1.45; display: block; }
.flow .node:nth-child(1) { border-color: #FFD9C9; }
.flow .node:nth-child(2) { border-color: #FFE6B8; }
.flow .node:nth-child(3) { border-color: #B9EDE8; }
.flow .node:nth-child(4) { border-color: #C6E3F7; }

.api-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.api-table th, .api-table td { text-align: left; padding: 15px 18px; font-size: .94rem; border-bottom: 1px solid var(--line); }
.api-table th { background: var(--off); color: var(--ic-indigo); font-weight: 750; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.api-table tr:last-child td { border-bottom: none; }
.tag {
  display: inline-block; padding: 3px 11px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.tag.live { background: #E1F7F4; color: #007C71; }
.tag.soon { background: #FFF1DC; color: #9A6100; }
.tag.req  { background: #FFECE5; color: #C2400F; }

/* FAQ */
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 18px 22px; margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ic-indigo); list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ic-sunset); font-size: 1.5rem; font-weight: 400; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 14px 0 0; font-size: .96rem; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: .9rem; color: var(--ic-indigo); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ic-indigo);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ic-turquoise); box-shadow: 0 0 0 3px rgba(0,184,169,.15);
}

/* Notice */
.notice {
  background: #FFF8E8; border: 1px solid #FFE2A8; border-left: 4px solid var(--ic-gold);
  border-radius: var(--radius-s); padding: 16px 20px; font-size: .92rem; color: #6B4E00;
}
.notice strong { color: #4A3600; }

/* ---------- Footer ---------- */
footer.site { background: var(--ic-indigo); color: #A9B7CC; padding: 60px 0 28px; margin-top: 0; }
footer.site h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
footer.site a { color: #C9D4E4; font-size: .93rem; display: block; padding: 5px 0; }
footer.site a:hover { color: var(--ic-gold); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { font-size: .92rem; color: #93A3BA; max-width: 320px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  font-size: .8rem; color: #7D8DA6; line-height: 1.7;
}
.demo-flag {
  background: var(--ic-magenta); color: #fff; text-align: center;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; padding: 7px 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .navtoggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .flow { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
}
