:root {
    --page-bg: #070707;
    --page-surface: #0f0f0e;
    --page-text: #f4f4ef;
    --page-muted: #989890;
    --page-line: rgba(244, 244, 239, 0.16);
    --page-accent: #bdf45b;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page-bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -12%, rgba(189, 244, 91, 0.055), transparent 34rem),
        var(--page-bg);
    color: var(--page-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
}

.subscription-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 28px 40px;
}

.subscription-logo {
    justify-self: start;
    color: var(--page-text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
}

.subscription-section-name {
    color: rgba(244, 244, 239, 0.58);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subscription-back {
    justify-self: end;
    color: var(--page-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.subscription-back::after,
.plans-note a::after,
.subscription-footer > a:last-child::after {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 4px;
    background: currentColor;
    content: '';
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 180ms ease;
}

.subscription-back:hover::after,
.plans-note a:hover::after,
.subscription-footer > a:last-child:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.subscription-hero {
    position: relative;
    min-height: 660px;
    height: 78vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 140px 40px 68px;
    border-bottom: 1px solid var(--page-line);
}

.subscription-hero::before {
    position: absolute;
    top: 15%;
    right: 8%;
    width: min(45vw, 650px);
    aspect-ratio: 1;
    border: 1px solid rgba(244, 244, 239, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(244, 244, 239, 0.018),
        0 0 0 150px rgba(244, 244, 239, 0.012);
    content: '';
    transform: translate(28%, -15%);
}

.subscription-hero::after {
    position: absolute;
    right: 40px;
    bottom: 68px;
    width: min(42vw, 580px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(189, 244, 91, 0.56));
    content: '';
    transform-origin: right center;
    animation: hero-line 1.1s 280ms ease-out both;
}

.subscription-hero-glow {
    position: absolute;
    top: 4%;
    right: -10%;
    width: 44rem;
    height: 34rem;
    border-radius: 50%;
    background: rgba(189, 244, 91, 0.06);
    filter: blur(100px);
    pointer-events: none;
}

.subscription-hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, 75%);
    animation: hero-enter 820ms ease-out both;
}

.eyebrow,
.section-number {
    margin: 0;
    color: var(--page-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.subscription-hero h1 {
    max-width: 920px;
    margin: 18px 0 24px;
    font-size: clamp(4rem, 7.6vw, 7.6rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.88;
}

.subscription-hero h1 em {
    color: var(--page-accent);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.subscription-lead {
    max-width: 600px;
    margin: 0;
    color: rgba(244, 244, 239, 0.68);
    font-size: 1.06rem;
}

.subscription-hero-meta {
    position: absolute;
    right: 40px;
    bottom: 86px;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-align: right;
    animation: hero-enter 820ms 140ms ease-out both;
}

.subscription-hero-meta span {
    color: var(--page-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.subscription-hero-meta p {
    margin: 0;
    color: rgba(244, 244, 239, 0.54);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.55;
    text-transform: uppercase;
}

.plans-section,
.subscription-cta,
.subscription-footer {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
}

.plans-section {
    padding: 112px 0 80px;
}

.plans-intro {
    display: grid;
    grid-template-columns: 100px minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 66px;
}

.plans-intro h2,
.subscription-cta h2 {
    margin: 14px 0 0;
    font-size: clamp(2.25rem, 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.plans-description {
    max-width: 570px;
    margin: 0;
    color: var(--page-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

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

.subscription-card {
    --card-foreground: #ffffff;
    --card-border: rgba(255, 255, 255, 0.26);
    --card-muted: rgba(255, 255, 255, 0.7);
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--card-border);
    border-radius: 26px;
    color: var(--card-foreground);
    background-size: 180% 180%;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    animation: card-surface-shift 8s ease-in-out infinite;
    transition: box-shadow 420ms ease, transform 180ms ease;
}

.subscription-card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        circle at var(--pointer-x) var(--pointer-y),
        rgba(255, 255, 255, 0.25),
        transparent 34%
    );
    content: '';
    opacity: 0;
    transition: opacity 300ms ease;
}

.subscription-card::after {
    position: absolute;
    top: -80%;
    left: -120%;
    z-index: 0;
    width: 72%;
    height: 260%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    content: '';
    opacity: 0.72;
    pointer-events: none;
    transform: rotate(18deg);
    animation: card-sheen 7.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.subscription-card:hover {
    z-index: 2;
    box-shadow: 0 42px 100px rgba(0, 0, 0, 0.5);
}

.subscription-card:hover::before {
    opacity: 1;
}

.subscription-card-infinity {
    background: linear-gradient(145deg, #cc9a64 0%, #a76f38 42%, #71451f 100%);
}

.subscription-card-legend {
    --card-foreground: #101317;
    --card-border: rgba(255, 255, 255, 0.4);
    --card-muted: rgba(16, 19, 23, 0.64);
    background: linear-gradient(145deg, #edf1f4 0%, #bdc6cf 43%, #798491 100%);
    animation-delay: -2.4s;
}

.subscription-card-elite {
    --card-foreground: #151109;
    --card-border: rgba(255, 241, 185, 0.5);
    --card-muted: rgba(21, 17, 9, 0.64);
    background: linear-gradient(145deg, #fff1b5 0%, #e0b94f 42%, #9c691b 100%);
    animation-delay: -4.8s;
}

.subscription-card-legend::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    animation-delay: -2.4s;
}

.subscription-card-elite::after {
    background: linear-gradient(90deg, transparent, rgba(255, 249, 218, 0.46), transparent);
    animation-delay: -4.8s;
}

.card-noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.card-glow {
    position: absolute;
    top: -90px;
    right: -70px;
    z-index: -1;
    width: 240px;
    height: 240px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.17;
    box-shadow: 0 0 0 42px currentColor, 0 0 0 84px currentColor;
    animation: card-orbit 8s ease-in-out infinite alternate;
}

.subscription-card-legend .card-glow {
    opacity: 0.2;
    animation-delay: -2.4s;
}

.subscription-card-elite .card-glow {
    opacity: 0.22;
    animation-delay: -4.8s;
}

.card-topline,
.card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-index,
.card-type,
.card-badge,
.card-duration,
.card-price > span {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-type {
    color: var(--card-muted);
}

.card-badge {
    padding: 7px 10px;
    border: 1px solid rgba(21, 17, 9, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.card-heading {
    position: relative;
    z-index: 1;
    margin-top: 78px;
}

.card-duration {
    margin: 0 0 10px;
    color: var(--card-muted);
}

.card-heading h3 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 4.5vw, 4.6rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.card-summary {
    max-width: 350px;
    margin: 22px 0 0;
    color: var(--card-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.card-features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin: 34px 0 26px;
    padding: 20px 0 0;
    border-top: 1px solid var(--card-border);
    list-style: none;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--card-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.card-features li::before {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.card-footer {
    align-items: flex-end;
    gap: 14px;
    margin-top: auto;
}

.card-price {
    display: flex;
    flex-direction: column;
}

.card-price > span {
    margin-bottom: 5px;
    color: var(--card-muted);
}

.card-price strong {
    font-size: clamp(1.7rem, 2.25vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.card-price small {
    font-size: 0.62em;
    font-weight: 700;
}

.card-action {
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 15px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.1);
    color: var(--card-foreground);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.card-action svg,
.subscription-cta-link svg,
.plan-modal-action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: transform 220ms ease;
}

.card-action:hover {
    background: var(--card-foreground);
    color: #111111;
    transform: translateY(-2px);
}

.subscription-card-legend .card-action:hover,
.subscription-card-elite .card-action:hover {
    background: #111111;
    color: #ffffff;
}

.card-action:hover svg,
.subscription-cta-link:hover svg,
.plan-modal-action:hover svg {
    transform: translateX(4px);
}

.plans-note {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 18px 2px 0;
    border-top: 1px solid var(--page-line);
    color: var(--page-muted);
    font-size: 0.76rem;
}

.plans-note p {
    margin: 0;
}

.plans-note a {
    flex: 0 0 auto;
    color: var(--page-text);
    font-weight: 600;
    text-decoration: none;
}

.subscription-cta {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    padding: 112px 0;
    border-top: 1px solid var(--page-line);
}

.subscription-cta h2 {
    max-width: 700px;
}

.subscription-cta-link {
    min-width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 22px;
    border-radius: 999px;
    background: var(--page-accent);
    color: #0a0a0a;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.subscription-cta-link:hover {
    box-shadow: 0 18px 50px rgba(189, 244, 91, 0.18);
    transform: translateY(-3px);
}

.subscription-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 30px 0 38px;
    border-top: 1px solid var(--page-line);
    color: var(--page-muted);
    font-size: 0.72rem;
}

.subscription-footer p {
    margin: 0;
}

.subscription-footer > a:last-child {
    justify-self: end;
    color: var(--page-text);
    font-weight: 600;
    text-decoration: none;
}

body.modal-open {
    overflow: hidden;
}

.plan-modal {
    --modal-foreground: #ffffff;
    --modal-muted: rgba(255, 255, 255, 0.72);
    --modal-line: rgba(255, 255, 255, 0.28);
    --modal-surface: linear-gradient(145deg, #cc9a64 0%, #a76f38 42%, #71451f 100%);
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease, visibility 0s linear 280ms;
}

.plan-modal[data-plan="legend"] {
    --modal-foreground: #101317;
    --modal-muted: rgba(16, 19, 23, 0.66);
    --modal-line: rgba(16, 19, 23, 0.22);
    --modal-surface: linear-gradient(145deg, #edf1f4 0%, #bdc6cf 43%, #798491 100%);
}

.plan-modal[data-plan="elite"] {
    --modal-foreground: #151109;
    --modal-muted: rgba(21, 17, 9, 0.66);
    --modal-line: rgba(21, 17, 9, 0.22);
    --modal-surface: linear-gradient(145deg, #fff1b5 0%, #e0b94f 42%, #9c691b 100%);
}

.plan-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 280ms ease, visibility 0s linear 0s;
}

.plan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(15px);
}

.plan-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100dvh - 48px);
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
    overflow: hidden;
    border: 1px solid rgba(244, 244, 239, 0.18);
    border-radius: 28px;
    background: #10100f;
    box-shadow: 0 42px 130px rgba(0, 0, 0, 0.68);
    opacity: 0;
    outline: none;
    transform: translateY(26px) scale(0.975);
    transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-modal.is-open .plan-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.plan-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background 200ms ease, transform 200ms ease;
}

.plan-modal-close:hover {
    background: rgba(0, 0, 0, 0.62);
    transform: rotate(4deg) scale(1.05);
}

.plan-modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.plan-modal-visual {
    position: relative;
    min-height: 610px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
    overflow: hidden;
    padding: 32px;
    background: var(--modal-surface);
    background-size: 180% 180%;
    color: var(--modal-foreground);
    animation: card-surface-shift 8s ease-in-out infinite;
}

.plan-modal-visual::before {
    position: absolute;
    top: -94px;
    right: -80px;
    z-index: -1;
    width: 280px;
    height: 280px;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 52px currentColor, 0 0 0 104px currentColor;
    content: '';
    opacity: 0.16;
    animation: card-orbit 8s ease-in-out infinite alternate;
}

.plan-modal-visual::after {
    position: absolute;
    top: -70%;
    left: -130%;
    z-index: -1;
    width: 76%;
    height: 240%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    content: '';
    transform: rotate(18deg);
    animation: card-sheen 7.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.plan-modal-brand,
.plan-modal-index,
.plan-modal-heading > p,
.plan-modal-heading > span,
.plan-modal-includes > p,
.plan-modal-price > span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plan-modal-brand {
    position: relative;
    z-index: 1;
}

.plan-modal-heading {
    position: relative;
    z-index: 1;
}

.plan-modal-heading > p {
    margin: 0 0 12px;
    color: var(--modal-muted);
}

.plan-modal-heading h2 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(4rem, 7vw, 6.4rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.88;
}

.plan-modal-heading > span {
    display: block;
    margin-top: 18px;
    color: var(--modal-muted);
}

.plan-modal-index {
    position: absolute;
    right: 28px;
    bottom: 26px;
    color: var(--modal-muted);
}

.plan-modal-content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 46px 42px 38px;
    background:
        radial-gradient(circle at 100% 0, rgba(189, 244, 91, 0.055), transparent 20rem),
        #10100f;
}

.plan-modal-description {
    margin-top: 22px;
    color: #c5c5be;
    font-size: 0.97rem;
    line-height: 1.68;
}

.plan-modal-description p {
    margin: 0;
}

.plan-modal-description p + p {
    margin-top: 14px;
}

.plan-modal-includes {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--page-line);
}

.plan-modal-includes > p {
    margin: 0 0 16px;
    color: var(--page-accent);
}

.plan-modal-includes ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-modal-includes li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #d8d8d2;
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.45;
}

.plan-modal-includes li::before {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    margin-top: 0.42em;
    border-radius: 50%;
    background: var(--page-accent);
    content: '';
}

.plan-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: auto;
    padding-top: 34px;
}

.plan-modal-price {
    display: flex;
    flex-direction: column;
}

.plan-modal-price > span {
    margin-bottom: 6px;
    color: var(--page-muted);
}

.plan-modal-price strong {
    color: var(--page-text);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.plan-modal-action {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-radius: 999px;
    background: var(--page-accent);
    color: #0a0a0a;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.plan-modal-action:hover {
    box-shadow: 0 16px 44px rgba(189, 244, 91, 0.16);
    transform: translateY(-2px);
}

.plan-modal-close:focus-visible,
.card-action:focus-visible,
.plan-modal-action:focus-visible {
    outline: 2px solid var(--page-accent);
    outline-offset: 3px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.plans-grid [data-reveal]:nth-child(2) {
    transition-delay: 90ms;
}

.plans-grid [data-reveal]:nth-child(3) {
    transition-delay: 180ms;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-line {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes card-surface-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes card-sheen {
    0%,
    55% {
        transform: translateX(0) rotate(18deg);
    }
    78%,
    100% {
        transform: translateX(390%) rotate(18deg);
    }
}

@keyframes card-orbit {
    from {
        transform: translate3d(0, 0, 0) scale(0.94);
    }
    to {
        transform: translate3d(-18px, 28px, 0) scale(1.06);
    }
}

@media (max-width: 1100px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subscription-card-elite {
        grid-column: 1 / -1;
    }

    .subscription-card-elite .card-summary {
        max-width: 560px;
    }
}

@media (max-width: 820px) {
    .plan-modal-dialog {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .plan-modal-visual {
        min-height: 260px;
        flex: 0 0 auto;
        padding: 28px;
    }

    .plan-modal-heading h2 {
        font-size: 4.4rem;
    }

    .plan-modal-heading > span {
        margin-top: 12px;
    }

    .plan-modal-content {
        flex: 0 0 auto;
        overflow: visible;
        padding: 34px 30px 30px;
    }

    .subscription-hero {
        min-height: 620px;
        height: auto;
    }

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

    .subscription-hero-meta {
        display: none;
    }

    .subscription-hero::after {
        width: calc(100% - 80px);
    }

    .plans-intro {
        grid-template-columns: 60px 1fr;
    }

    .plans-description {
        grid-column: 2;
    }

    .subscription-cta {
        grid-template-columns: 60px 1fr;
    }

    .subscription-cta-link {
        grid-column: 2;
        width: fit-content;
        margin-top: 16px;
    }

    .subscription-footer {
        grid-template-columns: 1fr auto;
        row-gap: 18px;
    }

    .subscription-footer p {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 680px) {
    .plan-modal {
        padding: 10px;
    }

    .plan-modal-dialog {
        max-height: calc(100dvh - 20px);
        border-radius: 22px;
    }

    .plan-modal-visual {
        min-height: 230px;
        padding: 24px;
    }

    .plan-modal-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .plan-modal-heading h2 {
        font-size: 3.5rem;
    }

    .plan-modal-index {
        right: 22px;
        bottom: 20px;
    }

    .plan-modal-content {
        padding: 28px 22px 24px;
    }

    .plan-modal-description {
        font-size: 0.9rem;
    }

    .plan-modal-includes {
        margin-top: 24px;
        padding-top: 20px;
    }

    .plan-modal-includes ul {
        grid-template-columns: 1fr;
    }

    .plan-modal-footer {
        align-items: stretch;
        flex-direction: column;
        padding-top: 28px;
    }

    .plan-modal-action {
        width: 100%;
    }

    .subscription-header {
        grid-template-columns: 1fr auto;
        padding: 22px 20px;
    }

    .subscription-section-name {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        margin-top: 10px;
        font-size: 0.66rem;
    }

    .subscription-hero {
        min-height: 590px;
        padding: 130px 20px 54px;
    }

    .subscription-hero::before {
        top: 18%;
        right: -18%;
        width: 90vw;
    }

    .subscription-hero::after {
        right: 20px;
        bottom: 38px;
        width: calc(100% - 40px);
    }

    .subscription-hero h1 {
        margin-top: 15px;
        font-size: clamp(3.3rem, 16.5vw, 5rem);
        line-height: 0.91;
    }

    .subscription-lead {
        font-size: 0.94rem;
    }

    .plans-section,
    .subscription-cta,
    .subscription-footer {
        width: calc(100% - 40px);
    }

    .plans-section {
        padding: 126px 0 64px;
    }

    .plans-intro {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 42px;
    }

    .plans-description {
        grid-column: auto;
        margin-top: 8px;
        font-size: 0.96rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .subscription-card,
    .subscription-card-elite {
        grid-column: auto;
        min-height: 520px;
        padding: 22px;
        border-radius: 22px;
    }

    .card-heading {
        margin-top: 62px;
    }

    .card-heading h3 {
        font-size: 3.7rem;
    }

    .card-footer {
        gap: 10px;
    }

    .card-action {
        min-width: 48px;
        width: 48px;
        height: 48px;
        padding: 0;
    }

    .card-action span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .plans-note {
        flex-direction: column;
        gap: 12px;
    }

    .plans-note a {
        width: fit-content;
    }

    .subscription-cta {
        grid-template-columns: 1fr;
        padding: 82px 0;
    }

    .subscription-cta-link {
        grid-column: auto;
        width: 100%;
    }
}

@media (hover: none), (pointer: coarse) {
    .subscription-card:hover {
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    }

    .subscription-card::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
