/*
 * Deep Meditate on the web: a spa under a clear night sky, like the app's onboarding.
 * Deep navy brightening to indigo overhead, starlit type, periwinkle for what can be
 * pressed, firefly gold for the warm details, and the brand's violet on the big buttons.
 *
 * The same file is served by deepmeditate.com (/assets/styles/dm.css) and
 * app.deepmeditate.com (/commons/dm.css). Change both together.
 */

:root {
    --night: #070c24;
    --night-mid: #0c1640;
    --night-top: #17286e;
    --ink: #f2f4ff;
    --haze: rgba(242, 244, 255, 0.7);
    --faint: rgba(242, 244, 255, 0.46);
    --panel: rgba(242, 244, 255, 0.055);
    --panel-strong: rgba(242, 244, 255, 0.09);
    --hairline: rgba(242, 244, 255, 0.13);
    --accent: #8c9eff;
    --accent-deep: #3d4fd6;
    --violet: #7b2bff;
    --gold: #ffcf73;
    --moon: #dce3ff;
    --lavender: #b8a1ff;
    --sky: #6fb4ff;

    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-lg: 28px;
    --radius: 20px;
    --radius-sm: 14px;
    --max: 1180px;
    --gutter: 20px;
    --header-height: 68px;
}

/* Base */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--night);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
    margin: 0;
}

ul[class],
ol[class] {
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
}

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

::selection {
    background: rgba(140, 158, 255, 0.35);
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--night);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Type */

.display,
.h1,
.h2,
.h3 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.display {
    font-size: clamp(46px, 9vw, 92px);
    line-height: 1;
}

.h1 {
    font-size: clamp(40px, 7vw, 68px);
}

.h2 {
    font-size: clamp(34px, 5.2vw, 52px);
}

.h3 {
    font-size: clamp(26px, 3.4vw, 32px);
    line-height: 1.15;
}

.display em,
.h1 em,
.h2 em,
.h3 em {
    font-style: italic;
    color: var(--moon);
}

.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.lead {
    font-size: clamp(18px, 2.2vw, 21px);
    line-height: 1.55;
    color: var(--haze);
}

.muted {
    color: var(--haze);
}

.faint {
    color: var(--faint);
}

.gold {
    color: var(--gold);
}

/* The night sky: a gradient glow overhead with twinkling stars */

.sky {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(120% 70% at 50% -10%, var(--night-top) 0%, var(--night-mid) 45%, rgba(7, 12, 36, 0) 85%),
        var(--night);
}

.stars,
.stars::before,
.stars::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.stars {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.stars::before,
.stars::after {
    content: "";
    background-repeat: repeat;
}

.stars::before {
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 90px 140px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 160px 60px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 230px 190px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 280px 90px, rgba(220, 227, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 50px 230px, rgba(255, 207, 115, 0.8), transparent),
        radial-gradient(1px 1px at 130px 270px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 300px 260px, rgba(255, 255, 255, 0.5), transparent);
    background-size: 320px 300px;
    animation: twinkle 7s ease-in-out infinite alternate;
}

.stars::after {
    background-image:
        radial-gradient(1px 1px at 60px 80px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 190px 20px, rgba(184, 161, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 250px 150px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 110px 200px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 20px 160px, rgba(111, 180, 255, 0.8), transparent);
    background-size: 280px 240px;
    animation: twinkle 9s ease-in-out -4s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.35;
    }

    to {
        opacity: 1;
    }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: linear-gradient(135deg, var(--violet) 0%, #4f5df0 100%);
    color: #fff;
    box-shadow: 0 14px 34px -14px rgba(123, 43, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
    box-shadow: 0 18px 40px -12px rgba(123, 43, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: brightness(1.08);
}

.btn--ghost {
    border-color: var(--hairline);
    background: var(--panel);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: rgba(140, 158, 255, 0.55);
    background: var(--panel-strong);
}

.btn--lg {
    min-height: 58px;
    padding: 16px 30px;
    font-size: 17.5px;
}

.btn--block {
    display: flex;
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.link-arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.store-badges img {
    height: 46px;
    width: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 12, 36, 0.72);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid rgba(242, 244, 255, 0.07);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-height);
}

.site-header__brand {
    flex: none;
    display: block;
}

.site-header__brand img {
    height: 34px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--haze);
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--panel);
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--panel-strong);
}

.site-header__cta {
    flex: none;
    min-height: 42px;
    padding: 9px 18px;
    font-size: 15px;
}

.site-menu {
    display: none;
    margin-left: auto;
    position: relative;
}

.site-menu summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    background: var(--panel);
    cursor: pointer;
    list-style: none;
}

.site-menu summary::-webkit-details-marker {
    display: none;
}

.site-menu summary span,
.site-menu summary span::before,
.site-menu summary span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    position: relative;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-menu summary span::before,
.site-menu summary span::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-menu summary span::before {
    top: -6px;
}

.site-menu summary span::after {
    top: 6px;
}

.site-menu[open] summary span {
    background: transparent;
}

.site-menu[open] summary span::before {
    transform: translateY(6px) rotate(45deg);
}

.site-menu[open] summary span::after {
    transform: translateY(-6px) rotate(-45deg);
}

.site-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - 2 * var(--gutter)));
    padding: 10px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: rgba(12, 22, 64, 0.97);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.site-menu__panel a:not(.btn) {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.site-menu__panel a:not(.btn):hover,
.site-menu__panel a[aria-current="page"] {
    background: var(--panel-strong);
}

.site-menu__panel .btn {
    margin-top: 8px;
}

@media (max-width: 860px) {
    :root {
        --header-height: 62px;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .site-menu {
        display: block;
    }

    .site-header__brand img {
        height: 30px;
    }
}

/* Sections */

.section {
    position: relative;
    padding: clamp(64px, 10vw, 120px) 0;
}

.section--tight {
    padding: clamp(40px, 6vw, 72px) 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-head > div {
    max-width: 680px;
}

.section-head .eyebrow + .h2,
.section-head .eyebrow + .h3 {
    margin-top: 10px;
}

.section-head .lead {
    margin-top: 14px;
}

.center {
    text-align: center;
}

.center .section-head,
.section-head.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.divider {
    height: 1px;
    border: 0;
    margin: 0;
    background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

/* Panels */

.panel {
    position: relative;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(242, 244, 255, 0.07) 0%, rgba(242, 244, 255, 0.025) 100%);
}

.panel--glow {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(123, 43, 255, 0.28) 0%, rgba(123, 43, 255, 0) 55%),
        radial-gradient(90% 80% at 100% 100%, rgba(140, 158, 255, 0.16) 0%, rgba(140, 158, 255, 0) 60%),
        rgba(12, 22, 64, 0.6);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    background: var(--panel);
    color: var(--haze);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.chip--gold {
    border-color: rgba(255, 207, 115, 0.35);
    background: rgba(255, 207, 115, 0.1);
    color: var(--gold);
}

.chip--violet {
    border-color: transparent;
    background: var(--violet);
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
}

/* Content tiles: artwork, what it is, how long */

.tile {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.tile__art {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--night-top), var(--night-mid));
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.tile__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile__art::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(7, 12, 36, 0) 55%, rgba(7, 12, 36, 0.55) 100%);
    pointer-events: none;
}

.tile:hover .tile__art img {
    transform: scale(1.05);
}

.tile__badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(7, 12, 36, 0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
}

.tile__title {
    display: block;
    margin-top: 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tile:hover .tile__title {
    color: var(--moon);
}

.tile__meta {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    color: var(--faint);
}

/* A row that scrolls sideways on small screens */

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    padding: 4px var(--gutter) 18px;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail > * {
    scroll-snap-align: start;
}

@media (min-width: 720px) {
    .rail {
        grid-auto-columns: calc((100% - 3 * 20px) / 4);
    }
}

@media (min-width: 720px) and (max-width: 1000px) {
    .rail {
        grid-auto-columns: calc((100% - 2 * 20px) / 3);
    }
}

@media (max-width: 719px) {
    .rail {
        grid-auto-columns: 72%;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 28px 20px;
}

@media (max-width: 520px) {
    .grid--tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .grid--tiles .tile__title {
        font-size: 15.5px;
    }

    .grid--tiles .tile__meta {
        font-size: 13px;
    }
}

/* Trial offer */

.trial-card {
    padding: clamp(26px, 4vw, 40px);
}

.trial-card .h3 {
    margin-top: 16px;
}

.trial-card__copy {
    margin-top: 12px;
    color: var(--haze);
}

.checks {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.checks li {
    position: relative;
    padding-left: 32px;
    line-height: 1.45;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(140, 158, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238c9eff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.trial-card .btn--primary {
    margin-top: 26px;
}

.trial-card .store-badges {
    justify-content: center;
    margin-top: 18px;
}

.fine-print {
    margin-top: 16px;
    text-align: center;
    font-size: 13.5px;
    color: var(--faint);
}

/* Download, at the foot of every page */

.trial-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
}

.trial-banner .h2 {
    margin-top: 14px;
}

.trial-banner p {
    margin-top: 12px;
    color: var(--haze);
}

.trial-banner__actions {
    display: grid;
    gap: 16px;
    justify-items: center;
}

.trial-banner__actions .fine-print {
    margin-top: 0;
}

@media (max-width: 800px) {
    .trial-banner {
        grid-template-columns: 1fr;
    }
}

/* The app bar: an invitation to the app that floats at the foot of every page. Its script
   (elements/app_bar.php) shows it a moment after the page opens, tucks it away while another
   invitation is on screen, and shrinks it to a small button for a day when it's closed. */

.app-bar__card,
.app-bar__mini {
    position: fixed;
    z-index: 60;
    border: 1px solid rgba(140, 158, 255, 0.3);
    background: rgba(12, 22, 64, 0.9);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    backdrop-filter: saturate(1.4) blur(18px);
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(7, 12, 36, 0.4);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 40px));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, visibility 0s linear 0.5s;
}

.app-bar.is-shown[data-view="card"] .app-bar__card,
.app-bar.is-shown[data-view="mini"] .app-bar__mini {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

/* On a phone: a slim bar, like the app's own banner */

.app-bar__card {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: auto 44px minmax(0, 1fr) auto;
    grid-template-areas: "close icon text go";
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 4px;
    border-radius: 20px;
}

.app-bar__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 140% at 0% 0%, rgba(123, 43, 255, 0.22), rgba(123, 43, 255, 0) 60%);
    pointer-events: none;
}

.app-bar__close {
    grid-area: close;
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--faint);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.app-bar__close:hover {
    color: var(--ink);
    background: var(--panel-strong);
}

.app-bar__close svg {
    width: 16px;
    height: 16px;
}

.app-bar__icon {
    grid-area: icon;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}

.app-bar__text {
    grid-area: text;
    position: relative;
    min-width: 0;
    line-height: 1.25;
}

.app-bar__name {
    font-size: 15.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-bar__offer {
    margin-top: 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-bar__headline,
.app-bar__hint,
.app-bar__qr,
.app-bar__go-desk {
    display: none;
}

.app-bar__go {
    grid-area: go;
    position: relative;
    min-height: 42px;
    padding: 9px 16px;
    font-size: 15px;
    white-space: nowrap;
}

/* Closed: a small button in the corner, until tomorrow */

.app-bar__mini {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
}

.app-bar__mini:hover {
    border-color: rgba(140, 158, 255, 0.6);
}

.app-bar__mini img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* On a bigger screen: a card in the corner, with a code to scan with your phone */

@media (min-width: 761px) {
    .app-bar__card {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 396px;
        grid-template-columns: 108px minmax(0, 1fr);
        grid-template-areas:
            "qr text"
            "qr go";
        align-items: start;
        column-gap: 18px;
        row-gap: 12px;
        padding: 16px 16px 16px 16px;
        border-radius: var(--radius);
    }

    .app-bar__close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        z-index: 1;
    }

    .app-bar__icon,
    .app-bar__name,
    .app-bar__offer,
    .app-bar__go-phone {
        display: none;
    }

    .app-bar__qr {
        grid-area: qr;
        position: relative;
        display: block;
        width: 108px;
        height: 108px;
        border-radius: 12px;
        background: #fff;
    }

    .app-bar__text {
        padding-right: 26px;
    }

    .app-bar__headline {
        display: block;
        font-family: var(--serif);
        font-size: 23px;
        font-weight: 600;
        line-height: 1.1;
    }

    .app-bar__headline em {
        color: var(--gold);
        white-space: nowrap;
    }

    .app-bar__hint {
        display: block;
        margin-top: 6px;
        font-size: 13.5px;
        line-height: 1.4;
        color: var(--haze);
    }

    .app-bar__go {
        align-self: end;
        justify-self: start;
        min-height: 40px;
        padding: 8px 16px;
        font-size: 14.5px;
    }

    .app-bar__go-desk {
        display: inline;
    }

    .app-bar__mini {
        right: 24px;
        bottom: 24px;
    }
}

@media print {
    .app-bar {
        display: none;
    }
}

/* Questions */

.faq {
    display: grid;
    gap: 12px;
}

.faq details {
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--panel);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq details[open] {
    background: var(--panel-strong);
    border-color: rgba(140, 158, 255, 0.35);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 17.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--panel-strong);
    color: var(--accent);
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.25s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details > div {
    padding: 0 22px 22px;
    color: var(--haze);
}

.faq details > div p + p {
    margin-top: 10px;
}

.faq a {
    color: var(--accent);
}

/* Long reading: policies and help */

.prose {
    max-width: 760px;
    margin: 0 auto;
    color: var(--haze);
    font-size: 17px;
    line-height: 1.75;
}

.prose h1,
.prose h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(40px, 6vw, 58px);
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 28px;
}

.prose h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.2;
    color: var(--ink);
    margin: 48px 0 14px;
}

.prose h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin: 32px 0 10px;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 18px;
}

.prose ul,
.prose ol {
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose li::marker {
    color: var(--accent);
}

.prose a {
    color: var(--accent);
    overflow-wrap: anywhere;
}

.prose strong,
.prose b {
    color: var(--ink);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 15px;
    display: block;
    overflow-x: auto;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border: 1px solid var(--hairline);
    text-align: left;
    vertical-align: top;
}

/* Footer */

.site-footer {
    position: relative;
    padding: 72px 0 40px;
    border-top: 1px solid rgba(242, 244, 255, 0.08);
    background: linear-gradient(180deg, rgba(12, 22, 64, 0) 0%, rgba(12, 22, 64, 0.6) 100%), var(--night);
    color: var(--haze);
    font-size: 15px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.site-footer__brand img {
    height: 34px;
    width: auto;
}

.site-footer__brand p {
    margin-top: 16px;
    max-width: 340px;
}

.site-footer__brand .store-badges {
    margin-top: 22px;
}

.site-footer__brand .store-badges img {
    height: 42px;
}

.site-footer h2 {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 14px;
}

.site-footer ul {
    display: grid;
    gap: 9px;
}

.site-footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 40px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(242, 244, 255, 0.08);
    font-size: 13px;
    color: var(--faint);
}

.site-footer__bottom p:first-child {
    max-width: 720px;
}

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

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

/* Gentle entrances as things scroll into view. Only when the footer's script runs
   (it marks <html> .reveal-ready), so nothing stays hidden without it. */

.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

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

    .reveal-ready .reveal {
        opacity: 1;
        transform: none;
    }
}
