:root {
    --home-ink: #122448;
    --home-muted: #526581;
    --home-blue: #205ad8;
    --home-blue-dark: #1746b2;
    --home-line: #dce7f5;
    --home-heading: Rubik, sans-serif;
}

body {
    background: #fff;
    color: var(--home-ink);
}

:is(button, input, select, textarea, a):focus-visible {
    outline: 3px solid #3373e9;
    outline-offset: 4px;
}

#top, #search, #how-it-works, #advantages, #ai-results-section, #request-input {
    scroll-margin-top: 88px;
}

#toast-container {
    width: min(24rem, calc(100% - 2.5rem));
}

.home-shell {
    width: min(1136px, 100% - 2.5rem);
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid #e6edf7;
}

.site-header-row {
    gap: 1rem;
    min-height: 70px;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    white-space: nowrap;
    font: 800 1.35rem/1.2 var(--home-heading);
    letter-spacing: -.035em;
}

.home-brand > span:last-child span {
    color: var(--home-blue);
}

.home-brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: #fff;
    background: var(--home-blue);
    border-radius: 12px;
    box-shadow: 0 4px 10px #205ad82e;
}

.home-brand-mark svg {
    width: 21px;
    height: 21px;
}

.header-action {
    min-height: 42px;
    padding: .45rem .75rem;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s;
}

.header-action:hover {
    background: #edf4ff;
    border-color: #bfd5f6;
}

.header-action-business {
    color: var(--home-blue-dark);
    background: #f1f6ff;
    border-color: transparent;
}

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(ellipse at 50% 44%, #fff 12%, #f5f9ff 45%, transparent 80%),
        linear-gradient(160deg, #edf5ff, #e8f2ff 60%, #f7fbff);
    border-bottom: 1px solid #e4eefb;
}

.home-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(#477ccc19 1px, transparent 1px), linear-gradient(90deg, #477ccc19 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    mask-image: radial-gradient(ellipse at 50% 30%, transparent 22%, #000 75%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    padding-block: clamp(2.75rem, 4.4vw, 3.7rem) clamp(2.85rem, 4.1vw, 3.55rem);
}

.hero-intro, .hero-actions {
    position: relative;
    z-index: 1;
    animation: enter-home .36s ease-out both;
}

.hero-actions {
    animation-delay: .05s;
}

@keyframes enter-home {
    from { opacity: .6; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-kicker, .business-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem;
    border: 1px solid #d5e4fb;
    border-radius: 99px;
    background: #fff;
    color: var(--home-blue-dark);
    font-size: .9rem;
    font-weight: 800;
}

.hero-kicker i, .business-tag i {
    font-size: .78em;
}

.home-hero h1 {
    margin-block: .95rem .65rem;
    font-size: clamp(2.85rem, 6.65vw, 5.55rem);
    font-weight: 900;
    line-height: 1.09;
    letter-spacing: -.059em;
    text-wrap: balance;
}

.home-hero h1 span {
    white-space: nowrap;
}

.hero-accent {
    color: var(--home-blue);
}

.hero-subtitle {
    color: var(--home-muted);
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 700;
}

.hero-mic-frame {
    display: grid;
    place-items: center;
    position: relative;
    width: 158px;
    height: 158px;
    margin: .9rem auto .6rem;
}

.hero-mic-frame::before, .hero-mic-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #5c95f52b;
    border-radius: 50%;
    pointer-events: none;
}

.hero-mic-frame::after {
    inset: 12px;
    background: #dceaff8c;
    border-color: #a5c7fa75;
}

.hero-mic {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    color: #fff;
    background: linear-gradient(145deg, #397df1, #194dca 72%);
    border: 1px solid #427de3;
    border-radius: 50%;
    box-shadow: 0 13px 24px #215bd348, inset 0 1px #ffffff60;
    transition: transform .22s, box-shadow .22s;
}

.hero-mic:hover {
    transform: scale(1.065);
    box-shadow: 0 16px 28px #215bd368, inset 0 1px #ffffff60;
}

.hero-mic:active {
    transform: scale(.96);
}

.hero-mic svg {
    width: 43px;
    height: 43px;
}

.hero-voice-copy {
    font: 700 clamp(1.1rem, 2.45vw, 1.52rem)/1.4 var(--home-heading);
    text-wrap: balance;
}

.hero-description {
    margin-top: .32rem;
    color: var(--home-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    text-wrap: balance;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 54px;
    padding: .8rem 1.35rem;
    border-radius: 13px;
    background: var(--home-blue);
    color: #fff;
    font: 700 1rem/1.35 var(--home-heading);
    transition: transform .2s, background-color .2s, box-shadow .2s;
}

.home-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--home-blue-dark);
}

.home-cta i {
    font-size: .86em;
}

.hero-cta {
    min-width: 250px;
    margin-top: 1.42rem;
    box-shadow: 0 7px 18px #205ad837;
}

.hero-cta-note {
    margin-top: .65rem;
    color: var(--home-muted);
    font-size: .91rem;
    font-weight: 600;
}

.hero-cta-note i {
    margin-inline-end: .2rem;
    color: var(--home-blue);
    font-size: .78em;
}

.hero-decoration {
    position: absolute;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    top: 48%;
    border: 1px solid #d3e3fa;
    border-radius: 23px;
    background: #f8fbffdc;
    color: #5384dd;
    box-shadow: 0 14px 30px #4578c112;
    pointer-events: none;
}

.hero-decoration svg {
    width: 43px;
    height: 43px;
}

.hero-decoration-voice {
    inset-inline-start: 10%;
    transform: rotate(12deg);
}

.hero-decoration-mail {
    inset-inline-end: 10%;
    top: 55%;
    transform: rotate(-12deg);
}

.hero-spark {
    position: absolute;
    color: #7da4e9;
    font-size: 1.25rem;
    pointer-events: none;
}

.hero-spark-right {
    top: 68%;
    inset-inline-start: 22%;
}

.hero-spark-left {
    top: 43%;
    inset-inline-end: 20%;
}

.business-section {
    padding-block: clamp(2rem, 4.3vw, 3rem);
}

.business-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(225px, 34%);
    align-items: center;
    column-gap: 1.5rem;
    overflow: hidden;
    border-radius: 26px;
    padding: clamp(1.55rem, 4.35vw, 3.1rem);
    background: radial-gradient(ellipse at 16% 38%, #234a9b 0%, transparent 58%), #132d63;
    color: #fff;
}

.business-copy {
    position: relative;
    z-index: 1;
}

.business-tag {
    border-color: #789ce366;
    background: #81a9f11a;
    color: #def0ff;
}

.business-copy h2, .search-intro h2 {
    margin-block: .65rem .48rem;
    font-weight: 800;
    font-size: clamp(1.75rem, 3.7vw, 2.65rem);
    line-height: 1.22;
    letter-spacing: -.038em;
    text-wrap: balance;
}

.business-copy > p:not(.business-tag) {
    max-width: 33rem;
    color: #dfebff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.business-cta {
    min-height: 47px;
    margin-top: 1.1rem;
    background: #fff;
    color: var(--home-blue-dark);
}

.business-cta:hover:not(:disabled) {
    background: #dfecff;
}

.business-illustration {
    width: 100%;
    max-height: 240px;
}

.search-section {
    padding-block: clamp(2.3rem, 5vw, 4.2rem);
    background: #f4f8fe;
    border-block: 1px solid #e8f0fa;
}

.search-intro {
    margin: 0 auto 1.55rem;
    text-align: center;
}

.section-eyebrow {
    color: var(--home-blue-dark);
    font-weight: 800;
    font-size: .95rem;
}

.search-intro p {
    max-width: 36rem;
    margin-inline: auto;
    color: var(--home-muted);
    font-size: 1.07rem;
    text-wrap: pretty;
}

.search-panel {
    border: 1px solid var(--home-line);
    box-shadow: 0 12px 36px #224c8c0d;
}

.search-cta {
    font-size: 1.12rem;
}

.step-number {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border: 1px solid #d5e4fb;
    border-radius: 13px;
    background: #eaf3ff;
    color: var(--home-blue-dark);
    font: 800 1.14rem/1 var(--home-heading);
}

@media (max-width: 767px) {
    .hero-decoration {
        width: 57px;
        height: 57px;
        border-radius: 16px;
        inset-inline-start: 6%;
    }

    .hero-decoration-mail {
        inset-inline-start: auto;
        inset-inline-end: 6%;
    }

    .hero-decoration svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 639px) {
    .home-shell {
        width: calc(100% - 2rem);
    }

    .site-header-row {
        gap: .35rem;
        min-height: 60px;
    }

    .home-brand {
        gap: .45rem;
        font-size: clamp(1.05rem, 5vw, 1.28rem);
    }

    .home-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .header-action {
        padding-inline: .55rem;
    }

    .hero-inner {
        padding-block: 2.55rem 2.7rem;
    }

    .home-hero h1 {
        font-size: clamp(2.4rem, 9vw, 3.45rem);
    }

    .hero-mic-frame {
        width: 138px;
        height: 138px;
    }

    .hero-mic {
        width: 90px;
        height: 90px;
    }

    .hero-mic svg {
        width: 38px;
        height: 38px;
    }

    .hero-decoration {
        top: 41%;
        opacity: .75;
    }

    .hero-decoration-mail {
        top: 45%;
    }

    .hero-spark {
        display: none;
    }

    .business-banner {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 21px;
    }

    .business-illustration {
        position: absolute;
        inset-inline-end: -36px;
        bottom: -70px;
        width: 220px;
        opacity: .24;
    }
}

@media (max-width: 360px) {
    .hero-decoration {
        display: none;
    }

    .hero-cta {
        min-width: min(250px, 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.scroll-smooth {
        scroll-behavior: auto;
    }

    .hero-intro, .hero-actions, .mic-recording, .wave-bar,
    #ai-scanning-box .animate-bounce, #ai-scanning-box .animate-ping {
        animation: none;
    }

    .home-cta, .hero-mic {
        transition: none;
    }

    .home-cta:hover:not(:disabled), .hero-mic:hover, .hero-mic:active {
        transform: none;
    }
}
