/* AEM Labs → Landing → Pricing CSS
   ================================ */


/* Hero */
.hero {
    width: 100%;
    height: 25vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 48px;
    background: linear-gradient(180deg, rgba(var(--accent-color-1-rgb), 0.06) 5%, rgba(var(--bg-color-2-rgb), 0.5) 20%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 1px,
        transparent 0.5px
    );
    background-size: 16px 16px;
    background-position: 0 0;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 65%;
    padding-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.75);
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.toggle-tabs {
    display: flex;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    margin: 20px 0 16px;
    padding: 4px;
    border-radius: 12px;
    background: var(--bg-color-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-tabs button,
.tab-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-tabs button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.tab-panel button:hover {
    filter: brightness(1.2);
}

.toggle-tabs button[aria-selected="true"],
.tab-panel button {
    color: var(--bg-color-2);
    background: linear-gradient(180deg, var(--accent-color-1), var(--accent-color-2));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.toggle-tabs button:focus-visible {
    outline: 2px solid var(--accent-color-1);
    outline-offset: 2px;
}


/* Pricing Tiers */
.tier-plans {
}

.tier-plans .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.tier-plans article {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    position: relative;
    background: rgba(var(--bg-color-2-rgb), 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    padding: 16px;
}

.tier-plans article:last-child {
    border: 1px dashed rgba(var(--accent-color-2-rgb), 0.5);
}

.tier-plans article .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-color-1);
    color: var(--bg-color-2);
}

.tier-plans article:has(.badge) {
    border-color: rgba(var(--accent-color-1-rgb), 0.45);
    background: linear-gradient(165deg, rgba(var(--accent-color-1-rgb), 0.06) 0%, rgba(32, 31, 27, 0.85) 45%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.tier-plans article .price-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background: rgba(var(--bg-color-1-rgb), 0.5);
    padding: 12px 16px;
    border-radius: 14px;
}

.tier-plans article .top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.tier-plans article .top h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.tier-plans article .top p {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 500;
    color: #ddd;
}

.tier-plans article .price-box p:has(>span) {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
}

.tier-plans article .price-box:not(.top) p>span {
    font-size: 16px;
    font-weight: 700;
    vertical-align: top;
    margin-right: 4px;
    color: var(--accent-color-1);
}

.tier-plans article .price-box:not(.top) p small {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.tier-plans article a {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tier-plans article:has(.badge) a {
    background: var(--accent-color-1);
    color: var(--bg-color-2);
}

.tier-plans article:has(.badge) a:hover {
    background: var(--accent-color-2);
    color: var(--bg-color-2);
}

.tier-plans article:not(:has(.badge)) a {
    color: #eee;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tier-plans article:not(:has(.badge)) a:hover {
    background: rgba(var(--accent-color-1-rgb), 0.2);
    border-color: rgba(var(--accent-color-1-rgb), 0.45);
    color: #fff;
}

.tier-plans article ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin-top: 8px;
}

.tier-plans article ul li {
    font-size: 13px;
    font-weight: 500;
    color: #ddd;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tier-plans article ul:first-of-type li {
    padding: 6px 0;
}

.tier-plans article ul:first-of-type li i {
    font-size: 10px;
}

.tier-plans article ul:last-of-type {
    padding-top: 12px;
    border-top: 1px dashed rgba(var(--accent-color-2-rgb), 0.35);
}

.tier-plans article ul:last-of-type li {
    padding: 8px 0;
}

.tier-plans article ul li i {
    color: var(--accent-color-1);
}

.tier-plans article ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tier-plans article ul li.is-muted,
.tier-plans article ul li.is-muted i{
    color: rgba(255, 255, 255, 0.45);
}

.tier-plans .footnote {
    margin-top: 20px;
    font-size: 12px;
    color: #ddd;
}

.tier-plans .footnote span {
    font-size: 11px;
    color: var(--accent-color-1);
    vertical-align: super;
}


/* Comparison Table */
.pricing-table {
    margin-top: 56px;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(24, 22, 18, 0.6);
}

.table-wrapper table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}

.table-wrapper table thead th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    color: #f0ebe3;
    background: rgba(var(--accent-color-1-rgb), 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-wrapper table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 200px;
}

.table-wrapper table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(32, 31, 27, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.table-wrapper table td {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table-wrapper table td i {
    color: var(--accent-color-1);
    font-size: 14px;
}

.table-wrapper table tbody tr:nth-child(even) td,
.table-wrapper table tbody tr:nth-child(even) th {
    background: rgba(255, 255, 255, 0.02);
}

.table-wrapper table tbody tr:last-child th,
.table-wrapper table tbody tr:last-child td {
    border-bottom: none;
}
