.apl-product-template,
.apl-default-shell,
.apl-cod-shell,
.apl-premium-shell,
.apl-bento-shell {
    --apl-page-bg: transparent;
    --apl-surface: #ffffff;
    --apl-surface-soft: rgba(255, 255, 255, 0.78);
    --apl-text: #1f2937;
    --apl-muted: #5b6474;
    --apl-border: rgba(15, 23, 42, 0.08);
    --apl-accent: #0f766e;
    --apl-accent-strong: #115e59;
    --apl-accent-soft: rgba(15, 118, 110, 0.12);
    --apl-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    --apl-shadow-hover: 0 24px 54px rgba(15, 23, 42, 0.1);
    display: block;
    position: relative;
    isolation: isolate;
    padding: clamp(20px, 3vw, 34px);
    margin: 0;
    border-radius: 30px;
    background: var(--apl-page-bg);
    color: var(--apl-text);
    line-height: 1.75;
    font-family: "Inter", "Aptos", "Segoe UI", sans-serif;
}

.apl-product-template :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, table, figure, blockquote, details, summary) {
    margin-top: 0;
}

.apl-product-template :where(section, article, .apl-copy-card, .apl-copy-panel, .apl-copy-step, .apl-copy-spec, .apl-copy-callout, .apl-copy-closer, .apl-copy-hero, .apl-default-card, .apl-cod-card, .apl-premium-card, .apl-bento-card) {
    display: block;
    margin-bottom: 18px;
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid var(--apl-border);
    border-radius: 24px;
    background: var(--apl-surface);
    box-shadow: var(--apl-shadow);
}

.apl-product-template :where(section, article, .apl-copy-card, .apl-copy-panel, .apl-copy-step, .apl-copy-spec, .apl-copy-callout, .apl-copy-closer, .apl-copy-hero, .apl-default-card, .apl-cod-card, .apl-premium-card, .apl-bento-card):last-child {
    margin-bottom: 0;
}

.apl-product-template :where(h2) {
    font-size: clamp(1.45rem, 2.8vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.apl-product-template :where(h3) {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.apl-product-template :where(p, li, dd, dt) {
    color: var(--apl-text);
}

.apl-product-template :where(p, ul, ol, dl) {
    margin-bottom: 1rem;
}

.apl-product-template :where(ul, ol) {
    padding-inline-start: 1.2rem;
}

.apl-product-template :where(li + li) {
    margin-top: 0.4rem;
}

.apl-product-template :where(a) {
    color: var(--apl-accent-strong);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.14em;
}

.apl-product-template :where(details) {
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.apl-product-template :where(summary) {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.apl-product-template :where(summary::-webkit-details-marker) {
    display: none;
}

.apl-product-template :where(details summary)::after {
    content: "+";
    float: right;
    color: var(--apl-accent-strong);
    font-weight: 700;
}

.apl-product-template :where(details[open] summary)::after {
    content: "−";
}

.apl-product-template :where(.apl-copy-grid, .apl-copy-steps, .apl-copy-specs, .apl-copy-list, .apl-copy-chips, .apl-copy-cluster, .apl-default-grid, .apl-default-steps, .apl-default-specs, .apl-cod-grid, .apl-cod-steps, .apl-premium-grid, .apl-premium-timeline, .apl-premium-specs, .apl-bento-grid, .apl-bento-list, .apl-bento-split) {
    display: grid;
    gap: 16px;
    margin: 0 0 18px;
}

.apl-product-template :where(.apl-copy-grid, .apl-default-grid, .apl-cod-grid, .apl-premium-grid, .apl-bento-grid) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.apl-product-template :where(.apl-copy-steps, .apl-default-steps, .apl-cod-steps, .apl-premium-timeline) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.apl-product-template :where(.apl-copy-specs, .apl-default-specs, .apl-premium-specs, .apl-bento-specs) {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.apl-product-template :where(.apl-copy-chips, .apl-copy-cluster, .apl-copy-list, .apl-bento-list) {
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
}

.apl-product-template :where(.apl-copy-step, .apl-default-step, .apl-cod-step, .apl-premium-step, .apl-bento-step) {
    position: relative;
    padding-left: 78px;
}

.apl-product-template :where(.apl-step-index, .apl-copy-step-index, .apl-default-step-index, .apl-cod-step-index, .apl-premium-step-index, .apl-bento-step-index) {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--apl-accent-soft);
    color: var(--apl-accent-strong);
    font-weight: 800;
}

.apl-product-template :where(.apl-copy-spec, .apl-default-spec-row, .apl-cod-spec-row, .apl-premium-spec-row, .apl-bento-spec-row) {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--apl-border);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--apl-surface), var(--apl-surface-soft));
}

.apl-product-template :where(.apl-copy-callout, .apl-copy-closer, .apl-default-closer, .apl-cod-closer, .apl-premium-closer, .apl-bento-closer) {
    background: linear-gradient(135deg, var(--apl-surface), rgba(15, 118, 110, 0.05));
}

.apl-product-template :where(.apl-copy-card, .apl-default-card, .apl-cod-card, .apl-premium-card, .apl-bento-card) {
    overflow: hidden;
}

.apl-product-template :where(.apl-copy-card:first-child, .apl-default-card:first-child, .apl-cod-card:first-child, .apl-premium-card:first-child, .apl-bento-card:first-child) {
    background: linear-gradient(180deg, var(--apl-surface), rgba(15, 118, 110, 0.04));
}

.apl-product-template :where(.apl-copy-hero, .apl-default-hero, .apl-cod-hero, .apl-premium-hero, .apl-bento-hero) {
    background: linear-gradient(180deg, var(--apl-surface), rgba(15, 118, 110, 0.04));
}

.apl-product-template :where(.apl-copy-description, .apl-default-description, .apl-cod-description, .apl-premium-description, .apl-bento-description) {
    padding: 18px 20px;
    border: 1px solid var(--apl-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(15, 118, 110, 0.04));
}

.apl-product-template :where(.apl-copy-note, .apl-copy-caption, .apl-copy-label) {
    color: var(--apl-muted);
    font-size: 0.92rem;
}

@media (max-width: 782px) {
    .apl-product-template,
    .apl-default-shell,
    .apl-cod-shell,
    .apl-premium-shell,
    .apl-bento-shell {
        padding: 16px;
        border-radius: 24px;
    }

    .apl-product-template :where(section, article, .apl-copy-card, .apl-copy-panel, .apl-copy-step, .apl-copy-spec, .apl-copy-callout, .apl-copy-closer, .apl-copy-hero, .apl-default-card, .apl-cod-card, .apl-premium-card, .apl-bento-card) {
        padding: 16px;
    }

    .apl-product-template :where(.apl-copy-step, .apl-default-step, .apl-cod-step, .apl-premium-step, .apl-bento-step) {
        padding-left: 66px;
    }

    .apl-product-template :where(.apl-step-index, .apl-copy-step-index, .apl-default-step-index, .apl-cod-step-index, .apl-premium-step-index, .apl-bento-step-index) {
        top: 16px;
        left: 16px;
        width: 34px;
        height: 34px;
    }
}
