/* The browser page's own layers over the desktop renderer: the boot overlay and the call iframe. */

#web-boot {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--c-bg-app);
    color: var(--c-text-primary);
    font-family: var(--font-sans);
}

#web-boot[hidden] {
    display: none;
}

[data-theme="glass"] #web-boot {
    background: linear-gradient(135deg, var(--c-glass-grad-1) 0%, var(--c-glass-grad-2) 50%, var(--c-glass-grad-3) 100%);
}

.web-boot__card {
    width: 100%;
    max-width: 28rem;
    padding: var(--space-6);
    text-align: center;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--c-bg-panel);
    box-shadow: var(--shadow-lg);
}

.web-boot__title {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

.web-boot__card--error .web-boot__title {
    color: var(--c-status-error-text);
}

.web-boot__card--warn .web-boot__title {
    color: var(--c-status-warn-text);
}

.web-boot__step,
.web-boot__text {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--c-text-secondary);
}

.web-boot__card--muted .web-boot__step::before {
    content: '';
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    margin-right: var(--space-2);
    border: 2px solid var(--c-accent);
    border-right-color: transparent;
    border-radius: var(--r-full);
    vertical-align: -0.1em;
    animation: web-boot-spin 900ms linear infinite;
}

.web-boot__button {
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font: inherit;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std);
}

.web-boot__button--primary {
    background: var(--c-accent);
    color: var(--c-text-on-accent);
}

.web-boot__button--primary:hover {
    background: var(--c-accent-hover);
}

.web-boot__button--secondary {
    border-color: var(--c-border);
    background: var(--c-bg-input);
    color: var(--c-text-primary);
}

.web-boot__button--secondary:hover {
    border-color: var(--c-accent);
}

.web-boot__button:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

.web-boot__details {
    margin-top: var(--space-3);
    text-align: left;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.web-boot__summary {
    cursor: pointer;
}

.web-boot__raw {
    margin: var(--space-2) 0 0;
    font-family: var(--font-mono);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@keyframes web-boot-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .web-boot__card--muted .web-boot__step::before {
        animation: none;
    }
}

/* The pages before an account sit on a blurred landscape that follows the theme. */
.web-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--c-bg-app);
}

.web-scene__art {
    display: block;
    width: 100%;
    height: 100%;
}

.web-start-frame {
    --web-card: color-mix(in srgb, var(--c-bg-panel) 86%, transparent);
    position: absolute;
    inset: 0;
    display: flex;
    box-sizing: border-box;
    padding: 64px var(--space-4) var(--space-6);
    overflow-y: auto;
}

[data-theme="glass"] .web-start-frame {
    --web-card: var(--c-bg-panel);
}

.web-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    max-width: 30rem;
    margin: auto;
}

/* Wide screens: what Mirage is on the left, the choice card on the right. */
.web-start--home {
    display: grid;
    grid-template-columns: minmax(0, 32.5rem) 27.5rem;
    grid-template-areas:
        "intro card"
        "extras card"
        "footer footer";
    justify-content: center;
    align-items: start;
    column-gap: clamp(2rem, 7vw, 6rem);
    row-gap: 1.75rem;
    max-width: 68rem;
}

.web-start__intro {
    grid-area: intro;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    min-width: 0;
}

.web-start__card--home {
    grid-area: card;
    align-self: center;
}

.web-start__extras {
    grid-area: extras;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    min-width: 0;
}

.web-start--home > .web-start__footer {
    grid-area: footer;
    justify-self: center;
}

.web-start__name {
    display: flex;
    align-items: center;
    gap: 14px;
}

.web-start__headline {
    margin: 0;
    max-width: 30rem;
    font-size: 30px;
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--c-text-primary);
}

.web-start__points {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-start__point {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 16px;
    line-height: 1.35;
    color: var(--c-text-primary);
}

.web-start__point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--c-accent-soft);
    color: var(--c-text-primary);
}

.web-start__point-icon svg {
    width: 20px;
    height: 20px;
}

.web-start__get {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--space-2);
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

.web-start__get > svg {
    width: 16px;
    height: 16px;
}

.web-start__get-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--c-text-primary);
    font-weight: var(--fw-medium);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.web-start__install[hidden] {
    display: none;
}

.web-start__install-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;
    padding: 6px var(--space-3) 6px 6px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-bg-input);
    color: var(--c-text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-std);
}

.web-start__install-button:hover {
    border-color: var(--c-accent);
}

.web-start__install-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--c-accent-soft);
}

.web-start__install-icon svg {
    width: 20px;
    height: 20px;
}

.web-start__install-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.web-start__install-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.web-start__install-hint {
    font-size: 13px;
    color: var(--c-text-secondary);
}

.web-install__steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-install__step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-base);
}

.web-install__step .web-start__point-icon {
    color: var(--c-text-popup);
}

.web-install .web-prefs__close svg {
    width: 18px;
    height: 18px;
}

.web-install__note {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.4;
    color: var(--c-text-secondary);
}

.web-install__warn {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin: 0;
    padding: var(--space-3);
    border: 1px solid var(--c-status-warn-border);
    border-radius: var(--r-lg);
    background: var(--c-status-warn-bg);
    color: var(--c-text-popup);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.web-install__warn-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--c-status-warn-text);
}

.web-install__warn-icon svg {
    width: 20px;
    height: 20px;
}

/* Over the messenger and its dialogs, under the boot overlay. */
.web-prefs__sheet.web-install--page {
    z-index: 9600;
}

@media (min-width: 561px) {
    .web-prefs__sheet.web-install {
        justify-content: center;
        align-items: center;
    }

    .web-prefs__panel.web-install__panel {
        width: min(380px, calc(100% - 32px));
        border: 1px solid var(--c-border);
        border-radius: 20px;
    }

    .web-install__panel > .web-prefs__grabber {
        display: none;
    }
}

.web-start__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    font-weight: var(--fw-semibold);
    color: var(--c-text-primary);
}

.web-start__header-logo {
    width: 24px;
    height: 24px;
}

.web-start__header-name {
    flex: 1;
}

.web-start__header-link,
.web-start__about,
.web-start__footer-link {
    color: var(--c-text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.web-start__header-link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.web-start__card {
    width: 100%;
    box-sizing: border-box;
    padding: 28px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--web-card);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.web-start__logo {
    width: 56px;
    height: 56px;
}

.web-start__title {
    margin: 0;
    font-size: 44px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
    color: var(--c-text-primary);
}

.web-start__invite-title {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
}

.web-start__lead {
    margin: 0;
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--c-text-secondary);
}

.web-start__about {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.web-start__choices {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.web-start__choice {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: var(--space-3) var(--space-4);
    box-sizing: border-box;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-bg-input);
    color: var(--c-text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-std), background-color var(--dur-fast) var(--ease-std);
}

.web-start__choice:hover {
    border-color: var(--c-accent);
}

.web-start__choice--primary {
    border-color: var(--c-accent);
    background: var(--c-accent);
    color: var(--c-text-on-accent);
}

.web-start__choice--primary:hover {
    background: var(--c-accent-hover);
}

.web-start__choice--soon {
    cursor: default;
}

.web-start__choice--soon:hover {
    border-color: var(--c-border);
}

.web-start__choice::after {
    content: '\203A';
    flex-shrink: 0;
    margin-left: var(--space-3);
    font-size: var(--fs-xl);
    line-height: 1;
    opacity: 0.7;
}

.web-start__choice[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

.web-start__choice-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
    min-width: 0;
}

.web-start__choice-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.web-start__choice-hint {
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--c-text-secondary);
}

.web-start__choice--primary .web-start__choice-hint {
    color: inherit;
    opacity: 0.85;
}

.web-start__tag {
    padding: 2px 7px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-accent-soft);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

.web-start__paste {
    margin-top: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.web-start__paste[hidden],
.web-start__button[hidden],
.web-start__note[hidden],
.web-start__notice[hidden],
.web-start__error[hidden] {
    display: none;
}

.web-start__field {
    margin-top: var(--space-3);
}

.web-start__label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

.web-start__row {
    display: flex;
    gap: var(--space-2);
}

.web-start__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 40px;
    box-sizing: border-box;
    padding: 0 var(--space-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-bg-input);
    color: var(--c-text-primary);
    font: inherit;
    font-size: var(--fs-sm);
}

.web-start__input::placeholder {
    color: var(--c-text-muted);
}

.web-start__input[aria-invalid="true"] {
    border-color: var(--c-status-error-border);
}

.web-start__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 var(--space-5);
    border: 0;
    border-radius: var(--r-lg);
    font: inherit;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-std);
}

.web-start__button--primary {
    background: var(--c-accent);
    color: var(--c-text-on-accent);
}

/* The desktop app is the invite's first offer: wider and taller than the browser actions under it. */
.web-start__app {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin-top: var(--space-5);
    font-size: var(--fs-lg);
    text-align: center;
    text-decoration: none;
}

.web-start__divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0 var(--space-3);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.web-start__divider::before,
.web-start__divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--c-border);
}

.web-start__hint {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--c-text-secondary);
}

.web-start__browser-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.web-start__browser-actions > .web-start__button {
    flex: 1 1 10rem;
}

.web-start__button--primary:hover {
    background: var(--c-accent-hover);
}

.web-start__button--secondary {
    padding: 0 var(--space-4);
    border: 1px solid var(--c-border);
    background: var(--c-bg-input);
    color: var(--c-text-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: border-color var(--dur-fast) var(--ease-std);
}

.web-start__button--secondary:hover {
    border-color: var(--c-accent);
}

.web-start__error {
    margin: var(--space-2) 0 0;
    font-size: var(--fs-sm);
    color: var(--c-status-error-text);
}

.web-start__notice {
    margin: var(--space-3) 0 0;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-bg-popup);
    color: var(--c-text-popup);
    font-size: var(--fs-sm);
}

.web-start__note {
    margin: var(--space-4) 0 0;
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--c-text-secondary);
}

.web-start__download {
    margin: var(--space-3) 0 0;
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    text-align: center;
    color: var(--c-text-secondary);
}

.web-start__download-link {
    display: inline-block;
    padding: var(--space-2) 0;
    color: var(--c-text-primary);
    font-weight: var(--fw-medium);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.web-start__check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
    cursor: pointer;
}

.web-start__checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--c-accent);
    cursor: pointer;
}

[data-theme="dark"] .web-start__checkbox,
[data-theme="glass"] .web-start__checkbox {
    color-scheme: dark;
}

.web-start__footer {
    font-size: var(--fs-sm);
}

.web-start__footer-link {
    color: var(--c-text-secondary);
}

.web-start a:focus-visible,
.web-start button:focus-visible,
.web-start input:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

/* Over the onboarding's top bar, whose left corner holds the language switcher. */
.web-start-back {
    position: fixed;
    top: 0;
    right: var(--space-2);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--r-lg);
    background: transparent;
    color: var(--c-text-secondary);
    font: inherit;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
}

.web-start-back:hover {
    background: var(--c-chrome-hover);
    color: var(--c-text-primary);
}

.web-start-back:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: -2px;
}

.web-start-back[hidden] {
    display: none;
}

/* The language and theme picker: plain see-through buttons in the top-left corner. */
html[data-input="touch"] .web-prefs__wide {
    display: none;
}

html[data-input="touch"] .web-prefs__phone {
    display: inline-flex;
}

.web-prefs {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 2;
    font-family: var(--font-sans);
}

.web-prefs__wide {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.web-prefs__item {
    position: relative;
}

.web-prefs__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-lg);
    background: transparent;
    color: var(--c-text-primary);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-std);
}

.web-prefs__trigger:hover,
.web-prefs__trigger[aria-expanded="true"] {
    background: var(--c-chrome-hover);
}

.web-prefs__phone {
    display: none;
}

.web-prefs__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 188px;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-bg-popup);
    box-shadow: var(--shadow-lg);
}

.web-prefs__menu[hidden],
.web-prefs__sheet[hidden] {
    display: none;
}

.web-prefs__option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--c-text-popup);
    font: inherit;
    font-size: var(--fs-sm);
    text-align: left;
    cursor: pointer;
}

.web-prefs__option:hover,
.web-prefs__option:focus-visible {
    background: var(--c-chrome-hover);
}

.web-prefs__option[aria-checked="true"] {
    font-weight: var(--fw-semibold);
}

.web-prefs__label {
    flex: 1;
}

.web-prefs__check {
    display: flex;
    visibility: hidden;
}

.web-prefs__option[aria-checked="true"] .web-prefs__check {
    visibility: visible;
}

.web-prefs__sheet {
    position: fixed;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.web-prefs__backdrop {
    position: absolute;
    inset: 0;
    background: var(--c-scrim);
}

.web-prefs__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: 10px var(--space-4) 22px;
    border-top: 1px solid var(--c-border);
    border-radius: 20px 20px 0 0;
    background: var(--c-bg-popup);
    color: var(--c-text-popup);
    box-shadow: var(--shadow-lg);
}

.web-prefs__grabber {
    align-self: center;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--c-border);
}

.web-prefs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.web-prefs__title {
    margin: 0;
    font-size: 17px;
    font-weight: var(--fw-bold);
}

.web-prefs__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--c-text-secondary);
    cursor: pointer;
}

.web-prefs__caption {
    margin: 0 0 var(--space-2);
    font-size: 13px;
    font-weight: var(--fw-semibold);
    color: var(--c-text-secondary);
}

.web-prefs__grid {
    display: grid;
    gap: var(--space-2);
}

.web-prefs__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.web-prefs__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.web-prefs__choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    min-height: 44px;
    box-sizing: border-box;
    padding: var(--space-2) var(--space-1);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: transparent;
    color: var(--c-text-popup);
    font: inherit;
    font-size: 13px;
    font-weight: var(--fw-medium);
    cursor: pointer;
}

.web-prefs__choice--icon {
    flex-direction: column;
}

.web-prefs__choice[aria-pressed="true"] {
    border: 2px solid var(--c-accent);
    background: var(--c-bg-input);
    font-weight: var(--fw-semibold);
}

.web-prefs button:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

.web-prefs .web-prefs__option:focus-visible {
    outline-offset: -2px;
}

.onboarding-topbar__back-slot > .web-start-back {
    position: static;
    gap: 8px;
    padding: 0 10px;
    font-weight: 600;
}

/* The onboarding's picker sits where the start page's does. */
#onboarding-topbar {
    padding: var(--space-3) var(--space-3) 0;
}

@media (max-width: 879px) {
    .web-start--home {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "card"
            "extras"
            "footer";
        row-gap: var(--space-5);
        max-width: 30rem;
    }

    .web-start__intro {
        align-self: auto;
        gap: var(--space-4);
    }

    .web-start__extras {
        align-items: center;
        text-align: center;
    }

    .web-start__get {
        justify-content: center;
    }

    .web-start__title {
        font-size: 36px;
    }

    .web-start__headline {
        font-size: 24px;
    }
}

@media (max-width: 560px) {
    .web-start-frame {
        padding: 60px var(--space-4) var(--space-4);
    }

    .web-prefs {
        top: var(--space-2);
        left: 10px;
    }

    #onboarding-topbar {
        padding: var(--space-2) 10px 0;
    }

    .web-prefs__wide,
    .onboarding-prefs {
        display: none;
    }

    .web-prefs__phone,
    #btn-onboarding-prefs {
        display: inline-flex;
    }

    .web-start--home {
        row-gap: var(--space-4);
    }

    .web-start__name {
        gap: 10px;
    }

    .web-start__logo {
        width: 40px;
        height: 40px;
    }

    .web-start__title {
        font-size: 28px;
        letter-spacing: -0.01em;
    }

    .web-start__headline {
        font-size: var(--fs-lg);
        line-height: 1.35;
    }

    .web-start__intro {
        gap: 14px;
    }

    .web-start__points {
        gap: 10px;
    }

    .web-start__point {
        font-size: var(--fs-sm);
    }

    .web-start__point-icon {
        width: 32px;
        height: 32px;
    }

    .web-start__point-icon svg {
        width: 16px;
        height: 16px;
    }

    .web-start__get {
        column-gap: 6px;
        font-size: 13px;
    }

    .web-start__app {
        font-size: var(--fs-base);
    }

    .web-start__card {
        padding: 20px 18px;
    }

    .web-start__card--home {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .web-start__choice,
    .web-start__button,
    .web-start-back,
    .web-prefs__trigger {
        transition: none;
    }
}

.web-call {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--c-bg-call-deep);
}

.web-call[hidden] {
    display: none;
}

.web-call--card {
    inset: auto 0 0 auto;
    width: 408px;
    height: 168px;
    max-width: 100%;
    background: transparent;
}

.web-call__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
