/**
 * Adamiro Pricing v2 — frontend block styles (V4 Swiss)
 *
 * Aligned with the Adamiro V4 brand: matte navy-surface cards, hairline
 * borders (~8% ink), 4px card radius, teal accent, no glassmorphism,
 * no drop-shadows. Pills (999px) retained for toggles/badges.
 *
 * Blocks styled here:
 *   .adamiro-currency-switcher
 *   .adamiro-task-cost-table     (rate-sheet look)
 *   .adamiro-pricing-table       (tier cards)
 *   .adamiro-plan-card
 *   .adamiro-feature-comparison
 *   .adamiro-task-pack-grid
 *
 * Design tokens (kept local so blocks render correctly even outside
 * the Adamiro theme):
 */
:root {
    --adm-pv2-teal: #2FB8A0;
    --adm-pv2-teal-dark: #1E7A6B;
    --adm-pv2-fg: #F1F5F9;
    --adm-pv2-fg-muted: rgba(241, 245, 249, 0.56);
    --adm-pv2-fg-dim: rgba(241, 245, 249, 0.4);
    --adm-pv2-border: rgba(241, 245, 249, 0.08);
    --adm-pv2-border-hover: rgba(47, 184, 160, 0.35);
    --adm-pv2-card-bg: #1E293B;             /* navy-surface */
    --adm-pv2-card-bg-solid: #141F38;       /* navy-lift — featured state */
    --adm-pv2-row-hover: rgba(47, 184, 160, 0.06);
    --adm-pv2-header-bg: rgba(47, 184, 160, 0.05);
    --adm-pv2-radius: 4px;
    --adm-pv2-radius-pill: 999px;
}

/* ============================================================
 * Currency switcher — pill-tab style matching task-economy hero-stat
 * ============================================================ */
.adamiro-currency-switcher {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.adamiro-currency-switcher__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--adm-pv2-fg-muted);
}

.adamiro-currency-switcher__list {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 4px;
    gap: 2px;
    background: var(--adm-pv2-card-bg);
    border: 1px solid var(--adm-pv2-border);
    border-radius: 999px;
}

.adamiro-currency-switcher__item {
    margin: 0;
}

.adamiro-currency-switcher__link {
    display: inline-block;
    padding: 8px 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-pv2-fg-muted);
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}

.adamiro-currency-switcher__link:hover {
    color: var(--adm-pv2-fg);
    text-decoration: none;
}

.adamiro-currency-switcher__link.is-active {
    background: var(--adm-pv2-teal);
    color: #fff;
}

/* ============================================================
 * Task cost table
 *
 * All visual defaults (colour, background, border, font size,
 * hover states) are wrapped in :where() so they resolve at
 * specificity 0. Any sidebar control — Text colour, Background,
 * Border, Typography — wins without !important or specificity
 * tricks. Alignment and padding are emitted inline by render.php.
 *
 * Zero !important in this file.
 * ============================================================ */

/* Structural only (never block user styling) */
.adamiro-task-cost-table {
    width: 100%;
    margin: 0 auto;
}
.adamiro-task-cost-table__table {
    width: 100%;
    border-collapse: collapse;
    color: inherit;
    background: transparent;
}

/* Visual defaults — all at specificity 0 via :where() */
:where(.adamiro-task-cost-table) {
    max-width: 1100px;
    background: var(--adm-pv2-card-bg);
    border: 1px solid var(--adm-pv2-border);
    border-radius: var(--adm-pv2-radius);
    overflow: hidden;
}

:where(.adamiro-task-cost-table__th) {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--adm-pv2-fg-muted);
}

:where(.adamiro-task-cost-table__table thead tr) {
    background: rgba(47, 184, 160, 0.08);
    border-bottom: 1px solid var(--adm-pv2-border);
}

:where(.adamiro-task-cost-table__table tbody tr) {
    border-bottom: 1px solid var(--adm-pv2-border);
    transition: background 0.15s;
}

:where(.adamiro-task-cost-table__table tbody tr:last-child) {
    border-bottom: none;
}

:where(.adamiro-task-cost-table__table tbody tr:hover) {
    background: rgba(47, 184, 160, 0.06);
}

:where(.adamiro-task-cost-table__name,
       .adamiro-task-cost-table__what,
       .adamiro-task-cost-table__cost,
       .adamiro-task-cost-table__time) {
    font-size: 14px;
    vertical-align: top;
    font-weight: 500;
    color: inherit;
}

:where(.adamiro-task-cost-table__what) {
    font-weight: 400;
    line-height: 1.55;
}

:where(.adamiro-task-cost-table__cost, .adamiro-task-cost-table__time) {
    font-weight: 600;
}

/* Functional, not stylistic — keep at normal specificity */
.adamiro-task-cost-table__cost,
.adamiro-task-cost-table__time {
    white-space: nowrap;
}

/* Badge — its own scoped mini-component */
:where(.adamiro-task-cost-table__badge) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    background: rgba(47, 184, 160, 0.1);
    border: 1px solid rgba(47, 184, 160, 0.25);
    color: var(--adm-pv2-teal);
}

/* ============================================================
 * Pricing table — tier cards
 * ============================================================ */
.adamiro-pricing-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.adamiro-pricing-table__cycle-toggle {
    display: inline-flex;
    justify-content: center;
    gap: 2px;
    margin: 0 auto 40px;
    padding: 4px;
    background: var(--adm-pv2-card-bg);
    border: 1px solid var(--adm-pv2-border);
    border-radius: 999px;
}

.adamiro-pricing-table__cycle-toggle {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.adamiro-pricing-table__cycle-link {
    padding: 8px 22px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-pv2-fg-muted);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s;
}

.adamiro-pricing-table__cycle-link:hover {
    color: var(--adm-pv2-fg);
    text-decoration: none;
}

.adamiro-pricing-table__cycle-link.is-active {
    background: var(--adm-pv2-teal);
    color: #fff;
}

.adamiro-pricing-table__cycle-savings {
    font-size: 11px;
    font-weight: 600;
    color: var(--adm-pv2-teal);
    background: rgba(47, 184, 160, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
}

.adamiro-pricing-table__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.adamiro-pricing-table__card {
    display: flex;
    flex-direction: column;
    background: var(--adm-pv2-card-bg);
    border: 1px solid var(--adm-pv2-border);
    border-radius: var(--adm-pv2-radius);
    padding: 32px 28px;
    position: relative;
    height: 100%;
    color: var(--adm-pv2-fg);
    transition: border-color 0.2s ease;
}

.adamiro-pricing-table__card:hover {
    border-color: var(--adm-pv2-border-hover);
}

.adamiro-pricing-table__card.is-featured {
    background: var(--adm-pv2-card-bg-solid);
    border: 1px solid var(--adm-pv2-teal);
}

.adamiro-pricing-table__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--adm-pv2-teal);
    color: #fff;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.adamiro-pricing-table__name {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-pv2-teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.adamiro-pricing-table__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 0 6px;
}

.adamiro-pricing-table__amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--adm-pv2-fg);
}

.adamiro-pricing-table__cycle {
    font-size: 14px;
    color: var(--adm-pv2-fg-muted);
}

.adamiro-pricing-table__effective {
    font-size: 13px;
    color: var(--adm-pv2-fg-muted);
    margin: 0 0 20px;
}

.adamiro-pricing-table__effective strong {
    color: var(--adm-pv2-teal);
}

.adamiro-pricing-table__description {
    margin: 4px 0 16px;
    color: var(--adm-pv2-fg-muted);
    font-size: 13px;
    line-height: 1.55;
}

.adamiro-pricing-table__features {
    list-style: none;
    margin: 16px 0 24px;
    padding: 16px 0 0;
    border-top: 1px solid var(--adm-pv2-border);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adamiro-pricing-table__feature {
    font-size: 13px;
    color: var(--adm-pv2-fg-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.adamiro-pricing-table__feature::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--adm-pv2-teal);
    opacity: 0.7;
    flex-shrink: 0;
}

.adamiro-pricing-table__feature--tasks {
    font-size: 22px;
    font-weight: 700;
    color: var(--adm-pv2-fg);
    /* Allow the .__shared-tag sub-line (multi-seat plans) to wrap onto its
     * own row underneath the headline number. Without flex-wrap the parent's
     * `display: flex` keeps every child on the same row regardless of the
     * tag's `display: block`. */
    flex-wrap: wrap;
    align-items: baseline;
}

.adamiro-pricing-table__feature--tasks::before {
    display: none;
}

.adamiro-pricing-table__module-name {
    font-weight: 500;
    color: var(--adm-pv2-fg);
}

.adamiro-pricing-table__module-detail {
    color: var(--adm-pv2-fg-muted);
}

/* Clarifier tags — multi-seat plans only. "shared across team" sits below
 * the big tasks number as a quiet sub-line; "/ user" sits inside
 * per-feature module-detail spans. */
.adamiro-pricing-table__shared-tag {
    /* flex-basis: 100% forces this child onto its own row inside the
     * .__feature--tasks flex container (which has flex-wrap: wrap).
     * Negative margin pulls it up against the parent row's line-height —
     * the 22px headline + 1.5 line-height leaves a big descender gap that
     * the tag would otherwise sit below. */
    flex-basis: 100%;
    margin-top: -14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--adm-pv2-fg-muted);
    line-height: 1.3;
}

/* Trial line — last item in the feature list, sits in its own block with
 * a hairline separator above and a slightly bigger headline. The +10 bonus
 * tag sits beneath in teal so it reads as an extra, not a sub-line. */
/* Trial headline — last full-width section in the feature list, gets a
 * hairline separator above + a slightly bigger headline. Its own bullet
 * dot via the shared .adamiro-pricing-table__feature::before. */
.adamiro-pricing-table__feature--trial {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--adm-pv2-hairline, rgba(241, 245, 249, 0.10));
    font-size: 15px;
    line-height: 1.4;
}
.adamiro-pricing-table__feature--trial strong {
    font-weight: 600;
    color: var(--adm-pv2-fg, #F1F5F9);
}
/* +10 bonus onboarding tasks — sits right under the trial headline as a
 * separate bulleted row in teal. No top hairline (already drawn above
 * the trial item), and no extra margin so the two rows read as a pair. */
.adamiro-pricing-table__feature--trial-bonus {
    font-size: 13px;
    font-weight: 500;
    color: var(--adm-pv2-teal, #2FB8A0);
    line-height: 1.4;
}

.adamiro-pricing-table__per-user {
    font-size: 11px;
    font-weight: 500;
    color: var(--adm-pv2-fg-dim);
    margin-left: 2px;
}

/* Eyebrow row above the per-user-scoped module limits on multi-seat plans.
 * Replaces the per-module "/ user" suffix that wrapped ugly when the detail
 * string was long (e.g. Team Signals "25 sources · 8 reports/mo"). */
.adamiro-pricing-table__per-user-divider {
    list-style: none;
    margin: 12px 0 4px;
    padding: 0;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--adm-pv2-fg-dim);
}
.adamiro-pricing-table__per-user-divider::before {
    display: none;
}

/* Comparison-table per-team marker (matches existing __per-user span) */
.adamiro-feature-comparison__per-team {
    color: var(--adm-pv2-fg-dim, rgba(241, 245, 249, 0.4));
    font-size: 0.875em;
    margin-left: 4px;
}

.adamiro-pricing-table__footer {
    margin-top: auto;
}

.adamiro-pricing-table__cta {
    display: block;
    text-align: center;
    width: 100%;
    background: var(--adm-pv2-teal);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    text-decoration: none;
    transition: background 0.2s;
}

.adamiro-pricing-table__cta:hover {
    background: var(--adm-pv2-teal-dark);
    color: #fff;
    text-decoration: none;
}

.adamiro-pricing-table__card:not(.is-featured) .adamiro-pricing-table__cta {
    background: transparent;
    border: 2px solid var(--adm-pv2-teal);
    color: var(--adm-pv2-teal);
    padding: 12px 22px;
}

.adamiro-pricing-table__card:not(.is-featured) .adamiro-pricing-table__cta:hover {
    background: rgba(47, 184, 160, 0.1);
    color: var(--adm-pv2-teal);
}

/* ============================================================
 * Plan card (single)
 * ============================================================ */
.adamiro-plan-card__inner {
    display: flex;
    flex-direction: column;
    background: var(--adm-pv2-card-bg);
    border: 1px solid var(--adm-pv2-border);
    border-radius: var(--adm-pv2-radius);
    padding: 32px 28px;
    position: relative;
    max-width: 400px;
    color: var(--adm-pv2-fg);
    transition: border-color 0.2s ease;
}

.adamiro-plan-card__inner:hover {
    border-color: var(--adm-pv2-border-hover);
}

.adamiro-plan-card__inner.is-featured {
    background: var(--adm-pv2-card-bg-solid);
    border: 1px solid var(--adm-pv2-teal);
}

.adamiro-plan-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--adm-pv2-teal);
    color: #fff;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.adamiro-plan-card__name {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-pv2-teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.adamiro-plan-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 0 6px;
}

.adamiro-plan-card__amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.adamiro-plan-card__cycle {
    font-size: 14px;
    color: var(--adm-pv2-fg-muted);
}

.adamiro-plan-card__description {
    margin: 4px 0 16px;
    color: var(--adm-pv2-fg-muted);
    font-size: 13px;
}

.adamiro-plan-card__features {
    list-style: none;
    margin: 16px 0 24px;
    padding: 16px 0 0;
    border-top: 1px solid var(--adm-pv2-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adamiro-plan-card__feature {
    font-size: 13px;
    color: var(--adm-pv2-fg-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.adamiro-plan-card__feature::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--adm-pv2-teal);
    opacity: 0.7;
    flex-shrink: 0;
}

.adamiro-plan-card__cta {
    display: block;
    text-align: center;
    background: var(--adm-pv2-teal);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    padding: 14px 24px;
    text-decoration: none;
}

/* ============================================================
 * Feature comparison table
 * ============================================================ */
.adamiro-feature-comparison {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
}

.adamiro-feature-comparison__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: var(--adm-pv2-card-bg);
    border: 1px solid var(--adm-pv2-border);
    border-radius: var(--adm-pv2-radius);
    overflow: hidden;
}

.adamiro-feature-comparison__th,
.adamiro-feature-comparison__cell {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--adm-pv2-border);
    font-size: 13px;
    color: var(--adm-pv2-fg);
}

.adamiro-feature-comparison__th--feature,
.adamiro-feature-comparison__row-label {
    text-align: left;
    font-weight: 500;
    color: var(--adm-pv2-fg);
    padding: 14px 18px;
    border-bottom: 1px solid var(--adm-pv2-border);
}

.adamiro-feature-comparison__th {
    background: rgba(47, 184, 160, 0.08);
    vertical-align: bottom;
    padding-bottom: 16px;
    color: var(--adm-pv2-fg-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.adamiro-feature-comparison__th.is-featured {
    background: rgba(47, 184, 160, 0.18);
}

.adamiro-feature-comparison__cell.is-featured {
    background: rgba(47, 184, 160, 0.05);
}

.adamiro-feature-comparison__plan-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--adm-pv2-fg);
    text-transform: none;
    letter-spacing: 0;
}

.adamiro-feature-comparison__plan-price {
    display: block;
    font-size: 12px;
    color: var(--adm-pv2-fg-muted);
    margin-top: 4px;
}

.adamiro-feature-comparison__section-label {
    text-align: left;
    padding: 20px 18px 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--adm-pv2-teal);
    background: rgba(47, 184, 160, 0.04);
    border-bottom: 1px solid var(--adm-pv2-border);
}

.adamiro-feature-comparison__row--header .adamiro-feature-comparison__cell {
    font-size: 14px;
}

.adamiro-feature-comparison__check {
    color: var(--adm-pv2-teal);
    font-size: 16px;
    font-weight: 700;
}

.adamiro-feature-comparison__dash {
    color: var(--adm-pv2-fg-muted);
    opacity: 0.5;
}

.adamiro-feature-comparison__unlimited {
    font-style: italic;
    color: var(--adm-pv2-fg-muted);
}

/* ============================================================
 * Task pack grid
 * ============================================================ */
.adamiro-task-pack-grid {
    max-width: 1100px;
    margin: 0 auto;
}

.adamiro-task-pack-grid__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.adamiro-task-pack-grid__card {
    display: flex;
    flex-direction: column;
    background: var(--adm-pv2-card-bg);
    border: 1px solid var(--adm-pv2-border);
    border-radius: var(--adm-pv2-radius);
    padding: 24px 20px;
    height: 100%;
    text-align: center;
    color: var(--adm-pv2-fg);
}

.adamiro-task-pack-grid__name {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-pv2-fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.adamiro-task-pack-grid__price {
    margin: 8px 0 4px;
}

.adamiro-task-pack-grid__amount {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--adm-pv2-teal);
}

.adamiro-task-pack-grid__per-task {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--adm-pv2-fg-muted);
}

.adamiro-task-pack-grid__description {
    margin: 12px 0 16px;
    color: var(--adm-pv2-fg-muted);
    font-size: 13px;
    line-height: 1.5;
}

.adamiro-task-pack-grid__features {
    list-style: none;
    margin: 12px 0 16px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adamiro-task-pack-grid__feature {
    font-size: 13px;
    color: var(--adm-pv2-fg-muted);
}

.adamiro-task-pack-grid__feature--team {
    color: var(--adm-pv2-teal);
}

.adamiro-task-pack-grid__discount-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 8px;
    background: rgba(47, 184, 160, 0.15);
    border: 1px solid rgba(47, 184, 160, 0.3);
    color: var(--adm-pv2-teal);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.adamiro-task-pack-grid__cta {
    display: block;
    text-align: center;
    background: var(--adm-pv2-teal);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 20px;
    margin-top: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.adamiro-task-pack-grid__cta:hover {
    background: var(--adm-pv2-teal-dark);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
 * Mobile
 * ============================================================ */
@media (max-width: 768px) {
    .adamiro-pricing-table__card.is-featured {
        transform: none;
    }

    .adamiro-pricing-table__amount,
    .adamiro-plan-card__amount {
        font-size: 32px;
    }

    .adamiro-task-cost-table__name,
    .adamiro-task-cost-table__what,
    .adamiro-task-cost-table__cost {
        padding: 12px 14px;
        font-size: 13px;
    }
}