* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fbff;
    color: #25324c;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

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


/* ─────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────── */

.site-header {
    width: min(1180px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-logo {
    display: block;
    flex: 0 0 auto;
}

.header-logo img {
    display: block;
    width: 138px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14px;
    font-weight: 700;
    color: #53627e;
}

.main-nav a {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: #3169ed;
}

.main-nav a.active {
    color: #3169ed;
}

.main-nav .nav-play {
    color: #ffffff;
    background: #3169ed;
    padding: 12px 20px;
    border-radius: 11px;
    box-shadow: 0 7px 18px rgba(49, 105, 237, 0.18);
}

.main-nav .nav-play:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-play span {
    margin-left: 5px;
}


/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */

.faq-hero {
    width: min(1080px, calc(100% - 48px));
    min-height: 390px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 45px;
}

.faq-hero-copy {
    padding: 35px 0 30px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #3169ed;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.faq-hero h1 {
    margin: 18px 0 15px;
    color: #25324c;
    font-size: clamp(44px, 5vw, 66px);
    line-height: 0.99;
    letter-spacing: -0.045em;
    font-weight: 850;
}

.faq-hero h1 span {
    color: #3169ed;
}

.faq-hero-copy p {
    max-width: 530px;
    margin: 0;
    color: #697892;
    font-size: 18px;
    line-height: 1.65;
}


/* ─────────────────────────────────────────────
   ROBOT ILLUSTRATION
   ───────────────────────────────────────────── */

.faq-illustration {
    position: relative;
    height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.robot-shadow {
    position: absolute;
    bottom: 18px;
    width: 245px;
    height: 25px;
    border-radius: 50%;
    background: rgba(47, 75, 125, 0.10);
    filter: blur(7px);
}

.robot {
    position: absolute;
    bottom: 52px;
    width: 180px;
    height: 205px;
}

.robot-head {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 28px;
    width: 124px;
    height: 102px;
    border: 5px solid #25324c;
    border-radius: 30px;
    background: #f2f7ff;
    box-shadow: 0 10px 0 #dfe8f7;
}

.robot-antenna {
    position: absolute;
    z-index: 1;
    top: -27px;
    left: 85px;
    width: 5px;
    height: 27px;
    background: #25324c;
}

.robot-antenna::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #ffcf32;
    border: 4px solid #25324c;
}

.robot-face {
    position: absolute;
    top: 31px;
    left: 26px;
    right: 26px;
    display: flex;
    justify-content: space-between;
}

.robot-face span {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #3169ed;
}

.robot-mouth {
    position: absolute;
    left: 45px;
    bottom: 21px;
    width: 28px;
    height: 9px;
    border-bottom: 4px solid #25324c;
    border-radius: 50%;
}

.robot-body {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 42px;
    width: 98px;
    height: 115px;
    border: 5px solid #25324c;
    border-radius: 27px 27px 22px 22px;
    background: #ffffff;
    box-shadow: 0 10px 0 #dfe8f7;
}

.robot-panel {
    position: absolute;
    top: 28px;
    left: 22px;
    right: 22px;
    height: 38px;
    border-radius: 11px;
    background: #edf3fd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.robot-panel div {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3169ed;
}

.robot-panel div:nth-child(2) {
    background: #ffcf32;
}

.robot-panel div:nth-child(3) {
    background: #7b63e8;
}

.robot-arm {
    position: absolute;
    z-index: 1;
    width: 26px;
    height: 78px;
    border: 5px solid #25324c;
    background: #e9f1ff;
    border-radius: 18px;
    bottom: 17px;
}

.robot-arm.left {
    left: 15px;
    transform: rotate(18deg);
}

.robot-arm.right {
    right: 15px;
    transform: rotate(-20deg);
}

.book {
    position: absolute;
    z-index: 5;
    bottom: 31px;
    width: 174px;
    height: 86px;
    display: flex;
    transform: rotate(-4deg);
    filter: drop-shadow(0 8px 8px rgba(37, 50, 76, 0.12));
}

.book-page {
    position: relative;
    width: 50%;
    height: 100%;
    background: #ffffff;
    border: 4px solid #25324c;
    padding: 17px 12px;
}

.book-page.left-page {
    border-right: 2px solid #25324c;
    border-radius: 10px 2px 2px 10px;
    transform: skewY(4deg);
}

.book-page.right-page {
    border-left: 2px solid #25324c;
    border-radius: 2px 10px 10px 2px;
    transform: skewY(-4deg);
}

.book-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffd83d;
    opacity: 0.18;
    pointer-events: none;
}

.page-line {
    display: block;
    position: relative;
    z-index: 2;
    width: 72%;
    height: 5px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: #d8e3f3;
}

.page-line.long {
    width: 88%;
}

.page-line.short {
    width: 55%;
}

.bubble {
    position: absolute;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 23px;
    font-weight: 850;
    border: 3px solid #25324c;
    box-shadow: 0 7px 0 rgba(37, 50, 76, 0.08);
}

.bubble-one {
    top: 35px;
    left: 17%;
    background: #ffd83d;
    transform: rotate(-10deg);
}

.bubble-two {
    top: 75px;
    right: 8%;
    background: #8ce0b0;
    transform: rotate(9deg);
}

.bubble-three {
    top: 4px;
    right: 29%;
    width: 35px;
    height: 35px;
    background: #a995f5;
    font-size: 17px;
    transform: rotate(8deg);
}


/* ─────────────────────────────────────────────
   FAQ LIST
   ───────────────────────────────────────────── */

.faq-section {
    width: min(860px, calc(100% - 40px));
    margin: 12px auto 80px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.faq-item {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2eaf5;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(37, 50, 76, 0.025);
}

.faq-question {
    width: 100%;
    min-height: 76px;
    padding: 13px 20px;
    border: 0;
    background: transparent;
    color: #25324c;
    display: grid;
    grid-template-columns: 42px 1fr 25px;
    align-items: center;
    gap: 15px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.faq-question-text {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 750;
}

.faq-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 850;
}

.icon-blue {
    background: #e8f0ff;
    color: #3169ed;
}

.icon-yellow {
    background: #fff4c9;
    color: #d59b00;
}

.icon-purple {
    background: #eee9ff;
    color: #7259d9;
}

.icon-green {
    background: #e2f8eb;
    color: #28a764;
}

.icon-orange {
    background: #fff0df;
    color: #e98725;
}

.icon-pink {
    background: #ffe6ef;
    color: #d94f83;
}

.faq-chevron {
    color: #8794aa;
    font-size: 24px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.faq-answer p {
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 82px;
    color: #697892;
    font-size: 15px;
    line-height: 1.7;
}

.faq-answer a {
    color: #3169ed;
    font-weight: 700;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
    padding-bottom: 22px;
}


/* ─────────────────────────────────────────────
   SUPPORT CALLOUT
   ───────────────────────────────────────────── */

.faq-support {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto 75px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 20px;
    border-radius: 20px;
    background: #3169ed;
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(49, 105, 237, 0.18);
}

.faq-support-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd83d;
    color: #25324c;
    font-size: 23px;
    font-weight: 850;
}

.faq-support-copy h2 {
    margin: 0 0 5px;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.faq-support-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.5;
}

.faq-support-button {
    padding: 13px 19px;
    border-radius: 11px;
    background: #ffffff;
    color: #3169ed;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.faq-support-button span {
    margin-left: 5px;
}


/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */

.site-footer {
    width: 100%;
    min-height: 78px;
    padding: 18px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    border-top: 1px solid #e6edf5;
    color: #53627e;
    font-size: 14px;
    font-weight: 700;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 20px;
    border-right: 1px solid #dce4ee;
    flex: 0 0 auto;
}

.footer-brand img {
    display: block;
    width: 115px;
    height: auto;
}

.footer-brand span {
    display: none;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding-right: 20px;
    border-right: 1px solid #dce4ee;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #3169ed;
}

.coffee-link {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.coffee-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd21a;
    color: #25324c;
    font-size: 15px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 25px;
    color: #25324c;
}

.social-links a:hover {
    color: #3169ed;
}


/* ─────────────────────────────────────────────
   TABLET
   ───────────────────────────────────────────── */

@media (max-width: 900px) {

    .site-header {
        width: calc(100% - 36px);
    }

    .main-nav {
        gap: 20px;
    }

    .faq-hero {
        grid-template-columns: 1fr 0.8fr;
        gap: 20px;
    }

    .faq-hero h1 {
        font-size: clamp(42px, 6vw, 58px);
    }

    .footer-links {
        gap: 15px;
    }

}


/* ─────────────────────────────────────────────
   MOBILE
   ───────────────────────────────────────────── */

@media (max-width: 760px) {

    .site-header {
        width: calc(100% - 32px);
        min-height: 72px;
    }

    .header-logo img {
        width: 126px;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav > a:not(.nav-play) {
        display: none;
    }

    .main-nav .nav-play {
        padding: 11px 16px;
        font-size: 13px;
    }


    .faq-hero {
        width: calc(100% - 32px);
        min-height: 0;
        margin-top: 5px;
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .faq-hero-copy {
        padding: 30px 0 0;
    }

    .eyebrow {
        font-size: 11px;
    }

    .faq-hero h1 {
        margin-top: 15px;
        font-size: clamp(40px, 12vw, 54px);
        line-height: 1.02;
    }

    .faq-hero-copy p {
        max-width: 520px;
        margin: 0 auto;
        font-size: 16px;
        line-height: 1.55;
    }

    .faq-illustration {
        width: 100%;
        height: 275px;
        margin-top: 5px;
        transform: scale(0.84);
        transform-origin: center top;
    }


    .faq-section {
        width: calc(100% - 24px);
        margin-top: -8px;
        margin-bottom: 55px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-question {
        min-height: 68px;
        padding: 10px 13px;
        grid-template-columns: 38px 1fr 20px;
        gap: 11px;
    }

    .faq-icon {
        width: 37px;
        height: 37px;
        font-size: 15px;
    }

    .faq-question-text {
        font-size: 14px;
    }

    .faq-chevron {
        font-size: 21px;
    }

    .faq-answer p {
        padding: 0 62px;
        font-size: 14px;
        line-height: 1.6;
    }

    .faq-item.open .faq-answer p {
        padding-bottom: 18px;
    }


    .faq-support {
        width: calc(100% - 24px);
        margin-bottom: 45px;
        padding: 22px 20px;
        grid-template-columns: 46px 1fr;
        gap: 15px;
        border-radius: 17px;
    }

    .faq-support-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .faq-support-copy h2 {
        font-size: 19px;
    }

    .faq-support-copy p {
        font-size: 13px;
    }

    .faq-support-button {
        grid-column: 1 / -1;
        text-align: center;
        padding: 12px 16px;
    }


    .site-footer {
        width: 100%;
        min-height: 0;
        margin-top: 0;
        padding: 22px 18px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "links links"
            "coffee social";
        align-items: center;
        gap: 18px 0;
    }

    .site-footer .footer-brand {
        grid-area: brand;
        width: 100%;
        padding: 0 0 16px;
        justify-content: center;
        border: 0;
        border-bottom: 1px solid #dce4ee;
    }

    .site-footer .footer-links {
        grid-area: links;
        width: 100%;
        padding: 0 0 4px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 18px;
        border: 0;
        white-space: normal;
    }

    .site-footer .coffee-link {
        grid-area: coffee;
        padding: 0 18px 0 0;
        border: 0;
        border-right: 1px solid #dce4ee;
        justify-self: end;
        font-size: 13px;
    }

    .site-footer .social-links {
        grid-area: social;
        justify-self: start;
        gap: 17px;
        font-size: 23px;
    }
}


/* ─────────────────────────────────────────────
   SMALL PHONES
   ───────────────────────────────────────────── */

@media (max-width: 420px) {

    .site-header {
        width: calc(100% - 24px);
    }

    .header-logo img {
        width: 116px;
    }

    .main-nav .nav-play {
        padding: 10px 13px;
        font-size: 12px;
    }

    .faq-hero h1 {
        font-size: 39px;
    }

    .faq-hero-copy p {
        font-size: 15px;
    }

    .faq-illustration {
        height: 255px;
        transform: scale(0.73);
    }

    .faq-section {
        width: calc(100% - 18px);
    }

    .faq-question {
        grid-template-columns: 34px 1fr 18px;
        gap: 9px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .faq-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .faq-question-text {
        font-size: 13px;
    }

    .faq-answer p {
        padding-left: 53px;
        padding-right: 25px;
        font-size: 13px;
    }

    .faq-support {
        width: calc(100% - 18px);
    }

    .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-footer .footer-links {
        gap: 9px 14px;
        font-size: 13px;
    }

    .site-footer .coffee-link {
        font-size: 12px;
        padding-right: 13px;
    }

    .site-footer .social-links {
        gap: 14px;
        font-size: 21px;
    }
}
