/* ═══════════════════════════════════════════════════════
   Pricing Table  —  css/pricing-table.css
   ═══════════════════════════════════════════════════════ */

/* ── Video Preview Card ──────────────────────────────── */
.pt-video-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: #EFF8FF;
    border: 1px solid #E3F2FD;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Left: media area */
.pt-video-card__media {
    flex: 0 0 60%;
    position: relative;
    background: #EEF3FB;
    border-radius: 10px;
    overflow: hidden;
}

.pt-video-card__thumb {
    position: relative;
    width: 100%;
    line-height: 0;
}

.pt-video-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Play button — centred over the screenshot */
.pt-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2C67FF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(44, 103, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.pt-video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(44, 103, 255, 0.55);
}

/* Ripple rings around the play button */
.pt-video-play::before,
.pt-video-play::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(44, 103, 255, 0.35);
    animation: pt-video-wave 2.4s ease-out infinite;
}

.pt-video-play::after {
    animation-delay: 1s;
}

@keyframes pt-video-wave {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0;   }
}

/* Right: text content */
.pt-video-card__content {
    flex: 1;
    padding: 0px 0px 0px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pt-video-card__eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #2C67FF;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.pt-video-card__heading {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.25;
    margin-bottom: 12px;
}

.pt-video-card__desc {
    font-size: 15px;
    font-weight: 500;
    color: #5c5d76;
    line-height: 1.6;
    padding-bottom: 12px !important;
}

/* "2-minute overview" — static label with clock icon */
.pt-video-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #5C5D76;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 980px) {
    .pt-video-card {
        flex-direction: column;
        width: 100%;
    }

    .pt-video-card__media {
        flex: none;
        width: 100%;
    }

    .pt-video-card__content {
        padding: 20px 0px 0px 0px;
    }

    .pt-video-card__heading {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .pt-video-play {
        width: 52px;
        height: 52px;
        padding: 15px;
    }
}

/* Inline video player — replaces thumbnail on play */
.pt-video-card__player {
    position: relative;
    width: 100%;
    /* height matches the thumb — will be set to 100% of media column */
    background: #000;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10; /* same proportion as the card left column */
}

.pt-video-card__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* When playing: left column fills full height, right column stays vertically centred */
.pt-video-card--playing .pt-video-card__media {
    flex: 0 0 60%;
}

.pt-video-card--playing .pt-video-card__thumb {
    display: none;
}

.pt-video-card--playing .pt-video-card__player {
    display: block !important;
}

/* ── Video Modal ─────────────────────────────────────── */
/* (removed — video plays inline in the card) */

/* ── Toggle ──────────────────────────────────────────── */
.pt-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pt-toggle {
    display: inline-flex;
    background: #F3F4F8;
    border-radius: 999px;
    padding: 4px;
    position: relative;
    border: 1px solid #d8e0ed;
}

/* Sliding pill */
.pt-toggle__pill {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    border-radius: 999px;
    background: #2C67FF;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                width    0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width;
    z-index: 0;
    pointer-events: none;
}

.pt-toggle__btn {
    position: relative;
    z-index: 1;
    padding: 9px 28px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #21214E;
    transition: color 0.2s;
    line-height: 1;
}

.pt-toggle__btn--active {
    color: #FFFFFF;
}

.pt-toggle-save {
    font-size: 14px;
    font-weight: 500;
    color: #0CAA1B;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.pt-toggle-save svg {
    flex-shrink: 0;
    stroke: #0CAA1B;
}

/* ── Grid ────────────────────────────────────────────── */
.pt-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    padding-top: 40px;
}

/* ── Card ────────────────────────────────────────────── */
.pt-card {
    flex: 1;
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 8px 80px 0px #A7A7A73D;
    display: flex;
    flex-direction: column;
}

/* ── Popular card ────────────────────────────────────── */
.pt-card--popular {
    background: #2C67FF;
    color: #fff;
    box-shadow: 0px 8px 80px 0px #2C67FF4D;
    z-index: 2;
    background-image: url('https://test.payrun.app/wp-content/uploads/2026/06/pricing-card-shape.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: auto;
}

/* Badge — absolute pill above card top edge */
.pt-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #2C67FF;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    padding: 4px 36px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    white-space: nowrap;
    z-index: 3;
}

/* ── Zones inside each card ───────────────────────────── */
/* JS will set equal min-height on each zone row */
.pt-card__zone {
    padding: 32px 24px 0px 24px;
    display: flex;
    flex-direction: column;
}

.pt-card__zone--features {
    padding-top: 0;
    flex: 1;
}

.pt-card__zone--includes {
    padding-top: 0;
    padding-bottom: 36px;
    margin-top: auto;
}

.pt-card__divider-line {
    display: inline-block;
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background-color: #8593A329;
}

.pt-card--popular .pt-card__divider-line {
    background-color: #FFFFFF29;
}

/* ── Plan header ─────────────────────────────────────── */
.pt-card__name {
    font-size: 24px;
    font-weight: 600;
    color: #5C5D76;
    line-height: 1.5;
    padding: 0;
}

.pt-card--popular .pt-card__name {
    color: #FFFFFF;
}

.pt-card__tagline {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #5C5D76;
    margin: 0 0 20px;
}

.pt-card--popular .pt-card__tagline {
    color: #FFFFFF;
}

/* ── Pricing block ───────────────────────────────────── */
.pt-card__pricing {
    margin-top: auto;
    margin-bottom: 20px;
}

.pt-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Diagonal strikethrough wrapper — breaks flex stretch */
.pt-price__original-wrap {
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.pt-price__original {
    font-size: 20px;
    font-weight: 500;
    color: #8D91A5;
    display: inline;
    position: relative;
    text-decoration: none;
}

/* Diagonal strikethrough — sized to the text, not the container */
.pt-price__original::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: currentColor;
    transform: rotate(-10deg);
    border-radius: 1px;
}

.pt-card--popular .pt-price__original {
    color: #D8E0ED;
}

.pt-price__row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pt-price__amount {
    font-size: 44px;
    line-height: 1.3;
    font-weight: 600;
    color: #21214E;
}

.pt-card--popular .pt-price__amount {
    color: #fff;
}

.pt-price__dollar {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    vertical-align: baseline;
}

.pt-price__save-badge {
    background: #0CAA1B;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 44px;
    white-space: nowrap;
}

.pt-price__period {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: #8D91A5;
    margin-top: 4px;
    display: block;
}

.pt-card--popular .pt-price__period {
    color: #FFFFFF;
}

/* ── CTA ─────────────────────────────────────────────── */
.pt-card__cta {
    display: block;
    text-align: center;
    background: #2C67FF;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.2s, transform 0.15s;
    border: 2px solid transparent;
}

.pt-card__cta:hover {
    background: #1a50e0;
}

.pt-card--popular .pt-card__cta {
    background: #fff;
    color: #2C67FF !important;
    border-color: #fff;
    box-shadow: 0px 4px 70px 0px #0000008F;
}

.pt-card--popular .pt-card__cta:hover {
    background: #f0f4ff;
}

/* ── Features ────────────────────────────────────────── */
.pt-card__section-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #21214E;
    margin: 0 0 14px;
}

.pt-card--popular .pt-card__section-title {
    color: #FFFFFF;
}

.pt-card__features {
    list-style: none;
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pt-card__feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #5C5D76;
    line-height: 1.4;
    margin: 0;
}

.pt-card--popular .pt-card__feature-item {
    color: #FFFFFF;
}

.pt-check-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #0CAA1B;
}

.pt-check-icon svg {
    width: 18px;
    height: 18px;
}

.pt-card--popular .pt-check-icon {
    color: #FFFFFF;
}

/* AI Badge */
.ai-badge-outer {
    position: relative;
    border-radius: 100px;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), #FF6B35, #FFD93D, #6BCB77, #4D96FF, #FF6BFF, #FF6B35);
    animation: spin-border 2.5s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    to {
        --angle: 360deg;
    }
}

.ai-badge-inner {
    background: #fff;
    border-radius: 100px;
    padding: 2px 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    position: relative;
    overflow: hidden;
}

.ai-badge-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0px, rgba(0, 0, 0, 0.04) 1px, transparent 1px, transparent 18px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0px, rgba(0, 0, 0, 0.04) 1px, transparent 1px, transparent 18px);
    border-radius: 100px;
    pointer-events: none;
}

.ai-stars-wrap {
    height: 14px;
}

.ai-badge-text {
    font-size: 12px;
    font-weight: 500;
    color: #2C67FF;
    line-height: 1;
    user-select: none;
}

/* ── Includes ────────────────────────────────────────── */

.pt-card__includes {
    list-style: none;
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pt-card__include-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #5C5D76;
    margin: 0;
}

.pt-card--popular .pt-card__include-item {
    color: #FFFFFF;
}

.pt-include-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #5C5D76;
    display: flex;
    align-items: center;
}

.pt-include-icon i,
.pt-include-icon svg {
    width: 18px;
    height: 18px;
}

.pt-card--popular .pt-include-icon {
    color: #FFFFFF;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
    .pt-grid {
        flex-wrap: wrap;
        padding-top: 44px;
    }

    .pt-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 260px;
    }

    /* JS handles min-height equalisation per pair on tablet — do NOT override here */
}

@media (max-width: 560px) {
    .pt-grid {
        flex-direction: column;
        gap: 16px;
    }

    .pt-card {
        flex: none;
        width: 100%;
        min-width: unset;
    }

    /* Mobile: single column, JS skips equalisation, reset any lingering values */
    .pt-card__zone {
        min-height: 0 !important;
    }

    .pt-toggle__btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .pt-price__amount {
        font-size: 36px;
    }
}


/* ═══════════════════════════════════════════════════════
   Feature Comparison Table  —  [pricing_compare]
   ═══════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────── */
.ptc-wrap {
    width: 100%;
    font-size: 14px;
    color: #21214E;
    --ptc-cols: minmax(180px, 2fr) repeat(4, 1fr);
}

/* ── Shared column layout: 1 label col + 4 plan cols ─── */
.ptc-header-row,
.ptc-section-header-row,
.ptc-section-row,
.ptc-feature-row {
    display: grid;
    grid-template-columns: var(--ptc-cols);
    align-items: center;
}

/* ── Sticky header row ───────────────────────────────── */
/* position:sticky is handled by JS (Divi parent overflow breaks CSS sticky) */
.ptc-header-row {
    position: relative;
    z-index: 10;
    background: #fff;
    border-bottom: 2px solid #D8E0ED;
    padding: 16px 0 20px;
}

/* Fixed clone injected by JS */
#ptc-header-clone {
    /* grid columns + font inherited via inline style from JS */
    display: grid;
    grid-template-columns: var(--ptc-cols, minmax(180px, 2fr) repeat(4, 1fr));
    align-items: center;
}


.ptc-header-row__plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px !important;
}

.ptc-header-row__plan--popular {
    background: #FBFAFF;
    border-radius: 10px;
    padding: 12px 8px !important;
}

.ptc-header-row__name {
    font-size: 18px;
    font-weight: 500;
    color: #21214E;
}

.ptc-header-row__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ptc-header-row__amount {
    font-size: 24px;
    font-weight: 600;
    color: #1A3AA1;
    line-height: 1.2;
}

.ptc-header-row__period {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #21214E;
    line-height: 1;
}

.ptc-header-row__cta {
    display: inline-block;
    background: #2C67FF;
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 30px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    transition: background 0.2s;
    white-space: nowrap;
}

.ptc-header-row__cta:hover {
    background: #1a50e0;
}

/* ── Section header row (bold title, no child values) ── */
.ptc-section-header-row {
    background: #fff;
    border-top: 1px solid #D8E0ED;
    border-bottom: 1px solid #D8E0ED;
    padding: 14px 0;
    display: grid;
    grid-template-columns: var(--ptc-cols);
    align-items: center;
    margin-bottom: 0;
}

.ptc-section-header-row__title {
    font-size: 18px;
    font-weight: 600;
    padding-inline: 15px;
    color: #21214E;
}

/* ── Standalone section row (title + plan values inline) */
.ptc-section-row--standalone {
    border-top: 1px solid #D8E0ED;
    border-bottom: 1px solid #D8E0ED;
    padding: 14px 0;
    margin-bottom: 40px;
}

.ptc-section-row__title {
    font-size: 18px;
    font-weight: 600;
    color: #21214E;
    padding-right: 16px;
}

/* ── Section rows group (for alternating bg scoping) ─── */
.ptc-section-rows-group {
    display: contents;
}

/* ── Feature row ─────────────────────────────────────── */
.ptc-feature-row {
    border-top: none;
    padding: 11px 0;
    border-radius: 8px;
    transition: background 0.15s;
}

/* Alternating row background — class-based, resets per section */
.ptc-feature-row--odd {
    background: #ffffff;
}

.ptc-feature-row--even {
    background: #FBFAFF;
}

.ptc-feature-row:hover {
    background: #EEF2FF;
}

/* Gap after the last row of each section — before the next section header */
.ptc-feature-row--last {
    margin-bottom: 40px;
}

.ptc-feature-row__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #5C5D76;
    padding-inline: 15px;
}

/* ── Cells ───────────────────────────────────────────── */
.ptc-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
}

.ptc-cell--popular {
    background: #F3F7FF;
}

.ptc-cell__check {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0CAA1B;
}

.ptc-cell__text {
    font-size: 13px;
    font-weight: 500;
    color: #21214E;
    text-align: center;
}

.ptc-cell__empty {
    display: block;
    width: 16px;
    height: 2px;
    background: #D1D5E0;
    border-radius: 2px;
}

/* ── Tooltip ─────────────────────────────────────────── */
.ptc-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
    flex-shrink: 0;
}

.ptc-tooltip-icon {
    color: #8D91A5;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.ptc-tooltip-wrap:hover .ptc-tooltip-icon {
    color: #5C5D76;
}

.ptc-tooltip-bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    transform: none;
    background: #ffffff;
    color: #3A3B5A;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 10px;
    white-space: normal;
    width: 220px;
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(33, 33, 78, 0.13), 0 1px 4px rgba(33, 33, 78, 0.07);
    border: 1px solid #ECEDF4;
}

.ptc-tooltip-wrap:hover .ptc-tooltip-bubble,
.ptc-tooltip-wrap:focus-within .ptc-tooltip-bubble {
    display: block;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .ptc-wrap {
        --ptc-cols: minmax(130px, 1.5fr) repeat(4, 1fr);
    }

    .ptc-header-row__name   { font-size: 13px; }
    .ptc-header-row__amount { font-size: 20px; }
    .ptc-header-row__period { font-size: 11px; }
    .ptc-header-row__cta    { font-size: 11px; padding: 5px 10px; }
    .ptc-cell__text         { font-size: 12px; }
    .ptc-feature-row__label { font-size: 13px; }
}

@media (max-width: 480px) {
    .ptc-wrap {
        --ptc-cols: minmax(80px, 1fr) repeat(4, minmax(0, 1fr));
        font-size: 12px;
    }
    .ptc-header-row__cta { display: none; }
}

/* ── Cards-only variant (homepage) ──────────────────── */
.pt-wrapper--cards-only .pt-card__zone--top {
    padding-bottom: 28px;
}
