/*============================================

   ThemeAdapt — Pricing page (template-access.php)

   Plan cards, the shared perks, the comparison table and the guarantee
   strip. Loaded only on that template; headings, eyebrows, buttons, the FAQ
   and the closing call to action come from themeadapt-app.css.

==============================================*/

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */

.ta-price-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 4vw + 32px, 84px) clamp(40px, 3vw + 24px, 52px);
    text-align: center;
}

.ta-price-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -240px;
    width: 1100px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--ta-accent) 13%, transparent), transparent);
    translate: -50% 0;
    pointer-events: none;
}

.ta-price-hero .ta-container {
    position: relative;
}

.ta-price-hero__title {
    max-width: 900px;
    margin: 20px auto 18px;
    font-size: clamp(2.375rem, 1.4rem + 3vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.ta-price-hero__title span {
    color: var(--ta-accent);
}

.ta-price-hero__text {
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--ta-muted);
}

.ta-price-seg {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 30px;
    padding: 5px;
    border: 1px solid #2c2c2c;
    border-radius: var(--ta-radius-pill);
    background: #1b1b1b;
    font-size: .875rem;
    font-weight: var(--ta-fw-semibold);
}

.ta-price-seg > * {
    padding: 9px 18px;
    border-radius: var(--ta-radius-pill);
    color: #9a9a9a;
}

.ta-price-seg a:hover {
    color: var(--ta-foreground);
}

.ta-price-seg [aria-current] {
    background: var(--ta-accent);
    color: #0c1705;
}

/* -------------------------------------------------------------------------
 * Plan cards
 * ---------------------------------------------------------------------- */

.ta-price-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.ta-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 28px;
    border: 1px solid #2c2c2c;
    border-radius: 28px;
    background: #1b1b1b;
}

.ta-price-card__stack {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    margin: 0;
    padding: 16px;
    border: 1px solid #262626;
    border-radius: 20px;
    background: #151515;
    list-style: none;
}

.ta-price-card__stack li {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid #333;
    border-radius: 14px;
    background: #242424;
    color: #f2f2f2;
}

.ta-price-card__stack svg {
    width: 22px;
    height: 22px;
}

.ta-price-card__stack li.is-out {
    border-style: dashed;
    background: transparent;
    opacity: .3;
}

.ta-price-card__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 26px 0 6px;
    font-size: 1.75rem;
    letter-spacing: -.035em;
}

.ta-price-card__flag {
    padding: 5px 10px;
    border-radius: var(--ta-radius-pill);
    background: var(--ta-accent);
    font-family: var(--ta-font);
    font-size: .6875rem;
    font-weight: var(--ta-fw-extrabold);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0c1705;
}

.ta-price-card__tagline {
    min-height: 44px;
    margin: 0;
    font-size: .90625rem;
    line-height: 1.5;
    color: #9a9a9a;
}

.ta-price-card__count {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #2a2a2a;
}

.ta-price-card__count b {
    font-family: var(--ta-font-head);
    font-size: 4.5rem;
    line-height: .85;
    letter-spacing: -.06em;
}

.ta-price-card__count span {
    padding-bottom: 4px;
    font-size: .875rem;
    line-height: 1.35;
    color: #9a9a9a;
}

.ta-price-card__count em {
    display: block;
    font-style: normal;
    font-weight: var(--ta-fw-semibold);
    color: var(--ta-accent);
}

.ta-price-card__price,
.ta-compare__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.ta-price-card__price {
    margin: 28px 0 20px;
}

.ta-price-card__price b,
.ta-compare__price b {
    font-family: var(--ta-font-head);
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -.05em;
}

.ta-price-card__price del,
.ta-compare__price del {
    font-size: 1rem;
    color: #8d8d8d;
}

.ta-price-card__price small,
.ta-compare__price small {
    font-size: .8125rem;
    color: #8d8d8d;
}

.ta-price-save {
    align-self: center;
    padding: 4px 9px;
    border-radius: var(--ta-radius-pill);
    background: var(--ta-accent-soft);
    font-size: .75rem;
    font-weight: var(--ta-fw-bold);
    color: var(--ta-accent);
}

.ta-price-card .ta-btn {
    margin-top: auto;
    padding-block: 15px;
}

.ta-price-card .ta-btn svg,
.ta-compare .ta-btn svg {
    width: 16px;
    height: 16px;
}

/* Pro: the one most buyers should take, in the brand lime. */
.ta-price-card--featured {
    border-color: var(--ta-cta-border);
    background: var(--ta-accent);
    color: #0c1705;
}

.ta-price-card--featured .ta-price-card__stack {
    border-color: rgba(12, 23, 5, .12);
    background: rgba(12, 23, 5, .08);
}

.ta-price-card--featured .ta-price-card__stack li {
    border-color: #0c1705;
    background: #0c1705;
    color: var(--ta-accent);
}

.ta-price-card--featured .ta-price-card__stack li.is-out {
    border-color: rgba(12, 23, 5, .5);
    background: transparent;
    color: #0c1705;
    opacity: .45;
}

.ta-price-card--featured .ta-price-card__name {
    color: #0c1705;
}

.ta-price-card--featured .ta-price-card__flag {
    background: #0c1705;
    color: var(--ta-accent);
}

.ta-price-card--featured .ta-price-card__tagline,
.ta-price-card--featured .ta-price-card__count span,
.ta-price-card--featured .ta-price-card__price small,
.ta-price-card--featured .ta-price-card__price del {
    color: rgba(12, 23, 5, .7);
}

.ta-price-card--featured .ta-price-card__count {
    border-color: rgba(12, 23, 5, .15);
}

.ta-price-card--featured .ta-price-card__count em {
    font-weight: var(--ta-fw-bold);
    color: #0c1705;
}

.ta-price-card--featured .ta-price-save {
    background: #0c1705;
    color: var(--ta-accent);
}

.ta-btn--dark {
    border-color: #0c1705;
    background: #0c1705;
    color: var(--ta-accent);
}

.ta-btn--dark:hover {
    background: #16280a;
}

/* All Access: the whole catalogue, with a lime glow. */
.ta-price-card--all {
    border-color: color-mix(in srgb, var(--ta-accent) 25%, #2c2c2c);
    background:
        radial-gradient(360px 240px at 100% 0%, color-mix(in srgb, var(--ta-accent) 14%, transparent), transparent 70%),
        #1b1b1b;
}

.ta-price-card--all .ta-price-card__flag {
    border: 1px solid color-mix(in srgb, var(--ta-accent) 30%, transparent);
    background: var(--ta-accent-soft);
    color: var(--ta-accent);
}

/* -------------------------------------------------------------------------
 * Shared perks
 * ---------------------------------------------------------------------- */

.ta-price-perks {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.ta-price-perk {
    padding: 26px;
    border: 1px solid #2c2c2c;
    border-radius: 24px;
    background: #1b1b1b;
}

.ta-price-perk__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--ta-accent-soft);
    color: var(--ta-accent);
}

.ta-price-perk__icon svg {
    width: 22px;
    height: 22px;
}

.ta-price-perk h3 {
    margin-bottom: 8px;
    font-size: 1.1875rem;
    letter-spacing: -.02em;
}

.ta-price-perk p {
    margin: 0;
    font-size: .90625rem;
    line-height: 1.6;
    color: #9f9f9f;
}

.ta-price-perk--key {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    background:
        radial-gradient(300px 260px at 30% 30%, color-mix(in srgb, var(--ta-accent) 20%, transparent), transparent 70%),
        #161616;
}

.ta-price-perk--key img {
    width: 110px;
    height: auto;
    rotate: -6deg;
    filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--ta-accent) 35%, transparent));
}

.ta-price-perk--key h2 {
    font-size: 2.125rem;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.ta-price-perk--key h2 span {
    color: var(--ta-accent);
}

.ta-price-perk--key p {
    margin-top: 12px;
}

.ta-price-note {
    max-width: 720px;
    margin: 26px auto 0;
    font-size: .84375rem;
    line-height: 1.6;
    text-align: center;
    color: #8d8d8d;
}

/* -------------------------------------------------------------------------
 * Comparison table
 * ---------------------------------------------------------------------- */

.ta-compare__pick {
    display: none;
    margin: 0 0 14px;
    padding: 5px;
    border: 1px solid #2c2c2c;
    border-radius: var(--ta-radius-pill);
    background: #1b1b1b;
}

/* Hidden from sight, not from the keyboard: the label is the visible control. */
.ta-compare__pick input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ta-compare__pick label {
    flex: 1;
    padding: 10px 8px;
    border-radius: var(--ta-radius-pill);
    font-size: .875rem;
    font-weight: var(--ta-fw-semibold);
    text-align: center;
    color: #9a9a9a;
    cursor: pointer;
}

.ta-compare__pick input:checked + label {
    background: var(--ta-accent);
    color: #0c1705;
}

.ta-compare__pick input:focus-visible + label {
    outline: 2px solid var(--ta-accent);
    outline-offset: 2px;
}

.ta-compare__frame {
    overflow: hidden;
    border: 1px solid #2c2c2c;
    border-radius: 28px;
    background: #1a1a1a;
}

.ta-compare__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ta-compare__table th,
.ta-compare__table td {
    padding: 15px 24px;
    border-top: 1px solid #242424;
    border-left: 1px solid #262626;
    font-size: .90625rem;
    text-align: center;
    vertical-align: middle;
    color: #dcdcdc;
}

.ta-compare__table tr > :first-child {
    width: 31%;
    border-left: 0;
    text-align: left;
}

.ta-compare__table tbody th {
    font-weight: var(--ta-fw-medium);
}

.ta-compare__table .is-featured {
    background: color-mix(in srgb, var(--ta-accent) 4.5%, transparent);
}

/* Head: one cell per plan with its price and button. */
.ta-compare__table thead th,
.ta-compare__table thead td {
    position: relative;
    padding: 28px 24px;
    border-top: 0;
    text-align: left;
    vertical-align: top;
}

.ta-compare__table thead th.is-featured {
    background:
        radial-gradient(300px 200px at 50% 0%, color-mix(in srgb, var(--ta-accent) 14%, transparent), transparent 70%),
        color-mix(in srgb, var(--ta-accent) 4.5%, transparent);
}

.ta-compare__table thead th.is-featured::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--ta-accent);
}

.ta-compare__table thead .ta-compare__intro {
    vertical-align: bottom;
}

.ta-compare__intro img {
    display: block;
    margin-bottom: 14px;
}

.ta-compare__intro b {
    font-family: var(--ta-font-head);
    font-size: 1.625rem;
    letter-spacing: -.035em;
    color: var(--ta-foreground);
}

.ta-compare__plan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--ta-font-head);
    font-size: 1.5rem;
    font-weight: var(--ta-fw-bold);
    letter-spacing: -.03em;
    color: var(--ta-foreground);
}

.ta-compare__plan .ta-price-card__flag {
    font-size: .625rem;
}

.ta-compare__price {
    margin: 10px 0 16px;
}

.ta-compare .ta-btn {
    padding-block: 12px;
    font-size: .875rem;
}

.ta-compare__group th {
    padding-block: 13px;
    background: #161616;
    font-size: .75rem;
    font-weight: var(--ta-fw-extrabold) !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ta-accent) !important;
}

.ta-compare__platform {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ta-compare__platform svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.ta-compare__platform em {
    margin-left: auto;
    font: 600 .8125rem var(--ta-mono);
    font-style: normal;
    color: #8d8d8d;
}

.ta-compare__yes,
.ta-compare__no {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    vertical-align: middle;
}

.ta-compare__yes {
    background: var(--ta-accent-soft);
    color: var(--ta-accent);
}

.ta-compare__yes svg {
    width: 12px;
    height: 12px;
}

.ta-compare__no {
    background: #222;
    color: #555;
}

.ta-compare__no::before {
    content: '';
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.ta-compare__total td b {
    display: block;
    font-family: var(--ta-font-head);
    font-size: 1.875rem;
    line-height: 1.1;
    letter-spacing: -.04em;
    color: var(--ta-foreground);
}

.ta-compare__total td small {
    font-size: .8125rem;
    color: #8d8d8d;
}

.ta-compare__text {
    font-size: .84375rem !important;
}

.ta-compare__text.is-lime {
    font-weight: var(--ta-fw-semibold);
    color: var(--ta-accent) !important;
}

/* -------------------------------------------------------------------------
 * Guarantee strip
 * ---------------------------------------------------------------------- */

.ta-price-guarantee {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #2c2c2c;
    border-radius: 22px;
    background: #1b1b1b;
    list-style: none;
}

.ta-price-guarantee li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    border-left: 1px solid #2a2a2a;
    font-size: .84375rem;
    line-height: 1.5;
    color: #9a9a9a;
}

.ta-price-guarantee li:first-child {
    border-left: 0;
}

.ta-price-guarantee li > span {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ta-accent-soft);
    color: var(--ta-accent);
}

.ta-price-guarantee svg {
    width: 20px;
    height: 20px;
}

.ta-price-guarantee b {
    display: block;
    margin-bottom: 4px;
    font-family: var(--ta-font-head);
    font-size: 1rem;
    letter-spacing: -.015em;
    color: var(--ta-foreground);
}

.ta-price-guarantee a {
    color: inherit;
}

.ta-price-guarantee a:hover {
    color: var(--ta-accent);
}

/* -------------------------------------------------------------------------
 * Closing call to action
 * ---------------------------------------------------------------------- */

.ta-price-cta {
    padding-bottom: var(--ta-section-y);
}

.ta-price-cta__box {
    padding: clamp(40px, 3vw + 26px, 56px) clamp(22px, 3vw, 40px);
    border: 1px solid #2c2c2c;
    border-radius: 32px;
    background:
        radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--ta-accent) 16%, transparent), transparent 70%),
        #1b1b1b;
    text-align: center;
}

.ta-price-cta__box h2 {
    margin: 0;
    font-size: clamp(2rem, 1.3rem + 2vw, 2.875rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.ta-price-cta__box h2 span {
    color: var(--ta-accent);
    white-space: nowrap;
}

.ta-price-cta__box p {
    max-width: 760px;
    margin: 14px auto 26px;
    font-size: 1.03125rem;
    line-height: 1.6;
    color: #a8a8a8;
}

.ta-price-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ta-price-cta__actions .ta-btn svg {
    width: 16px;
    height: 16px;
}

/* On a phone the two buttons stack at one width rather than two. */
@media (max-width: 479px) {
    .ta-price-cta__actions .ta-btn {
        flex: 1 1 100%;
    }
}

/* -------------------------------------------------------------------------
 * Smaller screens
 * ---------------------------------------------------------------------- */

@media (max-width: 1099px) {
    .ta-price-cards {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin-inline: auto;
    }

    .ta-price-card__tagline {
        min-height: 0;
    }

    .ta-price-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-price-perk--key {
        grid-column: 1 / -1;
        grid-row: auto;
        flex-direction: row;
        align-items: center;
    }

    .ta-price-perk--key img {
        width: 84px;
    }

    .ta-price-guarantee {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-price-guarantee li:nth-child(3) {
        border-left: 0;
    }

    .ta-price-guarantee li:nth-child(n + 3) {
        border-top: 1px solid #2a2a2a;
    }

    .ta-compare__table th,
    .ta-compare__table td {
        padding-inline: 16px;
    }
}

/* Phones: the table shows one plan at a time, chosen with the tabs. */
@media (max-width: 767px) {
    .ta-price-hero {
        padding-block: 44px 28px;
    }

    .ta-price-seg {
        margin-top: 24px;
    }

    .ta-compare__pick {
        display: flex;
    }

    .ta-compare:has(#ta-compare-template_only:checked) [data-plan]:not([data-plan="template_only"]),
    .ta-compare:has(#ta-compare-theme_only:checked) [data-plan]:not([data-plan="theme_only"]),
    .ta-compare:has(#ta-compare-all_access:checked) [data-plan]:not([data-plan="all_access"]) {
        display: none;
    }

    .ta-compare__frame {
        border-radius: 22px;
    }

    /* Two columns — the row label and the chosen plan. As a grid, so the
       other plans' cells, hidden above, leave no empty columns behind. */
    .ta-compare__table,
    .ta-compare__table thead,
    .ta-compare__table tbody {
        display: block;
    }

    .ta-compare__table tr {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .ta-compare__table tr > :first-child {
        width: auto;
    }

    .ta-compare__group th {
        grid-column: 1 / -1;
    }

    .ta-compare__table th,
    .ta-compare__table td {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 12px 14px;
        font-size: .84375rem;
    }

    .ta-compare__table tbody td {
        align-items: center;
    }

    .ta-compare .ta-btn {
        padding: 11px 10px;
        font-size: .8125rem;
    }

    .ta-compare__table thead th,
    .ta-compare__table thead td {
        padding: 20px 14px;
    }

    .ta-compare__intro img {
        width: 34px;
        height: 34px;
    }

    .ta-compare__intro b {
        font-size: 1.125rem;
    }

    .ta-compare__plan {
        font-size: 1.25rem;
    }

    .ta-compare__price b {
        font-size: 1.875rem;
    }

    .ta-compare__total td b {
        font-size: 1.5rem;
    }

    .ta-price-perks,
    .ta-price-guarantee {
        grid-template-columns: minmax(0, 1fr);
    }

    .ta-price-guarantee li {
        border-left: 0;
    }

    .ta-price-guarantee li + li {
        border-top: 1px solid #2a2a2a;
    }

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

    .ta-price-card__count b {
        font-size: 3.5rem;
    }

    .ta-price-seg__more {
        display: none;
    }

    .ta-price-perk--key h2 {
        font-size: 1.625rem;
    }

    .ta-price-perk--key img {
        width: 72px;
    }
}
