/*
 * Mezzoforte public pages — approved UX/UI 2.0 implementation.
 * This stylesheet is intentionally isolated from the shared/private UI.
 */

@font-face {
    font-family: "Avenir Next Pro";
    src: url("../mf-font-AvenirNext-Regular.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Pro";
    src: url("../mf-font-AvenirNext-Demi.otf") format("opentype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Pro";
    src: url("../mf-font-AvenirNext-Bold.otf") format("opentype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --mf-public-v3-bg: #080908;
    --mf-public-v3-surface: #10110f;
    --mf-public-v3-surface-strong: #16150f;
    --mf-public-v3-paper: #f4f1ea;
    --mf-public-v3-muted: #aaa59d;
    --mf-public-v3-muted-strong: #c4bfb5;
    --mf-public-v3-gold: #c8a663;
    --mf-public-v3-gold-bright: #e1c27f;
    --mf-public-v3-line: rgba(255, 255, 255, 0.11);
    --mf-public-v3-line-gold: rgba(200, 166, 99, 0.42);
    --mf-public-v3-shell: 1180px;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) {
    color: var(--mf-public-v3-paper);
    background: var(--mf-public-v3-bg);
    font-family: "Avenir Next Pro", "Segoe UI", sans-serif;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .app-shell--auth,
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .page--auth {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 78px;
    min-height: 78px;
    margin: 0;
    padding: 0 max(24px, calc((100vw - 1500px) / 2));
    gap: 28px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-lockup--auth {
    gap: 15px;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-lockup--auth .brand-mark {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-lockup--auth .brand-mark__icon {
    width: 56px;
    height: 56px;
    max-height: 56px;
    border-radius: 0;
    object-fit: contain;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .mf-brand-lockup__separator {
    display: block;
    width: 1px;
    height: 34px;
    flex: 0 0 1px;
    background: rgba(210, 181, 121, 0.5);
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-wordmark-image {
    width: 140px;
    height: auto !important;
    max-height: none;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__actions {
    gap: 18px;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-nav {
    gap: clamp(10px, 1.2vw, 20px);
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-nav__link {
    min-height: 0;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    color: #d8d4cc;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-nav__link:hover,
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-nav__link:focus-visible,
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-nav__link.is-current {
    color: #fff;
    border: 0;
    background: transparent;
    box-shadow: inset 0 -1px var(--mf-public-v3-gold);
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__links {
    gap: 10px;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__link {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__link--ghost {
    order: 1;
    color: var(--mf-public-v3-paper);
    border: 1px solid rgba(225, 194, 127, 0.6);
    background: transparent;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__link--primary {
    order: 2;
    color: #17130c;
    border: 1px solid var(--mf-public-v3-gold);
    background: var(--mf-public-v3-gold);
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__link:hover,
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__link:focus-visible {
    filter: brightness(1.08);
    box-shadow: none;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-language-switcher__trigger {
    min-width: 28px;
    min-height: 32px;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) :is(.public-language-switcher__code, .public-language-switcher__caret) {
    display: none;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-language-switcher__menu {
    min-width: 54px;
    padding: 6px;
    border: 1px solid var(--mf-public-v3-line-gold);
    border-radius: 3px;
    background: #090a09;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-language-switcher__item {
    justify-content: center;
    min-height: 34px;
    padding: 5px;
    border-radius: 2px;
    background: transparent;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-language-switcher__item:hover,
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-language-switcher__item:focus-visible,
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-language-switcher__item.is-active {
    background: rgba(200, 166, 99, 0.12);
}

.public-approved-shell,
body .page-landing--seo :is(.seo-hero__inner, .seo-section__inner),
body .page-landing--plans :is(.pricing-grid, .plans-compare),
body .legal-page :is(.legal-hero__panel, .legal-layout),
body .privacy-page .privacy-shell,
body .refunds-page .refunds-shell {
    width: min(calc(100% - 48px), var(--mf-public-v3-shell));
    max-width: none;
    margin-inline: auto;
}

:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page) {
    color: var(--mf-public-v3-paper);
    background: var(--mf-public-v3-bg);
}

:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page) :is(.eyebrow, .seo-hero__eyebrow, .seo-section__eyebrow, .seo-split-card__accent, .landing-hero__eyebrow, .privacy-badge, .privacy-section-kicker, .refunds-eyebrow, .legal-index__eyebrow, .refunds-index__eyebrow) {
    display: block;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--mf-public-v3-gold-bright);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page) :is(.cta-primary, .button-link, .contact-submit) {
    color: #17130c;
    border-color: var(--mf-public-v3-gold);
    border-radius: 3px;
    background: var(--mf-public-v3-gold);
    box-shadow: none;
}

:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page) :is(.cta-secondary, .ghost-link) {
    color: var(--mf-public-v3-paper);
    border-color: rgba(225, 194, 127, 0.58);
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
}

/* Editorial product pages */
body .page-landing--seo {
    overflow: clip;
    background: var(--mf-public-v3-bg);
}

body .page-landing--seo :is(.seo-hero, .seo-section, .seo-cta-band) {
    background: var(--mf-public-v3-bg);
}

body .page-landing--seo .seo-hero {
    min-height: 610px;
    display: grid;
    align-items: center;
    padding: 66px 0 78px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    background:
        radial-gradient(circle at 78% 22%, rgba(130, 105, 61, 0.14), transparent 34%),
        url("../img/mf-public-route-plate.png") center / cover,
        var(--mf-public-v3-bg);
}

body .page-landing--seo .seo-hero__panel {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: 64px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .page-landing--seo :is(.seo-hero__panel, .seo-hero__visual, .seo-flow-grid, .seo-cta-band__panel)::before,
body .page-landing--seo :is(.seo-hero__panel, .seo-hero__visual, .seo-flow-grid, .seo-cta-band__panel)::after {
    content: none;
    display: none;
}

body .page-landing--seo .seo-hero__content {
    min-width: 0;
    padding: 0;
}

body .page-landing--seo .seo-hero h1 {
    max-width: 10.5ch;
    margin: 14px 0 20px;
    color: var(--mf-public-v3-paper);
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1.01;
    letter-spacing: -0.045em;
    overflow-wrap: normal;
    text-wrap: balance;
}

body .page-landing--seo .seo-hero__lede {
    max-width: 52ch;
    margin: 0;
    color: var(--mf-public-v3-muted-strong);
    font-size: 1.06rem;
    line-height: 1.65;
}

body .page-landing--seo :is(.seo-hero__actions, .seo-cta-band__actions) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

body .page-landing--seo :is(.cta-primary, .cta-secondary) {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    font-size: 0.86rem;
    font-weight: 700;
}

body .page-landing--seo :is(.seo-hero__meta, .seo-trust-row) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 23px;
}

body .page-landing--seo .seo-trust-row {
    margin-top: 10px;
}

body .page-landing--seo :is(.seo-meta-chip, .seo-trust-chip) {
    position: relative;
    min-height: 0;
    padding: 0 0 0 13px;
    border: 0;
    border-radius: 0;
    color: var(--mf-public-v3-muted);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 500;
}

body .page-landing--seo :is(.seo-meta-chip, .seo-trust-chip)::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mf-public-v3-gold);
}

body .page-landing--seo .seo-hero__visual {
    min-width: 0;
    display: grid;
    gap: 14px;
}

body .page-landing--seo .seo-hero__art {
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .page-landing--seo .seo-hero__art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
}

body .page-landing--seo .seo-hero__stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
}

body .page-landing--seo .seo-hero__stat {
    min-width: 0;
    padding: 13px 14px;
    border: 0;
    border-right: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .page-landing--seo .seo-hero__stat:last-child {
    border-right: 0;
}

body .page-landing--seo .seo-hero__stat span,
body .page-landing--seo .seo-hero__stat small {
    color: var(--mf-public-v3-muted);
}

body .page-landing--seo .seo-hero__stat strong {
    color: var(--mf-public-v3-paper);
}

body .page-landing--seo .seo-section {
    padding: 78px 0;
}

body .page-landing--seo .seo-section__header {
    max-width: 760px;
}

body .page-landing--seo :is(.seo-section__header h2, .seo-cta-band h2) {
    margin: 12px 0 14px;
    color: var(--mf-public-v3-paper);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

body .page-landing--seo :is(.seo-section__header p, .seo-problem-card p, .seo-step-card p, .seo-benefit-card p, .seo-split-card p, .seo-cta-band p) {
    color: var(--mf-public-v3-muted);
    line-height: 1.62;
}

body .page-landing--seo :is(.seo-problem-grid, .seo-flow-grid, .seo-bento-grid) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px;
    margin-top: 44px;
}

body .page-landing--seo :is(.seo-problem-card, .seo-step-card, .seo-benefit-card) {
    min-width: 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--mf-public-v3-line-gold);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .page-landing--seo :is(.seo-problem-card__index, .seo-step-card__index, .seo-benefit-card__index) {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--mf-public-v3-gold-bright);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

body .page-landing--seo :is(.seo-problem-card h3, .seo-step-card h3, .seo-benefit-card h3, .seo-split-card h3) {
    margin: 0 0 8px;
    color: var(--mf-public-v3-paper);
    font-size: 1.08rem;
}

body .page-landing--seo .seo-divider {
    width: min(calc(100% - 48px), var(--mf-public-v3-shell));
    margin: 0 auto;
    border: 0;
    border-top: 1px solid var(--mf-public-v3-line);
}

body .page-landing--seo .seo-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body .page-landing--seo .seo-split-card {
    padding: 34px;
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 6px;
    background: var(--mf-public-v3-surface);
    box-shadow: none;
}

body .page-landing--seo .seo-split-card__list {
    color: var(--mf-public-v3-muted-strong);
}

body .page-landing--seo .seo-cta-band {
    padding: 0 0 86px;
}

body .page-landing--seo .seo-cta-band__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    padding: 42px;
    border: 1px solid var(--mf-public-v3-line-gold);
    border-radius: 6px;
    background: #0c0c0b;
    box-shadow: none;
}

/* Contact keeps the existing server form and validation. */
body .page-landing--contact .contact-section {
    padding-top: 74px;
}

body .page-landing--contact .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: start;
    gap: 64px;
}

body .page-landing--contact .contact-copy,
body .page-landing--contact .contact-form-wrap {
    min-width: 0;
}

body .page-landing--contact .contact-copy h2,
body .page-landing--contact .contact-form h2 {
    color: var(--mf-public-v3-paper);
}

body .page-landing--contact .contact-copy__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

body .page-landing--contact .contact-copy__card {
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--mf-public-v3-line-gold);
    border-radius: 0;
    background: transparent;
}

body .page-landing--contact .contact-copy__contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--mf-public-v3-line);
}

body .page-landing--contact .contact-form {
    padding: 36px;
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 6px;
    background: rgba(16, 16, 14, 0.94);
    box-shadow: none;
}

body .page-landing--contact .contact-form :is(input, select, textarea) {
    color: var(--mf-public-v3-paper);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    background: #090a09;
}

body .page-landing--contact .contact-form :is(input, textarea)::placeholder {
    color: rgba(190, 185, 176, 0.58) !important;
    opacity: 1;
}

body .page-landing--contact .contact-form :is(input, select, textarea):focus {
    border-color: var(--mf-public-v3-gold);
    box-shadow: 0 0 0 2px rgba(200, 166, 99, 0.13);
}

body .page-landing--contact .contact-submit {
    min-height: 44px;
    padding: 0 20px;
}

/* Public plans: runtime catalog/currency and the complete comparison remain intact. */
body .page-landing--plans {
    overflow: clip;
    background: var(--mf-public-v3-bg);
}

body .page-landing--plans .landing-hero {
    min-height: 430px;
    display: grid;
    align-items: center;
    padding: 62px 24px 76px;
    background:
        radial-gradient(circle at 78% 22%, rgba(130, 105, 61, 0.14), transparent 34%),
        url("../img/mf-public-route-plate.png") center / cover,
        var(--mf-public-v3-bg);
}

body .page-landing--plans .landing-hero__bg,
body .page-landing--plans .landing-hero__scroll {
    display: none;
}

body .page-landing--plans .landing-hero__content {
    width: min(100%, 820px);
    max-width: none;
    margin-inline: auto;
    text-align: center;
}

body .page-landing--plans .landing-hero h1 {
    max-width: 15ch;
    margin: 14px auto 18px;
    color: var(--mf-public-v3-paper);
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

body .page-landing--plans .landing-hero__subtitle {
    max-width: 66ch;
    margin: 0 auto;
    color: var(--mf-public-v3-muted-strong);
    font-size: 1.02rem;
    line-height: 1.62;
}

.plans-billing-toggle {
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(2, minmax(104px, 1fr));
    gap: 2px;
    margin: 24px auto 0;
    padding: 2px;
    border: 1px solid var(--mf-public-v3-line-gold);
    border-radius: 4px;
    background: #0c0c0b;
}

.plans-billing-toggle__button {
    min-height: 38px;
    display: grid;
    place-content: center;
    gap: 0;
    padding: 5px 16px;
    border: 0;
    border-radius: 2px;
    color: var(--mf-public-v3-muted-strong);
    background: transparent;
    cursor: pointer;
}

.plans-billing-toggle__button small {
    color: inherit;
    font-size: 0.58rem;
}

.plans-billing-toggle__button.is-active {
    color: #17130c;
    background: var(--mf-public-v3-gold);
}

body .page-landing--plans .plans-highlights--hero {
    justify-content: center;
    margin: 20px auto 0;
}

body .page-landing--plans .plans-highlight {
    position: relative;
    min-height: 0;
    padding: 0 0 0 13px;
    border: 0;
    border-radius: 0;
    color: var(--mf-public-v3-muted);
    background: transparent;
    font-size: 0.76rem;
}

body .page-landing--plans .plans-highlight::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mf-public-v3-gold);
}

body .page-landing--plans .landing-features--plans {
    padding: 62px 0 96px;
    background: var(--mf-public-v3-bg);
}

body .page-landing--plans .landing-section-header {
    width: min(calc(100% - 48px), var(--mf-public-v3-shell));
    margin: 0 auto 36px;
    text-align: left;
}

body .page-landing--plans .landing-section-header h2 {
    margin: 10px 0 8px;
    color: var(--mf-public-v3-paper);
    font-size: clamp(1.75rem, 2.7vw, 2.45rem);
}

body .page-landing--plans .landing-section-header :is(p, .plans-note) {
    max-width: 68ch;
    margin: 4px 0 0;
    color: var(--mf-public-v3-muted);
}

body .page-landing--plans .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
}

body .page-landing--plans .plan-card {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 28px !important;
    overflow: visible;
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 6px;
    background: var(--mf-public-v3-surface);
    box-shadow: none;
}

body .page-landing--plans .plan-card--featured {
    border-color: rgba(225, 194, 127, 0.68);
    background: var(--mf-public-v3-surface-strong);
    transform: translateY(-6px);
}

body .page-landing--plans .plan-ribbon {
    top: 0;
    right: 18px;
    left: auto;
    width: auto;
    height: auto;
    padding: 5px 10px;
    border-radius: 2px;
    color: #17130c;
    background: var(--mf-public-v3-gold);
    transform: translateY(-50%);
}

body .page-landing--plans .plan-ribbon span {
    position: static;
    display: block;
    color: #17130c;
    transform: none;
}

body .page-landing--plans .plan-card__identity {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

body .page-landing--plans .plan-card__art {
    width: 64px;
    height: 64px;
    object-fit: contain;
    object-position: center;
}

body .page-landing--plans .plan-card__identity-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

body .page-landing--plans .plan-card__identity .eyebrow {
    color: var(--mf-public-v3-paper);
    font-size: 1rem;
    letter-spacing: 0;
}

body .page-landing--plans .plans-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 8px;
    color: var(--mf-public-v3-paper);
}

body .page-landing--plans .plws__price--hidden {
    display: none !important;
}

body .page-landing--plans .plans-price__currency {
    color: var(--mf-public-v3-paper);
    font-size: 0.95rem;
    font-weight: 700;
}

body .page-landing--plans .plans-price__amount {
    color: var(--mf-public-v3-paper);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

body .page-landing--plans :is(.plans-price__suffix, .plan-card__description, .feature-list) {
    color: var(--mf-public-v3-muted);
}

body .page-landing--plans .plan-card__description {
    min-height: 0;
    margin: 0;
    line-height: 1.55;
}

body .page-landing--plans .feature-list {
    list-style: none;
    display: grid;
    gap: 9px;
    margin: 26px 0 0;
    padding: 0;
}

body .page-landing--plans .feature-list li {
    position: relative;
    padding: 0 0 0 16px;
    line-height: 1.5;
}

body .page-landing--plans .feature-list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mf-public-v3-gold);
}

body .page-landing--plans .plan-card__actions {
    margin-top: auto;
    padding-top: 26px;
}

body .page-landing--plans .plan-card .button-link {
    min-height: 42px;
    border-radius: 3px;
    color: #17130c;
    background: var(--mf-public-v3-gold);
}

body .page-landing--plans .plan-card .ghost-link {
    min-height: 38px;
    color: var(--mf-public-v3-muted-strong);
    border: 0;
}

body .page-landing--plans .plans-compare {
    margin-top: 58px;
    padding: 0;
}

body .page-landing--plans .plans-compare__panel-inner {
    overflow: hidden;
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 6px;
    background: #0d0e0d;
    box-shadow: none;
}

body .page-landing--plans .plans-compare__header {
    align-items: end;
    padding: 26px;
    border-bottom: 1px solid var(--mf-public-v3-line);
}

body .page-landing--plans .plans-compare__copy h3 {
    color: var(--mf-public-v3-paper);
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

body .page-landing--plans .plans-compare__copy p,
body .page-landing--plans .plans-compare__mobile-hint {
    color: var(--mf-public-v3-muted);
}

body .page-landing--plans .plans-compare__table {
    min-width: 780px;
}

body .page-landing--plans .plans-compare__table :is(th, td),
body .page-landing--plans .plans-compare__feature-col,
body .page-landing--plans .plans-compare__table thead th,
body .page-landing--plans .plans-compare__group-row th {
    border-color: var(--mf-public-v3-line);
    color: var(--mf-public-v3-muted-strong);
    background: #0d0e0d;
}

body .page-landing--plans .plans-compare__table thead th {
    color: var(--mf-public-v3-paper);
}

body .page-landing--plans .plans-compare__group-row th,
body .page-landing--plans .plans-compare__state--check {
    color: var(--mf-public-v3-gold-bright);
}

body .page-landing--plans .plans-compare__state--dash {
    width: auto;
    height: auto;
    color: var(--mf-public-v3-muted);
    position: static;
}

body .page-landing--plans .plans-compare__state--dash::before {
    content: none;
    display: none;
}

/* Android: real web/app capture, never a simulated device mockup. */
body .public-android-page {
    overflow: clip;
    background: var(--mf-public-v3-bg);
}

.public-android-hero {
    min-height: 650px;
    display: grid;
    align-items: center;
    padding: 66px 0;
    border-bottom: 1px solid var(--mf-public-v3-line);
    background:
        radial-gradient(circle at 78% 22%, rgba(130, 105, 61, 0.14), transparent 34%),
        url("../img/mf-public-route-plate.png") center / cover,
        var(--mf-public-v3-bg);
}

.public-android-hero__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 68px;
}

.public-android-hero__copy h1 {
    max-width: 10.5ch;
    margin: 14px 0 20px;
    color: var(--mf-public-v3-paper);
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.public-android-hero__copy > p {
    max-width: 52ch;
    margin: 0;
    color: var(--mf-public-v3-muted-strong);
    font-size: 1.06rem;
    line-height: 1.65;
}

.public-android-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.public-android-hero__actions :is(.cta-primary, .cta-secondary) {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    font-weight: 700;
}

.public-android-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 23px;
    color: var(--mf-public-v3-muted);
    font-size: 0.78rem;
}

.public-android-hero__meta span {
    position: relative;
    padding-left: 13px;
}

.public-android-hero__meta span::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mf-public-v3-gold);
}

.public-android-hero__visual {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(150px, 1fr);
    align-items: end;
    gap: 28px;
    margin: 0;
}

.public-android-hero__visual img {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
}

.public-android-hero__visual figcaption {
    max-width: 220px;
    padding-bottom: 42px;
    color: var(--mf-public-v3-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.public-android-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px;
    padding-block: 78px;
}

.public-android-features article {
    padding-top: 18px;
    border-top: 1px solid var(--mf-public-v3-line-gold);
}

.public-android-features article > span {
    color: var(--mf-public-v3-gold);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.public-android-features h2 {
    margin: 10px 0 8px;
    color: var(--mf-public-v3-paper);
    font-size: 1.12rem;
}

.public-android-features p {
    margin: 0;
    color: var(--mf-public-v3-muted);
    line-height: 1.58;
}

/* Legal documents */
body :is(.legal-page, .privacy-page, .refunds-page) {
    display: block;
    padding: 0 0 82px;
    overflow: clip;
    color: var(--mf-public-v3-paper);
    background: var(--mf-public-v3-bg);
}

body :is(.legal-page, .privacy-page, .refunds-page)::before,
body :is(.legal-page, .privacy-page, .refunds-page)::after,
body :is(.legal-hero__panel, .privacy-hero, .refunds-hero)::before,
body :is(.legal-hero__panel, .privacy-hero, .refunds-hero)::after,
body .privacy-hero__visual::before,
body .privacy-hero__visual::after {
    content: none;
    display: none;
}

body .legal-page .legal-hero,
body .privacy-page .privacy-hero,
body .refunds-page .refunds-hero {
    padding: 64px 0 74px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    background:
        radial-gradient(circle at 78% 22%, rgba(130, 105, 61, 0.14), transparent 34%),
        url("../img/mf-public-route-plate.png") center / cover,
        var(--mf-public-v3-bg);
}

body .legal-page .legal-hero__panel,
body .privacy-page .privacy-hero__layout,
body .refunds-page .refunds-hero__layout {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .legal-page .legal-hero__inner,
body .privacy-page .privacy-hero__layout,
body .refunds-page .refunds-hero__layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(0, 0.86fr);
    align-items: center;
    gap: 70px;
}

body :is(.legal-page, .privacy-page, .refunds-page) h1 {
    max-width: 12ch;
    margin: 14px 0 18px;
    color: var(--mf-public-v3-paper);
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1.01;
    letter-spacing: -0.045em;
    overflow-wrap: normal;
    text-wrap: balance;
}

body :is(.legal-page, .privacy-page, .refunds-page) :is(p, li) {
    color: var(--mf-public-v3-muted);
    line-height: 1.65;
}

body .legal-page .legal-hero__copy-text,
body .privacy-page .privacy-hero__subtitle,
body .refunds-page .refunds-hero__copy > p {
    max-width: 58ch;
    margin: 0;
    color: var(--mf-public-v3-muted-strong);
    font-size: 1.03rem;
    line-height: 1.65;
}

body .legal-page .legal-hero__copy h1::after,
body .legal-page .legal-section__rule {
    content: none;
    display: none;
}

body .legal-page .legal-hero__visual,
body .privacy-page .privacy-hero__visual {
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body .legal-page .legal-hero__visual-img,
body .privacy-page .privacy-hero__visual-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 410px;
    object-fit: contain;
    object-position: center;
    filter: none;
}

body :is(.legal-page, .privacy-page) :is(.legal-hero__caption, .privacy-hero__visual-note) {
    display: none;
}

body .legal-page .legal-hero__meta,
body .privacy-page .privacy-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 24px;
}

body .legal-page .legal-hero__meta span,
body .privacy-page .privacy-meta-line {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 13px;
    border: 0;
    border-radius: 0;
    color: var(--mf-public-v3-muted);
    background: transparent;
}

body .legal-page .legal-hero__meta span::before,
body .privacy-page .privacy-meta-line::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mf-public-v3-gold);
}

body .privacy-page .privacy-meta-line {
    display: grid;
    gap: 2px;
}

body .privacy-page .privacy-meta-line span {
    color: #77746e;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body .privacy-page .privacy-meta-line strong {
    color: var(--mf-public-v3-muted-strong);
    font-size: 0.78rem;
}

body .legal-page .legal-index--mobile {
    display: none;
}

body .legal-page .legal-layout,
body .refunds-page .refunds-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 70px;
    padding: 74px 0 0;
}

body :is(.legal-page, .refunds-page) :is(.legal-index--desktop, .refunds-index) {
    position: sticky;
    top: 104px;
    align-self: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body :is(.legal-page, .refunds-page) :is(.legal-index--desktop, .refunds-index) h2 {
    margin: 10px 0 12px;
    color: var(--mf-public-v3-paper);
    font-size: 1.45rem;
}

body :is(.legal-page, .refunds-page) :is(.legal-nav__list, .refunds-index__list) {
    margin: 22px 0 0;
    padding: 0;
}

body :is(.legal-page, .refunds-page) :is(.legal-nav__link, .refunds-index a) {
    min-height: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--mf-public-v3-line);
    border-radius: 0;
    color: var(--mf-public-v3-muted);
    background: transparent;
}

body :is(.legal-page, .refunds-page) :is(.legal-nav__link, .refunds-index a):hover,
body :is(.legal-page, .refunds-page) :is(.legal-nav__link, .refunds-index a):focus-visible {
    color: var(--mf-public-v3-paper);
    background: transparent;
}

body :is(.legal-page, .refunds-page) :is(.legal-nav__number, .refunds-index__number) {
    color: var(--mf-public-v3-gold-bright);
}

body .legal-page .legal-doc,
body .refunds-page .refunds-document {
    min-width: 0;
}

body :is(.legal-page, .refunds-page) :is(.legal-section, .refunds-section) {
    padding: 28px 0;
    border: 0;
    border-bottom: 1px solid var(--mf-public-v3-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body :is(.legal-page, .refunds-page) :is(.legal-section, .refunds-section):first-child {
    padding: 28px;
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 0;
    background: #11110e;
}

body .legal-page .legal-section__header,
body .refunds-page .refunds-section__header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
}

body :is(.legal-page, .refunds-page) :is(.legal-section__number, .refunds-section__number) {
    color: var(--mf-public-v3-gold-bright);
}

body :is(.legal-page, .refunds-page) :is(.legal-section__title-wrap h2, .refunds-section__header h2) {
    margin: 0;
    color: var(--mf-public-v3-paper);
    font-size: 1.35rem;
}

body .legal-page .legal-section__body,
body .refunds-page .refunds-section__body {
    padding: 12px 0 0 62px;
}

body :is(.legal-page, .privacy-page, .refunds-page) :is(.legal-section__icon, .legal-closing__icon, .privacy-principle__icon, .privacy-block__icon, .refunds-section__icon),
body :is(.legal-page, .privacy-page, .refunds-page) svg {
    display: none;
}

body .legal-page .legal-list,
body .privacy-page .privacy-block__list,
body .refunds-page .refunds-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

body .legal-page .legal-list li,
body .privacy-page .privacy-block__list li,
body .refunds-page .refunds-list li {
    position: relative;
    padding-left: 16px;
}

body .legal-page .legal-list li::before,
body .privacy-page .privacy-block__list li::before,
body .refunds-page .refunds-list li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mf-public-v3-gold);
    box-shadow: none;
}

body .legal-page :is(.legal-contact-line, .legal-closing),
body .refunds-page :is(.refunds-contact-line, .refunds-cta) {
    border-color: var(--mf-public-v3-line-gold);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Privacy keeps every principle and every legal section, but removes the broken icon column. */
body .privacy-page .privacy-principles,
body .privacy-page .privacy-article,
body .privacy-page .privacy-contact {
    padding: 70px 0 0;
}

body .privacy-page .privacy-section-title {
    margin: 10px 0 0;
    color: var(--mf-public-v3-paper);
    font-size: clamp(1.8rem, 2.8vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

body .privacy-page .privacy-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--mf-public-v3-line);
    border-bottom: 1px solid var(--mf-public-v3-line);
}

body .privacy-page .privacy-principle {
    display: block;
    min-width: 0;
    padding: 22px 24px 22px 0;
    border: 0;
    border-right: 1px solid var(--mf-public-v3-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .privacy-page .privacy-principle:nth-child(3n) {
    padding-left: 24px;
    border-right: 0;
}

body .privacy-page .privacy-principle:nth-child(3n + 2) {
    padding-left: 24px;
}

body .privacy-page .privacy-principle:nth-child(n + 4) {
    border-top: 1px solid var(--mf-public-v3-line);
}

body .privacy-page .privacy-principle h3 {
    margin: 0 0 7px;
    color: var(--mf-public-v3-paper);
    font-size: 1rem;
}

body .privacy-page .privacy-principle p {
    margin: 0;
    color: var(--mf-public-v3-muted);
    line-height: 1.58;
}

body .privacy-page .privacy-article .privacy-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 18px 70px;
    align-items: start;
}

body .privacy-page .privacy-article__header {
    grid-column: 1;
    display: block;
    margin: 0;
    padding: 0;
}

body .privacy-page .privacy-article__header > p {
    margin-top: 12px;
}

body .privacy-page .privacy-article__quicklinks {
    position: sticky;
    top: 104px;
    grid-column: 1;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

body .privacy-page .privacy-article__quicklinks a {
    display: block;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--mf-public-v3-line);
    border-radius: 0;
    color: var(--mf-public-v3-muted);
    background: transparent;
    font-size: 0.86rem;
}

body .privacy-page .privacy-article__quicklinks a:hover,
body .privacy-page .privacy-article__quicklinks a:focus-visible {
    color: var(--mf-public-v3-paper);
    border-color: var(--mf-public-v3-line-gold);
    transform: none;
}

body .privacy-page .privacy-article__body {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    display: grid;
    gap: 0;
}

body .privacy-page .privacy-block {
    display: grid;
    gap: 14px;
    padding: 28px 0;
    border: 0;
    border-bottom: 1px solid var(--mf-public-v3-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body .privacy-page .privacy-block:first-child {
    padding: 28px;
    border: 1px solid var(--mf-public-v3-line);
    background: #11110e;
}

body .privacy-page .privacy-block__header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
}

body .privacy-page .privacy-block__number {
    color: var(--mf-public-v3-gold-bright);
}

body .privacy-page .privacy-block__heading h3 {
    margin: 0 0 6px;
    color: var(--mf-public-v3-paper);
    font-size: 1.35rem;
}

body .privacy-page .privacy-block__content {
    padding-left: 62px;
}

body .privacy-page .privacy-block__note {
    display: block;
    min-height: 0;
    margin-top: 14px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--mf-public-v3-line-gold);
    border-radius: 0;
    color: var(--mf-public-v3-paper);
    background: transparent;
}

body .privacy-page .privacy-contact__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 36px;
    border: 1px solid var(--mf-public-v3-line-gold);
    border-radius: 6px;
    background: #0c0c0b;
    box-shadow: none;
}

/* Registration and verification use the approved raster artwork. */
body .public-state-page {
    width: min(calc(100% - 48px), 900px);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    gap: 0;
    margin: 68px auto 82px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 6px;
    background: #0a0a09;
    box-shadow: none;
}

body .public-state-page::before,
body .public-state-page::after {
    content: none;
}

body .public-state-page__art {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: contain;
    object-position: center;
    background: #080706;
}

body .public-state-page :is(.registration-success-transition__shell, .verify-transition__shell) {
    width: auto;
    max-width: none;
    min-height: 100%;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 18px;
    padding: 44px;
    border: 0;
    border-radius: 0;
    background: var(--mf-public-v3-surface);
    box-shadow: none;
    animation: mfPublicV3StateEnter 420ms ease both;
}

body .public-state-page :is(.registration-success-transition__brand, .verify-transition__brand) {
    display: none;
}

body .public-state-page h1 {
    max-width: 13ch;
    margin: 0;
    color: var(--mf-public-v3-paper);
    font-size: clamp(2.1rem, 3.6vw, 3.25rem);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

body .public-state-page .section-copy {
    max-width: 46ch;
    margin: 0;
    color: var(--mf-public-v3-muted);
    font-size: 1rem;
    line-height: 1.62;
}

body .public-state-page :is(.registration-success-transition__loader, .verify-transition__loader) {
    width: min(100%, 170px);
    min-height: 2px;
    height: 2px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(200, 166, 99, 0.25);
}

body .public-state-page :is(.registration-success-transition__loader span, .verify-transition__note) {
    display: none;
}

body .public-state-page .ghost-link {
    width: auto;
    min-width: 190px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #17130c;
    border: 1px solid var(--mf-public-v3-gold);
    border-radius: 3px;
    background: var(--mf-public-v3-gold);
    font-weight: 700;
}

body .public-state-page .alert {
    border-color: var(--mf-public-v3-line);
    border-radius: 3px;
    color: var(--mf-public-v3-muted-strong);
    background: #0c0c0b;
}

@keyframes mfPublicV3StateEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Existing public operational views: presentation only. */
body:has(.auth-layout) .auth-layout,
body:has(.page-heading + .content-grid--single) .page-heading,
body:has(.page-heading + .content-grid--single) .content-grid--single {
    width: min(calc(100% - 48px), 900px);
    margin-inline: auto;
}

body:has(.auth-layout) .auth-layout {
    min-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 18px;
    padding: 64px 0;
}

body:has(.auth-layout) .auth-layout > .panel,
body:has(.page-heading + .content-grid--single) .content-grid--single > .panel {
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 6px;
    background: var(--mf-public-v3-surface);
    box-shadow: none;
}

body:has(.auth-layout) .auth-layout .hero-points,
body:has(.auth-layout) .auth-layout .subscription-status-grid,
body:has(.page-heading + .content-grid--single) .subscription-status-grid {
    gap: 0;
    border: 1px solid var(--mf-public-v3-line);
    border-radius: 3px;
    background: transparent;
}

body:has(.auth-layout) .auth-layout :is(.hero-points > div, .subscription-status-item),
body:has(.page-heading + .content-grid--single) .subscription-status-item {
    border: 0;
    border-bottom: 1px solid var(--mf-public-v3-line);
    border-radius: 0;
    background: #0d0e0d;
}

body:has(.page-heading + .content-grid--single) .page-heading {
    padding-top: 62px;
}

body:has(.page-heading + .content-grid--single) .content-grid--single {
    padding-bottom: 78px;
}

.public-operation-art {
    width: 92px;
    height: 92px;
    margin: 16px 0 18px;
    object-fit: contain;
    object-position: center;
}

/* Shared public footer, recolored without changing its content or links. */
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer {
    margin-top: 0;
    color: var(--mf-public-v3-paper);
    background: #050605;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer::before {
    background: var(--mf-public-v3-line-gold);
    box-shadow: none;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer::after {
    content: none;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__inner {
    width: min(calc(100% - 48px), var(--mf-public-v3-shell));
    padding: 30px 0 22px;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__brand-logo {
    width: auto;
    max-height: 54px;
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__links a::after,
body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__language::after {
    background: var(--mf-public-v3-gold);
}

body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__trust-list li::before {
    background: var(--mf-public-v3-gold);
}

@media (max-width: 1180px) {
    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header {
        padding-inline: 24px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header__actions {
        gap: 12px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-nav {
        gap: 11px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-nav__link {
        font-size: 0.72rem;
    }
}

@media (max-width: 1180px) {
    body .page-landing--seo .seo-hero__panel,
    .public-android-hero__layout,
    body .legal-page .legal-hero__inner,
    body .privacy-page .privacy-hero__layout,
    body .refunds-page .refunds-hero__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    body .page-landing--seo .seo-hero h1,
    .public-android-hero__copy h1,
    body :is(.legal-page, .privacy-page, .refunds-page) h1 {
        max-width: 14ch;
    }

    body .page-landing--plans .pricing-grid,
    .public-android-features {
        grid-template-columns: 1fr;
    }

    body .page-landing--plans .plan-card--featured {
        transform: none;
    }

    body .legal-page .legal-layout,
    body .refunds-page .refunds-layout,
    body .privacy-page .privacy-article .privacy-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 28px;
    }

    body .legal-page .legal-index--desktop,
    body .refunds-page .refunds-index {
        position: static;
    }

    body .privacy-page .privacy-article__header,
    body .privacy-page .privacy-article__quicklinks,
    body .privacy-page .privacy-article__body {
        position: static;
        grid-column: 1;
        grid-row: auto;
    }

    body .privacy-page .privacy-article__quicklinks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    body:has(.auth-layout) .auth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .public-approved-shell,
    body .page-landing--seo :is(.seo-hero__inner, .seo-section__inner),
    body .page-landing--plans :is(.pricing-grid, .plans-compare, .landing-section-header),
    body .legal-page :is(.legal-hero__panel, .legal-layout),
    body .privacy-page .privacy-shell,
    body .refunds-page .refunds-shell,
    body:has(.auth-layout) .auth-layout,
    body:has(.page-heading + .content-grid--single) :is(.page-heading, .content-grid--single),
    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__inner {
        width: min(calc(100% - 32px), var(--mf-public-v3-shell));
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header {
        height: 68px;
        min-height: 68px;
        padding-inline: 16px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-lockup--auth {
        gap: 10px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-lockup--auth .brand-mark,
    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-lockup--auth .brand-mark__icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .mf-brand-lockup__separator {
        height: 28px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-wordmark-image {
        width: 112px;
    }

    body .page-landing--seo .seo-hero,
    .public-android-hero,
    body .legal-page .legal-hero,
    body .privacy-page .privacy-hero,
    body .refunds-page .refunds-hero {
        min-height: 0;
        padding-block: 52px;
    }

    body .page-landing--seo .seo-hero h1,
    .public-android-hero__copy h1,
    body .page-landing--plans .landing-hero h1,
    body :is(.legal-page, .privacy-page, .refunds-page) h1 {
        max-width: 100%;
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    body .page-landing--seo :is(.seo-problem-grid, .seo-flow-grid, .seo-bento-grid, .seo-split),
    body .page-landing--contact :is(.contact-layout, .contact-copy__cards) {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body .page-landing--seo .seo-hero__stats {
        grid-template-columns: 1fr;
    }

    body .page-landing--seo .seo-hero__stat {
        border-right: 0;
        border-bottom: 1px solid var(--mf-public-v3-line);
    }

    body .page-landing--seo .seo-hero__stat:last-child {
        border-bottom: 0;
    }

    body .page-landing--seo .seo-cta-band__panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 26px 22px;
    }

    body .page-landing--plans .landing-hero {
        min-height: 0;
        padding: 52px 16px 66px;
    }

    body .page-landing--plans .landing-features--plans {
        padding-top: 48px;
    }

    body .page-landing--plans .plan-card {
        padding: 24px !important;
    }

    .public-android-hero__visual {
        min-height: 0;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
    }

    .public-android-hero__visual img {
        width: min(310px, 82vw);
        max-height: 520px;
    }

    .public-android-hero__visual figcaption {
        max-width: 300px;
        padding-bottom: 0;
        text-align: center;
    }

    body .privacy-page .privacy-principles-grid {
        grid-template-columns: 1fr;
    }

    body .privacy-page .privacy-principle,
    body .privacy-page .privacy-principle:nth-child(3n),
    body .privacy-page .privacy-principle:nth-child(3n + 2) {
        padding: 20px 0;
        border-right: 0;
        border-top: 1px solid var(--mf-public-v3-line);
    }

    body .privacy-page .privacy-principle:first-child {
        border-top: 0;
    }

    body .privacy-page .privacy-article__quicklinks {
        grid-template-columns: 1fr;
    }

    body .privacy-page :is(.privacy-block__content),
    body .legal-page .legal-section__body,
    body .refunds-page .refunds-section__body {
        padding-left: 0;
    }

    body .privacy-page .privacy-contact__panel {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 26px 22px;
    }

    body .public-state-page {
        width: min(calc(100% - 32px), 900px);
        grid-template-columns: 1fr;
        margin-block: 46px 62px;
    }

    body .public-state-page__art {
        min-height: 0;
        aspect-ratio: 1.25;
    }

    body .public-state-page :is(.registration-success-transition__shell, .verify-transition__shell) {
        padding: 30px 24px 36px;
    }

    body .public-state-page h1 {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    body:has(.auth-layout) .auth-layout {
        padding-block: 46px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__copyright {
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 460px) {
    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-header .brand-wordmark-image {
        width: 92px;
    }

    body .page-landing--plans .plan-card__identity {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 13px;
    }

    body .page-landing--plans .plan-card__art {
        width: 54px;
        height: 54px;
    }

    body.body--auth:has(:is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page)) .public-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* Approved public-page composition. This final block is authoritative over legacy page CSS. */
body :is(.page-landing--seo, .page-landing--plans, .legal-page, .privacy-page, .refunds-page, .public-android-page, .public-state-page),
body:has(.mf-auth-shell),
body:has(.auth-layout) {
    --accent: var(--mf-public-v3-gold);
    --accent-strong: var(--mf-public-v3-gold-bright);
    --text: var(--mf-public-v3-paper);
    --muted: var(--mf-public-v3-muted);
    color: var(--mf-public-v3-paper);
    background: var(--mf-public-v3-bg);
}

body .page-landing--seo :is(.seo-hero, .seo-section, .seo-cta-band, .seo-hero__panel, .seo-hero__visual, .seo-hero__art, .seo-flow-grid, .seo-cta-band__panel)::before,
body .page-landing--seo :is(.seo-hero, .seo-section, .seo-cta-band, .seo-hero__panel, .seo-hero__visual, .seo-hero__art, .seo-flow-grid, .seo-cta-band__panel)::after,
body :is(.legal-page, .privacy-page, .refunds-page)::before,
body :is(.legal-page, .privacy-page, .refunds-page)::after {
    content: none !important;
    display: none !important;
}

body .page-landing--seo .seo-hero__art,
body .legal-page .legal-hero__visual,
body .privacy-page .privacy-hero__visual {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body .page-landing--seo .seo-hero__art img,
body .legal-page .legal-hero__visual-img,
body .privacy-page .privacy-hero__visual-image {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Contact: hero copy and the working server form share the first viewport. */
body .page-landing--contact .seo-page {
    width: min(calc(100% - 48px), var(--mf-public-v3-shell));
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
    column-gap: 72px;
    row-gap: 34px;
    margin-inline: auto;
    padding: 64px 0 88px;
}

body .page-landing--contact :is(.contact-hero, .contact-section, .seo-hero__inner, .seo-section__inner, .contact-hero__panel, .contact-layout) {
    display: contents;
}

body .page-landing--contact .contact-hero__content {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

body .page-landing--contact .contact-hero__content h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 4.2vw, 4.25rem);
}

body .page-landing--contact .contact-form-wrap {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
}

body .page-landing--contact .contact-hero__visual {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
}

body .page-landing--contact .contact-hero__art img {
    width: min(100%, 470px);
    max-height: 280px;
    object-position: left center;
}

body .page-landing--contact .contact-copy {
    grid-column: 1;
    grid-row: 3;
}

body .page-landing--contact .contact-form {
    padding: 34px;
    border-color: rgba(201, 174, 120, 0.28);
    background: #0e0f0e;
}

body .page-landing--contact .contact-form__header h2 {
    margin: 8px 0 6px;
    font-size: clamp(1.65rem, 2.2vw, 2.15rem);
}

/* Plans: one hierarchy, no duplicated copy, no inherited plan colors. */
body .page-landing--plans .landing-hero {
    min-height: 0;
    padding: 46px 24px 38px;
    background: #080908 !important;
}

body .page-landing--plans .landing-hero h1 {
    max-width: 22ch;
    font-size: clamp(2.45rem, 3.5vw, 3.55rem);
}

body .page-landing--plans .landing-hero::before,
body .page-landing--plans .landing-hero::after,
body .page-landing--plans .plan-card::before,
body .page-landing--plans .plan-card::after,
body .page-landing--plans .plan-card--featured::before,
body .page-landing--plans .plan-card--featured::after {
    content: none !important;
    display: none !important;
}

body .page-landing--plans .landing-features--plans {
    padding: 24px 0 90px;
}

body .page-landing--plans .pricing-grid,
body .page-landing--plans .plans-compare {
    width: min(calc(100% - 48px), var(--mf-public-v3-shell));
    margin-inline: auto;
}

body .page-landing--plans .plan-card {
    padding: 32px !important;
    overflow: visible !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 8px !important;
    background: #10110f !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body .page-landing--plans .plan-card--featured {
    border-color: rgba(201, 174, 120, 0.72) !important;
    background: #14130f !important;
    box-shadow: none !important;
    transform: none !important;
}

body .page-landing--plans .plan-card:hover {
    border-color: rgba(201, 174, 120, 0.5) !important;
    background: #141410 !important;
    box-shadow: none !important;
    transform: translateY(-2px) !important;
}

body .page-landing--plans .plan-card__top {
    min-height: 118px;
    margin: 0 0 22px !important;
}

body .page-landing--plans .plan-card__identity {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

body .page-landing--plans .plan-card__art {
    width: 72px;
    height: 72px;
}

body .page-landing--plans .plan-card__identity-copy {
    align-content: center;
    gap: 7px;
}

body .page-landing--plans .plan-card__identity .eyebrow {
    color: var(--mf-public-v3-paper) !important;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.15;
}

body .page-landing--plans .plan-card__description {
    max-width: 27ch;
    color: var(--mf-public-v3-muted) !important;
    font-size: 0.96rem;
    line-height: 1.52;
}

body .page-landing--plans .plan-card__pricing {
    min-height: 48px;
}

body .page-landing--plans .plan-ribbon {
    position: absolute;
    top: 0;
    right: 22px;
    left: auto;
    z-index: 2;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 6px 10px;
    border: 0;
    border-radius: 2px;
    color: #17130c;
    background: var(--mf-public-v3-gold);
    box-shadow: none;
    transform: translateY(-50%);
}

body .page-landing--plans .plan-ribbon span {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    color: #17130c;
    background: transparent;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: none;
}

body .page-landing--plans .plan-card__identity-copy > span[style] {
    color: var(--mf-public-v3-gold-bright) !important;
}

body .page-landing--plans .plans-price.plws__price--hidden {
    display: none !important;
}

body .page-landing--plans .plans-price:not(.plws__price--hidden) {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: baseline !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
}

body .page-landing--plans .plans-price__currency {
    flex: 0 0 auto;
    margin: 0 !important;
    font-size: 0.82rem;
    line-height: 1;
    letter-spacing: 0.06em;
}

body .page-landing--plans .plans-price__main {
    width: auto !important;
    min-width: 0;
    display: inline-flex !important;
    flex: 0 1 auto;
    flex-flow: row nowrap !important;
    align-items: baseline !important;
    gap: 5px !important;
    white-space: nowrap;
}

body .page-landing--plans .plans-price__amount {
    flex: 0 1 auto;
    font-size: clamp(2rem, 2.35vw, 2.45rem);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body .page-landing--plans .plans-price__suffix {
    flex: 0 0 auto;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

body .page-landing--plans .plan-card__actions--primary {
    margin: 22px 0 0 !important;
    padding: 0 !important;
}

body .page-landing--plans .plan-card__actions--primary .button-link {
    min-height: 44px;
    border: 1px solid rgba(201, 174, 120, 0.76) !important;
    color: var(--mf-public-v3-paper) !important;
    background: transparent !important;
    box-shadow: none !important;
}

body .page-landing--plans .plan-card--featured .plan-card__actions--primary .button-link {
    color: #17130c !important;
    background: var(--mf-public-v3-gold) !important;
}

body .page-landing--plans .feature-list {
    flex: 0 0 auto;
    gap: 10px;
    margin: 26px 0 0 !important;
}

body .page-landing--plans .feature-list li {
    color: var(--mf-public-v3-muted-strong);
    font-size: 0.93rem;
}

body .page-landing--plans .plan-card__promo {
    margin: 18px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--mf-public-v3-gold-bright) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: left;
}

body .page-landing--plans .plan-card__actions--secondary {
    margin: auto 0 0 !important;
    padding: 18px 0 0 !important;
}

body .page-landing--plans .plan-card__actions--secondary .ghost-link {
    min-height: 34px;
    font-size: 0.78rem;
}

body .page-landing--plans .plans-billing-toggle {
    width: min(100%, 330px) !important;
    grid-template-columns: 0.86fr 1.14fr !important;
    gap: 3px !important;
    padding: 3px !important;
    border-color: rgba(201, 174, 120, 0.7) !important;
    background: #0c0c0b !important;
    box-shadow: none !important;
    filter: none !important;
}

body .page-landing--plans .plans-billing-toggle__button,
body .page-landing--plans .plans-billing-toggle__button:hover,
body .page-landing--plans .plans-billing-toggle__button:focus,
body .page-landing--plans .plans-billing-toggle__button:focus-visible {
    outline: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

body .page-landing--plans .plans-billing-toggle__button {
    min-height: 50px !important;
    padding: 6px 18px !important;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.05;
}

body .page-landing--plans .plans-billing-toggle__button small {
    display: block;
    margin-top: 4px;
    color: var(--mf-public-v3-gold-bright);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.015em;
}

body .page-landing--plans .plans-billing-toggle__button:not(.is-active) {
    color: var(--mf-public-v3-paper) !important;
    background: #0c0c0b !important;
}

body .page-landing--plans .plans-billing-toggle__button.is-active {
    color: #17130c !important;
    background: var(--mf-public-v3-gold) !important;
}

body .page-landing--plans .plans-billing-toggle__button.is-active small {
    color: #17130c !important;
}

body .page-landing--plans .plans-compare {
    margin-top: 72px;
}

body .page-landing--plans .plans-compare__panel-inner {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body .page-landing--plans .plans-compare__header {
    display: block;
    padding: 0 0 30px;
    border: 0;
    text-align: center;
}

body .page-landing--plans .plans-compare__copy h3 {
    max-width: 24ch;
    margin: 0 auto 10px;
}

body .page-landing--plans .plans-compare__copy p,
body .page-landing--plans .plans-compare__mobile-hint {
    max-width: 58ch;
    margin: 0 auto;
}

body .page-landing--plans .plans-compare__mobile-hint {
    margin-top: 8px;
}

body .page-landing--plans .plans-compare__table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    background: #0d0e0d;
}

body .page-landing--plans .plans-compare__table {
    width: 100%;
    border-collapse: collapse;
    background: #0d0e0d;
}

body .page-landing--plans .plans-compare__table th,
body .page-landing--plans .plans-compare__table td {
    vertical-align: middle;
}

body .page-landing--plans .plans-compare__table td {
    text-align: center !important;
}

body .page-landing--plans .plans-compare__table thead th,
body .page-landing--plans .plans-compare__feature-col {
    color: var(--mf-public-v3-paper);
    background: #11120f !important;
}

body .page-landing--plans .plans-compare__table thead th {
    text-align: center;
}

body .page-landing--plans .plans-compare__table thead .plans-compare__feature-col,
body .page-landing--plans .plans-compare__table tbody .plans-compare__feature-col {
    text-align: left;
}

body .page-landing--plans .plans-compare__group-row th {
    color: var(--mf-public-v3-gold-bright);
    background: #0a0b0a !important;
}

body .page-landing--plans .plans-compare__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    margin-inline: auto;
}

body .page-landing--plans .plans-compare__state--check {
    color: var(--mf-public-v3-gold-bright);
}

body .page-landing--plans .plans-compare__state--excluded {
    color: #827e75;
}

/* Legal pages keep all text and navigation without inherited blue/violet panels. */
body :is(.legal-page, .privacy-page, .refunds-page) :is(.legal-section, .privacy-block, .refunds-section):first-child {
    padding: 28px 0;
    border: 0;
    border-bottom: 1px solid var(--mf-public-v3-line);
    background: transparent;
}

body .privacy-page .privacy-principles-grid {
    border-color: rgba(201, 174, 120, 0.22);
}

body .privacy-page .privacy-principle {
    min-width: 0;
}

body .privacy-page .privacy-principle :is(h3, p) {
    max-width: 30ch;
    overflow-wrap: normal;
    word-break: normal;
}

/* Public authentication states use the same canonical chrome and palette. */
body.body--auth:has(:is(.mf-auth-shell, .auth-layout)) .public-header,
body.body--auth:has(:is(.mf-auth-shell, .auth-layout)) .public-footer {
    color: var(--mf-public-v3-paper);
    background: #060706;
}

body:has(.mf-auth-shell) .mf-auth-shell {
    min-height: 690px;
    padding: 56px max(24px, calc((100vw - var(--mf-public-v3-shell)) / 2));
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 0.82fr);
    align-items: center;
    gap: 72px;
    background: url("../img/mf-public-route-plate.png") center / cover, var(--mf-public-v3-bg);
}

body:has(.mf-auth-shell) .mf-auth-shell::before {
    content: "";
    display: block;
    min-height: 520px;
    background: url("../img/mf-public-hero-studio.png") center / contain no-repeat;
}

body:has(.mf-auth-shell) .mf-auth-card {
    width: min(100%, 470px);
    justify-self: end;
    padding: 34px;
    border: 1px solid rgba(201, 174, 120, 0.28);
    border-radius: 7px;
    color: var(--mf-public-v3-paper);
    background: #0e0f0e;
    box-shadow: none;
}

body:has(.mf-auth-shell) .mf-auth-card :is(input, select) {
    color: var(--mf-public-v3-paper);
    border-color: rgba(255, 255, 255, 0.14);
    background: #090a09;
}

body:has(.mf-auth-shell) .mf-auth-card :is(input, select):focus {
    border-color: var(--mf-public-v3-gold);
    box-shadow: 0 0 0 2px rgba(201, 174, 120, 0.13);
}

body:has(.mf-auth-shell) .mf-auth-primary {
    color: #17130c;
    background: var(--mf-public-v3-gold);
}

@media (max-width: 900px) {
    body .page-landing--contact .seo-page {
        grid-template-columns: 1fr;
        row-gap: 34px;
        padding-top: 50px;
    }

    body .page-landing--contact :is(.contact-hero__content, .contact-form-wrap, .contact-hero__visual, .contact-copy) {
        grid-column: 1;
        grid-row: auto;
    }

    body .page-landing--contact .contact-form-wrap {
        grid-row: 2;
    }

    body:has(.mf-auth-shell) .mf-auth-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body:has(.mf-auth-shell) .mf-auth-shell::before {
        min-height: 300px;
    }

    body:has(.mf-auth-shell) .mf-auth-card {
        justify-self: center;
    }
}

@media (max-width: 980px) {
    body .page-landing--plans .pricing-grid {
        width: min(calc(100% - 40px), 640px);
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body .page-landing--plans .plans-compare {
        width: calc(100% - 40px);
    }
}

@media (max-width: 760px) {
    body .page-landing--contact .seo-page,
    body .page-landing--plans .pricing-grid,
    body .page-landing--plans .plans-compare {
        width: calc(100% - 32px);
    }

    body .page-landing--plans .landing-hero {
        padding: 50px 16px 34px;
    }

    body .page-landing--plans .landing-features--plans {
        padding-top: 18px;
    }

    body .page-landing--plans .pricing-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body .page-landing--plans .plan-card {
        padding: 26px 22px !important;
    }

    body .page-landing--contact .contact-form {
        padding: 26px 22px;
    }

    body:has(.mf-auth-shell) .mf-auth-shell {
        min-height: 0;
        padding: 38px 16px 56px;
    }

    body:has(.mf-auth-shell) .mf-auth-shell::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .public-state-page :is(.registration-success-transition__shell, .verify-transition__shell) {
        animation: none;
    }
}
