@import url("tokens.css");

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-block-start: 5rem;
}

body {
    overflow-x: clip;
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--body-weight);
    line-height: 1.6;
    color: var(--color-ink);
    background: var(--color-paper);
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    min-width: 0;
}

p {
    margin: 0;
}

ul,
dl,
dd,
figure {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.container {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) 1.25rem;
    min-height: 44px;
    line-height: 1;
    border-radius: var(--radius-md);
    border: var(--rule-hair) solid transparent;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur-short) var(--ease-out),
        transform var(--dur-micro) var(--ease-out);
}

.btn__icon {
    flex: none;
    width: 18px;
    height: 18px;
}

.btn--fill {
    background: var(--color-accent);
    color: var(--color-accent-ink);
}

.btn--fill:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1.5px);
}

.btn--fill:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.link-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    min-height: 44px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-rule);
    transition: color var(--dur-short) var(--ease-out),
        text-decoration-color var(--dur-short) var(--ease-out);
}

.link-cta:hover {
    color: var(--color-ink);
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
}

.link-cta:active,
.nav__link:active {
    color: var(--color-neutral);
}

.theme-toggle:active {
    transform: translateY(1px);
}

.nav {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: transparent;
    border-block-end: var(--rule-hair) solid transparent;
    transition: background-color 240ms var(--ease-out),
        border-color 240ms var(--ease-out);
}


.nav.is-scrolled {
    background: var(--nav-frost);
    backdrop-filter: blur(14px) saturate(150%);
    border-block-end-color: var(--color-rule);
}

.nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    height: 64px;
    gap: var(--space-md);
}

.brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand img {
    width: 28px;
    height: 28px;
}

.nav__center {
    justify-self: center;
    display: flex;
    gap: var(--space-lg);
}

.nav__link {
    padding-block: var(--space-xs);
    font-size: 0.9375rem;
    color: var(--color-neutral);
    white-space: nowrap;
    transition: color var(--dur-short) var(--ease-out);
}

.nav__link:hover {
    color: var(--color-ink);
}

.nav__right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: var(--rule-hair) solid var(--color-rule);
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: color var(--dur-short) var(--ease-out),
        border-color var(--dur-short) var(--ease-out);
}

.menu-btn:hover {
    color: var(--color-ink);
    border-color: var(--color-neutral);
}

.menu-btn:active {
    transform: translateY(1px);
}

.menu-btn svg {
    width: 20px;
    height: 20px;
}

.menu-btn__close {
    display: none;
}

.menu-btn[aria-expanded="true"] .menu-btn__open {
    display: none;
}

.menu-btn[aria-expanded="true"] .menu-btn__close {
    display: block;
}

.mobile-menu {
    border-block-start: var(--rule-hair) solid var(--color-rule);
    background: var(--color-paper);
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    padding-block: var(--space-sm) var(--space-lg);
}

.mobile-menu__inner a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-inline: var(--space-2xs);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-ink);
    border-block-end: var(--rule-hair) solid var(--color-rule);
}

.theme-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    min-height: 48px;
    padding-inline: var(--space-2xs);
    border: 0;
    border-block-end: var(--rule-hair) solid var(--color-rule);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-ink);
    cursor: pointer;
    text-align: start;
}

.theme-row svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--color-muted);
}

.mobile-menu__inner a:last-child {
    justify-content: center;
    border-block-end: 0;
    margin-block-start: var(--space-sm);
    color: var(--color-accent-ink);
}

.lang {
    position: relative;
}

.lang__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-inline: var(--space-xs);
    gap: var(--space-3xs);
    border-radius: var(--radius-md);
    border: var(--rule-hair) solid var(--color-rule);
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: color var(--dur-short) var(--ease-out),
        border-color var(--dur-short) var(--ease-out);
}

.lang__btn:hover {
    color: var(--color-ink);
    border-color: var(--color-neutral);
}

.lang__menu img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex: none;
}

.lang__code {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}

.lang__caret {
    width: 14px;
    height: 14px;
    flex: none;
    transition: transform var(--dur-short) var(--ease-out);
}

.lang__btn[aria-expanded="true"] .lang__caret {
    transform: rotate(180deg);
}

.lang__menu {
    position: absolute;
    inset-block-start: calc(100% + var(--space-xs));
    inset-inline-end: 0;
    z-index: var(--z-dropdown);
    min-width: 12rem;
    padding: var(--space-2xs);
    margin: 0;
    list-style: none;
    background: var(--color-paper);
    border: var(--rule-hair) solid var(--color-rule);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.lang__menu button {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    min-height: 40px;
    padding-inline: var(--space-xs);
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-ink);
    cursor: pointer;
    text-align: start;
    white-space: nowrap;
}

.lang__menu button:hover {
    background: var(--color-paper-2);
}

.lang__menu button[aria-checked="true"] {
    color: var(--color-accent);
}

.lang__menu button[aria-checked="true"]::after {
    content: "";
    margin-inline-start: auto;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: var(--rule-hair) solid var(--color-rule);
    background: transparent;
    color: var(--color-neutral);
    cursor: pointer;
    transition: color var(--dur-short) var(--ease-out),
        border-color var(--dur-short) var(--ease-out);
}

.theme-toggle:hover {
    color: var(--color-ink);
    border-color: var(--color-neutral);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .theme-toggle__moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__moon {
    display: block;
}

:root[data-theme="light"] .theme-toggle__sun {
    display: block;
}

:root[data-theme="light"] .theme-toggle__moon {
    display: none;
}

.fold {
    padding-block: var(--space-lg) var(--space-2xl);
    border-block-end: var(--rule-hair) solid var(--color-rule);
}

.fold__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-2xl);
    align-items: center;
}

.fold h1 {
    font-size: var(--text-display);
    max-width: 16ch;
}

.fold__sub {
    margin-block-start: var(--space-sm);
    font-size: var(--text-display-s);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-muted);
    max-width: 20ch;
    text-wrap: balance;
}

.fold__lede {
    margin-block-start: var(--space-lg);
    font-size: var(--text-md);
    line-height: 1.55;
    color: var(--color-muted);
    max-width: 46ch;
}

.fold__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg);
    margin-block-start: var(--space-xl);
}

.fold__note {
    margin-block-start: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.fold__hint {
    margin-block-start: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-neutral);
    max-width: 46ch;
}

.browsers {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-block-start: var(--space-lg);
}

.browsers__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-muted);
}

.moment__dot {
    background: oklch(var(--mark-l) var(--mark-c) var(--dot-hue, 278));
}

.moment__result .moment__line:nth-child(1) {
    --dot-hue: var(--hue-demo);
}

.moment__result .moment__line:nth-child(2) {
    --dot-hue: var(--hue-features);
}

.moment__result .moment__line:nth-child(3) {
    --dot-hue: var(--hue-compare);
}

.browsers__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.browsers__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
}

.browsers__item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform var(--dur-short) var(--ease-out);
}

.browsers__item:hover img,
.browsers__item:focus-within img {
    transform: translateY(-2px);
}

.browsers__more {
    font-size: var(--text-sm);
    color: var(--color-neutral);
    white-space: nowrap;
    padding-inline-start: var(--space-2xs);
}

.browsers__soonline {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.browsers__soonline img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    opacity: 0.5;
}

.browsers__name {
    position: absolute;
    bottom: calc(100% + 8px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: var(--space-3xs) var(--space-xs);
    border-radius: var(--radius-sm);
    background: var(--color-ink);
    color: var(--color-paper);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-micro) var(--ease-out);
}

@media (pointer: coarse) {
    .browsers__name {
        display: none;
    }
}

.browsers__item:hover .browsers__name {
    opacity: 1;
    transition-delay: 800ms;
}

.browsers__item:focus-within .browsers__name {
    opacity: 1;
    transition-delay: 0ms;
}

.moment {
    position: relative;
    display: grid;
    gap: var(--space-sm);
    width: 100%;
    max-width: 31rem;
    justify-self: end;
}

.moment__video {
    position: relative;
    display: grid;
    gap: var(--space-sm);
    margin: calc(-1 * var(--space-xs));
    padding: var(--space-xs);
    border-radius: var(--radius-lg);
    transition: background-color var(--dur-short) var(--ease-out);
}

.moment__video::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--dur-short) var(--ease-out);
}

.moment__video:hover,
.moment__video:focus-within {
    background: var(--color-paper-2);
}

.moment__video:hover::before,
.moment__video:focus-within::before {
    opacity: 0.7;
    filter: blur(38px);
}

.moment__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: var(--gradient-brand);
    overflow: hidden;
}

.moment__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg,
            oklch(20% 0.04 278 / 0.12) 0%,
            oklch(18% 0.05 278 / 0.55) 100%);
}

.moment__art {
    position: absolute;
    inset: 0;
    z-index: var(--z-base);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: var(--space-2xs);
    padding-inline: var(--space-xl);
    text-align: center;
}

.moment__art::before {
    content: "";
    position: absolute;
    inset-block-start: -30%;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 96%;
    aspect-ratio: 1;
    background: radial-gradient(circle,
            oklch(18% 0.04 278 / 0.46) 0%,
            oklch(18% 0.04 278 / 0) 66%);
}

.moment__art-kicker {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    text-transform: uppercase;
    color: oklch(100% 0 0 / 0.86);
}

.moment__art-word {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
    color: oklch(100% 0 0);
    text-shadow: 0 8px 26px oklch(22% 0.07 278 / 0.55);
}

.moment__art-line {
    margin-block-start: var(--space-3xs);
    font-size: 0.72rem;
    color: oklch(100% 0 0 / 0.82);
}

.moment__actions {
    position: absolute;
    inset-block-start: var(--space-sm);
    inset-inline-end: var(--space-sm);
    z-index: var(--z-base);
    display: grid;
    gap: var(--space-2xs);
    opacity: 0;
    transition: opacity var(--dur-short) var(--ease-out);
}

.moment__thumb:hover .moment__actions,
.moment__thumb:focus-within .moment__actions {
    opacity: 1;
}

.moment__action {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: oklch(14% 0.02 278 / 0.8);
    color: oklch(100% 0 0);
}

.moment__action svg {
    width: 17px;
    height: 17px;
}

.moment__progress {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: var(--z-base);
    height: 3px;
    background: oklch(100% 0 0 / 0.22);
}

.moment__progress::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 7%;
    background: oklch(58% 0.23 27);
}

.moment__duration {
    position: absolute;
    z-index: var(--z-base);
    inset-block-end: var(--space-sm);
    inset-inline-end: var(--space-sm);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    color: var(--color-overlay-ink);
    background: var(--color-overlay-scrim);
    padding: var(--space-3xs) var(--space-xs);
    border-radius: var(--radius-sm);
}

.moment__hover {
    position: absolute;
    inset-block-start: var(--space-sm);
    inset-inline-start: var(--space-sm);
    z-index: var(--z-raised);
    display: grid;
    justify-items: start;
    gap: var(--space-2xs);
}

.moment__menu-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: oklch(99% 0.002 278 / 0.96);
    box-shadow: 0 4px 12px oklch(20% 0.06 278 / 0.24);
    animation: menu-nudge 5s var(--ease-in-out) infinite 1.6s;
}

@keyframes menu-nudge {

    0%,
    86%,
    100% {
        transform: none;
    }

    90% {
        transform: translateY(-4px);
    }

    94% {
        transform: translateY(1px);
    }
}

.moment__menu-logo img {
    width: 20px;
    height: 20px;
}

.moment__bubble {
    position: absolute;
    inset-block-start: 5px;
    inset-inline-start: calc(34px + var(--space-xs));
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: oklch(99% 0.002 278 / 0.96);
    box-shadow: 0 4px 12px oklch(20% 0.06 278 / 0.24);
    font-size: 0.72rem;
    font-weight: 600;
    color: oklch(21% 0.03 278);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    animation: bubble-pop 5s var(--ease-in-out) infinite 1.6s;
}

@keyframes bubble-pop {

    0%,
    10%,
    58%,
    100% {
        opacity: 0;
        transform: translateY(3px);
    }

    16%,
    50% {
        opacity: 1;
        transform: none;
    }
}

.moment__hover:hover .moment__bubble,
.moment__hover:focus-within .moment__bubble {
    animation: none;
    opacity: 0;
}

.moment__hover:hover .moment__menu-logo {
    animation: none;
}

.moment__menu {
    display: grid;
    justify-items: center;
    gap: var(--space-2xs);
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity var(--dur-short) var(--ease-out),
        transform var(--dur-short) var(--ease-out);
}

.moment__hover:hover .moment__menu,
.moment__hover:focus-within .moment__menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

@media (hover: none) {
    .moment__menu {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .moment__bubble,
    .moment__actions {
        display: none;
    }

    .moment__video::before {
        content: none;
    }

    .moment__menu-logo {
        animation: none;
    }
}

.moment__menu-item {
    width: fit-content;
    padding: 5px 11px;
    border: 0;
    border-radius: var(--radius-md);
    background: oklch(99% 0.002 278 / 0.96);
    box-shadow: 0 4px 12px oklch(20% 0.06 278 / 0.24);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: oklch(21% 0.03 278);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur-micro) var(--ease-out),
        color var(--dur-micro) var(--ease-out),
        transform var(--dur-micro) var(--ease-out);
}

.moment__menu-item:active {
    transform: translateY(1px);
}

.moment__menu-item[aria-pressed="true"] {
    background: var(--color-accent);
    color: var(--color-accent-ink);
}

.moment__result {
    display: grid;
    gap: var(--space-sm);
    padding-block: var(--space-2xs);
}

.moment__info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: var(--space-sm);
    align-items: center;
    padding-inline: var(--space-3xs);
}

.moment__channel {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
    font-size: 0.8rem;
    color: var(--color-neutral);
}

.moment__verified {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--color-neutral);
}

.moment__more {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: start;
    width: 18px;
    height: 18px;
    margin-block-start: 2px;
    color: var(--color-neutral);
}

.moment__more svg {
    width: 100%;
    height: 100%;
}

.moment__avatar {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    margin-block-start: 2px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    overflow: hidden;
}

.moment__avatar img {
    width: 30px;
    height: 30px;
}

.moment__slot {
    display: grid;
    justify-items: end;
    align-content: start;
    min-height: 16.5rem;
}

.moment__card {
    width: min(100%, 26rem);
    margin-inline-end: calc(-1 * var(--space-md));
    background: var(--color-paper);
    border: var(--rule-hair) solid var(--color-rule);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
    box-shadow: var(--shadow-card);
    animation: card-in var(--dur-long) var(--ease-out) both;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.moment__card.is-asking .moment__brand,
.moment__card.is-asking .moment__skeleton {
    display: none;
}

.moment__ask.is-typing #demo-input::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.95em;
    margin-inline-start: 2px;
    vertical-align: -0.11em;
    background: var(--color-ink);
    animation: caret 1s steps(1) infinite;
}

@keyframes caret {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.moment__brand {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-neutral);
}

.moment__spark {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
}

.moment__meta {
    font-size: 0.8rem;
    color: var(--color-neutral);
}

.moment__stamp {
    flex: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: oklch(var(--stamp-l) 0.12 var(--dot-hue, 278));
    translate: 0 1px;
}

.moment__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.06rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.moment__line {
    display: flex;
    gap: var(--space-xs);
    align-items: baseline;
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.5;
}

.moment__skeleton {
    display: grid;
    gap: var(--space-sm);
    padding-block: var(--space-xs);
}

.moment__skeleton span:nth-child(4) {
    width: 74%;
}

.moment__skeleton span:nth-child(5) {
    width: 45%;
}

.moment__skeleton span {
    height: 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            var(--color-paper-2) 25%,
            var(--color-rule) 50%,
            var(--color-paper-2) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s linear infinite;
}

.moment__skeleton span:nth-child(2) {
    width: 88%;
}

.moment__skeleton span:nth-child(3) {
    width: 62%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.moment__dot {
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    translate: 0 -3px;
}

.moment__ask {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-block-start: var(--space-2xs);
    padding: var(--space-xs) var(--space-sm);
    border: var(--rule-hair) solid var(--color-rule);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.moment__send {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
}

.reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: reveal var(--dur-long) var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: none;
    }
}

.band {
    padding-block: var(--space-2xl);
    border-block-start: var(--rule-hair) solid var(--color-rule);
}

#demo {
    --band-hue: var(--hue-demo);
}

#demo .container,
#answers .container {
    max-width: 50rem;
}

#features {
    --band-hue: var(--hue-features);
}

#compare {
    --band-hue: var(--hue-compare);
}

#answers {
    --band-hue: var(--hue-answers);
}

.band__title {
    position: relative;
    padding-block-start: var(--space-lg);
    margin-inline: auto;
    text-align: center;
}

.band__title::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 34px;
    height: 4px;
    border-radius: var(--radius-full);
    background: oklch(var(--mark-l) var(--mark-c) var(--band-hue, 278));
}

.band--sunken {
    background: var(--color-paper-2);
}

.band__title {
    font-size: var(--text-display-s);
    max-width: 24ch;
}

.demo-slot__play {
    color: oklch(var(--mark-l) var(--mark-c) var(--band-hue, 278));
}

.compare td.yes::before {
    color: oklch(var(--mark-l) var(--mark-c) var(--band-hue, 278));
}

.band__lede {
    margin-block-start: var(--space-md);
    margin-inline: auto;
    max-width: 58ch;
    text-align: center;
    color: var(--color-muted);
}

.does__more {
    margin-block-start: var(--space-md);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.demo-slot {
    position: relative;
    margin-block-start: var(--space-md);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    border: var(--rule-hair) solid var(--color-rule);
    background: var(--color-paper-2);
    display: grid;
    place-items: center;
}

.demo-slot__play {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--color-paper);
    border: var(--rule-hair) solid var(--color-rule);
    display: grid;
    place-items: center;
    color: var(--color-accent);
}

.demo-slot__play svg {
    margin-left: 3px;
}

.demo-slot__tag {
    position: absolute;
    inset-block-start: var(--space-sm);
    inset-inline-start: var(--space-sm);
    padding: var(--space-3xs) var(--space-sm);
    border-radius: var(--radius-full);
    background: var(--color-paper);
    border: var(--rule-hair) solid var(--color-rule);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-muted);
}

.demo-slot__caption {
    margin-block-start: var(--space-sm);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.compare {
    margin-block-start: var(--space-lg);
    overflow-x: auto;
}

.compare table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.compare th,
.compare td {
    padding: var(--space-sm) var(--space-md);
    text-align: start;
    vertical-align: top;
    border-block-end: var(--rule-hair) solid var(--color-rule);
    font-size: 0.9375rem;
}

.compare thead th {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-neutral);
    padding-block-start: 0;
}

.compare thead th:not(:first-child),
.compare tbody td {
    text-align: center;
}

.compare thead th:nth-child(2) {
    color: var(--color-ink);
    font-weight: 600;
}

.compare tbody th {
    font-weight: var(--body-weight);
    color: var(--color-ink);
    padding-inline-start: 0;
}

.compare td {
    color: var(--color-muted);
}

.compare td.yes {
    color: var(--color-ink);
    font-weight: 500;
}

.compare td.yes::before {
    content: "✓  ";
    color: var(--color-accent);
    font-weight: 700;
}

.does {
    margin-block-start: var(--space-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
}

@media (min-width: 40rem) {
    .does {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 68rem) {
    .does {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.does>div {
    display: grid;
    grid-template-rows: auto auto 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-2xs);
    padding: var(--space-lg) var(--space-md);
    border: var(--rule-hair) solid var(--color-rule);
    border-radius: var(--radius-lg);
    background: var(--color-paper-2);
    transition: border-color var(--dur-short) var(--ease-out),
        transform var(--dur-short) var(--ease-out);
}

.does>div:hover {
    border-color: oklch(var(--mark-l) var(--mark-c) var(--band-hue, 278) / 0.5);
    transform: translateY(-2px);
}

.does__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-block-end: var(--space-2xs);
    border-radius: var(--radius-md);
    background: oklch(var(--mark-l) var(--mark-c) var(--band-hue, 278) / 0.14);
    color: oklch(var(--mark-l) var(--mark-c) var(--band-hue, 278));
}

.does__icon svg {
    width: 21px;
    height: 21px;
}

.does dt {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-base);
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.does dd {
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.midcta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-block-start: var(--space-2xl);
}

.midcta__note {
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.faq {
    margin-block-start: var(--space-lg);
}

.faq-item {
    border-block-end: var(--rule-hair) solid var(--color-rule);
}

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-md);
    padding-block: var(--space-md);
    padding-inline: var(--space-xl);
    min-height: 44px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item__q {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.4;
}

.faq-item__body strong {
    color: var(--color-ink);
    font-weight: 600;
}

.faq-item summary svg {
    position: absolute;
    inset-inline-end: 0;
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--color-neutral);
    transition: transform var(--dur-short) var(--ease-in-out);
}

.faq-item[open] summary svg {
    transform: rotate(45deg);
}

.faq-item__body {
    margin-inline: auto;
    padding-block-end: var(--space-md);
    text-align: center;
    color: var(--color-muted);
    max-width: 58ch;
    font-size: 0.9375rem;
}

.faq-item[open] .faq-item__body {
    animation: answer-in var(--dur-short) var(--ease-out);
}

@keyframes answer-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.foot {
    padding-block: var(--space-2xl) var(--space-xl);
}

.foot__line {
    margin-inline: auto;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 4.5vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 20ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.foot__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-block-start: var(--space-xl);
}

.foot__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm) var(--space-lg);
    margin-block-start: var(--space-2xl);
    padding-block-start: var(--space-md);
    border-block-start: var(--rule-hair) solid var(--color-rule);
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.foot__meta .brand {
    font-size: 1rem;
}

.foot__meta .brand img {
    width: 24px;
    height: 24px;
}

.foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.foot__links a {
    white-space: nowrap;
    padding-block: var(--space-xs);
    transition: color var(--dur-short) var(--ease-out);
}

.foot__links a:hover {
    color: var(--color-ink);
}

@media (max-width: 60rem) {
    .menu-btn {
        display: inline-flex;
    }

    .nav__cta {
        display: none;
    }

    .nav__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nav__right {
        gap: var(--space-xs);
    }

    .theme-row {
        display: none;
    }

    .fold__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-xl);
    }

    .moment {
        display: none;
    }

    .nav__center {
        display: none;
    }
}

@media (max-width: 22rem) {
    .brand span {
        display: none;
    }
}

@media (max-width: 40rem) {
    .fold {
        padding-block: var(--space-xs) var(--space-xl);
    }

    .band,
    .foot {
        padding-block: var(--space-xl);
    }

    .qa {
        padding-block: var(--space-lg) 0;
    }
}

:root[lang="ar"] {
    --font-display: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Segoe UI', sans-serif;
    --body-weight: 400;
}

:root[lang="ar"] h1,
:root[lang="ar"] h2,
:root[lang="ar"] h3,
:root[lang="ar"] .foot__line,
:root[lang="ar"] .brand {
    letter-spacing: normal;
    line-height: 1.32;
}

:root[lang="ar"] body {
    line-height: 1.8;
}

:root[lang="ar"] .fold h1 {
    max-width: 18ch;
}

:root[lang="ar"] .fold__sub {
    max-width: 24ch;
}

:root[lang="ar"] .foot__line {
    max-width: 24ch;
}

:root[lang="ar"] .brand,
:root[lang="ar"] .moment__duration {
    font-family: var(--font-body);
}

:root[lang="ar"] .lang__menu button {
    font-family: 'Geist', 'IBM Plex Sans Arabic', sans-serif;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 150ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 150ms !important;
    }

    .reveal {
        animation: reveal-reduced 150ms linear forwards;
    }

    @keyframes reveal-reduced {
        to {
            opacity: 1;
            transform: none;
        }
    }
}

.notfound {
    min-height: 100dvh;
    display: grid;
    place-items: center;
}

.notfound__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding-block: var(--space-2xl);
    max-width: 40rem;
}

.notfound__title {
    font-size: var(--text-display-s);
    margin-block-start: var(--space-lg);
}

.notfound__body {
    color: var(--color-muted);
    max-width: 46ch;
    margin-block-end: var(--space-sm);
}

.nav__inner--doc {
    grid-template-columns: minmax(0, 1fr) auto;
}

.doc {
    padding-block: var(--space-2xl) var(--space-3xl);
}

.doc__inner {
    max-width: 42rem;
}

.doc__title {
    position: relative;
    padding-block-start: var(--space-lg);
    font-size: var(--text-display-s);
}

.doc__title::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 34px;
    height: 4px;
    border-radius: var(--radius-full);
    background: oklch(var(--mark-l) var(--mark-c) var(--band-hue, 278));
}

.doc__lede {
    margin-block-start: var(--space-sm);
    font-size: var(--text-md);
    color: var(--color-muted);
}

.doc__body {
    margin-block-start: var(--space-lg);
    color: var(--color-muted);
}

.doc__sec {
    margin-block-start: var(--space-xl);
}

.doc__sec h2 {
    font-size: var(--text-base);
    font-weight: 600;
}

.doc__sec p {
    margin-block-start: var(--space-2xs);
    color: var(--color-muted);
}

.doc__field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-sm);
    margin-block-start: var(--space-lg);
    padding-block: var(--space-md);
    border-block: var(--rule-hair) solid var(--color-rule);
}

.doc__fieldlabel {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-neutral);
}

.doc__email {
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.doc__updated {
    margin-block-start: var(--space-2xl);
    font-size: var(--text-sm);
    color: var(--color-neutral);
}

.doc__back {
    margin-block-start: var(--space-xs);
}

.leave__form {
    display: grid;
    gap: var(--space-md);
    margin-block-start: var(--space-lg);
    max-width: 34rem;
}

.leave__set {
    margin: 0;
    padding: 0;
    border: 0;
}

.leave__legend {
    padding: 0;
    margin-block-end: var(--space-sm);
    font-weight: 600;
}

.leave__reasons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.leave__chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.leave__chip span {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border: var(--rule-hair) solid var(--color-rule);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background-color var(--dur-short) var(--ease-out),
        border-color var(--dur-short) var(--ease-out),
        color var(--dur-short) var(--ease-out);
}

.leave__chip span:hover {
    border-color: var(--color-accent);
}

.leave__chip input:checked+span {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-ink);
}

.leave__chip input:focus-visible+span {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.leave__note {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: var(--rule-hair) solid var(--color-rule);
    border-radius: var(--radius-md);
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.5;
    resize: vertical;
}

.leave__note:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 1px;
}

.leave__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

.leave__error {
    font-size: var(--text-sm);
    color: oklch(52% 0.19 27);
}

:root[data-theme="dark"] .leave__error {
    color: oklch(76% 0.15 27);
}

.leave__thanks {
    margin-block-start: var(--space-lg);
}

.leave__thanksline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-md);
}

.leave__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-block-start: var(--space-xl);
}
