.product-breadcrumb {
    max-width: 1000px;
    margin: 0 auto 10px;
    color: #526b80;
    font-size: .94rem;
}

.product-breadcrumb a {
    color: inherit;
}

.embed-product-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

.embed-product-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 42px;
    text-align: center;
    border: 1px solid #cfe1ef;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fcff, #edf7fc);
    box-shadow: 0 10px 28px rgba(27, 76, 108, .08);
}

html[lang="es"] .embed-product-hero {
    max-width: 1020px;
}

html[lang="es"] .embed-product-lead {
    max-width: 930px;
}


.embed-product-eyebrow {
    margin: 0 0 10px;
    color: #126a9a;
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.embed-product-hero h1 {
    margin: 0;
    color: #173f5b;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.embed-product-promise {
    margin: 16px auto 0;
    color: #174968;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
}

.embed-product-lead {
    max-width: 900px;
    margin: 10px auto 0;
    color: #29485d;
    font-size: 1.08rem;
}

.embed-product-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.embed-product-badges span {
    padding: 7px 11px;
    color: #175d83;
    background: #fff;
    border: 1px solid #bed9e8;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
}

.embed-product-badges .price-badge {
    color: #fff;
    background: #173f5b;
    border-color: #173f5b;
    font-size: .96rem;
}

.hero-price-note {
    margin: 12px 0 0;
    color: #48677b;
    font-size: .9rem;
    font-weight: 650;
}

.hero-manage-billing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: #48677b;
    font-size: .94rem;
    font-weight: 650;
}

.hero-manage-billing a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    color: #175d83;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #9fc9df;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.hero-manage-billing a:hover,
.hero-manage-billing a:focus-visible {
    color: #124a69;
    background: #fff;
    border-color: #6eafd0;
    text-decoration: none;
}

.embed-product-section {
    max-width: 1000px;
    margin: 52px auto 0;
}

.embed-product-section > h2 {
    margin: 0 0 10px;
    color: #173f5b;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    text-align: center;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 24px;
    color: #526b80;
    text-align: center;
}


.practice-value-panel {
    max-width: 860px;
    margin: 22px auto 0;
    padding: 28px 30px;
    border: 1px solid #c9ddea;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7fbfe, #eef7fb);
    box-shadow: 0 8px 22px rgba(27, 76, 108, .06);
    text-align: center;
}

.practice-value-panel p {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #40596b;
    font-size: 1.03rem;
}

.practice-value-panel p:last-of-type {
    margin-bottom: 0;
}

.practice-value-kicker {
    color: #173f5b !important;
    font-size: 1.18rem !important;
    font-weight: 800;
}

.practice-use-cases {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.practice-use-cases span {
    padding: 7px 11px;
    color: #175d83;
    background: #fff;
    border: 1px solid #bed9e8;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
}

.preview-frame-wrap {
    overflow: hidden;
    padding: 12px;
    background: #fff;
    border: 1px solid #cddde7;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(27, 76, 108, .08);
}

.preview-frame {
    display: block;
    width: 100%;
    height: 820px;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

.feature-grid,
.value-grid,
.price-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-card,
.value-card,
.faq-card,
.price-card,
.license-box {
    padding: 22px;
    background: #fff;
    border: 1px solid #d2e2ec;
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(27, 76, 108, .05);
}

.feature-card h3,
.value-card h3,
.faq-card h3 {
    margin: 0 0 8px;
    color: #205b80;
    font-size: 1.08rem;
}

.feature-card p,
.value-card p,
.faq-card p {
    margin: 0;
    color: #536a7b;
}

.price-grid {
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 28px;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.price-card:hover {
    transform: translateY(-2px);
    border-color: #9fc9df;
    box-shadow: 0 12px 28px rgba(27, 76, 108, .10);
}

.price-card:focus-visible {
    outline: 3px solid rgba(0, 102, 170, .22);
    outline-offset: 3px;
}

.price-card.is-selected {
    border: 2px solid #1d6b36;
    background: #fbfffc;
    box-shadow: 0 12px 30px rgba(29, 107, 54, .12);
}

.price-card.is-featured {
    border: 2px solid #2b8fbd;
    box-shadow: 0 12px 30px rgba(27, 93, 131, .11);
}

.price-card.is-featured.is-selected {
    border-color: #1d6b36;
    background: #fbfffc;
    box-shadow: 0 12px 30px rgba(29, 107, 54, .12);
}

.price-label {
    margin: 0 0 10px;
    color: #205b80;
    font-size: 1.05rem;
    font-weight: 800;
}

.price {
    margin: 0;
    color: #173f5b;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
}

.price-period {
    color: #526b80;
    font-size: .42em;
    font-weight: 700;
}

.price-note {
    margin: 8px 0 18px;
    color: #5c7080;
}

.price-list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.price-list li {
    position: relative;
    margin-top: 8px;
    padding-left: 22px;
    color: #40596b;
}

.price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1d6b36;
    font-weight: 800;
}

.choose-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 10px 16px;
    color: #fff;
    background: #0066aa;
    border: 1px solid #00558f;
    border-radius: 8px;
    font: inherit;
    font-weight: 750;
    text-align: center;
}

.price-card:hover .choose-plan,
.price-card:focus-visible .choose-plan {
    background: #00558f;
}

.price-card.is-selected .choose-plan {
    background: #1d6b36;
    border-color: #17582c;
}

.license-box {
    max-width: 760px;
    margin: 22px auto 0;
}

.license-box label {
    display: block;
    margin-bottom: 8px;
    color: #25384a;
    font-weight: 750;
}

.license-box input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: #17202a;
    background: #fff;
    border: 1px solid #b8cbd7;
    border-radius: 7px;
    font: inherit;
}

.license-help {
    margin: 8px 0 18px;
    color: #667a88;
    font-size: .92rem;
}

.selected-plan {
    display: none;
    margin: 0 0 16px;
    padding: 10px 12px;
    color: #174968;
    background: #eff8fc;
    border-radius: 8px;
    font-weight: 700;
}

.selected-plan.is-visible {
    display: block;
}

.checkout-button {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    color: #fff;
    background: #1d6b36;
    border: 1px solid #17582c;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.checkout-button:hover,
.checkout-button:focus-visible {
    background: #17582c;
}

.checkout-message {
    min-height: 24px;
    margin: 12px 0 0;
    color: #526b80;
    text-align: center;
}

.checkout-message.is-error {
    color: #a23838;
}

.platform-line {
    margin: 22px auto 0;
    color: #526b80;
    text-align: center;
}

.embed-product-footer {
    max-width: 1000px;
    margin: 52px auto 0;
    padding-top: 22px;
    color: #49677c;
    border-top: 1px solid #d7e4ec;
}

.embed-product-footer a {
    color: #205b80;
    font-weight: 650;
}

@media (max-width: 720px) {
    .embed-product-main {
        padding: 22px 14px 48px;
    }

    .embed-product-hero {
        padding: 30px 20px;
    }

    .feature-grid,
    .value-grid,
    .price-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .practice-value-panel {
        padding: 24px 20px;
    }

    .preview-frame-wrap {
        padding: 6px;
        border-radius: 12px;
    }

    .preview-frame {
        height: 860px;
    }

    .price-card {
        padding: 22px;
    }
}

@media (max-width: 430px) {
    .preview-frame {
        height: 900px;
    }
}


.purchase-success {
    max-width: 760px;
    margin: 22px auto 0;
    padding: 30px;
    text-align: center;
    background: #fbfffc;
    border: 2px solid #8bc79e;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(29, 107, 54, .10);
}

.purchase-success[hidden] {
    display: none;
}

.purchase-success-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    color: #fff;
    background: #1d6b36;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 900;
}

.purchase-success h2 {
    margin: 0;
    color: #173f5b;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.purchase-success-lead {
    max-width: 610px;
    margin: 10px auto 0;
    color: #526b80;
}

.purchase-success-lead.is-error {
    color: #a23838;
}

.purchase-success-details {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 18px;
    text-align: left;
    background: #fff;
    border: 1px solid #d2e2ec;
    border-radius: 12px;
}

.purchase-success-details[hidden] {
    display: none;
}

.purchase-success-details > div {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
}

.purchase-success-details > div[hidden] {
    display: none;
}

.purchase-success-details span {
    color: #667a88;
    font-size: .9rem;
    font-weight: 700;
}

.purchase-success-details strong,
.purchase-success-details code {
    min-width: 0;
    color: #25384a;
    overflow-wrap: anywhere;
}

.purchase-success-details code {
    font-size: .96rem;
    font-weight: 800;
}

.embed-code-result {
    margin-top: 22px;
    text-align: left;
}

.embed-code-result[hidden] {
    display: none;
}

.embed-code-result label {
    display: block;
    margin-bottom: 8px;
    color: #25384a;
    font-weight: 800;
}

.embed-code-result textarea {
    width: 100%;
    min-height: 174px;
    padding: 12px;
    resize: vertical;
    color: #25384a;
    background: #f7fafc;
    border: 1px solid #b8cbd7;
    border-radius: 8px;
    font: .9rem/1.45 Consolas, "Courier New", monospace;
}

.copy-embed-button {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 10px 16px;
    color: #fff;
    background: #1d6b36;
    border: 1px solid #17582c;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.copy-embed-button:hover,
.copy-embed-button:focus-visible {
    background: #17582c;
}

.copy-embed-status {
    min-height: 22px;
    margin: 8px 0 0;
    color: #1d6b36;
    text-align: center;
    font-size: .92rem;
    font-weight: 700;
}

@media (max-width: 560px) {
    .purchase-success {
        padding: 24px 18px;
    }

    .purchase-success-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}


/* Embed Tutor billing management */
.top-nav a.manage-billing-nav {
    min-height: 34px;
    padding: 6px 11px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    font-weight: 750;
    text-decoration: none;
}

.top-nav a.manage-billing-nav:hover,
.top-nav a.manage-billing-nav:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .26);
    text-decoration: none;
}

.billing-management-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px 20px 64px;
}

.billing-management-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px;
    text-align: center;
    background: #fff;
    border: 1px solid #cfe1ef;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(27, 76, 108, .08);
}

.billing-management-eyebrow {
    margin: 0 0 10px;
    color: #126a9a;
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.billing-management-card h1 {
    margin: 0;
    color: #173f5b;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
}

.billing-management-lead {
    max-width: 650px;
    margin: 14px auto 0;
    color: #526b80;
    font-size: 1.05rem;
}

.billing-portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 24px;
    padding: 11px 24px;
    color: #fff;
    background: #0066aa;
    border: 1px solid #00558f;
    border-radius: 9px;
    font-weight: 800;
    text-decoration: none;
}

.billing-portal-button:hover,
.billing-portal-button:focus-visible {
    color: #fff;
    background: #00558f;
    text-decoration: none;
}

.billing-verification-note {
    margin: 10px auto 0;
    color: #667a88;
    font-size: .9rem;
}

.billing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    text-align: left;
}

.billing-action {
    padding: 17px 18px;
    background: #f7fbfe;
    border: 1px solid #d2e2ec;
    border-radius: 12px;
}

.billing-action strong {
    display: block;
    margin-bottom: 4px;
    color: #205b80;
}

.billing-action span {
    color: #536a7b;
    font-size: .94rem;
}

.billing-license-note {
    margin: 22px 0 0;
    padding: 14px 16px;
    color: #40596b;
    background: #f8fafc;
    border-radius: 10px;
}

.billing-back-link {
    display: inline-block;
    margin-top: 24px;
    color: #205b80;
    font-weight: 700;
}

@media (max-width: 640px) {
    .billing-management-main {
        padding: 26px 14px 48px;
    }

    .billing-management-card {
        padding: 28px 20px;
    }

    .billing-actions {
        grid-template-columns: 1fr;
    }

    .billing-portal-button {
        width: 100%;
    }
}


.legal-operator {
    margin: 6px 0 0;
    color: #728493;
    font-size: .82rem;
}

.billing-legal-operator {
    max-width: 760px;
    margin: 16px auto 0;
    text-align: center;
}


/* Purchase-first Embed Tutor layout */
.embed-purchase-intro {
    max-width: 1000px;
    margin: 0 auto 10px;
    text-align: center;
}

.embed-purchase-intro h1 {
    margin: 0;
    color: #173f5b;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.embed-purchase-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.try-tutor-title-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    color: #175d83;
    background: #fff;
    border: 1px solid #a9cfdf;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.try-tutor-title-link:hover,
.try-tutor-title-link:focus-visible {
    color: #124a69;
    background: #f7fbfe;
    border-color: #77b4cf;
    text-decoration: none;
}

.embed-purchase-intro p {
    margin: 8px 0 0;
    color: #526b80;
    font-size: 1rem;
}

.embed-product-section.purchase-first {
    margin-top: 18px;
}

.plan-recommendation {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 5px 9px;
    color: #175d83;
    background: #eef8fd;
    border: 1px solid #b8dcec;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.purchase-manage-link,
.purchase-continue-note {
    margin: 12px auto 0;
    color: #667a88;
    text-align: center;
    font-size: .92rem;
}

.purchase-manage-link a,
.purchase-continue-note a {
    color: #205b80;
    font-weight: 750;
}

.purchase-continue-note {
    margin-top: 7px;
}

@media (max-width: 720px) {
    .embed-purchase-intro {
        margin-bottom: 10px;
    }

    .embed-purchase-title-row {
        gap: 8px;
    }

    .embed-purchase-intro h1 {
        width: 100%;
        font-size: clamp(1.65rem, 8vw, 2.05rem);
    }

    .try-tutor-title-link {
        min-height: 32px;
        padding: 5px 10px;
    }
}


.purchase-intro-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #667a88;
    font-size: .9rem;
}

.purchase-intro-actions a {
    color: #205b80;
    font-weight: 750;
    text-decoration: none;
}

.purchase-intro-actions a:hover,
.purchase-intro-actions a:focus-visible {
    color: #174968;
    text-decoration: underline;
    text-underline-offset: 3px;
}
