:root {
    --neutral-tag: #f3efe6;
    --neutral-tag-text: #5d4a28;
    --hcp: #17202a;
    --hcp-soft: #eaf2f8;
    --hcp-text: #2f4a5c;
    --radius: 24px;
    --radius-sm: 16px;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 62%);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

p, h1, h2, h3 {
    margin-top: 0;
}

header {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}


.header-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.header-links a {
    color: var(--muted);
    font-weight: 650;
    padding: 9px 12px;
    border-radius: 999px;
    transition: color .15s ease, background .15s ease;
}

.header-links a:hover {
    color: var(--accent-dark);
    background: var(--soft);
}

main {
    flex: 1 0 auto;
    display: flex;
}

.hero {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.hero .inner {
    width: 100%;
    display: grid;
    align-content: center;
    gap: 34px;
    padding-top: 54px;
    padding-bottom: 58px;
}

.hero-copy {
    max-width: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--neutral-tag-text);
    background: var(--neutral-tag);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    margin: 20px 0 18px;
    max-width: none;
    font-size: 59px;
    font-size: clamp(43px, 5.2vw, 65px);
    white-space: nowrap;
    line-height: 0.98;
    letter-spacing: -0.058em;
}

.lead {
    max-width: none;
    margin-bottom: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
    gap: 38px;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.choice-card {
    position: relative;
    display: grid;
    align-content: space-between;
    min-height: 250px;
    background: #fff;
    border: 1px solid #cfe4dc;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: none;
}

.choice-card:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: #cfe4dc;
    background: #fff;
}

.choice-card.secondary {
    background: #fff;
    border-color: #cfdde8;
}

.choice-card.secondary:hover {
    background: #fff;
    border-color: #cfdde8;
}

.choice-card .label {
    display: inline-flex;
    width: fit-content;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.choice-card.secondary .label {
    color: var(--hcp-text);
    background: var(--hcp-soft);
}

.choice-card h2 {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
}

.choice-card p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: fit-content;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 750;
    border: 1px solid transparent;
    white-space: nowrap;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(47, 141, 100, 0.22);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.choice-card.secondary .button {
    background: #4a6578;
    box-shadow: 0 12px 24px rgba(74, 101, 120, 0.18);
}

.choice-card:hover .button,
.button:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 14px 28px rgba(23, 97, 62, 0.28);
    filter: none;
}

.choice-card.secondary:hover .button,
.choice-card.secondary .button:hover {
    background: #31485a;
    color: #fff;
    box-shadow: 0 14px 28px rgba(49, 72, 90, 0.26);
}

footer {
    background: var(--ink);
    color: #fff;
    padding: 22px 0;
    font-size: 13px;
    line-height: 1.45;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
}

footer h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 920px) {
    .header-links {
        display: none;
    }

    .hero {
        align-items: flex-start;
    }

    .hero .inner {
        padding-top: 48px;
        padding-bottom: 54px;
    }

    .choice-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {

    h1 {
        font-size: 41px;
        font-size: clamp(39px, 10.5vw, 43px);
        white-space: normal;
    }

    .lead {
        font-size: 19px;
    }

    .choice-card {
        padding: 22px;
    }

    .choice-card h2 {
        font-size: 28px;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .choice-card, .choice-card:hover {
        transition: none;
        transform: none;
    }
}

/* Expanded hard-device responsive fixes. */
@media (max-width: 640px) {
  header .inner {
    gap: 10px;
  }
}

/* Tablet landing-card containment fixes. */
@media (max-width: 1080px) {
  .choice-grid {
    grid-template-columns: minmax(0, 620px);
  }
}

/* Narrow-phone landing-card guardrails for WebKit/Safari text wrapping. */
@media (max-width: 360px) {
  .choice-card {
    padding: 20px 18px;
  }

  .choice-card h2 {
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .choice-card p {
    font-size: 16px;
    line-height: 1.45;
  }
}

/* Phone landscape containment: 568px landscape still needs the compact landing layout. */
@media (max-width: 640px) {
  .hero-copy,
  .choice-grid,
  .choice-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    white-space: normal;
    font-size: 41px;
    font-size: clamp(37px, 8vw, 43px);
  }

  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .hero-copy {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Strong text scaling: keep landing audience card titles balanced on narrow phones. */
@media (max-width: 380px) {
  .choice-card h2 {
    font-size: 25px;
    line-height: 1.08;
  }
}

@media (max-width: 340px) {
  .choice-card h2 {
    font-size: 23px;
  }
}

/* Compact-phone stress: keep landing card titles from fragmenting at 280px. */
@media (max-width: 300px) {
  .choice-card h2 {
    font-size: 21px;
    line-height: 1.08;
  }
}

.header-links a span[aria-hidden="true"],
.choice-card .button span[aria-hidden="true"] {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.15s ease;
}

.header-links a:hover span[aria-hidden="true"],
.choice-card:hover .button span[aria-hidden="true"],
.choice-card .button:hover span[aria-hidden="true"] {
    transform: translateX(3px);
}

/* Index audience buttons: keep arrow optically centered during hover shift. */
.choice-card .button {
    gap: 6px;
}

.choice-card .button span[aria-hidden="true"] {
    margin-left: 0;
    line-height: 1;
    transform: translateY(0);
}

.choice-card:hover .button span[aria-hidden="true"],
.choice-card .button:hover span[aria-hidden="true"] {
    transform: translate(3px, 0);
}

/* Adaptive landing-page vertical rhythm after removing the top header. */
main {
    min-height: calc(100vh - 116px);
}

.hero {
    align-items: center;
}

.hero .inner {
    padding-top: clamp(32px, 7vh, 92px);
    padding-bottom: clamp(48px, 8vh, 104px);
    transform: translateY(clamp(-34px, -3vh, -12px));
}

@media (min-height: 950px) and (min-width: 921px) {
    .hero .inner {
        transform: translateY(-4vh);
    }
}

@media (max-width: 920px) {
    main {
        min-height: auto;
    }

    .hero .inner {
        transform: none;
        padding-top: 48px;
        padding-bottom: 54px;
    }
}

/* Exact index viewport allocation: avoid tiny useless page scroll on desktop. */
@media (min-width: 921px) {
    body {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    main {
        min-height: 0;
    }

    .hero {
        min-height: 0;
    }
}

.footer-legal {
    display: grid;
    gap: 6px;
}

/* Final desktop landing polish: lighter footer density and slightly warmer vertical centering. */
@media (min-width: 921px) {
    .hero .inner {
        transform: translateY(clamp(-24px, -2vh, -6px));
    }

    footer {
        padding: 18px 0;
    }

    .footer-legal {
        gap: 4px;
    }

    footer p {
        line-height: 1.38;
    }
}

@media (min-height: 950px) and (min-width: 921px) {
    .hero .inner {
        transform: translateY(-2.5vh);
    }
}


/* Resumed mobile QA: simplify mobile landing hierarchy and keep copy width intentional. */
@media (max-width: 640px) {
    .hero-copy .eyebrow {
        display: none;
    }

    .hero .inner {
        gap: 36px;
        padding-top: 44px;
    }

    .lead {
        max-width: 35ch;
    }

    .choice-grid {
        gap: 40px;
    }
}

/* Old-engine fallback: wkhtmltoimage/legacy WebKit do not reliably support CSS Grid. */
.no-css-grid main,
.no-css-grid .hero,
.no-css-grid .hero .inner,
.no-css-grid .choice-grid,
.no-css-grid .choice-card,
.no-css-grid .footer-grid,
.no-css-grid .footer-legal {
    display: block;
}

.no-css-grid main,
.no-css-grid .hero {
    min-height: 0;
}

.no-css-grid .hero .inner {
    transform: none;
    padding-top: 44px;
    padding-bottom: 54px;
}

.no-css-grid h1 {
    white-space: normal;
}

.no-css-grid .choice-grid {
    max-width: 620px;
}

.no-css-grid .choice-card {
    width: auto;
    min-height: 0;
    margin: 0 0 32px;
}

.no-css-grid .choice-card .label {
    display: inline-block;
}

.no-css-grid .choice-card .button {
    display: block;
    width: auto;
    text-align: center;
}

.no-css-grid .footer-grid > * + *,
.no-css-grid .footer-legal > * + * {
    margin-top: 8px;
}

/* Final responsive QA: give the landing lead more breathing room before the audience cards. */
@media (max-width: 640px) {
    .hero .inner {
        gap: 44px;
    }

    .hero-copy {
        margin-bottom: 2px;
    }
}

/* Keep the footer bounded to its own content; the page canvas is light outside it. */
footer {
    isolation: isolate;
}
