/* Medicare CRM — marketing site, auth, and app shell */
:root {
    --navy: #0b1f3a;
    --navy-2: #13294b;
    --ink: #1d2433;
    --muted: #5b6475;
    --line: #e3e0d8;
    --paper: #faf8f4;
    --tint: #f1eee6;
    --teal: #0f8a7e;
    --teal-2: #0b6f65;
    --teal-soft: #e2f3f0;
    --gold: #c8963e;
    --red: #b4372f;
    --radius: 14px;
    --shadow: 0 20px 50px -20px rgba(11, 31, 58, .35);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }

/* Enrollment window bar */
.window-bar {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4em .8em;
    padding: .55em 1em; font-size: .88rem; background: var(--navy); color: #dfe6f1;
}
.window-bar strong { color: #fff; font-weight: 600; }
.window-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.window-open .dot { background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--teal) 0 50%, var(--navy) 50% 100%); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; background: var(--paper); clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); }
.brand-light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 6px auto; background: var(--navy); transition: transform .2s; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 4rem; background: radial-gradient(ellipse 70% 60% at 85% 20%, var(--teal-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-visual { position: relative; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mock-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--line); }
.mock-head span { width: 10px; height: 10px; border-radius: 50%; background: #d5d0c4; }
.mock-head em { margin-left: 10px; font-style: normal; font-size: .78rem; color: var(--muted); }
.mock-body { padding: 22px; }
.mock-person { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mock-person small { display: block; color: var(--muted); font-size: .82rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; }
.chip { margin-left: auto; padding: .25em .7em; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.chip-teal { background: var(--teal-soft); color: var(--teal-2); }
.mock-checks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; font-size: .92rem; }
.mock-checks li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.mock-checks li span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.mock-checks li.done { color: var(--ink); }
.mock-checks li.done span { background: var(--teal); border-color: var(--teal); position: relative; }
.mock-checks li.done span::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mock-checks li.now { color: var(--navy); font-weight: 600; }
.mock-checks li.now span { border-color: var(--gold); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--gold); }
.mock-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-foot div { background: var(--paper); border-radius: 10px; padding: 10px 14px; }
.mock-foot small { display: block; color: var(--muted); font-size: .75rem; }
.mock-foot strong { font-size: .92rem; color: var(--navy); }
.mock-float { position: absolute; right: -18px; bottom: -28px; width: 170px; background: var(--navy); color: #cfd8e6; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.mock-float small { font-size: .75rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 8px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--gold), var(--teal)); }

/* Enrollment periods strip */
.periods { border-block: 1px solid var(--line); background: #fff; }
.periods-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.periods-grid div { padding: 1.4rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.periods-grid div:first-child { border-left: 0; }
.periods-grid strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.periods-grid span { font-size: .88rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #cfd8e6; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #b4c0d3; }
.section-dark .eyebrow { color: var(--gold); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--teal); margin-bottom: 1rem; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.check-list li { position: relative; padding: 1rem 1.2rem 1rem 3.2rem; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; color: #e3e9f2; }
.check-list li::before { content: ""; position: absolute; left: 1.2rem; top: 1.25rem; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); }
.check-list li::after { content: ""; position: absolute; left: 1.58rem; top: 1.42rem; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: s; }
.steps li { position: relative; padding-top: 3.4rem; }
.steps li > span { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: -8px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.steps h3 { font-size: 1.08rem; }
.steps p { font-size: .93rem; color: var(--muted); }

.photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.mini-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; counter-reset: m; }
.mini-steps li { counter-increment: m; position: relative; padding: 1.2rem 1.4rem 1.2rem 4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.mini-steps li::before { content: counter(m); position: absolute; left: 1.3rem; top: 1.15rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-2); font-weight: 600; font-size: .9rem; }
.mini-steps strong { color: var(--navy); }

.cta { background: linear-gradient(120deg, var(--teal-2), var(--navy)); color: #e7eef5; padding: 4.5rem 0; text-align: center; }
.cta h2 { color: #fff; }
.cta-inner p { margin-bottom: 1.6rem; }

.site-footer { background: #07162b; color: #9aa7bb; padding: 3rem 0; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 3rem; }
.site-footer .muted { color: #8794a9; margin-top: .6rem; }
.disclaimer { margin: 0; line-height: 1.6; }
.copyright { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------ auth page */
.auth-page { background: var(--paper); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 520px) 1fr; }
.auth-panel { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.auth-panel .brand { margin-bottom: 3rem; }
.auth-panel h1 { font-size: 2.2rem; margin-bottom: .2em; }
.auth-sub { color: var(--muted); margin-bottom: 1.8rem; }
.auth-form { display: grid; gap: .4rem; }
.auth-form label { font-size: .88rem; font-weight: 600; color: var(--navy); margin-top: .6rem; }
.auth-form input {
    font: inherit; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.auth-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.auth-form .btn { margin-top: 1.2rem; padding: 1em; }
.auth-help { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); }
.auth-fine { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .4rem; }
.alert { padding: .8em 1em; border-radius: 10px; font-size: .93rem; margin-bottom: 1rem; }
.alert-error { background: #fbeceb; color: var(--red); border: 1px solid #f1cbc8; }
.alert-info { background: var(--teal-soft); color: var(--teal-2); border: 1px solid #c3e6e0; }
.auth-aside {
    position: relative; display: flex; align-items: flex-end; padding: 4rem;
    background: linear-gradient(180deg, rgba(11, 31, 58, .15), rgba(11, 31, 58, .88)),
                url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?w=1600&q=80&auto=format&fit=crop") center / cover;
}
.auth-aside-inner { max-width: 34rem; }
.auth-aside .eyebrow { color: var(--gold); }
.auth-quote { font-family: var(--serif); font-size: 1.8rem; line-height: 1.3; color: #fff; margin: 0; }


/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 3rem; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; gap: 1.6rem; }
    .steps li { padding: 0 0 0 3.6rem; }
    .steps li:not(:last-child)::after { display: none; }
    .mock-float { right: 8px; }
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 24px 1.2rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .nav-links .btn { margin-top: 1rem; }
    .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
    .feature-grid { grid-template-columns: 1fr; }
    .periods-grid { grid-template-columns: 1fr 1fr; }
    .periods-grid div:nth-child(3) { border-left: 0; }
    .periods-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
