:root {
  --page: #f5f4f0;
  --card: #ffffff;
  --well: #ecebe6;
  --ink: #111214;
  --muted: #6b6e76;
  --faint: #a3a6ad;
  --line: rgba(17, 18, 20, 0.08);
  --button: #111214;
  --on-button: #ffffff;
  --accent: #2f6fa0;
  --radius: 28px;
  --shadow: 0 30px 80px rgba(17, 18, 20, 0.18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0d;
    --card: #1a1b1e;
    --well: #242529;
    --ink: #f4f4f6;
    --muted: #9a9ca3;
    --faint: #65676e;
    --line: rgba(255, 255, 255, 0.08);
    --button: #f4f4f6;
    --on-button: #111214;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* Bar */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.4px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lang { border: 0; background: var(--well); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; appearance: none; -webkit-appearance: none; }
select.lang { padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.nav-get { background: var(--button); color: var(--on-button); text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 9px 16px; }

/* Buttons */
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--button); color: var(--on-button); border-radius: 999px; padding: 15px 24px; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform 0.2s ease; }
.store:hover { transform: translateY(-2px); }
.store[aria-disabled='true'] { opacity: 0.92; cursor: default; }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.note { display: block; color: var(--muted); font-size: 14px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .kicker { color: #7cc3ff; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 30px 0 70px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1; letter-spacing: -2.6px; margin: 0 0 20px; font-weight: 850; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* The globe: a canvas you can turn, the count of marked countries under it. */
.globe { display: grid; justify-items: center; gap: 12px; }
.globe-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; }
.globe-stage::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 18, 20, 0.22), transparent); z-index: -1; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 0.6s ease; }
.globe canvas:active { cursor: grabbing; }
.globe.ready canvas { opacity: 1; }
.globe-fallback { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: cover; border-radius: 50%; display: none; }
.globe.no-webgl .globe-fallback { display: block; }
.globe.no-webgl .globe-hint, .globe.no-webgl .globe-bar { display: none; }
.globe-bar { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.globe-count { background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.globe-clear { border: 0; background: var(--well); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.globe-hint { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.globe-toast { position: absolute; left: 50%; top: 10%; translate: -50% 0; background: var(--button); color: var(--on-button); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.globe-toast.show { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) { .globe-stage::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); } }

/* Small icons on the phone screens. */
.wx { width: 14px; height: 14px; }
.ic { width: 16px; height: 16px; flex-shrink: 0; color: currentColor; }

/* A phone, drawn in CSS */
.phone { width: 290px; height: 600px; border-radius: 50px; padding: 11px; background: #0d0e10; box-shadow: var(--shadow), inset 0 0 0 2px #2a2c31; transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0px)); transition: transform 0.2s linear; flex-shrink: 0; }
.screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #f5f4f0; color: #111214; font-size: 12px; }
.screen.pad { padding: 0 14px; }
.status { display: flex; justify-content: space-between; padding: 14px 22px 6px; font-weight: 700; font-size: 12px; }
.screen.pad .status { padding: 14px 8px 6px; }
.status-icons { width: 52px; height: 11px; color: #111214; }
.bar-title { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 8px; }
.bar-title b { font-size: 16px; }
.bar-title span { width: 30px; }
.plus { height: 30px; border-radius: 15px; background: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.section-title { font-size: 17px; font-weight: 800; padding: 4px 16px 8px; }
.deck { position: relative; margin: 0 14px; height: 330px; border-radius: 26px; background-size: cover; background-position: center; overflow: hidden; }
.deck::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 35%, rgba(0, 0, 0, 0.78)); }
.pill-white { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(255, 255, 255, 0.94); color: #111214; border-radius: 12px; padding: 4px 10px; font-weight: 800; font-size: 11px; }
.deck-text { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #fff; display: grid; gap: 2px; }
.deck-text small { font-weight: 700; opacity: 0.9; }
.deck-text b { font-size: 30px; line-height: 1; letter-spacing: -1px; }
.deck-meta { display: flex; justify-content: space-between; align-items: center; font-weight: 600; opacity: 0.95; margin-top: 4px; }
.faces { display: flex; }
.faces i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); color: #fff; font-style: normal; font-weight: 800; font-size: 10px; display: grid; place-items: center; margin-left: -6px; }
.page-dots { display: flex; justify-content: center; gap: 4px; padding: 10px 0; }
.page-dots i { width: 5px; height: 5px; border-radius: 3px; background: #d7d6d0; }
.page-dots i.on { width: 14px; background: #111214; }
.past { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.past span { height: 110px; border-radius: 18px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.past em { position: absolute; left: 8px; bottom: 8px; color: #fff; font-style: normal; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.trip-hero { height: 190px; background-size: cover; background-position: center; position: relative; margin-top: -40px; }
.trip-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7)); }
.trip-hero-text { position: absolute; left: 14px; bottom: 26px; z-index: 1; color: #fff; display: grid; gap: 2px; }
.trip-hero-text .pill-white { position: static; justify-self: start; margin-bottom: 4px; }
.trip-hero-text b { font-size: 26px; letter-spacing: -0.8px; line-height: 1; }
.trip-hero-text small { font-weight: 700; opacity: 0.9; }
.segments { display: grid; grid-template-columns: repeat(4, 1fr); margin: -14px 12px 10px; position: relative; z-index: 2; background: #e6e5df; border-radius: 12px; padding: 3px; font-weight: 700; font-size: 10.5px; text-align: center; }
.segments span { padding: 5px 0; border-radius: 9px; color: #555; }
.segments .on { background: #fff; color: #111214; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.strip { display: flex; gap: 6px; padding: 2px 12px 10px; }
.screen.pad .strip { padding: 2px 0 10px; }
.strip > span { flex: 1; background: #fff; border-radius: 13px; display: grid; justify-items: center; padding: 6px 0; font-weight: 700; color: #6b6e76; font-size: 10px; line-height: 1.2; }
.strip b { font-size: 17px; color: #111214; letter-spacing: -0.4px; }
.strip .on { background: #111214; color: rgba(255, 255, 255, 0.7); }
.strip .on b { color: #fff; }
.day-head { display: grid; grid-template-columns: 1fr auto; row-gap: 0; align-items: center; margin: 2px 2px 10px; }
.day-head b { font-size: 16px; letter-spacing: -0.4px; }
.day-head small { color: #6b6e76; font-weight: 600; grid-column: 1; }
.weather { grid-row: 1 / 3; grid-column: 2; background: #fff; border-radius: 12px; padding: 4px 8px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.timeline { background: #fff; border-radius: 20px; padding: 4px 0; }
.timeline.mini { margin: 0 12px; }
.t-row { display: grid; grid-template-columns: 38px 12px 38px 1fr; align-items: center; gap: 8px; padding: 6px 10px 6px 0; }
.t-row i { font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.node { width: 8px; height: 8px; border-radius: 4px; background: #2f6fa0; justify-self: center; box-shadow: 0 0 0 4px rgba(47, 111, 160, 0.12); }
.thumb { width: 38px; height: 38px; border-radius: 11px; background-size: cover; background-position: center; background-color: #ecebe6; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.t-row p { margin: 0; display: grid; line-height: 1.25; }
.t-row b { font-size: 13px; }
.t-row small { color: #6b6e76; }
.t-leg { margin: 0 0 0 66px; display: inline-flex; gap: 4px; align-items: center; background: #f1f0eb; color: #6b6e76; border-radius: 10px; padding: 2px 8px; font-weight: 700; font-size: 10.5px; }
.night { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 12px; margin-top: 10px; }
.night .ic { width: 22px; height: 22px; }
.night p { margin: 0; display: grid; line-height: 1.2; font-size: 12px; }
.night small { color: #6b6e76; font-weight: 700; }
.h-mock { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; margin: 4px 2px 10px; }
.h-mock.small { font-size: 14px; margin-top: 14px; }
.sight { position: relative; border-radius: 18px; overflow: hidden; background-size: cover; background-position: center; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; min-height: 108px; }
.sight.big { height: 170px; margin-bottom: 8px; }
.sight.big::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7)); }
.sight b { position: relative; z-index: 1; font-size: 13px; }
.sight.big b { font-size: 20px; letter-spacing: -0.5px; }
.sight i { position: relative; z-index: 1; font-style: normal; font-size: 26px; margin-bottom: 4px; }
.sight .add { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 12px; background: #fff; color: #111214; display: grid; place-items: center; font-weight: 800; }
.sights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sights .sight::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.65)); }
.invite { background: #fff; border-radius: 20px; padding: 10px; display: grid; gap: 10px; }
.invite-head { display: flex; gap: 10px; align-items: center; }
.invite-head .thumb { width: 46px; height: 46px; border-radius: 13px; }
.invite-head p { margin: 0; display: grid; line-height: 1.2; }
.invite-head small { color: #6b6e76; font-weight: 700; }
.invite-head b { font-size: 16px; }
.invite-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; }
.invite-actions span { background: #ecebe6; border-radius: 14px; text-align: center; padding: 8px 0; font-weight: 800; }
.invite-actions .dark { background: #111214; color: #fff; }
.chat { margin-top: 14px; display: grid; gap: 8px; }
.pinned { background: #fff; border-radius: 12px; padding: 7px 10px; font-weight: 700; color: #444; border-left: 3px solid #111214; display: flex; align-items: center; gap: 6px; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.35; }
.bubble.other { background: #fff; justify-self: start; border-bottom-left-radius: 5px; }
.bubble.mine { background: #111214; color: #fff; justify-self: end; border-bottom-right-radius: 5px; }
.heart { justify-self: end; background: #fff; border-radius: 10px; padding: 1px 6px; margin-top: -12px; margin-right: 6px; font-size: 11px; border: 1px solid #e6e5df; }
.money-card { background: #111214; color: #fff; border-radius: 20px; padding: 14px; display: grid; gap: 4px; }
.money-card small { opacity: 0.65; font-weight: 700; }
.money-card b { font-size: 34px; letter-spacing: -1px; line-height: 1.05; }
.budget { height: 7px; background: rgba(255, 255, 255, 0.14); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.budget i { display: block; height: 100%; background: #4fb3d9; border-radius: 4px; }
.split { background: #fff; border-radius: 18px; padding: 12px; display: grid; gap: 8px; }
.split-bar { display: flex; gap: 2px; height: 9px; border-radius: 5px; overflow: hidden; }
.split-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-weight: 600; }
.split-row .dot { width: 9px; height: 9px; border-radius: 5px; }
.owe { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 10px 12px; margin-top: 10px; font-weight: 600; }
.owe .faces i { margin-left: 0; border-color: #fff; }
.owe em { font-style: normal; background: #ecebe6; border-radius: 10px; padding: 3px 8px; font-weight: 800; font-size: 11px; }
.world { background: linear-gradient(135deg, #1c4f8f, #0e2442); color: #fff; border-radius: 20px; padding: 14px; display: grid; gap: 2px; overflow: hidden; }
.world b { font-size: 16px; }
.world small { opacity: 0.75; font-weight: 700; }
.dots-map { height: 96px; margin-top: 8px; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1.3px, transparent 1.6px); background-size: 7px 7px; -webkit-mask: radial-gradient(ellipse 45% 38% at 30% 45%, #000 60%, transparent 62%), radial-gradient(ellipse 30% 40% at 72% 42%, #000 60%, transparent 62%), radial-gradient(ellipse 14% 22% at 80% 78%, #000 60%, transparent 62%); mask: radial-gradient(ellipse 45% 38% at 30% 45%, #000 60%, transparent 62%), radial-gradient(ellipse 30% 40% at 72% 42%, #000 60%, transparent 62%), radial-gradient(ellipse 14% 22% at 80% 78%, #000 60%, transparent 62%); position: relative; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stamp { aspect-ratio: 1; border: 2px solid var(--ink); color: var(--ink); border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 1px; font-size: 18px; position: relative; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.stamp::after { content: ''; position: absolute; inset: 4px; border: 1px dashed var(--ink); border-radius: 10px; }
.stamp.round, .stamp.round::after { border-radius: 50%; }
.stamp.ticket, .stamp.ticket::after { border-radius: 6px; }
.stamp b { font-size: 10px; letter-spacing: 1.4px; font-weight: 900; }
.stamp i { font-style: normal; font-size: 9px; font-weight: 700; }
.stamps .stamp:nth-child(1) { transform: rotate(-5deg); }
.stamps .stamp:nth-child(2) { transform: rotate(4deg); }
.stamps .stamp:nth-child(3) { transform: rotate(-2deg); }
.stamps .stamp:nth-child(4) { transform: rotate(5deg); }
.stamps .stamp:nth-child(5) { transform: rotate(-4deg); }
.stamps .stamp:nth-child(6) { transform: rotate(3deg); }
.screens .screen.on .stamp, .step-phone.in .stamp { animation: stamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.screens .screen.on .stamp:nth-child(2), .step-phone.in .stamp:nth-child(2) { animation-delay: 0.08s; }
.screens .screen.on .stamp:nth-child(3), .step-phone.in .stamp:nth-child(3) { animation-delay: 0.16s; }
.screens .screen.on .stamp:nth-child(4), .step-phone.in .stamp:nth-child(4) { animation-delay: 0.24s; }
.screens .screen.on .stamp:nth-child(5), .step-phone.in .stamp:nth-child(5) { animation-delay: 0.32s; }
.screens .screen.on .stamp:nth-child(6), .step-phone.in .stamp:nth-child(6) { animation-delay: 0.4s; }
@keyframes stamp { from { opacity: 0; scale: 1.7; } to { opacity: 1; scale: 1; } }

/* The story: steps of text on the left, one phone pinned on the right whose screen follows them. */
.story { display: grid; grid-template-columns: 1fr 330px; gap: 70px; padding: 10px 0 30px; }
.step { min-height: 82vh; display: flex; align-items: center; }
.step-text { max-width: 30em; opacity: 0.28; transform: translateX(-8px); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.step.active .step-text { opacity: 1; transform: none; }
.step-text h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -1.6px; margin: 0 0 16px; }
.step-text p { font-size: 19px; color: var(--muted); margin: 0; }
.step-phone { display: none; }
.story-stage { position: sticky; top: calc(50vh - 330px); height: 660px; display: grid; justify-items: center; align-content: center; gap: 18px; }
.stage-phone .screens { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #f5f4f0; }
.screens .screen { position: absolute; inset: 0; border-radius: 0; opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.screens .screen.on { opacity: 1; transform: none; }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--well); transition: width 0.3s ease, background 0.3s ease; }
.stage-dots i.on { width: 20px; background: var(--ink); }

/* Features */
.feature { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; padding: 50px 0; }
.feature.flip { grid-template-columns: auto 1fr; }
.feature.flip .feature-text { order: 2; }
.feature h2, .faq h2, .final h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -1.6px; margin: 0 0 16px; }
.feature p { font-size: 19px; color: var(--muted); max-width: 28em; margin: 0; }
[data-reveal] { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-on [data-reveal]:not(.in) { opacity: 0; transform: translateY(40px); }

.faq { max-width: 760px; margin: 0 auto; padding: 70px 0 20px; }
.faq h2 { text-align: center; }
.faq details { background: var(--card); border-radius: 22px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; padding: 90px 0 100px; }
.final img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.final p { color: var(--muted); font-size: 19px; margin: 0 0 28px; }

.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Invite and profile pages */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 20px; }
.panel { width: 100%; max-width: 420px; background: var(--card); border-radius: 32px; padding: 30px 24px; text-align: center; }
.panel img.icon { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 16px; }
.panel h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.7px; margin: 0 0 10px; }
.panel p { color: var(--muted); margin: 0 0 22px; }
.panel .store { width: 100%; justify-content: center; }
.panel .secondary { display: block; margin-top: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
.invite-panel { padding-top: 12px; overflow: hidden; }
.invite-cover { position: relative; height: 150px; margin: 0 -12px 18px; border-radius: 26px; display: grid; place-items: center; background: var(--well) center / cover no-repeat; overflow: hidden; }
.invite-cover.has-photo { height: 210px; }
.invite-cover.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72)); }
.invite-cover.has-photo .icon { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 12px; margin: 0; z-index: 1; }
.invite-cover-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; text-align: left; display: grid; gap: 2px; }
.invite-cover-text b { font-size: 28px; line-height: 1.05; letter-spacing: -0.8px; }
.invite-cover-text span { font-weight: 600; opacity: 0.9; }
.invite-faces { display: flex; align-items: center; justify-content: center; margin: -2px 0 14px; }
.invite-faces img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); margin-left: -8px; }
.invite-faces img:first-child { margin-left: 0; }
.invite-faces span { margin-left: 10px; color: var(--muted); font-weight: 700; }
.invite-missing { color: #d6453d !important; font-weight: 600; }
.profile-face { width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; padding: 4px; background: var(--ink); display: grid; place-items: center; }
.profile-face img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); background: var(--card); }
.profile-handle { margin: -6px 0 12px !important; font-weight: 600; }
.profile-flags { font-size: 22px; letter-spacing: 2px; margin-bottom: 16px; color: var(--muted); }
.faq.support { padding: 10px 0 10px; }
.contact { display: flex; align-items: center; gap: 14px; background: var(--button); color: var(--on-button); border-radius: 22px; padding: 18px 22px; text-decoration: none; margin-top: 8px; }
.contact small { opacity: 0.75; }
.contact-icon { font-size: 28px; }
.code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--well); padding: 6px 12px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; }

/* Documents */
.doc { max-width: 760px; margin: 0 auto; padding: 8px 20px 72px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1.2px; margin: 18px 0 8px; }
.doc .lead { color: var(--muted); font-size: 18px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.doc section { background: var(--card); border-radius: 22px; padding: 20px 22px; margin-bottom: 12px; }
.doc h2 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.2px; }
.doc section p { margin: 0; color: var(--ink); white-space: pre-line; }
.doc .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.doc .tabs a { background: var(--card); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 14px; }
.doc .tabs a[aria-current='page'] { background: var(--button); color: var(--on-button); }
.doc ul.credits { background: var(--card); border-radius: 22px; padding: 18px 22px 18px 40px; color: var(--muted); font-size: 14px; }
.doc ul.credits a { color: var(--ink); font-weight: 600; }

/* Two-language pages: the chosen one, or English when the page is not in it. */
[data-lang] { display: none; }
html[data-view='ru'] [data-lang='ru'], html[data-view='en'] [data-lang='en'] { display: revert; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; gap: 20px; text-align: left; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 34px; justify-items: center; text-align: center; padding: 40px 0; }
  .feature.flip .feature-text { order: 0; }
  .feature p { margin: 0 auto; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .step { min-height: 0; flex-direction: column; gap: 30px; padding: 40px 0; text-align: center; }
  .step-text { opacity: 1; transform: none; margin: 0 auto; }
  .step-phone { display: block; }
}
@media (max-width: 520px) {
  .phone { width: 250px; height: 520px; border-radius: 44px; }
  .screen { border-radius: 34px; }
  .deck { height: 280px; }
  .nav-get { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone { transform: none; }
}
