/* Landing pages are the only content in their <body> (no header/nav — see
   LandingLayout). The default browser UA stylesheet gives <body> an 8px
   margin; combined with `.masked-landing { min-height: 100dvh }` that alone
   is enough to push the document ~16px taller than the viewport and produce
   an unwanted native scrollbar even though nothing on the page needs to
   scroll. Reset html/body here (scoped to whichever page loads this
   stylesheet) instead of touching the shared app.css used by other routes. */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

/* No global box-sizing reset exists in this app (app.css is the stock Blazor
   template, not a full CSS reset) — every element defaults to content-box.
   That is what let `.masked-landing`'s `height: 100dvh` + its own padding
   silently add up to *more* than 100dvh (padding stacked on top of the
   content box instead of being included in it), which was the other half of
   the "page can be scrolled when it shouldn't" bug. Scope the fix to this
   page's own subtree instead of touching the shared app.css. */
.masked-landing,
.masked-landing *,
.masked-landing *::before,
.masked-landing *::after {
    box-sizing: border-box;
}

.masked-landing {
    --brand-primary: 255, 0, 140;
    --brand-secondary: 26, 26, 26;
    --brand-on-primary: 255, 255, 255;
    --brand-on-secondary: 26, 26, 26;
    --brand-on-muted: 120, 24, 72;
    --brand-secondary-dark: 0;
    --brand-primary-accent: 230, 0, 126;
    --brand-primary-soft: 255, 230, 245;
    --brand-primary-hover: 230, 0, 126;
    --brand-secondary-soft: 255, 255, 255;
    --landing-safe-top: env(safe-area-inset-top, 0px);
    --landing-safe-bottom: env(safe-area-inset-bottom, 0px);
    --landing-bg: #f7f6fa;
    --landing-fg: #1a1a1a;
    --landing-fg-muted: rgba(26, 26, 26, 0.82);
    --landing-tabs-track: rgb(235, 234, 238);
    --landing-glass-bg: rgba(255, 255, 255, 0.78);
    --landing-glass-shadow: 0 20px 50px rgba(26, 26, 26, 0.08);
    --landing-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    --landing-footer-fg: rgba(26, 26, 26, 0.55);
    /* Semantic status colors — kept independent of the brand hue so success/error
       feedback stays instantly recognizable on any primary/secondary combination. */
    --landing-success-fg: #1f7a34;
    --landing-success-bg: #f0faf1;
    --landing-success-border: rgba(31, 122, 52, 0.3);
    --landing-info-fg: #8a5a12;
    --landing-info-bg: #fff8e6;
    --landing-info-border: rgba(183, 121, 31, 0.35);
    --landing-status-body: rgba(26, 26, 26, 0.72);
    /* Neutral gray scale — intentionally independent of --brand-primary. Used by
       secondary/passive affordances (help trigger) and disabled controls so they
       stay visually "quiet" regardless of the active brand hue. */
    --landing-neutral-ink: rgba(26, 26, 26, 0.55);
    --landing-neutral-hover-ink: rgba(26, 26, 26, 0.78);
    --landing-neutral-border: rgba(26, 26, 26, 0.16);
    --landing-neutral-hover-border: rgba(26, 26, 26, 0.26);
    --landing-neutral-surface: rgba(255, 255, 255, 0.6);
    --landing-neutral-hover-bg: rgba(26, 26, 26, 0.06);
    --landing-neutral-panel-bg: rgba(255, 255, 255, 0.98);
    --landing-disabled-bg: rgba(26, 26, 26, 0.06);
    --landing-disabled-fg: rgba(26, 26, 26, 0.4);
    --landing-hint-fg: rgba(26, 26, 26, 0.6);
    --landing-hint-error-fg: #c62828;
    --landing-hint-success-fg: #2e7d32;
    --landing-bg-vignette: rgba(247, 246, 250, 0.55);
    --landing-bg-wave-1: rgba(var(--brand-primary), 0.26);
    --landing-bg-wave-2: rgba(var(--brand-primary), 0.18);
    --landing-bg-wave-3: rgba(var(--brand-primary), 0.14);
    --landing-bg-wave-4: rgba(var(--brand-primary), 0.10);
    --landing-bg-wave-5: rgba(var(--brand-primary), 0.08);
    --landing-bg-wave-mist: rgba(var(--brand-primary), 0.09);
    --landing-bg-dot: rgba(var(--brand-primary), 0.32);
    --landing-bg-dot-soft: rgba(var(--brand-primary), 0.16);
    --landing-bg-glow-a: rgba(var(--brand-primary), 0.20);
    --landing-bg-glow-b: rgba(var(--brand-primary), 0.14);
    --landing-bg-glow-c: rgba(var(--brand-primary), 0.11);
    --landing-bg-glow-d: rgba(var(--brand-primary), 0.08);
    --landing-bg-ribbon-a: rgba(var(--brand-primary), 0.10);
    --landing-bg-ribbon-b: rgba(var(--brand-primary), 0.06);
    position: relative;
    z-index: 1;
    isolation: isolate;
    /* `height` (not `min-height`) gives the flex column a definite main size,
       so `.masked-landing__shell`'s `flex: 1 1 auto` grows/shrinks against a
       real budget instead of the browser first satisfying `min-height` and
       then over-growing the flexible child past that floor (observed ~90px+
       of extra, unexplained height with `min-height` — the exact mechanic a
       min-height-based indefinite-size flex column falls into). `overflow-y`
       is the safety net for the rare case where content genuinely can't fit
       (long help text, error hints, tiny window) — it scrolls only then,
       instead of always reserving a bigger box than the viewport. */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(72px + var(--landing-safe-top)) 16px calc(24px + var(--landing-safe-bottom));
    background: var(--landing-bg);
    color: var(--landing-fg);
    overflow-x: hidden;
    font-family: IRANYekan, "Segoe UI", Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Fixed to the viewport (not the scrollable section) so art stays aligned on
   scroll. vh → dvh → svh cascade covers desktop and mobile browser chrome. */
.masked-landing__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    pointer-events: none;
    overflow: hidden;
    contain: paint;
    transform: translateZ(0);
}

.masked-landing__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    background: radial-gradient(
        ellipse 72% 56% at 50% 40%,
        rgba(247, 246, 250, 0) 22%,
        var(--landing-bg-vignette) 100%);
}

.masked-landing__bg-glow {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, rgba(var(--brand-primary), 0) 70%);
    backface-visibility: hidden;
}

.masked-landing__bg-glow--a {
    width: min(78vw, 740px);
    height: min(78vw, 740px);
    top: -18%;
    inset-inline-end: -16%;
    opacity: 0.55;
    --glow: var(--landing-bg-glow-a);
}

.masked-landing__bg-glow--b {
    width: min(68vw, 640px);
    height: min(68vw, 640px);
    bottom: -20%;
    inset-inline-start: -16%;
    --glow: var(--landing-bg-glow-b);
}

.masked-landing__bg-glow--c {
    width: min(48vw, 440px);
    height: min(48vw, 440px);
    top: 34%;
    inset-inline-start: 38%;
    opacity: 0.42;
    --glow: var(--landing-bg-glow-c);
}

.masked-landing__bg-glow--d {
    width: min(40vw, 360px);
    height: min(40vw, 360px);
    top: 14%;
    inset-inline-start: 6%;
    opacity: 0.45;
    --glow: var(--landing-bg-glow-d);
}

.masked-landing__bg-ribbon {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    opacity: 0.55;
    background: radial-gradient(
        ellipse at center, var(--ribbon) 0%, rgba(var(--brand-primary), 0) 72%);
}

.masked-landing__bg-ribbon--a {
    width: min(100vw, 1040px);
    height: min(36vw, 300px);
    top: 26%;
    inset-inline-start: -16%;
    --ribbon: var(--landing-bg-ribbon-a);
}

.masked-landing__bg-ribbon--b {
    width: min(92vw, 900px);
    height: min(32vw, 260px);
    bottom: 14%;
    inset-inline-end: -18%;
    --ribbon: var(--landing-bg-ribbon-b);
}

.masked-landing__bg-art {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.masked-landing__bg-svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* §4.3 of the design spec: mist gets a stronger blur (soft wide ribbon), flow
   a lighter one (still a visible line, just not razor-sharp) — this is what
   turns plain strokes into the kinetic "water" look instead of thin wires.
   Blurring the static `<g>` once is cheap; the sway animation below only
   translates that already-rasterized layer (GPU), it never re-blurs per frame. */
.masked-landing__wave-layer--mist {
    filter: blur(5px);
}

.masked-landing__wave-layer--flow {
    filter: blur(1px);
}

.masked-landing__wave {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.masked-landing__wave--mist-1 {
    stroke: var(--landing-bg-wave-mist);
    stroke-width: 18;
}

.masked-landing__wave--mist-2 {
    stroke: var(--landing-bg-wave-mist);
    stroke-width: 14;
}

.masked-landing__wave--1 {
    stroke: var(--landing-bg-wave-1);
    stroke-width: 1.6;
}

.masked-landing__wave--2 {
    stroke: var(--landing-bg-wave-2);
    stroke-width: 1.25;
}

.masked-landing__wave--3 {
    stroke: var(--landing-bg-wave-3);
    stroke-width: 1.1;
    stroke-dasharray: 4 14;
}

.masked-landing__wave--4 {
    stroke: var(--landing-bg-wave-4);
    stroke-width: 1;
}

.masked-landing__wave--5 {
    stroke: var(--landing-bg-wave-5);
    stroke-width: 0.9;
    stroke-dasharray: 2 18;
}

.masked-landing__dot {
    fill: var(--landing-bg-dot);
}

.masked-landing__dot--soft {
    fill: var(--landing-bg-dot-soft);
}

.masked-landing__dot-layer--compact {
    display: none;
}

.masked-landing__shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-inline: 8px;
}

.masked-landing__shell--branded {
    justify-content: center;
}

.masked-landing__glass {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 32px 24px 28px;
    border-radius: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--landing-glass-shadow), var(--landing-glass-highlight);
}

/* Question-mark help trigger lives at the page's own top-right corner (fixed to
   the viewport, not the branded card) — a neutral, secondary affordance that
   should never compete with the brand-colored primary CTA. Styled as the
   component library's ghost/xs button in a desaturated neutral gray so it
   reads as "always there, out of the way" on every brand color. */
.masked-landing__help {
    position: fixed;
    top: calc(16px + var(--landing-safe-top));
    inset-inline-start: 16px;
    z-index: 20;
}

.masked-landing__help-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid var(--landing-neutral-border);
    background: var(--landing-neutral-surface);
    color: var(--landing-neutral-ink);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.05);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.masked-landing__help-badge .ic-linear {
    font-size: 18px;
}

.masked-landing__help-badge:hover {
    background: var(--landing-neutral-hover-bg);
    color: var(--landing-neutral-hover-ink);
    border-color: var(--landing-neutral-hover-border);
}

.masked-landing__help-badge--active {
    background: var(--landing-neutral-hover-bg);
    color: var(--landing-neutral-hover-ink);
    border-color: var(--landing-neutral-hover-border);
}

/* Transparent full-viewport catcher so a click anywhere outside the panel
   closes it (no JS interop needed — plain Blazor event binding). Sits above
   the card but below the panel itself. */
.masked-landing__help-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: transparent;
    cursor: default;
}

/* Panel is always a neutral surface (not brand- or secondary-tinted): now that
   it floats over the whole page — background art, card, or footer depending on
   scroll/viewport — a brand-soft fill could clash or lose contrast. A clean
   frosted-white card reads correctly everywhere. */
.masked-landing__help-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    z-index: 21;
    width: min(300px, calc(100vw - 32px));
    padding: 16px 18px 18px;
    border-radius: 18px;
    background: var(--landing-neutral-panel-bg);
    border: 1px solid var(--landing-neutral-border);
    box-shadow: 0 20px 44px rgba(26, 26, 26, 0.16);
    color: var(--landing-fg);
    animation: landing-toast-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Arrow sits on the flat top edge (past the 18px corner radius) so its stroke
   meets the card border. The cover hides the half of that stroke that would
   otherwise continue down inside the card. */
.masked-landing__help-panel::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -6px;
    inset-inline-start: 22px;
    width: 12px;
    height: 12px;
    background: var(--landing-neutral-panel-bg);
    border-top: 1px solid var(--landing-neutral-border);
    border-inline-start: 1px solid var(--landing-neutral-border);
    transform: rotate(45deg);
    pointer-events: none;
}

.masked-landing__help-panel::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline-start: 16px;
    width: 24px;
    height: 10px;
    background: var(--landing-neutral-panel-bg);
    pointer-events: none;
}

.masked-landing__help-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--landing-neutral-border);
}

.masked-landing__help-panel-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--landing-fg);
}

.masked-landing__help-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--landing-fg-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.masked-landing__help-panel-close .ic-linear {
    font-size: 13px;
}

.masked-landing__help-panel-close:hover {
    background: rgba(26, 26, 26, 0.08);
    color: var(--landing-fg);
}

.masked-landing__help-panel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.masked-landing__help-line {
    position: relative;
    padding-inline-start: 16px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--landing-fg-muted);
    text-align: start;
}

.masked-landing__help-line::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--landing-neutral-ink);
}

.masked-landing__glass--error {
    text-align: center;
    color: var(--landing-fg-muted);
}

.masked-landing__logo-wrap {
    width: min(200px, 65vw);
    height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masked-landing__logo {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.masked-landing__logo-fallback {
    font-weight: 800;
    font-size: 1.1rem;
    /* on-muted (>=4.5:1) instead of raw brand-primary: bright/light brand hues
       (e.g. yellow) would otherwise render near-invisible text on this light card. */
    color: rgb(var(--brand-on-muted));
}

.masked-landing__desc {
    margin: 0;
    width: 100%;
    text-align: center;
    text-wrap: balance;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.01em;
    min-height: calc(15px * 1.9 * 3);
    color: var(--landing-fg-muted);
}

.masked-landing__desc-pill {
    display: inline-flex;
    align-items: center;
    margin-inline: 4px;
    padding: 2px 12px;
    border-radius: 999px;
    background: rgb(var(--brand-primary-soft));
    color: rgb(var(--brand-primary-accent));
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.7;
    white-space: nowrap;
    vertical-align: middle;
}

.masked-landing__desc-brand {
    display: inline;
    margin-inline: 4px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 0.98em;
    color: rgb(var(--brand-primary-accent));
}

.masked-landing__desc-hl {
    font-weight: 700;
    color: rgb(var(--brand-primary-accent));
}

.masked-landing__tabs {
    /* `.masked-landing__glass` is a flex column with `align-items: center`, so
       any child without an explicit width shrink-wraps to its content. Each
       `.masked-landing__tab` below sets `width: 0` (by design — it relies on
       `flex: 1 1 0` to split the track 50/50), but an explicit `width: 0` is
       *also* what the shrink-to-fit intrinsic-size calculation for this
       container used, collapsing the whole tab bar to ~padding-only width
       with invisible/zero-width labels. `width: 100%` anchors it to the card
       like `.masked-landing__form` already does. */
    width: 100%;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--landing-tabs-track);
}

.masked-landing__tab {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgb(var(--brand-on-muted));
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.masked-landing__tab:not(.masked-landing__tab--active):hover {
    background: rgba(var(--brand-primary), 0.08);
    color: rgb(var(--brand-on-muted));
}

.masked-landing__tab--active {
    background: rgb(var(--brand-primary));
    color: rgb(var(--brand-on-primary));
}

.masked-landing__tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.masked-landing__tab-icon .ic-linear {
    font-size: 16px;
}

.masked-landing__form,
.masked-landing__success {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.masked-landing__field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.masked-landing__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--landing-fg-muted);
}

.masked-landing__input-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 40px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
}

.masked-landing__input-group:focus-within {
    border-color: rgb(var(--brand-primary));
    box-shadow: 0 0 0 2px rgba(var(--brand-primary), 0.15);
}

.masked-landing__input-group--invalid {
    border-color: var(--landing-hint-error-fg);
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}

.masked-landing__input {
    flex: 1;
    border: none;
    padding: 0 14px;
    font: inherit;
    /* iOS Safari zooms the page when a focused field is under 16px, then clips the form. */
    font-size: 16px;
    line-height: 1.25;
    background: transparent;
    min-width: 0;
}

.masked-landing__input:focus {
    outline: none;
}

.masked-landing__input-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(26, 26, 26, 0.1);
}

.masked-landing__input-addon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    color: var(--landing-fg-muted);
    white-space: nowrap;
}

/* Captcha challenge sits inside the same rounded field as the text input —
   a trailing addon after the divider, exactly like the +98 addon on the
   mobile field (see reference pattern at 11l.eu/{slug}) — so it reads as
   part of one input, not a second field or a clickable button. */
.masked-landing__input-group--captcha {
    height: auto;
    min-height: 40px;
}

.masked-landing__input-group--captcha .masked-landing__input {
    min-width: 96px;
}

.masked-landing__captcha-addon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 10px;
}

.masked-landing__captcha-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 28px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    line-height: 1;
    user-select: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(245, 247, 250, 0.98)),
        repeating-linear-gradient(
            -32deg,
            rgba(26, 26, 26, 0.05) 0px,
            rgba(26, 26, 26, 0.05) 1px,
            transparent 1px,
            transparent 5px
        );
    border: 1px dashed rgba(26, 26, 26, 0.14);
    isolation: isolate;
}

.masked-landing__captcha-digit {
    display: inline-block;
    line-height: 1;
    font-size: 1em;
    /* Mild baseline/rotation — enough anti-OCR wobble without looking messy
       at the compact 15px size. */
}

.masked-landing__captcha-digit--0 { color: #2a56b8; transform: rotate(-3deg) translateY(0.5px); }
.masked-landing__captcha-digit--1 { color: #b82e5c; transform: rotate(4deg) translateY(-0.5px); }
.masked-landing__captcha-digit--2 { color: #178a5a; transform: rotate(-2deg) translateY(0.5px); }
.masked-landing__captcha-digit--3 { color: #a67a08; transform: rotate(4deg) translateY(-0.5px); }
.masked-landing__captcha-digit--4 { color: #6b38b0; transform: rotate(-3deg) translateY(0.5px); }
.masked-landing__captcha-digit--5 { color: #b03428; transform: rotate(3deg) translateY(-0.5px); }

.masked-landing__captcha-img {
    height: 32px;
    width: auto;
    max-width: 128px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(26, 26, 26, 0.1);
    background: #fff;
}

.masked-landing__captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgb(var(--brand-primary-accent));
    padding: 2px;
    border-radius: 999px;
    transition: background 0.15s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.masked-landing__captcha-refresh .ic-linear {
    font-size: 15px;
}

.masked-landing__captcha-refresh:hover {
    background: rgba(var(--brand-primary), 0.1);
}

.masked-landing__captcha-refresh:active .ic-linear {
    transform: rotate(180deg);
}

/* Mirrors the shared input-hint component: a small leading bullet dot in
   `currentColor` plus a consistent top margin/gap, instead of a bare
   paragraph. Every field/form-level message (mobile, captcha, OTP, request)
   renders through this one hint pattern so errors never look ad hoc. */
.masked-landing__hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-family: IRANYekan, "Segoe UI", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--landing-hint-fg);
}

.masked-landing__hint::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 3px;
    margin-top: 0.55em;
    border-radius: 50%;
    background: currentColor;
}

.masked-landing__field .masked-landing__hint--error {
    text-align: start;
}

/* Form-level alerts (request/verify failures) are centered banners, not a
   single field's hint — drop the leading bullet there (matches the shared
   component's `--no-bullet` variant) so a centered sentence doesn't end up
   with a stray dot floating to one side of it. */
.masked-landing__form > .masked-landing__hint--error {
    justify-content: center;
    text-align: center;
}

.masked-landing__form > .masked-landing__hint--error::before {
    display: none;
}

.masked-landing__hint--error {
    color: var(--landing-hint-error-fg);
}

.masked-landing__hint--ok {
    color: var(--landing-hint-success-fg);
}

/* Sits just under the glass card, centered on the page, above the footer.
   Rises from below and stops 8px under the box. */
.masked-landing__toast {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 6;
    width: min(360px, calc(100% - 16px));
    margin-inline: auto;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--landing-success-bg);
    color: var(--landing-success-fg);
    border: 1px solid var(--landing-success-border);
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    animation: landing-toast-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.masked-landing__toast--leaving {
    animation: landing-toast-leave 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
    pointer-events: none;
}

.masked-landing__toast-title {
    font-size: 13px;
    font-weight: 700;
}

.masked-landing__toast-body {
    font-size: 12px;
    line-height: 1.6;
    color: var(--landing-status-body);
}

.masked-landing__modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 26, 26, 0.45);
}

.masked-landing__modal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: min(100%, 460px);
    padding: 28px 32px 24px;
    border-radius: 18px;
    background: var(--landing-neutral-panel-bg);
    box-shadow: 0 20px 44px rgba(26, 26, 26, 0.16);
    color: var(--landing-fg);
    isolation: isolate;
}

.masked-landing__modal-mark {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--landing-info-bg);
    border: 1px solid var(--landing-info-border);
    color: var(--landing-info-fg);
}

.masked-landing__modal-mark .ic-linear {
    font-size: 24px;
}

.masked-landing__modal-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    text-align: center;
    color: var(--landing-fg);
}

.masked-landing__cta {
    height: 40px;
    min-height: 40px;
    width: 100%;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    background: rgb(var(--brand-primary));
    color: rgb(var(--brand-on-primary));
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

/* Visible loading indicator on submit CTAs — mirrors the splash ring so the same
   "loading" language is used everywhere, instead of only swapping the label text. */
.masked-landing__cta-spinner {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(var(--brand-on-primary), 0.15) 90deg,
        rgba(var(--brand-on-primary), 0.55) 220deg,
        rgb(var(--brand-on-primary)) 330deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    animation: masked-landing-splash-spin 0.8s linear infinite;
}

.masked-landing__cta:hover:not(:disabled) {
    background: rgb(var(--brand-primary-hover));
}

/* True "disabled" (validation is gating the action, e.g. an incomplete OTP)
   uses the shared component library's neutral disabled treatment — flat gray,
   default cursor — completely independent of the brand hue, instead of a
   washed-out tint of the primary color. */
.masked-landing__cta:disabled {
    opacity: 1;
    cursor: default;
    background: var(--landing-disabled-bg);
    color: var(--landing-disabled-fg);
}

.masked-landing__cta--outline {
    margin-top: 0;
    background: transparent;
    color: rgb(var(--brand-primary));
    border: 1.5px solid rgb(var(--brand-primary));
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.masked-landing__cta--outline:hover:not(:disabled) {
    background: rgba(var(--brand-primary), 0.08);
    color: rgb(var(--brand-primary));
}

.masked-landing__cta--outline:active:not(:disabled) {
    background: rgba(var(--brand-primary), 0.14);
    color: rgb(var(--brand-primary));
}

/* Secondary ghost CTA — same neutral treatment as the help badge, not a saturated
   brand fill on hover (the shared button ghost variant). */
.masked-landing__cta--ghost {
    background: var(--landing-neutral-surface);
    color: var(--landing-neutral-ink);
    border: 1px solid var(--landing-neutral-border);
    margin-top: 0;
}

.masked-landing__cta--ghost:hover:not(:disabled) {
    background: var(--landing-neutral-hover-bg);
    color: var(--landing-neutral-hover-ink);
    border-color: var(--landing-neutral-hover-border);
}

.masked-landing__cta--ghost:disabled {
    background: var(--landing-neutral-surface);
    border-color: var(--landing-neutral-border);
    color: var(--landing-neutral-ink);
    cursor: default;
}

.masked-landing__cta--ghost-wait:disabled {
    background: var(--landing-neutral-surface);
    border-color: var(--landing-neutral-border);
    color: var(--landing-neutral-ink);
    cursor: wait;
}

/* "Loading" (an in-flight request) is a different state from "disabled": the
   button keeps its normal brand-colored look with the spinner overlay, only
   swapping the cursor and blocking interaction — matching the shared button
   component, where `--loading` never falls back to the gray disabled skin.
   Declared after `:disabled` so equal-specificity source order lets it win
   while the button is both `disabled` (blocks clicks) and mid-submit. */
.masked-landing__cta--loading:disabled {
    opacity: 1;
    cursor: wait;
    background: rgb(var(--brand-primary));
    color: rgb(var(--brand-on-primary));
}

.masked-landing__cta--ghost.masked-landing__cta--loading:disabled {
    background: var(--landing-neutral-surface);
    color: var(--landing-neutral-ink);
    border-color: var(--landing-neutral-border);
}

.masked-landing__otp {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 4px 0 0;
}

/* Pill/circle digit cells with a distinct idle → filled → hover → focus →
   invalid → disabled state machine (same states the shared OTP input
   component exposes), instead of a single flat "always brand-tinted" box.
   `:not(:placeholder-shown)` is the same trick the component uses to detect
   "has a digit" without extra Blazor state — the cell keeps `placeholder="-"`
   so the pseudo-class flips the moment a digit is typed. */
.masked-landing__otp-cell {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 26, 0.16);
    outline: 0.5px solid transparent;
    background: rgba(255, 255, 255, 0.95);
    color: var(--landing-fg);
    caret-color: rgb(var(--brand-primary));
    transition: border-color 0.15s ease, outline-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.masked-landing__otp-cell::placeholder {
    color: rgba(26, 26, 26, 0.28);
    font-weight: 500;
}

/* Filled — a digit was entered but the cell isn't focused/hovered. */
.masked-landing__otp-cell:not(:placeholder-shown) {
    border-color: rgba(var(--brand-primary), 0.45);
}

.masked-landing__otp-cell:hover {
    border-color: rgba(var(--brand-primary), 0.55);
}

.masked-landing__otp-cell:focus {
    outline: none;
    border-color: rgb(var(--brand-primary));
    box-shadow: 0 0 0 2px rgba(var(--brand-primary), 0.15);
}

.masked-landing__otp-cell:disabled {
    border-color: rgba(26, 26, 26, 0.1);
    background: rgba(26, 26, 26, 0.03);
    color: var(--landing-disabled-fg);
    cursor: default;
}

.masked-landing__otp-timer {
    margin: 8px 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--landing-hint-fg);
    font-variant-numeric: tabular-nums;
}

.masked-landing__otp-timer-value {
    font-weight: 700;
    color: var(--landing-fg);
    margin-inline-start: 4px;
}

.masked-landing__otp-timer:not(.masked-landing__otp-timer--expired) .masked-landing__otp-resend {
    display: none;
}

.masked-landing__otp-timer--expired .masked-landing__otp-timer-live {
    display: none;
}

.masked-landing__otp-timer--expired {
    color: var(--landing-hint-error-fg);
}

.masked-landing__otp-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgb(var(--brand-primary));
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 150ms ease, opacity 150ms ease;
}

.masked-landing__otp-resend:hover {
    color: rgb(var(--brand-primary));
    opacity: 0.82;
}

.masked-landing__otp-resend:active {
    opacity: 0.7;
}

.masked-landing__otp-resend:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: none;
}

.masked-landing__otp-cell--invalid {
    border-color: var(--landing-hint-error-fg);
    color: var(--landing-hint-error-fg);
    caret-color: var(--landing-hint-error-fg);
}

.masked-landing__otp-cell--invalid:focus {
    border-color: var(--landing-hint-error-fg);
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
}

.masked-landing__otp-input {
    width: 100%;
    max-width: 220px;
    height: 48px;
    text-align: center;
    letter-spacing: 0.45em;
    font-size: 20px;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 26, 0.15);
}

.masked-landing__otp-input:focus {
    outline: none;
    border-color: rgb(var(--brand-primary));
    box-shadow: 0 0 0 2px rgba(var(--brand-primary), 0.15);
}

.masked-landing__alert {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: center;
}

.masked-landing__alert--success {
    background: var(--landing-success-bg);
    border: 1px solid var(--landing-success-border);
    color: var(--landing-success-fg);
}

.masked-landing__alert--info {
    background: var(--landing-info-bg);
    border: 1px solid var(--landing-info-border);
    color: var(--landing-info-fg);
}

.masked-landing__alert-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.masked-landing__alert-desc {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--landing-status-body);
}

/* Opacity only. A leftover translate (fill-mode both) is still a transform, and
   iOS Safari zooms and clips inputs inside any transformed ancestor. */
.landing-step-enter {
    animation: landing-step-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.masked-landing__splash {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--landing-bg);
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

/* Logo + spinner as one centered unit (avoids spinner drifting when logo paints). */
.masked-landing__splash-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.masked-landing__shell--during-splash {
    visibility: hidden;
    pointer-events: none;
}

/* —— Platform default splash: CSS-only timeline (hold 1.5s, then 0.48s reveal) ——
   Cover sits between the kinetic background and the shell, so the logo and loader
   are always visible while the background is revealed underneath. */
.masked-landing {
    --landing-splash-hold: 0.9s;
    --landing-splash-leave: 0.32s;
    --landing-splash-gap: 28px;
    --landing-splash-loader: 36px;
    /* --landing-splash-elapsed is set inline when the circuit re-renders prerendered markup. */
    --landing-splash-delay: calc(var(--landing-splash-hold) - var(--landing-splash-elapsed, 0s));
}

.masked-landing__splash-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--landing-bg);
    pointer-events: none;
    animation: landing-splash-cover-out var(--landing-splash-leave) ease var(--landing-splash-delay) forwards;
}

.masked-landing--platform .masked-landing__shell {
    z-index: 2;
}

.masked-landing__platform-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo + loader are centered as one unit during the splash, then the unit settles
   so the logo alone ends exactly at the viewport center (no jump). */
.masked-landing__platform-stack {
    --landing-platform-copy-gap: 24px;
    --landing-platform-tagline: 32px;
    --landing-platform-actions-gap: 16px;
    --landing-platform-button: 48px;
    --landing-platform-settle: calc((var(--landing-platform-copy-gap) + var(--landing-platform-tagline) + var(--landing-platform-actions-gap) + var(--landing-platform-button)) / -2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(calc((var(--landing-splash-gap) + var(--landing-splash-loader)) / -2));
    animation: landing-splash-settle var(--landing-splash-leave) cubic-bezier(0.22, 1, 0.36, 1) var(--landing-splash-delay) forwards;
}

.masked-landing__platform-stack .masked-landing__platform-loader {
    position: absolute;
    top: calc(100% + var(--landing-splash-gap));
    left: 50%;
    margin-left: calc(var(--landing-splash-loader) / -2);
    animation: landing-splash-fade-out calc(var(--landing-splash-leave) * 0.75) ease var(--landing-splash-delay) forwards;
}

@keyframes landing-splash-cover-out {
    to { opacity: 0; visibility: hidden; }
}

@keyframes landing-splash-settle {
    to { transform: translateY(var(--landing-platform-settle)); }
}

@keyframes landing-splash-fade-out {
    to { opacity: 0; visibility: hidden; }
}

@keyframes landing-platform-copy-in {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
}

.masked-landing__splash--leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.masked-landing__splash-logo {
    display: block;
    width: min(240px, 62vw);
    height: auto;
    max-height: 96px;
    object-fit: contain;
    animation: masked-landing-splash-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(0s - var(--landing-splash-elapsed, 0s)) both;
}

.masked-landing__splash-loader--leaving {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.masked-landing__splash-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(var(--brand-primary), 0.18);
    animation: masked-landing-splash-pulse 1.1s ease-in-out infinite;
}

.masked-landing__splash-loader {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.masked-landing__splash-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(var(--brand-primary), 0.05) 40deg,
        rgba(var(--brand-primary), 0.2) 100deg,
        rgba(var(--brand-primary), 0.55) 180deg,
        rgb(var(--brand-primary)) 300deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    animation: masked-landing-splash-spin 0.95s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.masked-landing__splash-loader-ring::after {
    content: "";
    position: absolute;
    top: 1px;
    inset-inline-end: 1px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(var(--brand-primary));
    box-shadow:
        0 0 6px rgba(var(--brand-primary), 0.75),
        0 0 12px rgba(var(--brand-primary), 0.35);
}

.masked-landing__footer {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto;
    padding: 28px 16px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.masked-landing__footer--hidden {
    visibility: hidden;
}

.masked-landing__footer-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--landing-footer-fg);
    transition: opacity 0.15s ease;
}

.masked-landing__footer-link:hover,
.masked-landing__footer-link:focus-visible {
    color: var(--landing-footer-fg);
    text-decoration: none;
    opacity: 0.8;
}

.masked-landing__footer-logo {
    height: 24px;
    width: auto;
    max-width: min(120px, 40vw);
    object-fit: contain;
}

@keyframes landing-glow-orbit-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-6%, 5%, 0) scale(1.05); }
}

@keyframes landing-glow-orbit-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(8%, -6%, 0) scale(1.06); }
}

@keyframes landing-glow-orbit-d {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(10%, 6%, 0) scale(1.06); }
}

@keyframes landing-glow-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes landing-ribbon-drift-a {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(5%, -3%, 0); }
}

@keyframes landing-ribbon-drift-b {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-4%, 3%, 0); }
}

@keyframes landing-wave-sway {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 10px, 0); }
}

@keyframes landing-wave-dash-flow {
    to { stroke-dashoffset: -36px; }
}

@keyframes landing-glow-orbit-a-mobile {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-3%, 2%, 0) scale(1.02); }
}

@keyframes landing-glow-orbit-b-mobile {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, -3%, 0) scale(1.02); }
}

@keyframes landing-glow-orbit-d-mobile {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(5%, 3%, 0) scale(1.03); }
}

@keyframes landing-ribbon-drift-a-mobile {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(2%, -2%, 0); }
}

@keyframes landing-ribbon-drift-b-mobile {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-2%, 2%, 0); }
}

@keyframes masked-landing-splash-in {
    from { opacity: 0; transform: scale(0.88) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes masked-landing-splash-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes masked-landing-splash-spin {
    to { transform: rotate(360deg); }
}

@keyframes landing-logo-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes landing-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-toast-rise {
    from {
        opacity: 0;
        transform: translateY(48px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-toast-leave {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(48px);
    }
}

@keyframes landing-step-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.masked-landing--platform {
    justify-content: center;
    padding-top: calc(24px + var(--landing-safe-top));
    padding-bottom: calc(24px + var(--landing-safe-bottom));
}

/* Platform / unknown slug keeps the same art and motion. Only the color
   intensities (set in PlatformBranding.cs) differ. */
.masked-landing--platform .masked-landing__bg-ribbon {
    opacity: 0.7;
}

.masked-landing--platform .masked-landing__bg-art {
    opacity: 0.72;
}

.masked-landing__shell--platform {
    max-width: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masked-landing__platform-mark {
    display: block;
    width: min(320px, 82vw);
    height: auto;
    max-height: min(84px, 18vw);
    min-height: min(84px, 18vw);
    object-fit: contain;
    animation: masked-landing-splash-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(0s - var(--landing-splash-elapsed, 0s)) both;
}

.masked-landing__platform-copy {
    position: absolute;
    top: calc(100% + var(--landing-platform-copy-gap));
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--landing-platform-actions-gap);
    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    animation: landing-platform-copy-in var(--landing-splash-leave) ease calc(var(--landing-splash-delay) + 0.12s) forwards;
}

.masked-landing__platform-tagline {
    margin: 0;
    min-height: var(--landing-platform-tagline);
    color: var(--landing-fg);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.masked-landing__platform-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--landing-platform-button);
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 500px;
    background: rgb(var(--brand-primary));
    color: rgb(var(--brand-on-primary));
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 250ms ease, color 250ms ease;
}

.masked-landing__platform-site:hover {
    background: #ffd14d;
    color: rgb(var(--brand-on-primary));
}

.masked-landing__platform-site:active {
    background: #ffc61a;
    color: rgb(var(--brand-on-primary));
}

.masked-landing__platform-site:focus-visible {
    outline: 2px solid var(--landing-fg);
    outline-offset: 2px;
}

.masked-landing__status {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(28rem, 100%);
    text-align: center;
}

.masked-landing__status-mark {
    animation: none;
    margin-bottom: 24px;
}

.masked-landing__status-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--landing-fg);
}

.masked-landing__status-body {
    margin: 8px 0 0;
    max-width: 36ch;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--landing-status-body);
}

.masked-landing--status .masked-landing__platform-site {
    margin-top: 24px;
}

.masked-landing__splash-logo--platform {
    max-width: min(320px, 82vw);
    max-height: 84px;
    min-height: min(84px, 18vw);
    width: auto;
    height: auto;
    object-fit: contain;
}

.masked-landing__tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.masked-landing__cta:focus-visible,
.masked-landing__tab:focus-visible,
.masked-landing__captcha-refresh:focus-visible,
.masked-landing__help-badge:focus-visible,
.masked-landing__help-panel-close:focus-visible,
.masked-landing__otp-cell:focus-visible,
.masked-landing__otp-input:focus-visible,
.masked-landing__otp-resend:focus-visible {
    outline: 2px solid rgb(var(--brand-primary));
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .masked-landing {
        padding: calc(64px + var(--landing-safe-top)) 14px calc(36px + var(--landing-safe-bottom));
        justify-content: flex-start;
    }

    .masked-landing--platform {
        justify-content: center;
        padding-top: calc(24px + var(--landing-safe-top));
        padding-bottom: calc(24px + var(--landing-safe-bottom));
    }

    .masked-landing__shell {
        gap: 16px;
    }

    .masked-landing__glass {
        padding: 24px 16px 22px;
        border-radius: 22px;
        gap: 22px;
    }

    .masked-landing__form,
    .masked-landing__success {
        gap: 18px;
    }

    .masked-landing__desc {
        font-size: 14px;
        line-height: 1.85;
        min-height: calc(14px * 1.85 * 3);
    }

    .masked-landing__tab {
        font-size: 12px;
        gap: 4px;
        padding: 0 6px;
    }

    .masked-landing__desc {
        font-size: 14px;
        min-height: calc(14px * 1.9 * 3);
    }

    .masked-landing__otp-cell {
        width: 42px;
        height: 44px;
        font-size: 18px;
    }

    .masked-landing__otp-input {
        max-width: 100%;
        letter-spacing: 0.35em;
    }
}

@media (max-width: 360px) {
    .masked-landing__tab-text {
        font-size: 11px;
    }

    .masked-landing__input-group {
        height: 44px;
    }

    .masked-landing__input-group--captcha {
        height: auto;
        min-height: 44px;
    }

    .masked-landing__tab {
        height: 44px;
    }

    .masked-landing__cta {
        height: 44px;
    }
}

/* Shorter viewports (small laptop windows, browser chrome eating into
   height, landscape phones) — the spec's 72px top padding plus the glass
   card's own vertical rhythm is taller than the visible viewport, forcing an
   unwanted native scrollbar even though nothing here actually needs
   scrolling. Compact the vertical rhythm instead of letting the page grow
   past the fold. Width-based rules below stay untouched. */
@media (max-height: 960px) {
    .masked-landing {
        padding: calc(28px + var(--landing-safe-top)) 16px calc(16px + var(--landing-safe-bottom));
    }

    .masked-landing__shell {
        gap: 14px;
    }

    .masked-landing__glass {
        padding: 24px 22px 22px;
        gap: 22px;
    }

    .masked-landing__desc {
        min-height: 0;
    }

    .masked-landing__footer {
        padding: 14px 16px 8px;
    }
}

@media (max-height: 720px) {
    .masked-landing {
        padding: calc(18px + var(--landing-safe-top)) 14px calc(12px + var(--landing-safe-bottom));
    }

    .masked-landing__glass {
        padding: 20px 18px 18px;
        gap: 18px;
    }

    .masked-landing__form,
    .masked-landing__success {
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .masked-landing__bg-glow,
    .masked-landing__bg-ribbon,
    .masked-landing__wave-layer--mist,
    .masked-landing__wave-layer--flow,
    .masked-landing__wave--3,
    .masked-landing__wave--5,
    .masked-landing__splash-loader-ring,
    .masked-landing__splash-placeholder,
    .masked-landing__cta-spinner,
    .landing-step-enter,
    .masked-landing__toast,
    .masked-landing__toast--leaving {
        animation: none !important;
    }

    .masked-landing__splash-cover,
    .masked-landing__platform-loader {
        animation: none;
        opacity: 0;
        visibility: hidden;
    }

    .masked-landing__platform-stack {
        animation: none;
        transform: translateY(var(--landing-platform-settle));
    }

    .masked-landing__platform-copy {
        animation: none;
        opacity: 1;
        visibility: visible;
    }
}

/* Typing keeps the circuit quiet. Pause backdrop motion so Chrome does not
   repaint the page on every key. */
.masked-landing--typing .masked-landing__bg-glow,
.masked-landing--typing .masked-landing__bg-ribbon,
.masked-landing--typing .masked-landing__wave-layer--mist,
.masked-landing--typing .masked-landing__wave-layer--flow,
.masked-landing--typing .masked-landing__wave--3,
.masked-landing--typing .masked-landing__wave--5 {
    animation-play-state: paused;
}

/* Touch / narrow: fewer SVG nodes, lighter mist, no backdrop-filter on card. */
@media (max-width: 768px), (pointer: coarse), (hover: none) {
    .masked-landing__dot-layer--full {
        display: none;
    }

    .masked-landing__dot-layer--compact {
        display: block;
    }

    .masked-landing__bg-glow--d {
        display: none;
    }

    .masked-landing__wave--mist-1 {
        stroke-width: 12;
    }

    .masked-landing__wave--mist-2 {
        stroke-width: 9;
    }

    .masked-landing__glass {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.96);
    }
}

@media (prefers-reduced-data: reduce) {
    .masked-landing__dot-layer--full,
    .masked-landing__dot-layer--compact {
        display: none;
    }
}

/* Soft motion on every device: only HTML gradient blobs (not the SVG). Waves
   stay fixed so meet/slice never fights transform on the same art layer. */
@media (prefers-reduced-motion: no-preference) {
    .masked-landing__bg-glow--a {
        animation: landing-glow-orbit-a 26s ease-in-out infinite;
    }

    .masked-landing__bg-glow--b {
        animation: landing-glow-orbit-b 32s ease-in-out infinite;
    }

    .masked-landing__bg-glow--c {
        animation: landing-glow-breathe 14s ease-in-out infinite;
    }

    .masked-landing__bg-glow--d {
        animation: landing-glow-orbit-d 20s ease-in-out infinite;
    }

    .masked-landing__bg-ribbon--a {
        animation: landing-ribbon-drift-a 28s ease-in-out infinite alternate;
    }

    .masked-landing__bg-ribbon--b {
        animation: landing-ribbon-drift-b 34s ease-in-out infinite alternate;
    }

    /* Design spec §4.3: "sway لایه + flow path + occasional dash offset" — the
       mist/flow <g> groups drift like a slow current; wave--3/--5 (the dashed
       paths) additionally crawl along their own stroke-dasharray. transform
       and stroke-dashoffset are both paint-only on an already-blurred, static
       layer — no geometry recalculation per frame, so this stays cheap on
       low-power devices too. */
    .masked-landing__wave-layer--mist {
        animation: landing-wave-sway 18s ease-in-out infinite alternate;
        will-change: transform;
    }

    .masked-landing__wave-layer--flow {
        animation: landing-wave-sway 24s ease-in-out infinite alternate-reverse;
        will-change: transform;
    }

    .masked-landing__wave--3 {
        animation: landing-wave-dash-flow 7s linear infinite;
    }

    .masked-landing__wave--5 {
        animation: landing-wave-dash-flow 10s linear infinite reverse;
    }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 768px),
(prefers-reduced-motion: no-preference) and (pointer: coarse) {
    .masked-landing__bg-glow--a {
        animation-name: landing-glow-orbit-a-mobile;
    }

    .masked-landing__bg-glow--b {
        animation-name: landing-glow-orbit-b-mobile;
    }

    .masked-landing__bg-glow--d {
        animation-name: landing-glow-orbit-d-mobile;
    }

    .masked-landing__bg-ribbon--a {
        animation-name: landing-ribbon-drift-a-mobile;
    }

    .masked-landing__bg-ribbon--b {
        animation-name: landing-ribbon-drift-b-mobile;
    }
}
