/* ============================================================
   BuilderOps — Open Enrollment 2026
   Shared design system
   Visual DNA: BuilderOps isometric cube + blueprint grid
   Warm paper neutrals · brand blues as accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  /* Brand blues — pulled from the logo */
  --ink:        #16233F;   /* deep navy outline / primary text */
  --blue-900:   #1B3A6B;
  --blue-700:   #21508F;
  --blue-600:   #2E6FD6;   /* cobalt */
  --blue-500:   #4A90E8;   /* brand wordmark blue — primary accent */
  --blue-400:   #6CA8EE;
  --blue-300:   #9CC4F3;
  --blue-200:   #C7DEF9;
  --blue-100:   #E1EEFC;
  --blue-50:    #F0F6FE;

  /* Neutrals — clean white page */
  --paper:      #FFFFFF;   /* page background */
  --paper-2:    #F5F8FC;   /* subtle cool tint for alternating sections */
  --card:       #FFFFFF;
  --line:       #E6E9EF;   /* hairline */
  --line-blue:  #DCE7F5;
  --track:      #EAEEF4;   /* empty progress / range tracks */

  /* Text */
  --text:       #1C2638;
  --text-soft:  #50596B;
  --text-mute:  #8B93A3;

  /* Semantic */
  --win:        #2E8B6A;   /* "saves you money" green */
  --win-bg:     #E6F3ED;
  --gold:       #BC7E2A;   /* HSA highlight */
  --gold-bg:    #F6EEDD;

  /* Plan identities */
  --p1:         #2E6FD6;   /* Plan 1 — cobalt */
  --p1-bg:      #EAF1FC;
  --p2:         #1B3A6B;   /* Plan 2 — deep navy */
  --p2-bg:      #E7ECF4;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --shadow-sm:  0 1px 2px rgba(22,35,63,.05), 0 2px 8px rgba(22,35,63,.04);
  --shadow:     0 4px 14px rgba(22,35,63,.07), 0 14px 40px rgba(22,35,63,.06);
  --shadow-lg:  0 10px 30px rgba(22,35,63,.10), 0 30px 70px rgba(22,35,63,.10);

  --maxw:       1180px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.55;
}

/* Blueprint grid texture — the logo's diamond lattice, abstracted */
.blueprint{
  background-image:
    linear-gradient(var(--line-blue) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-blue) 1px, transparent 1px);
  background-size:34px 34px;
  background-position:center;
}

h1,h2,h3,h4{ font-family:var(--font-display); color:var(--ink); margin:0; line-height:1.08; letter-spacing:-.02em; font-weight:700; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.eyebrow{
  font-family:var(--font-display);
  font-size:13px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--blue-600);
}
.lead{ font-size:19px; color:var(--text-soft); line-height:1.6; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:600; font-size:16px;
  padding:14px 24px; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration:none; white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--blue-500); color:#fff; box-shadow:0 6px 18px rgba(74,144,232,.35); }
.btn-primary:hover{ background:var(--blue-600); box-shadow:0 10px 26px rgba(46,111,214,.42); }
.btn-ghost{ background:#fff; color:var(--ink); border-color:var(--line-blue); box-shadow:var(--shadow-sm); }
.btn-ghost:hover{ border-color:var(--blue-300); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:var(--blue-900); }
.btn svg{ width:18px; height:18px; }

/* ---------- Top nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; gap:28px; height:72px; max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.brand{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.brand img{ width:34px; height:34px; display:block; flex-shrink:0; object-fit:contain; }
.brand .wm{ font-family:var(--font-display); font-weight:700; font-size:21px; color:var(--ink); letter-spacing:-.02em; white-space:nowrap; }
.brand .wm span{ color:var(--blue-500); }
.nav-links{ display:flex; gap:4px; margin-left:auto; align-items:center; }
.nav-links a{
  font-family:var(--font-display); font-weight:500; font-size:15px; color:var(--text-soft);
  padding:9px 14px; border-radius:10px; transition:background .15s, color .15s;
}
.nav-links a:hover{ background:var(--blue-50); color:var(--ink); }
.nav-links a.active{ color:var(--blue-600); background:var(--blue-50); }
.nav-cta{ margin-left:8px; }
.nav-toggle{
  display:none; margin-left:auto; width:44px; height:44px; flex-shrink:0; padding:0;
  border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer;
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
.nav.open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2){ opacity:0; }
.nav.open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.nav-links .mobile-only{ display:none; }

@media (max-width:960px){
  .nav-inner{ gap:14px; height:64px; }
  .nav-toggle{ display:flex; }
  .nav-cta{ display:none; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; margin:0;
    flex-direction:column; align-items:stretch; gap:3px;
    background:#fff; border-bottom:1px solid var(--line); box-shadow:var(--shadow);
    padding:12px 20px 18px; max-height:calc(100dvh - 64px); overflow-y:auto;
    opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.open .nav-links{ opacity:1; visibility:visible; transform:none; }
  .nav-links a{ font-size:16px; padding:14px; border-radius:10px; }
  .nav-links .mobile-only{ display:block; background:var(--blue-500); color:#fff; text-align:center; margin-top:8px; font-weight:600; }
  .nav-links .mobile-only:hover{ background:var(--blue-600); color:#fff; }
}

/* ---------- Pills / chips ---------- */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-weight:600; font-size:13px; letter-spacing:.02em;
  padding:7px 14px; border-radius:999px; background:#fff; border:1px solid var(--line-blue); color:var(--blue-700);
}
.pill .dot{ width:8px; height:8px; border-radius:50%; background:var(--win); box-shadow:0 0 0 4px rgba(46,139,106,.18); }
.pill.live .dot{ animation:pulse 1.8s infinite; }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(46,139,106,.35);} 50%{ box-shadow:0 0 0 6px rgba(46,139,106,0);} }

/* ---------- Cards ---------- */
.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }

/* ---------- Footer ---------- */
.footer{ background:var(--ink); color:#C9D4E6; margin-top:90px; }
.footer a{ color:#C9D4E6; }
.footer-inner{ max-width:var(--maxw); margin:0 auto; padding:64px 28px 40px; display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.footer h4{ color:#fff; font-size:16px; margin-bottom:16px; letter-spacing:.01em; }
.footer .brand .wm{ color:#fff; }
.footer .brand .wm span{ color:var(--blue-400); }
.footer-links{ display:flex; flex-direction:column; gap:11px; }
.footer-links a{ font-size:15px; color:#A9B6CC; transition:color .15s; }
.footer-links a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap{ display:flex; justify-content:space-between; gap:20px; padding-top:22px; padding-bottom:30px; font-size:13.5px; color:#8493AC; flex-wrap:wrap; }
@media (max-width:760px){ .footer-inner{ grid-template-columns:1fr; gap:34px; } }

/* ---------- Section rhythm ---------- */
.section{ padding:84px 0; }
.section-head{ max-width:680px; margin-bottom:46px; }
.section-head h2{ font-size:clamp(30px,4vw,44px); margin-top:14px; }
.section-head p{ margin-top:16px; }

/* Reveal on scroll */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }

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

/* utility */
.mono-num{ font-family:var(--font-display); font-variant-numeric:tabular-nums; }
.center{ text-align:center; }

/* ---------- Enroll-in-Rippling redirect ---------- */
.nav-links a.enroll-link{ color:var(--blue-600); font-weight:600; }
.nav-links a.enroll-link:hover{ background:var(--blue-50); }
.footer-links a.enroll-link{ color:#fff; font-weight:600; }

/* Enrollment call-to-action band (used on Overview + Calculator) */
.enroll-cta{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  background:linear-gradient(135deg,var(--ink),var(--blue-900)); color:#fff;
  border-radius:var(--radius-lg); padding:28px 32px; box-shadow:var(--shadow); }
.enroll-cta .enroll-eyebrow{ font-family:var(--font-display); font-weight:600; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:#9DB4D6; }
.enroll-cta .enroll-h{ font-family:var(--font-display); font-weight:700; font-size:22px; margin-top:6px; color:#fff; }
.enroll-cta p{ color:#BFD0EA; font-size:14.5px; margin-top:8px; max-width:520px; }
.enroll-cta .btn svg{ width:18px; height:18px; }
@media (max-width:560px){ .enroll-cta{ padding:24px 22px; } }

/* ---------- Global mobile spacing ---------- */
@media (max-width:760px){
  .section{ padding:54px 0; }
  .wrap{ padding:0 20px; }
  .section-head{ margin-bottom:30px; }
  .section-head h2{ margin-top:10px; }
  .lead{ font-size:17px; }
  .footer{ margin-top:60px; }
  .footer-inner{ padding:48px 20px 32px; }
  .footer-bottom .wrap{ flex-direction:column; gap:8px; }
}
