:root {
    --surface: #FFFFFF;
    --surface-soft: #F7F7F8;
    --text: #111111;
    --muted: #5F6368;
    --line: #D9DDE3;
    --accent: #058BC5;
    --accent-soft: #E6F6FC;
    --accent-deep: #28578F;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--surface-soft);
    color: var(--text);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

body.form-page {
    background: var(--surface-soft);
}

a {
    color: inherit;
}

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

form {
    min-height: 100vh;
}

.site-shell {
    min-height: 100vh;
    background: var(--surface-soft);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 112px;
    height: auto;
}

.brand-line {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a,
.button,
input[type="submit"] {
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-links a {
    color: var(--muted);
    padding: 7px 9px;
}

.nav-links a:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
}

.button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
}

.button.secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.button-light {
    background: #FFFFFF;
    color: var(--accent-deep);
}

.button-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    color: #FFFFFF;
}

.page {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(660px, 1.25fr) minmax(420px, 560px);
    align-items: center;
    gap: 68px;
    min-height: 0;
    padding: 54px 0 58px;
}

.hero::before {
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -1;
    content: "";
    background:
        linear-gradient(135deg, rgba(5, 139, 197, .2) 0%, transparent 34%),
        linear-gradient(160deg, #E6F6FC 0%, #D7EFFA 48%, #F7F7F8 100%);
    border-bottom: 1px solid var(--line);
}

.hero-brand {
    color: #FFFFFF;
}

.hero-brand::before {
    background:
        radial-gradient(circle at 76% 16%, rgba(255, 255, 255, .22), transparent 28%),
        linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 62%, #29A9D6 100%);
    border-bottom: 0;
}

.hero-brand h1,
.hero-brand .eyebrow {
    color: #FFFFFF;
}

.hero-brand .lede {
    color: rgba(255, 255, 255, .86);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
    line-height: 1.04;
}

h1 {
    max-width: 780px;
    font-size: clamp(21px, 1.6vw, 26px);
    font-weight: 700;
}

.hero h1 {
    max-width: 820px;
    margin: 8px 0 10px;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.08;
}

h2 {
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: 700;
}

h3 {
    font-size: 17px;
    font-weight: 650;
}

.lede {
    max-width: 800px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.28;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.device-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(7, 29, 73, .14);
    width: 100%;
    max-width: 680px;
    justify-self: end;
}

.device-panel img {
    border-radius: 20px;
    width: 100%;
}

.pain-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 360px;
    justify-self: end;
    margin-right: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
    padding: clamp(22px, 3vw, 34px);
    backdrop-filter: blur(18px);
}

.pain-panel h2 {
    max-width: 560px;
    color: #FFFFFF;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.12;
    transition: opacity .35s ease, transform .35s ease;
}

.pain-rotator {
    position: relative;
    min-height: 230px;
    margin-top: 16px;
    overflow: hidden;
}

.pain-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity .35s ease, transform .35s ease;
}

.pain-list li {
    position: relative;
    margin: 0;
    padding: 0 0 0 22px;
    color: #FFFFFF;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
    line-height: 1.25;
    animation: painItemIn .35s ease both;
}

.pain-list li::before {
    position: absolute;
    top: .62em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #FFFFFF;
    content: "";
}

@keyframes painItemIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pain-panel .is-clearing {
    opacity: 0;
    transform: translateY(-12px);
}

.metric-strip {
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .18), transparent 28%),
        linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #FFFFFF;
}

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.metric {
    min-height: 132px;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, .22);
}

.metric:last-child {
    border-right: 0;
}

.metric strong {
    display: block;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, .78);
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--surface-soft);
}

.section-brand {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .16), transparent 30%),
        linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #FFFFFF;
}

.section-brand h2,
.section-brand .eyebrow {
    color: #FFFFFF;
}

.section-brand .section-copy {
    color: rgba(255, 255, 255, .86);
}

main > .section,
main.page.section {
    position: relative;
    isolation: isolate;
}

main > .section::before,
main.page.section::before {
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -1;
    content: "";
    background: inherit;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 56px;
    align-items: start;
}

.section-copy {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.card {
    min-height: 220px;
    padding: 22px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.prose {
    max-width: 820px;
}

.prose p {
    margin: 0 0 16px;
    color: var(--muted);
}

.measure {
    max-width: 820px;
}

.center-text {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.category-heading {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 22px;
}

.checklist {
    margin: 22px 0 0;
    padding-left: 20px;
}

.checklist li {
    margin: 10px 0;
}

.card p,
.content-card p,
.quote-card p {
    margin: 14px 0 0;
    color: var(--muted);
}

.content-card {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: clamp(22px, 3.5vw, 40px);
    box-shadow: 0 18px 60px rgba(7, 29, 73, .08);
}

.content-card ul {
    margin: 22px 0 0;
    padding-left: 22px;
}

.content-card li {
    margin: 12px 0;
}

.dark-card {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: none;
}

.dark-card li {
    color: rgba(255, 255, 255, .9);
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
    gap: 56px;
    align-items: center;
}

.video-card {
    display: block;
    width: min(720px, calc(100% - 40px));
    margin: 30px auto 0 !important;
    justify-self: center;
    grid-column: 1 / -1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.video-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-card figcaption {
    padding: 14px 18px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
}

.video-section {
    background: var(--surface-soft);
}

.video-section .video-card {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 18px 60px rgba(7, 29, 73, .08);
}

.video-section .video-card figcaption {
    color: var(--text);
    font-weight: 700;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.quote-card {
    background: var(--surface);
    padding: 22px;
}

.quote-card cite {
    display: block;
    margin-top: 16px;
    color: var(--text);
    font-style: normal;
    font-weight: 650;
}

.quote-feature {
    max-width: 820px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(7, 29, 73, .08);
}

.quote-feature p {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.35;
}

.center-actions {
    justify-content: center;
}

.form-wrap {
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 72px;
}

.form-card {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: clamp(22px, 3.5vw, 40px);
    box-shadow: 0 18px 60px rgba(7, 29, 73, .08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.form-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
    gap: 48px;
    align-items: start;
}

.field {
    display: grid;
    gap: 8px;
}

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

label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100% !important;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    padding: 12px 14px;
    outline: none;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--accent);
}

.message {
    margin-top: 20px;
    font-weight: 650;
}

.site-footer {
    background: var(--accent);
    color: rgba(255, 255, 255, .78);
    padding: 52px 0 28px;
    font-size: 14px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 44px;
}

.site-footer__brand img {
    width: 128px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.site-footer__brand p {
    max-width: 440px;
    margin: 0;
}

.site-footer h4 {
    margin: 0 0 14px;
    color: #FFFFFF;
    font-size: 15px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.site-footer a:hover {
    color: #FFFFFF;
}

.site-footer__bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

@media (max-width: 900px) {
    .nav {
        display: flex;
        gap: 10px;
        min-height: 68px;
        padding: 10px 0;
    }

    .brand {
        flex: 0 0 auto;
    }

    .brand-line {
        display: none;
    }

    .nav-links {
        justify-content: flex-start;
        flex: 1 1 auto;
    }

    .nav > .button {
        flex: 0 0 auto;
    }

    .hero,
    .split,
    .feature-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .device-panel {
        justify-self: start;
        max-width: 560px;
    }

    .pain-panel {
        justify-self: start;
        max-width: 680px;
        height: 390px;
        margin-right: 0;
    }

    .hero {
        min-height: 0;
        padding-top: 48px;
    }

    .card-grid,
    .card-grid-four,
    .info-grid,
    .outcome-grid,
    .quote-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

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

    .metric,
    .card {
        border-right: 0;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 14px;
    }

    .page,
    .nav,
    .form-wrap {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: 22px;
    }

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