:root {
    color-scheme: light;
    --ink: #17212b;
    --muted: #5b6875;
    --surface: rgba(255, 255, 255, 0.95);
    --soft: #edf3f5;
    --line: #dbe3ea;
    --primary: #2b5870;
    --primary-dark: #1e4053;
    --warm: #ffad47;
    --warm-soft: #fff1d8;
    --teal: #74cbc4;
    --error: #a52626;
    --success: #17643a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: #f4f7f9;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(116, 203, 196, 0.22), transparent 28rem),
        radial-gradient(circle at 90% 4%, rgba(255, 173, 71, 0.18), transparent 26rem),
        linear-gradient(145deg, #f9fbfc 0%, #edf2f5 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(43, 88, 112, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 88, 112, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary);
}

figure {
    margin: 0;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1,
h2,
h3 {
    margin: 0;
    text-wrap: balance;
}

h1 {
    max-width: 900px;
    font-size: clamp(3rem, 4.2vw, 4.7rem);
    font-weight: 760;
    letter-spacing: -0.062em;
    line-height: 0.98;
}

.hero-copy h1 span {
    display: block;
}

h2 {
    font-size: clamp(2rem, 4.1vw, 3.75rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

h3 {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(219, 227, 234, 0.8);
    background: rgba(249, 251, 252, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    width: min(1440px, calc(100% - 2rem));
    min-height: 74px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    gap: 0.7rem;
    align-items: center;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 780;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: clamp(0.75rem, 2.2vw, 1.8rem);
    align-items: center;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 680;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ink);
}

.site-nav .demo-link {
    padding: 0.58rem 0.78rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.74);
}

.hero,
.enrollment-band,
.flow-section,
.privacy-band,
.contact-section,
footer {
    width: min(1440px, calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(500px, 0.88fr);
    gap: clamp(2.5rem, 4vw, 4.5rem);
    align-items: center;
    min-height: min(790px, calc(100vh - 74px));
    padding: clamp(4rem, 9vh, 7rem) 0;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-lede {
    max-width: 650px;
    margin: 1.7rem 0 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-top: 2rem;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.78rem 1.15rem;
    border-radius: 12px;
    font-weight: 760;
    text-decoration: none;
}

.primary-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(43, 88, 112, 0.2);
    color: #fff;
}

.secondary-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

.hero-flow {
    display: flex;
    gap: 1.6rem;
    margin: 2.2rem 0 0;
    padding: 0;
    color: var(--muted);
    counter-reset: hero-flow;
    font-size: 0.82rem;
    font-weight: 720;
    list-style: none;
}

.hero-flow li {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 1.15rem;
}

.hero-flow li::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--warm);
    content: "";
    transform: translateY(-50%);
}

.hero-flow li:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -1rem;
    color: #a4afb8;
    content: "→";
    line-height: 1;
    transform: translateY(-50%);
}

.hero-product {
    position: relative;
    min-height: 590px;
}

.hero-product::before {
    position: absolute;
    inset: 6% 0 10% 7%;
    border-radius: 42px;
    background: linear-gradient(140deg, rgba(116, 203, 196, 0.42), rgba(255, 173, 71, 0.3));
    content: "";
    transform: rotate(-3deg);
}

.hero-dashboard,
.dashboard-frame {
    overflow: hidden;
    border: 1px solid rgba(43, 88, 112, 0.16);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(31, 55, 70, 0.17);
}

.hero-dashboard {
    position: absolute;
    top: 11%;
    right: 0;
    width: 98%;
}

.hero-dashboard img,
.dashboard-frame img {
    width: 100%;
    height: auto;
}

.phone-frame {
    overflow: hidden;
    border: 7px solid #1a1d20;
    border-radius: 28px;
    background: #111;
    box-shadow: 0 22px 55px rgba(18, 27, 33, 0.24);
}

.phone-frame img {
    width: 100%;
    height: auto;
}

.hero-phone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(33%, 230px);
    transform: rotate(-3deg);
}

.enrollment-band {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    margin-bottom: clamp(5rem, 9vw, 8rem);
    padding: clamp(1.5rem, 3.5vw, 2.4rem);
    border: 1px solid rgba(43, 88, 112, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 55px rgba(44, 66, 79, 0.08);
    scroll-margin-top: 96px;
}

.enrollment-visual {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: center;
    justify-content: center;
}

.enrollment-visual > img {
    width: clamp(92px, 12vw, 142px);
    height: clamp(92px, 12vw, 142px);
    flex: 0 0 auto;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(20, 30, 36, 0.18);
}

.enrollment-arrow {
    color: var(--primary);
    font-size: 1.8rem;
}

.qr-symbol {
    position: relative;
    width: clamp(82px, 10vw, 112px);
    flex: 0 0 auto;
    aspect-ratio: 1;
    border: 9px solid #fff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 55, 70, 0.13);
}

.qr-corner,
.qr-module {
    position: absolute;
    display: block;
    background: var(--primary-dark);
}

.qr-corner {
    width: 29%;
    aspect-ratio: 1;
    border: 4px solid var(--primary-dark);
    background: #fff;
}

.qr-corner::after {
    position: absolute;
    inset: 24%;
    background: var(--primary-dark);
    content: "";
}

.qr-corner-top-left {
    top: 0;
    left: 0;
}

.qr-corner-top-right {
    top: 0;
    right: 0;
}

.qr-corner-bottom-left {
    bottom: 0;
    left: 0;
}

.qr-module-one {
    right: 32%;
    bottom: 7%;
    width: 13%;
    height: 26%;
}

.qr-module-two {
    right: 8%;
    bottom: 8%;
    width: 15%;
    height: 13%;
}

.qr-module-three {
    right: 7%;
    bottom: 30%;
    width: 25%;
    height: 12%;
}

.qr-module-four {
    top: 42%;
    left: 42%;
    width: 13%;
    height: 14%;
}

.enrollment-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.enrollment-copy p:last-child {
    max-width: 680px;
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.65;
}

.flow-section {
    padding: 1rem 0 clamp(5rem, 9vw, 8rem);
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.section-heading > p:last-child {
    max-width: 650px;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.flow-list {
    display: grid;
    gap: clamp(5rem, 11vw, 10rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-step {
    display: grid;
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: center;
}

.flow-step-reverse {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

.flow-step-reverse .step-copy {
    grid-column: 2;
    grid-row: 1;
}

.flow-step-reverse .dashboard-frame {
    grid-column: 1;
    grid-row: 1;
}

.step-copy {
    max-width: 480px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    background: var(--warm-soft);
    color: #8a5400;
    font-size: 0.82rem;
    font-weight: 850;
}

.step-kicker {
    margin: 0 0 0.6rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.step-copy > p:not(.step-kicker):not(.review-note) {
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.72;
}

.step-phone {
    width: min(100%, 380px);
    justify-self: center;
}

.suggestion-frame {
    transform: rotate(-1deg);
}

.hero-dashboard,
.hero-phone,
.step-phone,
.suggestion-frame,
.review-frame,
.delivery-phones .phone-frame {
    transform-origin: center;
    transition:
        transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 280ms ease;
}

.flow-step-delivery {
    grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1.58fr);
}

.review-note {
    display: inline-block;
    margin: 1.35rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: var(--warm-soft);
    color: #6c4405;
    font-size: 0.92rem;
    font-weight: 780;
}

.delivery-path {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 84px minmax(310px, 0.75fr);
    gap: 1.25rem;
    align-items: center;
}

.delivery-arrow {
    display: grid;
    gap: 0.7rem;
    justify-items: center;
    color: var(--primary);
    text-align: center;
}

.delivery-arrow span {
    position: relative;
    display: block;
    width: 64px;
    height: 2px;
    background: var(--primary);
}

.delivery-arrow span::after {
    position: absolute;
    top: -5px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    content: "";
    transform: rotate(45deg);
}

.delivery-arrow strong {
    font-size: 0.72rem;
    line-height: 1.35;
}

.delivery-phones {
    position: relative;
    width: min(100%, 360px);
    min-height: 470px;
}

.delivery-phones .phone-frame {
    width: 61%;
    border-width: 5px;
    border-radius: 19px;
}

.phone-history {
    position: absolute;
    top: 3.3rem;
    right: 0;
    margin: 0;
}

@media (hover: hover) and (pointer: fine) {
    .hero-dashboard:hover,
    .review-frame:hover {
        box-shadow: 0 34px 82px rgba(31, 55, 70, 0.22);
        transform: perspective(1200px) translateY(-6px) rotateX(1.5deg) rotateY(-2deg) scale(1.008);
    }

    .hero-phone:hover {
        box-shadow: 0 28px 66px rgba(18, 27, 33, 0.3);
        transform: perspective(900px) translateY(-6px) rotateX(2deg) rotateY(3deg) rotateZ(-3deg) scale(1.018);
    }

    .step-phone:hover,
    .delivery-phones .phone-frame:hover {
        box-shadow: 0 28px 66px rgba(18, 27, 33, 0.3);
        transform: perspective(900px) translateY(-6px) rotateX(2deg) rotateY(-3deg) scale(1.015);
    }

    .suggestion-frame:hover {
        box-shadow: 0 34px 82px rgba(31, 55, 70, 0.22);
        transform: perspective(1200px) translateY(-6px) rotateX(1.5deg) rotateY(2deg) rotateZ(-1deg) scale(1.008);
    }
}

.privacy-band {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    margin-bottom: clamp(5rem, 9vw, 8rem);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 32px;
    background: linear-gradient(140deg, var(--primary-dark), #173342);
    box-shadow: 0 28px 70px rgba(30, 64, 83, 0.18);
    color: #fff;
}

.eyebrow-light {
    color: var(--teal);
}

.privacy-band p:not(.eyebrow) {
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 1.05rem;
    line-height: 1.72;
}

.privacy-band a {
    display: inline-block;
    margin-top: 1.25rem;
    color: #fff;
    font-weight: 760;
    text-decoration-color: var(--warm);
    text-underline-offset: 0.28rem;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.contact-intro {
    max-width: 570px;
}

.contact-intro > p:not(.eyebrow) {
    margin: 1.2rem 0 1rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.email-link {
    display: inline-block;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid var(--warm);
    color: var(--ink);
    font-weight: 720;
    text-decoration: none;
}

.email-link:hover {
    color: var(--primary);
}

.contact-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(40, 56, 68, 0.14);
    backdrop-filter: blur(14px);
}

.contact-heading > p:last-child {
    margin: 0.65rem 0 1.75rem;
    color: var(--muted);
    line-height: 1.6;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.42rem;
}

label {
    font-size: 0.92rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.45;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

input {
    min-height: 48px;
    padding: 0.72rem 0.85rem;
}

textarea {
    min-height: 132px;
    padding: 0.78rem 0.85rem;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 88, 112, 0.08);
}

input:focus,
textarea:focus,
.submit-button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(43, 88, 112, 0.25);
    outline-offset: 3px;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 0.3rem;
    padding: 0.78rem 1.2rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 24px rgba(43, 88, 112, 0.2);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(43, 88, 112, 0.26);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.field-error,
.validation-summary {
    color: var(--error);
    font-size: 0.86rem;
}

.field-error:empty,
.validation-summary:empty {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.notice {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.93rem;
    line-height: 1.5;
}

.notice-success {
    border: 1px solid #a9d8bd;
    background: #edf9f1;
    color: var(--success);
}

.notice-error {
    border: 1px solid #e9b6b6;
    background: #fff3f3;
    color: var(--error);
}

.privacy-note {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.privacy-shell {
    width: min(860px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.privacy-back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.privacy-document h1 {
    font-size: clamp(2.4rem, 7vw, 4rem);
}

.privacy-document-header,
.privacy-document section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.privacy-document section {
    padding-top: 1.5rem;
}

.privacy-document section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.privacy-document h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.25;
}

.privacy-document p,
.privacy-document li {
    line-height: 1.7;
}

.privacy-document ul {
    padding-left: 1.4rem;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(620px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
}

.error-page p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.button-link {
    min-width: 160px;
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        max-width: 800px;
    }

    .hero-product {
        min-height: 560px;
    }

    .flow-step,
    .flow-step-delivery {
        grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
        gap: 2.5rem;
    }

    .flow-step-reverse {
        grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
    }

    .delivery-path {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .delivery-arrow {
        grid-template-columns: 64px auto;
        justify-content: center;
        align-items: center;
    }

    .delivery-arrow span {
        transform: rotate(90deg);
    }

    .delivery-phones {
        width: min(100%, 430px);
        min-height: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        min-height: auto;
        padding: 0.85rem 0;
    }

    .site-nav {
        gap: 0.75rem;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .site-nav > a:not(.demo-link) {
        display: none;
    }

    .hero,
    .enrollment-band,
    .flow-section,
    .privacy-band,
    .contact-section,
    footer {
        width: min(100% - 1.25rem, 680px);
    }

    .hero {
        padding-top: 3.2rem;
    }

    h1 {
        font-size: clamp(2.8rem, 13vw, 4.6rem);
    }

    .hero-flow {
        display: grid;
        gap: 0.8rem;
    }

    .hero-flow li:not(:last-child)::after {
        display: none;
    }

    .hero-product {
        min-height: 410px;
    }

    .hero-dashboard {
        top: 8%;
        width: 94%;
    }

    .hero-phone {
        width: 31%;
    }

    .enrollment-band,
    .privacy-band,
    .contact-section,
    .flow-step,
    .flow-step-delivery {
        grid-template-columns: 1fr;
    }

    .enrollment-visual {
        justify-content: flex-start;
    }

    .flow-step-reverse .step-copy,
    .flow-step-reverse .dashboard-frame {
        grid-column: auto;
        grid-row: auto;
    }

    .flow-step-reverse .step-copy {
        order: 0;
    }

    .flow-step-reverse .dashboard-frame {
        order: 1;
    }

    .step-phone {
        width: min(78%, 360px);
    }

    .contact-intro {
        padding-top: 1rem;
    }

    footer {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-product {
        min-height: 315px;
    }

    .hero-phone {
        width: 35%;
    }

    .enrollment-band,
    .privacy-band,
    .contact-card {
        padding: 1.3rem;
        border-radius: 20px;
    }

    .qr-symbol {
        border-width: 6px;
    }

    .delivery-phones {
        min-height: 430px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero-dashboard:hover,
    .step-phone:hover,
    .review-frame:hover,
    .delivery-phones .phone-frame:hover {
        transform: none;
    }

    .hero-phone:hover {
        transform: rotate(-3deg);
    }

    .suggestion-frame:hover {
        transform: rotate(-1deg);
    }
}
