:root {
    --bg-white: #ffffff;
    --bg-tint: #f5f7fb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --line: #e5e7eb;
    --primary: #097fe8;
    --primary-dark: #076fcf;
    --chat-color: #6156df;
    --chat-color-dark: #5348d4;
    --surface: rgba(255, 255, 255, 0.78);
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: rgba(229, 231, 235, 0.8);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: 54px;
    height: auto;
}

.site-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a,
.text-link {
    color: #000000e5;
    font-size: 0.96rem;
    font-weight: 500;
}

.site-nav a.is-active {
    color: var(--primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: #111827;
    color: #ffffff;
}

.button-primary:hover {
    background: #0b1220;
}

.button-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--line);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text-primary);
    border-radius: 999px;
}

.section {
    padding: 66px 0;
}

.section-white {
    background: var(--bg-white);
}

.section-tint {
    background: var(--bg-tint);
}

.hero {
    padding-top: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eyebrow,
.section-label,
.card-kicker {
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 {
    width: min(1000px, 100%);
    margin: 0;
    font-size: clamp(3.1rem, 7vw, 4.1rem);
    line-height: 1.02;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 15px 31px;
    border-radius: 999px;
    background: #d9fdd3;
    color: #111827;
    font-size: inherit;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.hero-ai-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: -10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #6728dc;
    background: #f0eaff;
    font-size: clamp(0.62rem, 0.8vw, 0.62rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    transform: translateY(-15px);
}

.hero-copy,
.section-copy p,
.feature-list p,
.faq-item p,
.stat-card span {
    color: var(--text-secondary);
    font-size: 1.75rem;
    line-height: 1.7;
}

.hero-copy {
    width: min(1000px, 100%);
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.hero-visual {
    width: min(1280px, calc(100vw - 40px));
    margin-top: 15px;
    padding: 0px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.72));
    box-shadow: var(--shadow-soft);
}

.hero-visual img {
    border-radius: 24px;
    width: 100%;
    height: auto;
}

.section-grid,
.faq-layout,
.stats-layout {
    display: grid;
    gap: 48px;
    align-items: start;
}

.section-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.product-section {
    overflow: hidden;
    padding: 52px 0;
}

.product-section-secondary {
    border-top: 1px solid rgba(229, 231, 235, 0.72);
}

.product-layout {
    width: min(calc(100% - 40px), 1280px);
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(44px, 5vw, 78px);
}

.product-layout-reverse {
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
}

.product-layout-reverse .product-visual {
    order: -1;
    padding: 62px 62px 0 0;
}

.product-layout-reverse .product-visual-image {
    border-radius: 0 7px 0 0;
}

.product-layout-reverse .product-visual-frame::after {
    right: 0;
    left: auto;
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
}

.product-copy {
    max-width: 530px;
}

.product-section-with-faq .product-layout {
    grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
}

.product-details {
    display: grid;
    align-content: center;
    gap: 30px;
}

.product-feature-faq {
    width: 100%;
}

.how-it-works {
    background: #f6f5f4;
}

.section.how-it-works {
    padding-bottom: 36px;
}

.how-it-works-shell {
    width: min(calc(100% - 40px), 1280px);
}

.how-it-works-heading {
    max-width: 700px;
    margin: 0 auto 58px;
    text-align: center;
}

.how-it-works-heading h2 {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.how-it-works-heading > p:last-child {
    margin: 20px auto 0;
    color: var(--text-secondary);
    font-size: 1.12rem;
    line-height: 1.6;
}

.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.steps-grid::before {
    content: none;
}

.step-card {
    position: relative;
    z-index: 1;
    padding: 30px;
    text-align: center;
    border: 1px solid #e5e2df;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(37, 55, 98, 0.07);
}

.step-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    color: #050505;
    background: transparent;
}

.step-visual svg {
    width: 48px;
    height: 48px;
}

.step-number {
    position: absolute;
    top: -12px;
    right: -12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 4px solid #f6f5f4;
    border-radius: 50%;
    color: var(--text-primary);
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.step-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.step-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.site-meta-bar {
    padding: 10px 0 64px;
    background: #f6f5f4;
}

.help-meta-bar {
    background: transparent;
}

.site-meta {
    width: min(calc(100% - 40px), 1280px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}

.site-copyright,
.site-meta-links a,
.site-meta-links .is-active {
    color: #383838;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-meta-links {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 34px;
}

.site-meta-links a {
    font-weight: 700;
    transition: color 0.2s ease;
}

.site-meta-links .is-active {
    color: var(--primary);
    font-weight: 700;
}

.site-meta-links a:hover {
    color: #000000;
}

.pricing-main {
    background: #090909;
}

.pricing-section {
    padding: 84px 0 100px;
    color: #ffffff;
    background: #090909;
}

.pricing-shell {
    width: min(calc(100% - 40px), 1280px);
}

.pricing-heading {
    max-width: 790px;
    margin: 0 auto 58px;
    text-align: center;
}

.pricing-heading .section-label {
    color: #12afe1;
}

.pricing-heading h1 {
    margin: 0;
    font-size: clamp(2.55rem, 5vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.pricing-heading > p:last-child {
    max-width: 680px;
    margin: 22px auto 0;
    color: #a7a7a7;
    font-size: 1.08rem;
    line-height: 1.65;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.pricing-card {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    background: #1b1b1b;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
}

.pricing-card-featured {
    position: relative;
    padding: 48px 5px 5px;
    border: 0;
    background: #12afe1;
}

.featured-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #061017;
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-card-content {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 34px 30px 38px;
}

.pricing-card-featured .pricing-card-content {
    min-height: calc(100% - 1px);
    border-radius: 11px;
    background: #1b1b1b;
}

.pricing-card-kicker {
    min-height: 22px;
    margin: 0 0 12px;
    color: #a9a9a9;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h2 {
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 18px;
}

.plan-price strong {
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.025em;
}

.plan-price span {
    color: #a9a9a9;
    font-size: 0.88rem;
}

.plan-capacity {
    display: flex;
    min-height: 88px;
    align-items: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.plan-capacity strong {
    font-size: clamp(3rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-capacity span {
    max-width: 150px;
    padding-bottom: 5px;
    color: #a9a9a9;
    font-size: 0.86rem;
    line-height: 1.35;
}

.pricing-button {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 0;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pricing-button:hover {
    transform: translateY(-1px);
}

.pricing-button-outline {
    border: 1px solid #797979;
    color: #ffffff;
}

.pricing-button-outline:hover {
    border-color: #ffffff;
}

.pricing-button-primary {
    color: #061017;
    background: #12afe1;
}

.pricing-button-primary:hover {
    background: #36bee9;
}

.pricing-features {
    display: grid;
    gap: 16px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.pricing-features li span {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    color: #080808;
    background: #f3f3f3;
    font-size: 0.72rem;
    font-weight: 800;
}

.pricing-card-featured .pricing-features li span {
    background: #12afe1;
}

.pricing-faq {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(40px, 7vw, 92px);
    margin-top: 104px;
    padding-top: 72px;
    border-top: 1px solid #292929;
}

.pricing-faq-heading .section-label {
    color: #12afe1;
}

.pricing-faq-heading h2 {
    max-width: 420px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.pricing-faq-list {
    border-top: 1px solid #363636;
}

.pricing-faq-item {
    border-bottom: 1px solid #363636;
}

.pricing-faq-item summary {
    position: relative;
    padding: 24px 52px 24px 0;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}

.pricing-faq-item summary::-webkit-details-marker {
    display: none;
}

.pricing-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    color: #a9a9a9;
    font-size: 1.55rem;
    font-weight: 400;
}

.pricing-faq-item[open] summary::after {
    content: "\2212";
}

.pricing-faq-item p {
    max-width: 700px;
    margin: 0;
    padding: 0 52px 26px 0;
    color: #a9a9a9;
    font-size: 1rem;
    line-height: 1.65;
}

.pricing-meta-bar {
    padding: 10px 0 64px;
    color: #ffffff;
    background: #090909;
}

.pricing-meta-bar .site-copyright,
.pricing-meta-bar .site-meta-links a {
    color: #b8b8b8;
}

.pricing-meta-bar .site-meta-links a:hover {
    color: #ffffff;
}

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .pricing-card-content {
        min-height: auto;
    }

    .pricing-faq {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-top: 78px;
    }
}

@media (max-width: 640px) {
    .pricing-section {
        padding: 64px 0 76px;
    }

    .pricing-heading {
        margin-bottom: 40px;
    }

    .pricing-card-content {
        padding: 28px 22px 32px;
    }
}

.product-kicker {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.product-copy h2 {
    margin: 0;
    color: #050505;
    font-size: clamp(1.85rem, 2.65vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.product-copy h2 span {
    display: block;
    white-space: nowrap;
}

.product-copy > p:last-child {
    margin: 28px 0 0;
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
    line-height: 1.55;
}

.product-visual {
    position: relative;
    min-height: 520px;
    padding: 62px 0 0 62px;
}

.product-visual-frame {
    position: absolute;
    inset: 0 0 34px 0;
    border-radius: 8px;
    background:
        radial-gradient(circle at 94% 8%, rgba(100, 86, 223, 0.95), transparent 44%),
        radial-gradient(circle at 8% 8%, rgba(25, 167, 232, 0.92), transparent 48%),
        linear-gradient(135deg, #087fe7 0%, #5b66df 54%, #8e4bc5 100%);
}

.product-visual-frame::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34%;
    height: 72%;
    background: #47c8ed;
    clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%);
}

.product-visual-image {
    position: relative;
    z-index: 1;
    height: 450px;
    overflow: hidden;
    border-radius: 7px 0 0 0;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.16);
}

.product-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.faq-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
}

.stats-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.section-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.08;
}

.section-copy p {
    margin: 0 0 18px;
}

.feature-list,
.stats-grid {
    display: grid;
    gap: 18px;
}

.feature-list article,
.stat-card {
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: var(--surface);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-card);
}

.feature-list article {
    padding: 26px;
    border-radius: var(--radius-md);
}

.feature-list h3,
.stat-card strong {
    display: block;
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.feature-list p,
.stat-card span {
    margin: 0;
}

.faq-intro {
    max-width: 420px;
}

.faq-list {
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.faq-item {
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.faq-item summary {
    position: relative;
    list-style: none;
    padding: 28px 56px 28px 0;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0 0 28px;
    padding-right: 56px;
    font-size: 1.08rem;
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
    padding: 26px;
    border-radius: var(--radius-md);
    min-height: 180px;
}

@media (max-width: 960px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .steps-grid::before {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav,
    .nav-actions {
        display: none;
    }

    .nav-shell {
        flex-wrap: wrap;
        padding: 16px 0;
    }

    .site-nav.is-open,
    .nav-actions.is-open {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 12px 0 4px;
    }

    .nav-actions.is-open .button {
        width: 100%;
    }

    .section,
    .hero {
        padding: 72px 0;
    }

    .section-grid,
    .faq-layout,
    .stats-layout,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .product-section {
        padding: 84px 0;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .product-layout.product-layout-reverse {
        grid-template-columns: 1fr;
    }

    .product-section-with-faq .product-layout {
        grid-template-columns: 1fr;
    }

    .product-layout-reverse .product-visual {
        order: initial;
        padding: 48px 0 0 48px;
    }

    .product-layout-reverse .product-visual-image {
        border-radius: 7px 0 0 0;
    }

    .product-layout-reverse .product-visual-frame::after {
        right: auto;
        left: 0;
        clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%);
    }

    .product-copy {
        max-width: 680px;
    }

    .product-visual {
        min-height: 470px;
        padding: 48px 0 0 48px;
    }

    .product-visual-image {
        height: 400px;
    }


    .hero h1 {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
    }

    .hero-visual {
        margin-top: 40px;
        padding: 12px;
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .how-it-works-heading {
        margin-bottom: 38px;
    }

    .step-card {
        padding: 26px 20px;
    }

    .hero-ai-badge {
        margin-top: 10px;
        margin-left: 0;
        transform: translateY(-3px);
    }

    .site-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .site-meta-links {
        justify-content: flex-start;
        gap: 14px 24px;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .site-header {
        backdrop-filter: blur(10px);
    }

    .brand-logo {
        width: 56px;
    }

    .button,
    .nav-actions.is-open .button {
        width: 100%;
    }

    .hero-copy,
    .section-copy p,
    .feature-list p,
    .faq-item p,
    .stat-card span {
        font-size: 1rem;
    }

    .faq-item summary {
        padding-right: 42px;
        font-size: 1.1rem;
    }

    .faq-item p {
        padding-right: 0;
    }

    .product-copy h2 {
        font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    }

    .product-visual {
        min-height: 290px;
        padding: 28px 0 0 24px;
    }

    .product-layout-reverse .product-visual {
        padding: 28px 0 0 24px;
    }

    .product-visual-frame {
        bottom: 20px;
    }

    .product-visual-image {
        height: 250px;
    }
}

/* FAQ visual override to match the compact pill treatment */
.faq-list {
    display: grid;
    gap: 14px;
    border-top: 0;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgb(229 229 231);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(186, 195, 208, 1);
}

.faq-item[open] {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.faq-item summary {
    padding: 18px 56px 18px 20px;
    font-size: 1rem;
    font-weight: 500;
}

.faq-item summary::after {
    right: 18px;
    font-size: 1.5rem;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    margin: 0;
    padding: 0 56px 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .faq-item summary {
        padding: 16px 42px 16px 16px;
        font-size: 1rem;
    }

    .faq-item p {
        padding: 0 16px 16px;
    }
}

/* Help page */
.help-hero {
    padding-bottom: 44px;
    text-align: center;
}

.help-hero-heading {
    max-width: 720px;
    margin: 0 auto;
}

.help-hero-heading h1 {
    margin: 0;
    font-size: clamp(2.25rem, 4.5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.help-hero-heading > p {
    max-width: 620px;
    margin: 20px auto 0;
    color: var(--text-secondary);
    font-size: 1.12rem;
    line-height: 1.6;
}

.help-search-wrap {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    margin: 44px auto 0;
}

.help-search-box {
    position: relative;
    grid-column: 2;
}

.help-search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.help-search-box input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-search-box input::placeholder {
    color: #9ca3af;
}

.help-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(9, 127, 232, 0.14);
}

.help-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 56px;
}

.help-sidebar {
    position: sticky;
    top: 96px;
}

.help-sidebar-group + .help-sidebar-group {
    margin-top: 28px;
}

.help-sidebar-title {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.help-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-sidebar-links a {
    padding: 7px 10px;
    margin-left: -10px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.4;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.help-sidebar-links a:hover {
    color: var(--text-primary);
    background: var(--bg-tint);
}

.help-sidebar-links a.is-active {
    color: var(--primary);
    background: #eef7ff;
    font-weight: 600;
}

.help-content {
    min-width: 0;
}

.help-category {
    scroll-margin-top: 96px;
}

.help-category:not([hidden]) + .help-category:not([hidden]) {
    margin-top: 64px;
    padding-top: 56px;
    border-top: 1px solid var(--line);
}

.help-category-heading {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.help-category-intro {
    margin: 0 0 32px;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
}

.help-article {
    scroll-margin-top: 96px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.help-article:first-of-type {
    padding-top: 0;
}

.help-article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.help-article h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.help-article p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.help-no-results {
    padding: 48px 0;
    color: var(--text-secondary);
    font-size: 1.02rem;
    text-align: center;
}

.help-no-results a {
    color: var(--primary);
    font-weight: 600;
}

.help-contact {
    text-align: center;
    padding: 56px;
    border-radius: var(--radius-lg);
    background: #111827;
    color: #ffffff;
}

.help-contact h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.help-contact p {
    max-width: 480px;
    margin: 14px auto 0;
    color: #d1d5db;
    font-size: 1.02rem;
    line-height: 1.6;
}

.help-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.help-contact .button-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 960px) {
    .help-search-wrap {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .help-search-box {
        grid-column: 1;
    }

    .help-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .help-sidebar {
        position: static;
        padding-bottom: 20px;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--line);
    }

    .help-sidebar-nav {
        display: flex;
        gap: 24px;
        overflow-x: auto;
    }

    .help-sidebar-group + .help-sidebar-group {
        margin-top: 0;
    }

    .help-sidebar-group {
        flex: 0 0 auto;
    }

    .help-sidebar-links {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .help-sidebar-links a {
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .help-contact {
        padding: 40px 24px;
    }

    .help-category:not([hidden]) + .help-category:not([hidden]) {
        margin-top: 48px;
        padding-top: 40px;
    }
}

.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.chat-bubble {
    width: 50px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 15px 15px 15px 3px;
    background: var(--chat-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat-bubble:hover {
    background: var(--chat-color-dark);
    transform: translateY(-1px);
}

.chat-bubble .icon-close {
    display: none;
}

.chat-bubble[aria-expanded="true"] .icon-open {
    display: none;
}

.chat-bubble[aria-expanded="true"] .icon-close {
    display: block;
}

.chat-panel {
    width: min(300px, calc(100vw - 48px));
    height: min(420px, calc(100vh - 140px));
    display: flex;
    flex-direction: column;
    background: var(--chat-color);
    border: 1px solid rgba(213, 216, 224, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.chat-panel[hidden] {
    display: none;
}

.chat-panel-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px 34px;
    background: var(--chat-color);
    color: #ffffff;
}

.chat-panel-header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.chat-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.chat-header-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
}

.chat-panel-title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
}

.chat-panel-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: -10px;
    background: #ffffff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: hidden;
}

.chat-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message-visitor {
    align-self: flex-end;
    background: var(--chat-color);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-message-them {
    align-self: flex-start;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.chat-status {
    margin: 0;
    padding: 8px 18px;
    font-size: 0.82rem;
    color: #b42318;
    background: #fef3f2;
    border-top: 1px solid #fee4e2;
}

.chat-status[hidden] {
    display: none;
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 12px 12px;
    padding: 6px 8px 6px 14px;
    border: 1px solid rgba(220, 223, 229, 1);
    border-radius: 999px;
    background: #ffffff;
}

.chat-input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    font: inherit;
    font-size: 0.92rem;
    color: var(--text-primary);
    background: transparent;
}

.chat-input:focus {
    outline: none;
}

.chat-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(220, 223, 229, 0.9);
    border-radius: 50%;
    background: #ffffff;
    color: #8b94a7;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.chat-send:hover {
    border-color: rgba(97, 86, 223, 0.4);
    color: var(--chat-color);
    background: #f8f8ff;
}

.chat-send:disabled,
.chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .chat-widget {
        right: 16px;
        bottom: 16px;
    }

    .chat-panel {
        width: calc(100vw - 32px);
        height: min(65vh, 460px);
    }
}
