.subscription-page {
    width: 100%;
    margin: 0 auto;
}

.subscription-hero,
.subscription-pricing,
.subscription-comparison {
    width: 100%;
}

.subscription-hero-scene {
    width: 100%;
}

.subscription-hero {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 34px;
    align-items: center;
    padding: 34px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.subscription-hero-mascot {
    right: -280px;
    top: -45px;
    width: 320px;
    opacity: .9;
}

.subscription-hero .eyebrow {
    color: var(--primary);
}

.subscription-hero h1 {
    margin: 0;
    max-width: 560px;
    color: var(--text);
    font-size: clamp(36px, 4.2vw, 54px);
    line-height: 1.02;
    font-weight: 900;
}

.subscription-hero-copy p:last-child {
    max-width: 560px;
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
}

.subscription-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.subscription-benefit {
    display: grid;
    justify-items: center;
    gap: 13px;
    text-align: center;
}

.subscription-benefit-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .08);
}

.subscription-benefit strong {
    max-width: 150px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 850;
}

.subscription-benefit small {
    max-width: 150px;
    margin-top: -7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 750;
}

.subscription-warning {
    margin: 18px 0 0;
}

.subscription-pricing {
    margin-top: 18px;
}

.subscription-payment-form {
    display: grid;
    gap: 18px;
    width: 100%;
}

.subscription-pricing h2,
.subscription-comparison h2 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 900;
}

.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 326px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    transition: transform var(--motion-fast), box-shadow var(--motion-fast), border-color var(--motion-fast);
}

.pricing-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover);
}

.pricing-card.recommended {
    border-color: rgba(15, 118, 110, .48);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 34px rgba(15, 118, 110, .11);
}

.recommended-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
    white-space: nowrap;
}

.pricing-card-head h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
}

.pricing-card-head strong {
    display: block;
    color: var(--text);
    font-size: 33px;
    line-height: 1.1;
    font-weight: 900;
}

.pricing-card-head span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
}

.pricing-card-head em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-top: 12px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-style: normal;
    font-size: 12px;
    font-weight: 850;
}

.pricing-features {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-size: 14px;
}

.pricing-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pricing-features li::before {
    content: "✓";
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 900;
}

.pricing-card .plan-form {
    margin-top: auto;
    padding-top: 24px;
}

.pricing-card .button {
    width: 100%;
    min-height: 48px;
}

.pricing-card .button.secondary {
    border-color: rgba(15, 118, 110, .5);
    color: var(--primary-dark);
    background: white;
}

.pricing-card .button.secondary:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.subscription-terms-card {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(240, 250, 247, .72), rgba(255, 255, 255, .92));
    box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
    transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}

.subscription-terms-card.needs-attention {
    border-color: rgba(15, 118, 110, .62);
    background: linear-gradient(180deg, rgba(232, 248, 243, .95), rgba(255, 255, 255, .98));
    animation: subscription-terms-attention 980ms ease;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .1), 0 12px 28px rgba(15, 118, 110, .12);
}

.subscription-terms-label {
    margin: 0;
}

.subscription-terms-card p {
    margin: 0 0 0 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.subscription-terms-helper {
    display: none;
    color: var(--primary-dark) !important;
    font-weight: 800;
}

.subscription-terms-helper.is-visible {
    display: block;
    animation: helper-fade 220ms ease;
}

.subscription-note {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin: 16px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.subscription-note span {
    color: var(--warning);
}

.subscription-comparison {
    margin-top: 18px;
}

.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 13px 24px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: 0;
}

.comparison-table thead th {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 900;
}

.comparison-table tbody th {
    width: 36%;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 850;
}

.comparison-table td {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.comparison-table td:last-child {
    color: var(--primary-dark);
    background: rgba(231, 244, 241, .22);
    font-weight: 850;
}

.comparison-table td span {
    display: inline-flex;
    width: 22px;
    color: currentColor;
    font-weight: 900;
}

.help-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.help-list h2 {
    margin: 0;
    font-size: 20px;
}

.help-body {
    white-space: pre-line;
}

.feedback-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.feedback-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: var(--card-soft);
}

.feedback-item p {
    margin: 10px 0 0;
    white-space: pre-wrap;
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    flex-wrap: wrap;
    font-size: 14px;
}

.feedback-meta strong {
    color: var(--text);
}

.debug-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0 0;
}

.debug-meta span {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f3f1eb;
    color: var(--muted);
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 850;
}

.debug-meta .debug-warning {
    border-color: rgba(183, 121, 31, .28);
    color: #7a4c0d;
    background: var(--warning-soft);
}

.stats-level-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .68);
}

.stats-level-filter > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.segmented-control {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.segmented-control button {
    min-height: 36px;
    min-width: 52px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    padding: 0 12px;
}

.segmented-control button:hover {
    background: rgba(17, 24, 39, .045);
    color: var(--text);
}

.segmented-control button.active {
    background: var(--primary-soft);
    border-color: rgba(15, 118, 110, .16);
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .06);
}
