/*
 * altegram.com — one stylesheet for the landing page and the privacy policy, both languages.
 *
 * Monochrome like the mark; light by default, dark when the system is dark. Fonts are served from
 * this site (Onest, JetBrains Mono; SIL Open Font License; Latin and Cyrillic subsets) because the
 * privacy policy promises no third-party requests. Motion is transform/opacity only and pauses off
 * screen (site.js); without JavaScript the page is complete and still, and under
 * prefers-reduced-motion nothing moves.
 */

@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url("fonts/onest-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url("fonts/onest-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 600; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 600; font-display: swap; src: url("fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Layout: a frame of two hairlines down the page; a full-viewport hero over slow ripples; four moments
   told beside a phone that stays put; a closing call to action; a footer line. */
:root {
    --bg: #ffffff;
    --raise: #f6f6f8;
    --card: #fafafb;
    --fg: #0b0b0c;
    --muted: #5f5f66;
    --faint: #a3a3ab;
    --word: #a3a3ab;
    --line: #e9e9ed;
    --line-2: #d9d9df;
    --ring: rgba(11, 11, 12, 0.14);
    --glow: rgba(11, 11, 12, 0.045);
    --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --fx: max(calc(var(--gutter) / 2), calc(50% - 41rem));    /* the frame lines, from each edge */
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #08080a;
        --raise: #0f0f12;
        --card: #0e0e11;
        --fg: #f5f5f6;
        --muted: #a0a0a8;
        --faint: #5e5e68;
        --word: #64646d;
        --line: #1b1b20;
        --line-2: #2a2a31;
        --ring: rgba(255, 255, 255, 0.13);
        --glow: rgba(255, 255, 255, 0.06);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
/* the frame: two hairlines down the page; crosses (.x) mark where a horizontal line meets them */
@media (min-width: 40rem) {
    body { background-image: linear-gradient(90deg, transparent var(--fx), var(--line) var(--fx), var(--line) calc(var(--fx) + 1px), transparent calc(var(--fx) + 1px),
        transparent calc(100% - var(--fx) - 1px), var(--line) calc(100% - var(--fx) - 1px), var(--line) calc(100% - var(--fx)), transparent calc(100% - var(--fx))); }
}
.x { position: absolute; z-index: 1; width: 11px; height: 11px; background: linear-gradient(var(--faint), var(--faint)) center / 100% 1px no-repeat, linear-gradient(var(--faint), var(--faint)) center / 1px 100% no-repeat; }
.x.tl, .x.bl { left: calc(var(--fx) - 5px); }
.x.tr, .x.br { right: calc(var(--fx) - 5px); }
.x.tl, .x.tr { top: -6px; }
.x.bl, .x.br { bottom: -6px; }
.label { font: 600 0.72rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---- buttons ---- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid var(--fg); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0.75rem 2rem -0.75rem rgba(0, 0, 0, 0.45); }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-sm { height: 2.35rem; padding-inline: 1.05rem; font-size: 0.88rem; }
.btn-lg { height: 3.4rem; padding-inline: 1.75rem; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); cursor: default; }
.btn-ghost:hover { transform: none; box-shadow: none; }

/* ---- header ---- */

.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: clamp(1rem, 2.5vw, 1.6rem) var(--gutter); border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s, padding 0.3s var(--ease); }
.top.scrolled { padding-block: 0.8rem; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.top-links { display: flex; align-items: center; gap: 0.75rem; }
.top-link { color: var(--muted); text-decoration: none; font-size: 0.92rem; margin-right: 0.5rem; }
.top-link:hover { color: var(--fg); }
.lang { height: 2.35rem; padding-inline: 0.8rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); font: 600 0.75rem/1 var(--mono); text-decoration: none; color: var(--fg); }
.lang:hover { border-color: var(--fg); }

/* ---- hero ---- */

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 7rem var(--gutter) 5rem; }
.hero-glow { position: absolute; z-index: -2; left: 50%; top: 46%; width: min(1200px, 140vw); aspect-ratio: 1.4; translate: -50% -50%; background: radial-gradient(closest-side, var(--glow), transparent); }

/* ripples: hairline circles that open out from behind the title and go quiet */
.ripples { position: absolute; z-index: -1; left: 50%; top: 46%; width: min(78vmax, 1100px); aspect-ratio: 1; translate: -50% -50%; }
.ripples i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ring); opacity: 0; transform: scale(0.18); animation: ripple 12s cubic-bezier(0.25, 0.6, 0.3, 1) infinite; }
.ripples i:nth-child(2) { animation-delay: -2s; }
.ripples i:nth-child(3) { animation-delay: -4s; }
.ripples i:nth-child(4) { animation-delay: -6s; }
.ripples i:nth-child(5) { animation-delay: -8s; }
.ripples i:nth-child(6) { animation-delay: -10s; }
@keyframes ripple {
    0% { opacity: 0; transform: scale(0.18); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: scale(1); }
}
.paused .ripples i, .ripples.paused i { animation-play-state: paused; }
html:not(.js) .ripples i:nth-child(1) { opacity: 1; transform: scale(0.35); animation: none; }
html:not(.js) .ripples i:nth-child(2) { opacity: 0.6; transform: scale(0.6); animation: none; }
html:not(.js) .ripples i:nth-child(3) { opacity: 0.3; transform: scale(0.85); animation: none; }

.hero-inner { text-align: center; display: grid; justify-items: center; max-width: 76rem; }

.title { font-size: clamp(2.9rem, 8.4vw, 7.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.048em; }
.title-line { display: block; }
.title-type { min-height: 1.02em; white-space: nowrap; }
.word { color: var(--word); }
.caret { color: var(--word); margin-left: 0.04em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sub { margin-top: clamp(1.25rem, 2.5vw, 2rem); max-width: 46rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); }
.actions { margin-top: clamp(2rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.specs { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; font: 400 0.78rem/1.4 var(--mono); color: var(--faint); }

/* the QR code rises above the download button on hover (desktop only: a phone downloads directly) */
.dl { position: relative; }
.qr-pop {
    position: absolute; left: 50%; bottom: calc(100% + 0.9rem); translate: -50% 0;
    display: grid; justify-items: center; gap: 0.5rem; padding: 0.75rem 0.75rem 0.6rem;
    border-radius: 1.1rem; background: var(--bg); border: 1px solid var(--line-2);
    box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.35);
    opacity: 0; transform: translateY(0.5rem) scale(0.96); pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.qr-pop::after { content: ""; position: absolute; left: 50%; bottom: -0.4rem; width: 0.8rem; height: 0.8rem; translate: -50% 0; rotate: 45deg; background: var(--bg); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.qr { width: 9rem; padding: 0.35rem; border-radius: 0.7rem; background: #fff; }
.qr-pop span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
    .dl:hover .qr-pop, .dl:focus-within .qr-pop { opacity: 1; transform: none; }
}

/* ---- one day: a phone that stays put while four moments of a day scroll past ---- */

.day { padding-top: clamp(4rem, 9vw, 7rem); }
.day-title { text-align: center; padding-inline: var(--gutter); font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
.day-title span { color: var(--word); }
.day-story { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 6vw, 6rem); max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.day-stage { --u: clamp(0.8rem, 2.15vh, 1.45rem); position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.day-stage > * { grid-area: 1 / 1; }


/* the phone: every size inside is a multiple of --u, so the whole phone grows with the height of the screen */
.phone { position: relative; width: calc(17.5 * var(--u)); aspect-ratio: 9 / 19; padding: calc(0.45 * var(--u)); border-radius: calc(2.5 * var(--u)); background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 calc(2.5 * var(--u)) calc(5 * var(--u)) calc(-2.5 * var(--u)) rgba(0, 0, 0, 0.3); }
.screen { position: relative; height: 100%; border-radius: calc(2.05 * var(--u)); background: var(--bg); border: 1px solid var(--line); overflow: hidden; font-size: calc(0.74 * var(--u)); line-height: 1.35; }
.island { position: absolute; z-index: 3; top: calc(0.55 * var(--u)); left: 50%; translate: -50% 0; width: calc(4.8 * var(--u)); height: calc(1.2 * var(--u)); border-radius: 999px; background: #0b0b0c; }
.layer { position: absolute; inset: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.sbar { display: flex; justify-content: space-between; height: calc(2.15 * var(--u)); padding: calc(0.62 * var(--u)) calc(1.4 * var(--u)) 0; font: 600 calc(0.66 * var(--u))/1 var(--mono); }
.sbar span:last-child { letter-spacing: -0.1em; color: var(--muted); }
.app-head { display: flex; justify-content: space-between; align-items: center; padding: calc(0.45 * var(--u)) calc(1 * var(--u)) calc(0.6 * var(--u)); border-bottom: 1px solid var(--line); }
.app-head b { font-size: calc(1.15 * var(--u)); letter-spacing: -0.03em; }
.app-head i { width: calc(1.6 * var(--u)); height: calc(1.6 * var(--u)); border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.app-head svg { width: calc(0.85 * var(--u)); height: calc(0.85 * var(--u)); }
.row { display: flex; align-items: center; gap: calc(0.6 * var(--u)); height: calc(3.35 * var(--u)); padding-inline: calc(1 * var(--u)); }
.av { flex: none; width: calc(2.15 * var(--u)); height: calc(2.15 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--line-2); font-weight: 700; font-size: calc(0.78 * var(--u)); }
.rt { display: grid; flex: 1; min-width: 0; }
.rt b, .rt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt b { font-weight: 600; font-size: calc(0.78 * var(--u)); }
.rt small { color: var(--muted); font-size: calc(0.7 * var(--u)); }
.rm { display: grid; justify-items: end; gap: calc(0.3 * var(--u)); align-self: start; padding-top: calc(0.55 * var(--u)); }
.rm time { font: 400 calc(0.6 * var(--u))/1 var(--mono); color: var(--faint); }
.row em { min-width: calc(1.15 * var(--u)); padding: calc(0.2 * var(--u)) calc(0.35 * var(--u)); border-radius: 999px; background: var(--fg); color: var(--bg); font: 600 calc(0.6 * var(--u))/1 var(--mono); font-style: normal; text-align: center; }

/* morning: the night's messages arrive */
.l-morning .row em { transition: transform 0.45s var(--ease), opacity 0.3s; }
.l-morning .row:nth-of-type(2) em { transition-delay: 0.25s; }
.l-morning .row:nth-of-type(3) em { transition-delay: 0.5s; }
.js .day-story:not([data-active]) .l-morning .row em { transform: scale(0); opacity: 0; }

/* afternoon: the selection moves from the personal account to the work one */
.accounts { position: relative; padding-top: calc(0.4 * var(--u)); }
.acc-sel { position: absolute; z-index: 1; top: calc(0.4 * var(--u)); right: calc(1 * var(--u)); height: calc(3.35 * var(--u)); display: grid; place-items: center; color: var(--fg); transition: transform 0.6s var(--ease) 0.5s; }
.acc-sel svg { width: calc(1 * var(--u)); height: calc(1 * var(--u)); }
.day-story[data-active="2"] .acc-sel, .day-story[data-active="3"] .acc-sel, .day-story[data-active="4"] .acc-sel { transform: translateY(100%); }
.accounts .row em { margin-right: calc(1.6 * var(--u)); background: var(--line-2); color: var(--muted); }
.acc-add .av { background: transparent; border-style: dashed; color: var(--muted); font-weight: 400; font-size: calc(1 * var(--u)); }
.acc-add .rt b { font-weight: 500; color: var(--muted); }
.acc-count { position: absolute; left: 0; right: 0; bottom: calc(1.4 * var(--u)); text-align: center; font: 400 calc(0.62 * var(--u))/1 var(--mono); letter-spacing: 0.08em; color: var(--faint); }

/* evening: a conversation, one message after another */
.chat-head { display: flex; align-items: center; gap: calc(0.55 * var(--u)); padding: calc(0.4 * var(--u)) calc(1 * var(--u)) calc(0.6 * var(--u)); border-bottom: 1px solid var(--line); }
.chat-head .av { width: calc(1.9 * var(--u)); height: calc(1.9 * var(--u)); }
.chat-head b { font-size: calc(0.82 * var(--u)); }
.chat-head small { display: block; color: var(--muted); font-size: calc(0.64 * var(--u)); font-weight: 400; }
.bubbles { display: flex; flex-direction: column; gap: calc(0.4 * var(--u)); padding: calc(0.95 * var(--u)) calc(0.85 * var(--u)); }
.bubbles p { max-width: 78%; padding: calc(0.45 * var(--u)) calc(0.7 * var(--u)); border-radius: calc(1 * var(--u)); font-size: calc(0.74 * var(--u)); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.bubbles .in { align-self: flex-start; background: var(--raise); border: 1px solid var(--line); border-bottom-left-radius: calc(0.3 * var(--u)); }
.bubbles .out { align-self: flex-end; background: var(--fg); color: var(--bg); border-bottom-right-radius: calc(0.3 * var(--u)); }
.js .day-story:not([data-active="3"]) .bubbles p { opacity: 0; transform: translateY(calc(0.6 * var(--u))); }
.day-story[data-active="3"] .bubbles p:nth-child(2) { transition-delay: 0.35s; }
.day-story[data-active="3"] .bubbles p:nth-child(3) { transition-delay: 0.7s; }
.day-story[data-active="3"] .bubbles p:nth-child(4) { transition-delay: 1.05s; }
.input { position: absolute; left: calc(0.75 * var(--u)); right: calc(0.75 * var(--u)); bottom: calc(0.9 * var(--u)); height: calc(2.2 * var(--u)); border-radius: 999px; border: 1px solid var(--line-2); display: flex; align-items: center; padding-inline: calc(0.9 * var(--u)); color: var(--faint); }

/* night: the screen goes dark in either theme */
.l-night { background: #0b0b0c; color: #f5f5f6; }
.l-night .sbar span:last-child { color: #8a8a93; }
.rest { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: calc(0.5 * var(--u)); padding: calc(1.5 * var(--u)); text-align: center; }
.moon { width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u)); margin-bottom: calc(1 * var(--u)); border-radius: 50%; border: 1px solid #2a2a31; display: grid; place-items: center; color: #8a8a93; }
.moon svg { width: calc(1.4 * var(--u)); height: calc(1.4 * var(--u)); }
.rest b { font-size: calc(2.6 * var(--u)); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.rest small { color: #8a8a93; font-size: calc(0.74 * var(--u)); }
.cpu-bars { display: grid; gap: calc(0.5 * var(--u)); width: calc(11.5 * var(--u)); margin-top: calc(1.4 * var(--u)); text-align: left; font: 400 calc(0.58 * var(--u))/1 var(--mono); color: #6e6e78; }
.cpu-bars i { display: block; height: calc(0.35 * var(--u)); margin-top: calc(0.3 * var(--u)); border-radius: 999px; background: #2a2a31; transform-origin: left; }
.cpu-bars div:last-child i { background: #f5f5f6; transform: scaleX(0.024); }    /* 0.07 of 2.9, to scale */

/* which screen shows: the morning until the second step, then each in turn */
.l-day, .l-evening, .l-night { opacity: 0; transform: translateY(calc(1.5 * var(--u))); }
.day-story[data-active="2"] .l-morning, .day-story[data-active="3"] .l-morning, .day-story[data-active="4"] .l-morning,
.day-story[data-active="3"] .l-day, .day-story[data-active="4"] .l-day,
.day-story[data-active="4"] .l-evening { opacity: 0; transform: translateY(calc(-1.5 * var(--u))); }
.day-story[data-active="2"] .l-day, .day-story[data-active="3"] .l-evening, .day-story[data-active="4"] .l-night { opacity: 1; transform: none; }

.day-steps { position: relative; list-style: none; margin: 0; padding: 25vh 0; }
.day-steps::before, .day-steps::after { content: ""; position: absolute; left: -3rem; top: 25vh; bottom: 25vh; width: 1px; background: var(--line); }
.day-steps::after { background: var(--fg); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step h3 { position: relative; }
.step h3::before { content: ""; position: absolute; left: calc(-3rem - 4px); top: 0.42em; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 5px var(--bg); }
.step { min-height: 75vh; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; transition: opacity 0.5s var(--ease); }
.js .step { opacity: 0.22; }
.day-story[data-active="1"] .step[data-step="1"], .day-story[data-active="2"] .step[data-step="2"],
.day-story[data-active="3"] .step[data-step="3"], .day-story[data-active="4"] .step[data-step="4"] { opacity: 1; }
.step h3 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.step p { max-width: 27rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }

/* ---- the closing call to action ---- */

.cta { padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.cta-card { position: relative; overflow: hidden; isolation: isolate; max-width: 76rem; margin-inline: auto; display: grid; justify-items: center; text-align: center; padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); border: 1px solid var(--line); border-radius: 2rem; background: var(--bg); }
.cta-card::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1.5px); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 55% 65% at 50% 35%, #000, transparent); mask-image: radial-gradient(ellipse 55% 65% at 50% 35%, #000, transparent); }
.cta-rings { position: absolute; z-index: -1; left: 50%; top: calc(clamp(3.5rem, 7vw, 6rem) + 48px); width: 34rem; aspect-ratio: 1; translate: -50% -50%; }
.cta-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ring); opacity: 0; transform: scale(0.2); animation: ripple 9s cubic-bezier(0.25, 0.6, 0.3, 1) infinite; }
.cta-rings i:nth-child(2) { animation-delay: -3s; }
.cta-rings i:nth-child(3) { animation-delay: -6s; }
.cta.paused .cta-rings i { animation-play-state: paused; }
.cta-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 1.5rem 3rem -1.25rem rgba(0, 0, 0, 0.4); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.cta-icon:hover { transform: translateY(2px) scale(0.98); box-shadow: 0 1rem 2rem -1.25rem rgba(0, 0, 0, 0.4); }
.cta h2 { margin-top: 2.25rem; font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
.cta-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem; }
.cta-qr { display: none; align-items: center; gap: 0.8rem; padding: 0.45rem 1rem 0.45rem 0.45rem; border: 1px solid var(--line-2); border-radius: 1rem; background: var(--bg); text-align: left; }
.cta-qr .qr { width: 4.75rem; padding: 0.25rem; border-radius: 0.6rem; }
.cta-qr span { max-width: 8rem; font-size: 0.8rem; line-height: 1.35; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .cta-qr { display: flex; } }
.cta-note { margin-top: 1.4rem; font: 400 0.78rem/1.4 var(--mono); color: var(--faint); }

/* ---- footer ---- */

.foot { position: relative; border-top: 1px solid var(--line); padding: 2rem var(--gutter) 2.25rem; color: var(--muted); font-size: 0.86rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--fg); }
.mail { font-family: var(--mono); font-size: 0.8rem; user-select: all; }
.legal { margin-top: 0.75rem; color: var(--faint); font-size: 0.8rem; }

/* ---- the privacy policy and other text pages ---- */

.top.static { position: static; border-bottom: 1px solid var(--line); }
.doc-page { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.doc { max-width: 46rem; margin-inline: auto; display: grid; gap: 1.1rem; }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.doc h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc ul, .doc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.doc .summary { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--raise); padding: 1.25rem 1.4rem; }
.doc .summary p { color: var(--fg); }
.doc-page + .foot { padding-bottom: 2rem; }
.doc a { color: var(--fg); }
.doc .toc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.doc .toc a { padding: 0.3rem 0.7rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.82rem; color: var(--muted); text-decoration: none; }
.doc .toc a:hover { color: var(--fg); border-color: var(--fg); }
.doc h2[id] { scroll-margin-top: 1.5rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.doc th, .doc td { padding: 0.65rem 0.75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
.doc th { color: var(--fg); font-weight: 600; border-top: 0; }
/* a place the team still has to fill in; README: nothing with class="todo" may be deployed */
mark.todo { background: #ffe066; color: #111; padding: 0 0.25em; border-radius: 0.25em; }
@media (max-width: 40rem) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border-top: 0; padding: 0.15rem 0; } .doc tr { padding: 0.6rem 0; border-top: 1px solid var(--line); } }

/* ---- entrance motion ---- */

.js .hero-inner > * { opacity: 0; transform: translateY(0.9rem); animation: up 0.9s var(--ease) forwards; }
.js .hero-inner > :nth-child(2) { animation-delay: 0.1s; }
.js .hero-inner > :nth-child(3), .js .hero-inner > :nth-child(4) { animation-delay: 0.2s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---- narrow screens ---- */

@media (max-width: 60rem) {
    /* the phone stays at the top, the moments slide up beneath it */
    .day-story { grid-template-columns: minmax(0, 1fr); }
    .day-stage { --u: 0.62rem; z-index: 2; top: 4.35rem; height: auto; padding-block: 1rem; margin-inline: calc(-1 * var(--gutter)); background: var(--bg); }
    .day-steps::before, .day-steps::after, .step h3::before { display: none; }
    .day-steps { padding-block: 4vh 30vh; }
    .step { min-height: 55vh; }
}
@media (max-width: 40rem) {
    .x { display: none; }
    .top-link { display: none; }
    .title-type { white-space: normal; }
    .actions .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .hero-inner > * { animation: none; opacity: 1; transform: none; }
    .ripples i, .caret, .cta-rings i { animation: none; }
    .cta-rings i:nth-child(1) { opacity: 1; transform: scale(0.4); }
    .cta-rings i:nth-child(2) { opacity: 0.5; transform: scale(0.7); }
    .ripples i:nth-child(1) { opacity: 1; transform: scale(0.35); }
    .ripples i:nth-child(2) { opacity: 0.6; transform: scale(0.6); }
    .ripples i:nth-child(3) { opacity: 0.3; transform: scale(0.85); }
    .layer, .step, .bubbles p, .l-morning .row em, .acc-sel { transition: none !important; }
}
