/* ==========================================================================
   Product Content — Template 1
   Paired with template-1.html (same folder). No <style>/<link> lives inside
   the stored content itself — this file is wired in by the system: TinyMCE's
   content_css (initProductContentEditor(), custom.js) and the live frontend's
   own <head>, both keyed off "template-1".
   ========================================================================== */

.t1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.t1 * {
    box-sizing: border-box;
}

/* =========================================
   Intro
========================================= */

.t1-intro {
    background-color: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.t1-intro__title {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
}

.t1-intro__text {
    font-size: 16px;
    color: #475569;
    margin: 0 0 15px;
}

.t1-intro__text:last-child {
    margin-bottom: 0;
}

/* =========================================
   Demo Apps
========================================= */

.t1-demo {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.t1-demo__heading {
    margin-top: 0;
    color: #0f172a;
    font-size: 24px;
    margin-bottom: 30px;
}

.t1-qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.t1-qr-card {
    flex: 1 1 calc(25% - 12px);
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    background-color: #fbfbfb;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 14px;
    box-sizing: border-box;
}

.t1-qr-card__link {
    text-decoration: none;
}

.t1-qr-card__image {
    width: 100%;
    max-width: 150px;
    height: 150px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 8px;
    box-sizing: border-box;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.t1-qr-card__name {
    color: #000000;
    font-weight: 800;
    margin-top: 16px;
    font-size: 20px;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.t1-qr-card__platform {
    margin: 0;
    font-weight: bold;
    color: #707070;
    font-size: 15px;
}

/* =========================================
   Panel links (Web/Admin/Provider/Delivery)
========================================= */

.t1-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

.t1-panels__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    box-sizing: border-box;
    text-align: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* =========================================
   Credentials
========================================= */

.t1-credentials {
    margin-bottom: 40px;
}

.t1-credentials__heading {
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 5px;
}

.t1-credentials__note {
    color: #64748b;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 25px;
    font-style: italic;
}

.t1-credentials__grid {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.t1-credential-card {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    box-sizing: border-box;
}

.t1-credential-card--dark {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.t1-credential-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.t1-credential-card--dark .t1-credential-card__header {
    border-bottom-color: #334155;
}

.t1-credential-card__title {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.t1-credential-card--dark .t1-credential-card__title {
    color: #fbbf24;
}

.t1-credential-card__link {
    color: #64748b;
    text-decoration: none;
}

.t1-credential-card--dark .t1-credential-card__link {
    color: #94a3b8;
}

.t1-credential-card__field {
    margin: 0 0 10px;
    font-size: 14px;
    word-break: break-word;
}

.t1-credential-card__field:last-child {
    margin-bottom: 0;
}

.t1-credential-card:not(.t1-credential-card--dark) .t1-credential-card__field {
    font-weight: 600;
    color: #0f172a;
}

.t1-credential-card__label {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.t1-credential-card--dark .t1-credential-card__label {
    color: #94a3b8;
}

/* =========================================
   Modules / feature grid
========================================= */

.t1-modules {
    width: 100%;
    padding: 0 0 25px;
    margin: 0;
    box-sizing: border-box;
}

.t1-modules__wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.t1-modules__header {
    max-width: 700px;
    margin: 0 auto 28px;
    text-align: center;
}

.t1-modules__eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #64748b;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.t1-modules__header h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.t1-modules__header p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.t1-modules__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.t1-module-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 70px;
    padding: 13px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    min-width: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.t1-module-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.t1-module-card__content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.t1-module-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
}

.t1-module-card__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #16a34a;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.t1-module-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.t1-module-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    box-sizing: border-box;
}

.t1-module-status__dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
}

.t1-module-status--available {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.t1-module-status--available .t1-module-status__dot {
    background: #22c55e;
}

.t1-module-status--coming {
    color: #a16207;
    background: #fefce8;
    border: 1px solid #fde68a;
}

.t1-module-status--coming .t1-module-status__dot {
    background: #eab308;
}

.t1-module-status--planned {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.t1-module-status--planned .t1-module-status__dot {
    background: #f97316;
}

/* =========================================
   Section heading (Tech Stack / Why Choose /
   Monetization / License)
========================================= */

.t1-section-heading {
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 40px;
    font-size: 24px;
}

.t1-section-intro {
    color: #475569;
    font-size: 16px;
    margin-bottom: 25px;
}

/* =========================================
   Tech stack
========================================= */

.t1-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.t1-tech-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 280px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    box-sizing: border-box;
}

.t1-tech-card__label {
    font-size: 11px;
    font-weight: bold;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.t1-tech-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t1-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
}

.t1-tag--blue {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.t1-tag--red {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.t1-tag--green {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.t1-tag--purple {
    background-color: #fbf7ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

.t1-tag--purple-deep {
    background-color: #f3e8ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

.t1-tag--amber {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.t1-tag--orange {
    background-color: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.t1-tag--orange-deep {
    background-color: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

/* =========================================
   Card grid (Why Choose)
========================================= */

.t1-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.t1-card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 280px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.t1-card__title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #0f172a;
    font-weight: bold;
}

.t1-card__text {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* =========================================
   Monetization
========================================= */

.t1-monetization {
    background-color: #eef2ff;
    padding: 35px;
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 40px;
    border: 1px solid #c7d2fe;
}

.t1-monetization__list {
    padding-left: 0;
    margin-bottom: 0;
    font-size: 15px;
    list-style: none;
}

.t1-monetization__item {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

.t1-monetization__item:last-child {
    margin-bottom: 0;
}

.t1-monetization__item-title {
    color: #312e81;
    font-size: 17px;
    display: block;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e7ff;
}

.t1-monetization__item-text {
    color: #4f46e5;
    display: block;
    margin-top: 12px;
}

/* =========================================
   License comparison table
========================================= */

.t1-license {
    margin-bottom: 40px;
    border-radius: 12px;
    border: 1px solid #e8edf3;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.t1-license__table {
    border-collapse: collapse;
    width: 100%;
    min-width: 680px;
    border-spacing: 0;
    background-color: #ffffff;
    border: none;
}

.t1-license__table thead tr {
    background-color: #f8fafc;
}

.t1-license__table th,
.t1-license__table td {
    padding: 16px;
    font-size: 15px;
    color: #475569;
    border: none;
}

.t1-license__table thead th {
    font-weight: bold;
    font-size: 16px;
    color: #0f172a;
}

.t1-license__table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.t1-license__col-feature {
    width: 58.635%;
}

.t1-license__col-regular,
.t1-license__col-extended {
    text-align: center;
    width: 20%;
    font-size: 18px;
    border-left: 1px solid #dde3ea;
}

.t1-license__table thead .t1-license__col-regular,
.t1-license__table thead .t1-license__col-extended {
    font-size: 16px;
}

.t1-license__col-extended {
    background-color: rgb(239, 246, 255);
}

.t1-license__table tbody tr:nth-child(odd) .t1-license__col-extended {
    background-color: #f5f9ff;
}

.t1-license__note {
    font-size: 12px;
    color: #64748b;
}

.t1-license__unavailable {
    opacity: 0.5;
}

/* =========================================
   Case studies
========================================= */

.t1-case-studies {
    margin-bottom: 40px;
}

.t1-case-studies__note {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #92400e;
}

.t1-case-studies__note strong {
    color: #78350f;
}

.t1-case-studies__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.t1-case-studies__card {
    flex: 1 1 calc(50% - 8px);
    min-width: 260px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    box-sizing: border-box;
}

.t1-case-studies__card-text {
    margin: 0;
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
}

.t1-case-studies__card-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.t1-case-studies__card-link:hover {
    text-decoration: underline;
}

/* =========================================
   Setup assistance CTA
========================================= */

.t1-cta {
    background: #1d4ed8;
    padding: 44px 24px;
    border-radius: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.t1-cta__badge-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.t1-cta__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 7px 20px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.t1-cta__title {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.t1-cta__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0 auto 36px auto;
}

.t1-cta__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.t1-cta__feature {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 20px -3px rgba(0, 0, 0, 0.12), inset 0 1px 0px rgba(255, 255, 255, 0.3);
    flex: 1;
    min-width: 250px;
    box-sizing: border-box;
}

.t1-cta__feature-icon {
    background-color: #ffffff;
    color: #1d4ed8;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 14px;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.t1-cta__feature-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    letter-spacing: -0.01em;
}

/* =========================================
   Responsive breakpoints
========================================= */

@media (max-width: 991px) {
    .t1-modules__wrapper {
        padding: 28px;
    }

    .t1-modules__header h2 {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    .t1-qr-grid {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .t1-intro,
    .t1-demo {
        padding: 22px 18px;
    }

    /* Was a plain flex row with flex:1 per card — 3 credential cards squeezed
       into equal thirds of a 375px screen, truncating "demo@example.com" down
       to just "mple.com". Stack instead of shrinking. */
    .t1-credentials__grid {
        flex-direction: column;
    }

    /* flex-basis + min-width sat right at the wrap threshold (130+130+12 gap
       vs available width), so narrower phones (390px, 375px, sub-320px content
       width) still dropped to 1 card per row. Grid guarantees exactly 2
       columns regardless of subpixel rounding. */
    .t1-qr-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t1-qr-card {
        min-width: 0;
        max-width: none;
    }

    .t1-modules {
        padding: 0 0 20px;
    }

    .t1-modules__wrapper {
        padding: 24px 15px;
        border-radius: 14px;
    }

    .t1-modules__header {
        margin-bottom: 24px;
    }

    .t1-modules__eyebrow {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .t1-modules__header h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .t1-modules__header p {
        font-size: 14px;
    }

    .t1-modules__grid,
    .t1-panels,
    .t1-tech-grid,
    .t1-cards-grid,
    .t1-cta__features {
        grid-template-columns: 1fr !important;
    }

    .t1-tech-grid,
    .t1-cards-grid {
        display: block;
    }

    .t1-tech-card,
    .t1-card {
        margin-bottom: 16px;
    }

    .t1-module-card {
        min-height: 64px;
        padding: 10px 11px;
        gap: 8px;
        border-radius: 10px;
        align-items: flex-start;
    }

    .t1-module-card__content {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .t1-module-status {
        flex: 0 0 auto;
        padding: 5px 7px;
        font-size: 9px;
        gap: 5px;
    }

    .t1-module-status__dot {
        width: 5px;
        height: 5px;
    }

    .t1-module-card__icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 9px;
    }

    .t1-module-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .t1-module-card h3 {
        font-size: 14px;
    }

    .t1-panels__link {
        min-height: 52px;
    }

    /* Monetization — outer/inner padding was full desktop size (35px / 20px),
       eating most of the available width on phones. Tighten it up. */
    .t1-monetization {
        padding: 18px;
        border-radius: 14px;
    }

    .t1-monetization__item {
        padding: 14px 16px;
        margin-bottom: 14px;
    }

    .t1-monetization__item-title {
        font-size: 16px;
    }

    .t1-monetization__item-text {
        font-size: 14px;
        margin-top: 8px;
    }

    /* License table — fixed 680px min-width forced horizontal scrolling on
       phones/tablets. Drop the min-width and shrink type/padding so all 3
       columns fit on screen without scrolling.

       Selector is `.t1 .t1-license__table` (two classes), not just
       `.t1-license__table` (one class) — tinymce-responsive.css's generic
       `.product-content-body table` mobile rule (class + type = higher
       specificity than a single class) turns every table `display:block`
       and `white-space:nowrap` on mobile, which silently wins over a
       single-class rule here regardless of source order and reintroduces
       the horizontal scroll this rule exists to remove. Matching its
       specificity — and explicitly resetting `display`/`white-space`,
       since a rule that never mentions a property can't override one that
       does — is what actually makes the fix stick. */
    .t1 .t1-license__table {
        display: table;
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        white-space: normal;
    }

    .t1-license__table th,
    .t1-license__table td {
        padding: 10px 6px;
        font-size: 12px;
        word-break: break-word;
    }

    .t1-license__table thead th {
        font-size: 12px;
    }

    .t1-license__col-feature {
        width: 56%;
    }

    .t1-license__col-regular,
    .t1-license__col-extended {
        width: 22%;
        font-size: 14px;
    }

    .t1-license__table thead .t1-license__col-regular,
    .t1-license__table thead .t1-license__col-extended {
        font-size: 12px;
    }

    .t1-license__note {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .t1-modules {
        padding-bottom: 18px;
    }

    .t1-modules__wrapper {
        padding: 22px 11px;
    }

    .t1-modules__header h2 {
        font-size: 22px;
    }

    .t1-modules__header p {
        font-size: 13px;
    }

    .t1-module-card {
        padding: 9px 10px;
    }

    .t1-module-card__icon {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .t1-module-card__icon svg {
        width: 17px;
        height: 17px;
    }

    .t1-module-card h3 {
        font-size: 13px;
    }

    .t1-module-status {
        font-size: 8px;
        padding: 5px 6px;
    }

    .t1-qr-card__image {
        max-width: 130px;
    }

    .t1-license__table th,
    .t1-license__table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .t1-license__col-regular,
    .t1-license__col-extended {
        font-size: 13px;
    }
}
