/*
 * These styles are scoped to the embeddable-board landing page so a marketing
 * experiment or widget resize cannot alter established customer-facing pages.
 */
.embeddable-boards-page {
    /* Base already gives public pages a full-width main area; zero margins
     * avoid adding 30px of horizontal overflow at desktop and mobile widths. */
    margin: 0;
    color: #172b4d;
}

.embeddable-boards-page *,
.embeddable-boards-page *::before,
.embeddable-boards-page *::after {
    box-sizing: border-box;
}

.eb-hero {
    overflow: hidden;
    padding: 90px 0 76px;
    background:
        radial-gradient(circle at 88% 18%, rgba(179, 212, 255, 0.5), transparent 31%),
        linear-gradient(145deg, #f7faff 0%, #ffffff 58%, #f4f5f7 100%);
}

.eb-hero .container,
.eb-section .container {
    max-width: 1080px;
}

.eb-eyebrow {
    margin: 0 0 12px;
    color: #0052cc;
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eb-hero h1 {
    max-width: 800px;
    margin: 0;
    color: #091e42;
    font-size: clamp(38px, 6vw, 64px) !important;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.03;
}

.eb-lead {
    max-width: 760px;
    margin: 25px 0 0;
    color: #42526e;
    font-size: 20px;
    line-height: 1.6;
}

.eb-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.eb-secondary-link {
    color: #0052cc;
    font-weight: 700;
}

.eb-safety-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 720px;
    margin: 30px 0 0;
    color: #5e6c84;
    font-size: 14px;
}

.eb-safety-note i {
    margin-top: 3px;
    color: #00875a;
}

.eb-section {
    padding: 76px 0;
}

.eb-live-section {
    background: #f4f5f7;
}

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

.eb-section-heading h2,
.eb-boundary-grid h2 {
    margin: 0 0 14px;
    color: #091e42;
    font-size: clamp(30px, 4vw, 42px) !important;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.eb-section-heading > p:last-child {
    margin: 0;
    color: #505f79;
    font-size: 17px;
    line-height: 1.65;
}

.eb-widget-shell {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe1e6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(9, 30, 66, 0.12);
}

.eb-widget {
    display: block;
    width: 100%;
    min-width: 0;
    height: 640px;
    border: 0;
    background: #ffffff;
}

.eb-widget-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px 0;
    color: #5e6c84;
    font-size: 14px;
}

.eb-widget-help a {
    font-weight: 750;
}

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

.eb-steps article {
    min-width: 0;
    padding: 26px;
    border: 1px solid #ebecf0;
    border-radius: 14px;
    background: #ffffff;
}

.eb-steps article > span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #0747a6;
    background: #deebff;
    font-size: 14px;
    font-weight: 800;
}

.eb-steps h3,
.eb-code-card h3 {
    margin: 18px 0 9px;
    color: #172b4d;
    font-size: 19px !important;
    font-weight: 750;
}

.eb-steps p,
.eb-code-card p {
    margin: 0;
    color: #5e6c84;
    font-size: 15px;
    line-height: 1.6;
}

.eb-code-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 32px;
    margin-top: 24px;
    padding: 28px;
    border-radius: 14px;
    background: #091e42;
}

.eb-code-card h3 {
    margin-top: 0;
    color: #ffffff;
}

.eb-code-card p {
    color: #b3bac5;
}

.eb-code-card pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 18px;
    border: 1px solid #344563;
    border-radius: 9px;
    color: #deebff;
    background: #172b4d;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre;
}

.eb-boundary-section {
    color: #ffffff;
    background: #0747a6;
}

.eb-boundary-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 64px;
}

.eb-boundary-section .eb-eyebrow,
.eb-boundary-grid h2 {
    color: #ffffff;
}

.eb-boundary-grid ul {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eb-boundary-grid li {
    display: flex;
    gap: 12px;
    color: #deebff;
    font-size: 16px;
    line-height: 1.55;
}

.eb-boundary-grid li i {
    flex: 0 0 auto;
    margin-top: 5px;
    color: #79f2c0;
}

.embeddable-boards-page > .container > .r-landing-cta {
    margin: 70px 0;
}

@media (max-width: 767px) {
    .eb-hero,
    .eb-section {
        padding: 54px 0;
    }

    .eb-lead {
        font-size: 18px;
    }

    .eb-widget {
        height: 700px;
    }

    .eb-widget-help,
    .eb-code-card,
    .eb-boundary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eb-widget-help {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .eb-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .eb-code-card,
    .eb-boundary-grid {
        gap: 24px;
    }
}

@media (max-width: 360px) {
    .eb-hero h1 {
        font-size: 34px !important;
    }

    .eb-widget-shell {
        border-radius: 10px;
    }

    .eb-code-card,
    .eb-steps article {
        padding: 20px;
    }
}
