/*
 * brushai.ru — the app's native style on the web.
 * Tokens follow client/src/index.css (--vzuh-*) and the native kit of the
 * app (client/src/components/native): neutral surface, white grouped
 * sections, the app's indigo capsule for the one main action (as in the iOS
 * sign-in), a grey segmented capsule. Black is kept for text only.
 */

@font-face { font-family: "Tilda Sans"; src: url("/fonts/tilda-sans/TildaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url("/fonts/tilda-sans/TildaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url("/fonts/tilda-sans/TildaSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url("/fonts/tilda-sans/TildaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/local/Caveat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #171a27;
  --black: #111114;
  --primary: #5347e5;
  --primary-hover: #4638d4;
  --text: #2a3245;
  --muted: #686d7d;
  --faint: #a3a8b6;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(15, 23, 42, 0.11);
  --blue: #5964e8;
  --blue-ink: #4450d6;
  --blue-soft: #e9edff;
  --hand: #315cf0;
  --orange: #ff6b2c;
  --green: #239a5d;
  --seg: rgba(118, 118, 128, 0.12);
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 36px rgba(35, 42, 68, 0.07);
  --shadow-lift: 0 2px 6px rgba(15, 23, 42, 0.06), 0 26px 60px rgba(35, 42, 68, 0.16);
  --font: "Tilda Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hand: "Caveat", "Tilda Sans", cursive;
  --header: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* The slide page scrolls inside one full-screen container, as the site always did:
   mandatory snap, smooth travel, one slide per swipe or wheel step. */
html.has-slides, html.has-slides body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.slides[data-slide-container] {
  position: relative; height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto;
  scroll-snap-type: y mandatory; scroll-behavior: smooth; overscroll-behavior: contain; scrollbar-width: none; outline: none;
}
.slides[data-slide-container]::-webkit-scrollbar { display: none; }
.slides > .footer { scroll-snap-align: end; }
.slides .slide { min-height: 100%; }
.slides .slide > .wrap { transform-origin: 50% 50%; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .slide.revealed > .wrap > * { animation: slide-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .slide.revealed > .wrap > :nth-child(2) { animation-delay: 0.07s; }
  .slide.revealed > .wrap > :nth-child(3) { animation-delay: 0.14s; }
  .slide.revealed > .wrap > :nth-child(4) { animation-delay: 0.21s; }
  .slide.revealed > .wrap > :nth-child(n + 5) { animation-delay: 0.28s; }
}
@keyframes slide-reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Landscape phones cannot hold a slide: let them scroll freely. */
@media (max-height: 560px) { .slides[data-slide-container] { scroll-snap-type: y proximity; } }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #c9cdd8 transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #dfe3ff; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(89, 100, 232, 0.45); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(1140px, 100%); margin: 0 auto; padding: 0 20px; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(83, 71, 229, 0.28); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { background: #f8f9fc; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }

.text-link {
  color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(68, 80, 214, 0.3);
  text-underline-offset: 4px; transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px 12px 0; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 4px;
  width: min(1140px, 100%); margin: 0 auto; padding: 6px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(35, 42, 68, 0.06);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 0 6px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text small { margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.nav-links { display: none; gap: 2px; margin: 0 auto; }
.nav-links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  color: #3c3c43; text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color 0.25s, color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"] { background: var(--seg); color: var(--ink); }
.nav .btn { margin-left: auto; }

/* ---------- Slides ---------- */
.slide {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header) + 28px) 0 48px; scroll-snap-align: start;
}
.slide-head { max-width: 760px; margin-bottom: 36px; }
.slide-head p { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.h3 { font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }

.dots { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header) + 24px); overflow: clip; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.hand {
  position: relative; display: inline-block; font-family: var(--font-hand); font-weight: 700; color: var(--hand);
  font-size: 1.12em; line-height: 0.8; letter-spacing: -0.015em; white-space: nowrap; transform: rotate(-1.5deg);
}
.hand::after {
  content: ""; position: absolute; left: 3%; right: 2%; bottom: -0.06em; height: 0.11em;
  border-radius: 999px; background: var(--orange); transform: rotate(-1deg) scaleX(0.96);
}
.hero-lead { margin-top: 20px; max-width: 36ch; font-size: 19px; line-height: 1.5; color: #4a5163; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-note .icon { width: 18px; height: 18px; color: var(--green); }
.platforms { margin-top: 22px; font-size: 14px; color: var(--muted); }
.platforms a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.platforms a:hover { text-decoration-color: currentColor; }

.stage { position: relative; height: 470px; display: grid; place-items: center; }
.stage-card {
  position: absolute; width: 168px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: #e8eaf1; box-shadow: var(--shadow-lift);
}
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-card.left { left: calc(50% - 222px); top: 64px; transform: rotate(-8deg); }
.stage-card.right { right: calc(50% - 226px); top: 150px; transform: rotate(7deg); }

/* ---------- Phone with the montage demo ---------- */
.phone {
  position: relative; z-index: 2; width: 232px; aspect-ratio: 9 / 19.2; border-radius: 42px; padding: 7px;
  background: linear-gradient(155deg, #ffffff 0%, #eef0f6 55%, #dfe3ec 100%);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.07);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #e4e7ef;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; cursor: pointer;
}
.phone video, .phone-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-lg { width: 280px; }
.phone-sound {
  position: absolute; z-index: 3; right: 12px; bottom: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(23, 26, 39, 0.42); color: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); transition: background-color 0.2s;
}
.phone-sound:hover { background: rgba(23, 26, 39, 0.56); }
.phone-sound .icon { width: 19px; height: 19px; }
.phone-sound.is-flash { animation: pop 0.42s var(--ease); }
.phone-play {
  position: absolute; z-index: 3; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.92); color: var(--primary); display: none; place-items: center; cursor: pointer;
}
.phone.needs-play .phone-play { display: grid; }

/* Before / after: the same take, raw and montaged; holding the video on a phone shows the source. */
.phone[data-compare] .v-after { transition: opacity 0.12s linear; }
.phone[data-compare][data-mode="raw"] .v-after { opacity: 0; }
.phone-tag {
  position: absolute; z-index: 3; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.2s, transform 0.3s var(--ease);
}
.phone[data-mode="raw"] .phone-tag { opacity: 1; transform: none; }
.phone-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 66px; display: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(23, 26, 39, 0.5); color: #fff; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%); transition: opacity 0.4s, transform 0.4s var(--ease);
}
.phone.is-hint-done .phone-hint, .phone[data-mode="raw"] .phone-hint { opacity: 0; transform: translate(-50%, 6px); }
.phone { transition: transform 0.3s var(--ease); }
.phone.is-holding { transform: scale(0.985); }
@media (hover: none) and (pointer: coarse) {
  .phone-hint { display: block; }
}

/* A double tap on the video: the heart, as in Reels. */
.tap-heart {
  position: absolute; z-index: 4; width: 88px; height: 88px; margin: -44px 0 0 -44px; pointer-events: none;
  color: #ff3b5c; animation: tap-heart 0.85s var(--ease) forwards;
}
.tap-heart .icon { width: 100%; height: 100%; fill: currentColor; stroke: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25)); }
@keyframes tap-heart {
  0% { opacity: 0; transform: scale(0.3) rotate(-14deg); }
  20% { opacity: 1; transform: scale(1.15) rotate(-6deg); }
  34% { transform: scale(0.94) rotate(-6deg); }
  70% { opacity: 1; transform: scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: translateY(-46px) scale(0.8) rotate(-6deg); }
}
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Reactions around the hero phone: they step aside for the cursor ---------- */
.reaction { position: absolute; z-index: 3; margin: 0; will-change: translate; }
.reaction > span {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 28px rgba(35, 42, 68, 0.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: bob 5.5s ease-in-out infinite;
}
.reaction .icon { width: 17px; height: 17px; }
.r-like { left: calc(50% - 190px); top: 30px; }
.r-like { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.r-like .icon { color: #ff3b5c; fill: transparent; transition: fill 0.2s; }
.r-like.is-liked .icon { fill: #ff3b5c; }
.r-like.is-popping .icon { animation: pop 0.45s var(--ease); }
.r-repost { right: calc(50% - 214px); top: 112px; }
.r-repost > span { animation-delay: -1.8s; }
.r-repost .icon { color: var(--green); }
.r-comment { left: calc(50% - 206px); bottom: 74px; }
.r-comment > span { animation-delay: -3.4s; }
.r-comment .icon { color: var(--blue); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }

/* ---------- Grouped lists (native sections) ---------- */
.compare { display: grid; gap: 18px; }
/* ---------- Pain: a whole evening against a couple of minutes ---------- */
/* ---------- Pain: an evening in Saved Messages, and the push that ends it ---------- */
.pain-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.chat {
  position: relative; display: flex; flex-direction: column; justify-self: center; width: min(100%, 380px); min-height: 500px; margin: 0;
  padding: 0 12px 14px; border-radius: 30px; overflow: hidden;
  background: #eef0f5; border: 1px solid var(--line);
}
.chat-head {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 -12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 600; color: var(--ink);
}
.chat-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #7ea8ff, #5347e5); color: #fff; }
.chat-avatar .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.chat-log { display: grid; gap: 7px; justify-items: end; margin-top: auto; padding-top: 16px; }
.bubble {
  display: flex; align-items: flex-end; gap: 8px; max-width: 88%; padding: 8px 10px 7px 13px; border-radius: 18px 18px 6px 18px;
  background: #fff; color: var(--text); font-size: 15px; line-height: 1.35;
}
.bubble time { flex: none; font-size: 11px; color: #8d92a1; }
.chat-pushes { position: absolute; z-index: 2; left: 10px; right: 10px; top: 58px; display: grid; gap: 7px; }
.push {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; column-gap: 12px; align-items: center; padding: 8px 9px 9px 13px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.76); border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 8px rgba(40, 36, 110, 0.06);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
}
.push-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.push-head img { width: 18px; height: 18px; border-radius: 5px; }
.push-head b { color: var(--ink); font-weight: 600; }
.push-head span { margin-left: auto; }
.push-text { margin-top: 3px; font-size: 14px; line-height: 1.3; color: var(--text); }
.push-text b { display: block; font-weight: 600; color: var(--ink); }
.push-thumb { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; object-fit: cover; }
.push-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.push-thumb.is-video .icon { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4)); }
.bubble [data-type].is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--primary); animation: caret 1s steps(1) infinite; }
.bubble time { transition: opacity 0.2s; }
.bubble.is-composing time { opacity: 0; }
/* The one moment of the slide: the evening is typed out in three messages, then Вжух delivers. */
.chat.is-armed .bubble { opacity: 0; transform: translateY(10px) scale(0.96); transform-origin: right bottom; }
.chat.is-armed .push { opacity: 0; transform: translateY(-22px) scale(0.96); }
.chat .bubble.is-shown, .chat .push.is-shown { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.45s var(--ease); }
.gains { display: grid; gap: 10px; max-width: 880px; margin-top: 18px; }
.gains li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.gains b { color: var(--ink); font-weight: 600; }
.gain-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--primary); }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.group-title { padding: 18px 20px 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.group.is-good .group-title { color: var(--ink); }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 15px 20px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--text); }
.group-title + .row { border-top: 0; }
.row .icon { margin-top: 2px; }
.row b { color: var(--ink); font-weight: 600; }
.is-bad .row { color: var(--muted); }
.is-bad .row .icon { color: #b7bbc6; }
.is-good .row .icon { color: var(--green); }

/* ---------- Segmented control ---------- */
.segmented {
  position: relative; display: inline-flex; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--seg);
  overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  position: relative; z-index: 1; flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  color: #5d5d66; font: 600 15px/1 var(--font); cursor: pointer; transition: color 0.2s;
}
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { color: var(--ink); }
/* The iOS thumb: a hairline all round, a soft drop below; it never shows a focus ring of its own. */
.segmented-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.28s var(--ease), width 0.28s var(--ease);
}
.segmented button:focus-visible { outline: 2px solid rgba(89, 100, 232, 0.55); outline-offset: -3px; border-radius: 999px; }

/* ---------- Composer: the one authored moment ---------- */
.composer {
  display: flex; align-items: center; gap: 12px; max-width: 720px; margin-top: 18px; padding: 10px 18px 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.composer-orb { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #f1f0ff; }
.composer-field { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -0.2em; background: var(--blue); opacity: 0; }
.composer.is-typing .caret { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.composer-status { flex: none; font-size: 14px; color: var(--muted); }
.composer.is-busy .composer-status { color: #6558f5; }
.panel img { transition: filter 0.9s var(--ease), transform 0.9s var(--ease), opacity 0.6s; }
.panel.is-developing img { filter: blur(14px) saturate(0.4); transform: scale(0.965); opacity: 0.55; }

/* ---------- Formats ---------- */
.panel { margin-top: 26px; }
.panel[hidden] { display: none; }
.panel-text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 20px; }
.panel > .text-link { display: inline-block; margin-top: 2px; font-size: 16px; }
.composer { margin-bottom: 18px; }
.slide-head + .composer { margin-top: 0; }
.panel-text p { max-width: 62ch; font-size: 17px; color: var(--text); }
.gallery {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 22px; margin: 0 -20px;
  scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 20px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; width: min(62vw, 250px); margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: #e8eaf1; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px rgba(35, 42, 68, 0.08); }
.seamless { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; box-shadow: var(--shadow); scrollbar-width: none; }
.seamless::-webkit-scrollbar { display: none; }
.seamless img { flex: none; width: min(70vw, 270px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.hint { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Montage ---------- */
.montage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.montage-grid > * { min-width: 0; }
.montage-more .feature-list { margin-top: 4px; }
.montage-visual .phone-lg { width: auto; height: clamp(300px, calc(100vh - 370px), 540px); height: clamp(300px, calc(100svh - 370px), 540px); }
.feature-list { margin-top: 28px; }
.feature-list .row { padding-left: 18px; padding-right: 18px; }
.feature-list .row .icon { color: var(--blue); }
.montage-visual { display: grid; justify-items: center; gap: 14px; }
.montage-visual .hint { margin-top: 0; text-align: center; }

/* ---------- Steps and proof ---------- */
.how-grid { display: grid; gap: 28px; align-items: start; }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-soft); color: var(--primary); font-weight: 700; font-size: 15px;
}
.steps p { margin-top: 3px; color: var(--muted); }
.proof { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.proof figure { margin: 0; }
.proof img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.proof figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.proof figcaption b { display: block; color: var(--ink); font-size: 15px; }
.proof-note { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 14px; }
.plan { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.plan h3 { font-size: 20px; }
.plan .for { margin-top: 4px; font-size: 15px; color: var(--muted); }
.price { margin: 20px 0 18px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; line-height: 1.4; }
.plan li .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.plan.is-featured { border-color: transparent; box-shadow: 0 0 0 2px var(--primary), 0 18px 44px rgba(83, 71, 229, 0.16); }
.plan-flag { align-self: flex-start; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--primary); font-size: 13px; font-weight: 600; }
.plan ul { flex: 1; }
.plan-early { margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--primary); font-size: 13px; font-weight: 600; line-height: 1.35; }
.plan-btn { margin-top: 14px; min-height: 46px; }
.plan-prices li { justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-strong); }
.plan-prices li:last-child { border-bottom: 0; }
.plan-prices b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.assure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 18px; font-size: 15px; color: var(--text); }
.assure li { display: flex; align-items: center; gap: 7px; }
.assure .icon { width: 17px; height: 17px; color: var(--green); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--faint); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; max-width: 70ch; color: var(--text); }

/* ---------- Final CTA and footer ---------- */
.final { text-align: center; }
@media (min-width: 960px) and (min-height: 720px) { .slide.final { min-height: 72vh; } }
.final .h2 { max-width: 16ch; margin: 0 auto; }
.final p { margin: 16px auto 0; max-width: 46ch; font-size: 18px; color: var(--muted); }
.final .hero-actions { justify-content: center; }
.final .assure { justify-content: center; }
.final .platforms { text-align: center; }

.footer { padding: 40px 0 34px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer li { padding: 4px 0; }
.footer a { text-decoration: none; }
.footer-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer a:hover, .footer-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.6; }

/* ---------- Article pages (SEO subpages) ---------- */
.article { padding: calc(var(--header) + 40px) 0 56px; }
.article .wrap { max-width: 820px; }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.article .lead { margin-top: 18px; font-size: 19px; color: #4a5163; }
.article h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.article p + p { margin-top: 12px; }
.article .group { margin-top: 8px; }
.article .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.article .hero { padding: 0; }
.article .hero > .btn { margin-top: 26px; }
.article .hero p { margin-top: 16px; font-size: 19px; color: #4a5163; }
.article h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.article ul { margin-top: 10px; display: grid; gap: 8px; }
.article ul li { position: relative; padding-left: 26px; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.article .note { margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: var(--blue-soft); color: #2d3480; }
.article .group .row { font-size: 16px; }
.article .group .row .icon { color: var(--green); }

/* ---------- Scroll: the hero stack drifts apart as you leave it ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .stage { view-timeline-name: --stage; }
    .hero .stage-card.left { animation: drift-left linear both; animation-timeline: --stage; animation-range: exit -10% exit 90%; }
    .hero .stage-card.right { animation: drift-right linear both; animation-timeline: --stage; animation-range: exit -10% exit 90%; }
    .hero .phone { animation: phone-rise linear both; animation-timeline: --stage; animation-range: exit -10% exit 90%; }
  }
}
@keyframes drift-left { from { transform: rotate(-8deg); } to { transform: translate(-56px, -70px) rotate(-15deg); } }
@keyframes drift-right { from { transform: rotate(7deg); } to { transform: translate(60px, -110px) rotate(14deg); } }
@keyframes phone-rise { from { transform: none; } to { transform: translateY(-40px) scale(0.97); } }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .gallery { padding: 4px 32px 22px; margin: 0 -32px; scroll-padding-inline: 32px; }
  .compare { grid-template-columns: 1fr 1fr; }
  .gains { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .plan { padding: 22px; }
  .plan .price { font-size: 34px; }
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; grid-template-areas: "copy stage" "more stage"; column-gap: 48px; row-gap: 0; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-more { grid-area: more; align-self: start; }
  .stage { grid-area: stage; height: 560px; }
  .montage-visual .phone-lg { height: clamp(420px, calc(100vh - 240px), 600px); height: clamp(420px, calc(100svh - 240px), 600px); }
  .phone { width: 262px; }
  .stage-card { width: 196px; }
  .stage-card.left { left: calc(50% - 318px); top: 84px; }
  .stage-card.right { right: calc(50% - 318px); top: 196px; }
  .r-like { left: calc(50% - 240px); top: 36px; }
  .r-repost { right: calc(50% - 296px); top: 150px; }
  .r-comment { left: calc(50% - 300px); bottom: 70px; }
  .pain-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 72px; }
  .pain-copy .gains { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .montage-grid { grid-template-columns: 1fr 0.9fr; grid-template-areas: "copy visual" "more visual"; column-gap: 56px; row-gap: 0; align-items: center; }
  .montage-copy { grid-area: copy; align-self: end; }
  .montage-more { grid-area: more; align-self: start; }
  .montage-more .feature-list { margin-top: 28px; }
  .montage-visual { grid-area: visual; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .gallery figure { width: 240px; }
}

/* Slide dots where there is room beside the content. */
@media (min-width: 960px) and (min-height: 720px) {
  .dots {
    position: fixed; z-index: 40; right: 22px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 10px; padding: 10px 7px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line);
  }
  .dots a { display: block; width: 8px; height: 8px; border-radius: 999px; background: #c5c9d4; transition: height 0.35s var(--ease), background-color 0.3s; }
  .dots a[aria-current="true"] { height: 22px; background: var(--primary); }
}

/* Phones: the montage must play in the first screen, next to the button. */
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header) + 10px); padding-bottom: 32px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { margin-top: 14px; font-size: 17px; }
  .hero-actions { margin-top: 20px; }
  .hero-more .hero-actions { margin-top: 8px; }
  .hero .platforms { display: none; }
  .hero-copy .hero-lead, #pain .slide-head p, #pain .gains { display: none; }
  .hero-grid { gap: 4px; }
  .stage { height: 388px; }
  .phone { width: 184px; border-radius: 36px; padding: 6px; }
  .phone-screen { border-radius: 30px; }
  .stage .phone-sound { width: 32px; height: 32px; right: 9px; bottom: 10px; }
  .stage .phone-sound .icon { width: 16px; height: 16px; }
  .stage-card { width: 122px; border-radius: 14px; }
  .stage-card.left { left: calc(50% - 158px); top: 70px; }
  .stage-card.right { right: calc(50% - 158px); top: 150px; }
  .reaction > span { padding: 6px 10px; font-size: 12px; gap: 5px; }
  .reaction .icon { width: 14px; height: 14px; }
  .r-like { left: calc(50% - 160px); top: 28px; }
  .r-repost { right: calc(50% - 168px); top: 102px; }
  .r-comment { left: calc(50% - 166px); bottom: 64px; }
  .phone-lg { width: 236px; }
  .slide { padding-top: calc(var(--header) + 14px); padding-bottom: 20px; }
  .slide-head { margin-bottom: 18px; }
  .slide-head p { margin-top: 8px; font-size: 16px; }
  .h2 { font-size: 30px; }
  .final { padding-bottom: 56px; }

  .composer { margin-top: 14px; }
  .panel-text { margin-bottom: 12px; }
  .panel-text p { display: none; }
  .gallery figure { width: min(60vw, 244px, calc((100svh - 410px) * 0.8)); }
  .seamless img { width: min(66vw, 256px, calc((100svh - 410px) * 0.8)); }

  .montage-grid { gap: 14px; }
  .montage-copy .hero-lead, .montage-visual .hint { display: none; }
  .montage-visual .phone-lg { height: clamp(240px, calc(100svh - 390px), 520px); }
  .montage-more .feature-list {
    display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px;
    background: none; border: 0; border-radius: 0; scrollbar-width: none;
  }
  .montage-more .feature-list::-webkit-scrollbar { display: none; }
  .montage-more .feature-list .row {
    flex: none; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); font-size: 14px; white-space: nowrap;
  }
  .montage-more .feature-list .row .icon { width: 16px; height: 16px; margin: 0; }
  .montage-more .row-more { display: none; }
  .montage-more .hero-actions { margin-top: 14px; }

  .how-grid { gap: 16px; }
  .steps li { align-items: center; padding: 12px 16px; }
  .steps p { display: none; }
  .proof img { max-height: calc(100svh - 470px); width: auto; max-width: 100%; }
  .proof figcaption { margin-top: 6px; font-size: 13px; }
  .proof-note { font-size: 13px; }

  .plans {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 10px;
    scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 84%; padding: 20px; scroll-snap-align: center; }
  .assure { gap: 6px 16px; margin-top: 10px; font-size: 13px; }
}

/* Short phones (iPhone SE and the like): the whole video still fits under the heading. */
@media (max-width: 640px) and (max-height: 720px) {
  .hero h1 { font-size: 35px; }
  .hero-lead { margin-top: 10px; font-size: 16px; line-height: 1.45; }
  .stage { height: 336px; }
  .phone { width: 158px; border-radius: 31px; padding: 5px; }
  .phone-screen { border-radius: 26px; }
  .stage-card { width: 108px; }
  .stage-card.left { left: calc(50% - 146px); top: 64px; }
  .stage-card.right { right: calc(50% - 146px); top: 132px; }
  .r-like { left: calc(50% - 150px); top: 22px; }
  .r-repost { right: calc(50% - 158px); top: 88px; }
  .r-comment { left: calc(50% - 156px); bottom: 52px; }
  .h2 { font-size: 27px; }
  .slide-head { margin-bottom: 14px; }
  .steps li { padding: 9px 16px; }
  .proof-note, #pain .slide-head p, .plan-btn, .push:nth-child(3) { display: none; }
  .chat { min-height: 420px; }
  .plan { padding: 16px 18px; }
  .plan li { padding: 4px 0; }
  .plan-early { margin-top: 8px; }
}

/* The oldest small phones: the heading, the video and the button come first. */
@media (max-width: 640px) and (max-height: 600px) {
  .hero .hero-lead { display: none; }
}

@media (max-width: 420px) {
  .btn { padding: 0 22px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
