@font-face {
  font-family: 'Manrope';
  src: url('manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

/*
 * The apps' design system on the web, the same as the cabinet (cabinet/src/styles.css) and the
 * subscription page: FlowyPalette colours, card 20 / control 16-18 / tile 10, rows 54 high, the
 * floating pill bar, FlowCard with the cut silhouette. The landing only adds its own layout
 * (wider cards, bento grid) and the motion. Change tokens in the app first, then in all three.
 */
:root {
  --bg: #f3f4f9;
  --text: #141a2e;
  --text-2: #5b6478;
  --text-3: #9aa1b5;
  --primary: #4746f1;
  --on-primary: #fff;
  --border: #e0e3ee;
  --divider: #e9ebf3;
  --card: #fff;
  --accent-card: #e8e9ff;
  --fill: #eff1f7;
  --danger: #e5484d;
  --success: #1e9e6a;
  --inverse: #141a2e;
  --bubble: #e4e6ff;
  --nav-edge: rgba(20, 26, 46, 0.05);
  --nav-shadow: 0 10px 32px rgba(20, 26, 46, 0.07), 0 1px 3px rgba(20, 26, 46, 0.03);
  --lift: 0 18px 40px -18px rgba(20, 26, 46, 0.18);
  --button: #4746f1;
  --button-glow: 0 10px 28px -12px rgba(71, 70, 241, 0.7);
  --silhouette: #c9c7ff;
  --dots: #d3d7ee;
  --grad: linear-gradient(90deg, #14b8a6, #38bdf8 45%, #4746f1);
  --smart: linear-gradient(90deg, #0e9488, #4746f1);
  --privacy: linear-gradient(90deg, #a62cc4, #5b2eea);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e13; --text: #f2f2f7; --text-2: #9ea1b3; --text-3: #5d6072; --primary: #b45cf0;
    --border: #2a2c38; --divider: #24262f; --card: #18191f; --accent-card: #2b1d3d; --fill: #22232b;
    --danger: #ff6467; --success: #3dd68c; --inverse: #2b1d3d; --bubble: #3a2556;
    --nav-edge: rgba(255, 255, 255, 0.1); --nav-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    --lift: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --button: linear-gradient(90deg, #a62cc4, #5b2eea); --button-glow: 0 10px 28px -12px rgba(166, 44, 196, 0.7);
    --silhouette: #483a59; --dots: #2c2e3a;
    --grad: linear-gradient(90deg, #c13ce0, #f0559a 45%, #8b6cff);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
img { display: block; }
svg { flex: none; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ---- logo: the cabinet's wordmark ---- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; letter-spacing: -0.4px; color: var(--text); height: 40px; }
.brand img { width: 30px; height: 25px; }

/* ---- header: logo, the app's floating pill bar with its sliding highlight, a button ---- */
.nav { position: sticky; top: 0; z-index: 20; padding: 12px 0; transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.nav .wrap { display: flex; align-items: center; gap: 16px; }
.nav .btn { margin-left: auto; }
.pill {
  position: relative; display: flex; padding: 5px; height: 54px; border-radius: 27px; margin-left: auto;
  background: var(--card); box-shadow: 0 0 0 1px var(--nav-edge), var(--nav-shadow);
}
.pill + .btn { margin-left: 0; }
.pill .slider {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 22px; background: var(--fill);
  opacity: 0; transition: transform 0.32s var(--ease), width 0.32s var(--ease), opacity 0.2s;
}
.pill a {
  position: relative; display: flex; align-items: center; padding: 0 16px; border-radius: 22px;
  color: var(--text-2); font-weight: 600; font-size: 15px; transition: color 0.2s;
}
.pill a:hover, .pill a.active { color: var(--text); }

/* ---- buttons: PowerButton / FlowyButton ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 56px; padding: 0 24px; border-radius: 18px; border: 0; cursor: pointer; overflow: hidden;
  font: inherit; font-weight: 700; font-size: 17px; white-space: nowrap; text-decoration: none;
  transition: transform 0.15s var(--ease), filter 0.15s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--button); color: var(--on-primary); box-shadow: var(--button-glow); }
.btn.primary:hover { filter: brightness(1.07); }
/* A soft sheen runs over the main button now and then, and on hover. */
.btn.primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
}
.btn.primary.shine::after, .btn.primary:hover::after { animation: sheen 0.9s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }
.btn.tonal { background: var(--accent-card); color: var(--primary); }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--nav-edge); }
.btn.small { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 15px; }
/* The arrow steps forward on hover. */
.btn .go { transition: transform 0.25s var(--ease); }
.btn:hover .go { transform: translateX(3px); }

/* ---- small parts from the cabinet ---- */
.tile { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-card); color: var(--primary); flex: none; }
.tile svg { width: 18px; height: 18px; }
.tile.big { width: 44px; height: 44px; border-radius: 13px; }
.tile.big svg { width: 22px; height: 22px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--accent-card); color: var(--primary); font-size: 12px; font-weight: 700; }
.tag.green { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }

/* ---- hero ---- */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 32px; align-items: center; min-height: min(620px, calc(100svh - 190px)); }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Words rise into place one after another. */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(6px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(0.08s * var(--i) + 0.1s); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.hero .lead { font-size: clamp(18px, 1.9vw, 20px); color: var(--text-2); font-weight: 500; max-width: 31em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fade-up { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; animation-delay: var(--d, 0.5s); }
.stage { display: grid; place-items: center; }
/* The contours' bounding box is off the frame's centre (right, and up for the app's button
   below): moved to the middle of the column. */
.stage canvas { width: 100%; max-width: 560px; aspect-ratio: 334 / 270; transform: translate(-4.3%, 6%); }


/* ---- a sentence that lights up word by word as it scrolls past ---- */
.say { padding: 96px 0 88px; }
.say p { margin: 0 auto; max-width: 900px; text-align: center; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 800; }
.say .sw { color: var(--text-3); transition: color 0.35s; }
.say .sw.on { color: var(--text); }
.say .sw.on.hl { color: var(--primary); }

/* ---- sections ---- */
section.block { padding: 40px 0; }
.head { max-width: 640px; margin-bottom: 28px; }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
.sub { color: var(--text-2); font-size: 18px; font-weight: 500; margin: 0; }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.box { background: var(--card); border-radius: 28px; padding: 28px; position: relative; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.box > .bottom { margin-top: auto; padding-top: 28px; }
.box.s7 { grid-column: span 7; }
.box.s5 { grid-column: span 5; }
.box.s6 { grid-column: span 6; }
.box.s4 { grid-column: span 4; }
.box.s8 { grid-column: span 8; }
.box h3 { font-size: 24px; letter-spacing: -0.4px; line-height: 1.15; margin: 0 0 6px; font-weight: 700; }
.box > p, .box .text p { color: var(--text-2); font-weight: 500; margin: 0; }
.box .text { position: relative; max-width: 30em; }

/* Server list like the app's: rows on the fill, the fastest one marked «Авто». */
.group { background: var(--fill); border-radius: 20px; margin-top: 22px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; position: relative; transition: background 0.3s; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--border); }
.row img { width: 32px; height: 32px; border-radius: 50%; }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-size: 16px; font-weight: 600; }
.row .main span { display: block; color: var(--text-2); font-size: 13px; font-weight: 500; }
.row .ms { font-weight: 700; font-size: 15px; color: var(--success); font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.row .ms.mid { color: #d99400; }
.row .tag { opacity: 0; transform: scale(0.85); transition: opacity 0.3s, transform 0.4s var(--ease); }
.row.best { background: color-mix(in srgb, var(--card) 70%, transparent); }
.row.best .tag { opacity: 1; transform: none; }

/* FlowCard: accent card with the drifting silhouette cut by its edge. */
.flowcard { background: var(--accent-card); }
canvas.sil { position: absolute; pointer-events: none; aspect-ratio: 334 / 270; }
.flowcard canvas.sil { right: -70px; top: -70px; width: 250px; }
.flowcard .over { color: var(--primary); font-size: 13px; font-weight: 700; position: relative; }
.flowcard h3 { position: relative; max-width: calc(100% - 150px); }
.flowcard .text { max-width: calc(100% - 150px); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; position: relative; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.checks svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--card); color: var(--primary); }

/* Flo: the app's dark card, a short conversation that plays when it comes into view. */
.box.inverse { background: var(--inverse); color: #fff; }
.box.inverse > p { color: rgba(255, 255, 255, 0.75); }
.box.inverse canvas.sil { right: -90px; top: auto; bottom: -110px; width: 300px; opacity: 0.6; }
.chat { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 22px; min-height: 252px; }
.chat > * { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.chat > .on { opacity: 1; transform: none; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 20px; font-weight: 500; font-size: 15px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--bubble); color: var(--text); }
.bubble.flo { align-self: flex-start; background: rgba(255, 255, 255, 0.1); color: #fff; }
.flo-name { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #c9c7ff; margin-left: 4px; }
.flo-name canvas { width: 24px; height: 24px; }
.tool { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.tool i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.tool.done i { animation: none; border-color: #3dd68c; background: #3dd68c; }
@keyframes spin { to { transform: rotate(360deg); } }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); animation: dot 1s infinite; animation-delay: calc(var(--i) * 0.15s); }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.typing.gone { display: none; }

/* Devices: the cabinet's slots card. */
.slots { margin-top: auto; background: var(--fill); border-radius: 20px; padding: 18px 20px; }
.slots .count b { font-size: 34px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.slots .count span { font-size: 20px; font-weight: 600; color: var(--text-3); }
.slots .bars { display: flex; gap: 5px; margin-top: 14px; }
.slots .bars i { flex: 1; height: 6px; border-radius: 4px; background: var(--border); transition: background 0.35s; }
.slots .bars i.on { background: var(--primary); }
.devs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.devs span { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 8px; border-radius: 99px; background: var(--card); font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.devs span.on { opacity: 1; transform: none; }
.devs svg { width: 18px; height: 18px; color: var(--primary); }

/* Speed: a big number that counts up and a meter that fills. */
.big { font-size: clamp(64px, 8vw, 104px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; margin-left: -0.04em; }
.big small { font-size: 0.3em; letter-spacing: -0.02em; color: var(--text-2); margin-left: 8px; }
.meter-note { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; margin-top: 20px; }
.meter i { display: block; height: 100%; width: 0; background: var(--smart); border-radius: inherit; transition: width 1.6s var(--ease); }
.in .meter i { width: 100%; }

/* ---- points of presence ---- */
.world { padding-bottom: 24px; }
/* The map zooms from the whole world into the window around our servers (--cx/--cy: its top
   left corner, --cw/--ch: its size, as parts of the map) and stays cropped there. The window's
   frame has the window's proportions; the map layer inside is sized and moved so the window
   fills the frame. Before it is in view the layer fits the whole map into the frame. Pins and
   tags keep their size: the layer changes its box, not its scale. */
.wmap {
  --cx: 0.15; --cy: 0; --cw: 0.6; --ch: 0.5;
  position: relative; width: 100%; margin-top: 16px; overflow: hidden; border-radius: 16px;
  padding-top: calc(100% * var(--ch) * 804 / (var(--cw) * 2100));
}
.wmap .map {
  position: absolute; top: 0; height: 100%;
  width: calc(100% * var(--ch) / var(--cw)); left: calc((100% - 100% * var(--ch) / var(--cw)) / 2);
  transition: width 1.6s var(--ease), height 1.6s var(--ease), left 1.6s var(--ease), top 1.6s var(--ease);
  transition-delay: 0.2s;
}
.wmap.in .map {
  width: calc(100% / var(--cw)); height: calc(100% / var(--ch));
  left: calc(-100% * var(--cx) / var(--cw)); top: calc(-100% * var(--cy) / var(--ch));
}
.wmap .dots { position: absolute; inset: 0; background: var(--dots); -webkit-mask: url(world-dots.svg) center / 100% 100% no-repeat; mask: url(world-dots.svg) center / 100% 100% no-repeat; }
/* The dots take the theme's colour: the map is a mask, not a picture. */
.wlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wlines line { stroke: var(--primary); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0.55; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.2s var(--ease); transition-delay: calc(var(--i) * 0.08s + 1.5s); }
.in .wlines line { stroke-dashoffset: 0; }
.wpin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); transform: scale(0); transition: transform 0.5s var(--ease); transition-delay: calc(var(--i) * 0.08s + 0.9s); }
.in .wpin { transform: none; }
.wpin::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: ping 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.45; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.wtag {
  position: absolute; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--card); border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 700; font-size: 14px;
  box-shadow: 0 0 0 1px var(--nav-edge), var(--nav-shadow); opacity: 0; transition: opacity 0.5s, translate 0.6s var(--ease); translate: 0 6px;
  transition-delay: calc(var(--i) * 0.08s + 1.7s);
}
.in .wtag { opacity: 1; translate: 0 0; }
.wtag img { width: 26px; height: 26px; }
.wtag.l { transform: translate(-100%, -50%); }
.wtag.r { margin-left: 4px; }
.wlist { display: none; }
.country { display: flex; align-items: center; gap: 10px; background: var(--fill); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 700; font-size: 15px; }
.country img { width: 30px; height: 30px; }

/* ---- price ---- */
.seg { align-self: flex-start; max-width: 100%; position: relative; display: inline-flex; background: var(--fill); border-radius: 16px; padding: 4px; gap: 0; margin-top: 22px; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 12px; background: var(--card); box-shadow: 0 2px 8px rgba(20, 26, 46, 0.08); transition: transform 0.35s var(--ease), width 0.35s var(--ease); }
.seg button { position: relative; border: 0; background: none; height: 40px; padding: 0 16px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px; color: var(--text-2); cursor: pointer; transition: color 0.2s; }
.seg button[aria-pressed='true'] { color: var(--text); font-weight: 700; }
.price { position: relative; display: flex; align-items: baseline; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.price b { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.price b.roll { animation: roll 0.45s var(--ease); }
@keyframes roll { from { opacity: 0; transform: translateY(40%); filter: blur(4px); } }
.price span { color: var(--text-2); font-weight: 600; }
.price em { font-style: normal; }
.feats { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; position: relative; }
.feats li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.feats svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--card); color: var(--primary); flex: none; }
.free { display: flex; flex-direction: column; }
.free .btn { margin-top: auto; align-self: flex-start; }
.free > p { margin: 8px 0 24px; }

/* ---- download: the app's dark card; each system tints it ---- */
.download {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  background: var(--inverse); color: #fff; border-radius: 32px; padding: 52px;
  position: relative; overflow: hidden; transition: background-color 0.7s ease;
}
.download .h2 { color: #fff; }
.download .sub { color: rgba(255, 255, 255, 0.7); }
.download [data-dl-sub] { min-height: 2lh; }
.download canvas { position: absolute; right: -80px; bottom: -90px; width: 520px; aspect-ratio: 334 / 270; opacity: 0.55; pointer-events: none; }
.download[data-platform='android'] { background-color: #102a36; }
.download[data-platform='windows'] { background-color: #16224a; }
.download[data-platform='mac'], .download[data-platform='ios'] { background-color: #1d2030; }
.download[data-platform='linux'] { background-color: #262418; }
.release { position: relative; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; padding: 24px; backdrop-filter: blur(6px); }
.release .ver { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.release .meta { color: rgba(255, 255, 255, 0.65); font-weight: 600; font-size: 15px; margin: 2px 0 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release .btn.primary { width: 100%; background: #fff; color: #141a2e; box-shadow: none; }
.release .btn.primary::after { background: linear-gradient(100deg, transparent 30%, rgba(71, 70, 241, 0.14) 50%, transparent 70%); }
.release .btn.primary.off { background: rgba(255, 255, 255, 0.1); color: #c9cfe3; cursor: default; pointer-events: none; }
.release .btn.primary.off svg { display: none; }
.platforms { position: relative; display: inline-flex; margin-bottom: 18px; background: rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 4px; max-width: 100%; }
.platforms .thumb {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: 0; border-radius: 12px; background: #fff;
  transition: transform 0.38s var(--ease), width 0.38s var(--ease);
}
.platforms button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px; border-radius: 12px; cursor: pointer; transition: color 0.3s; white-space: nowrap;
}
.platforms button svg { width: 18px; height: 18px; }
.platforms button[aria-pressed='true'] { color: #141a2e; }
.swap, .fadeable { transition: opacity 0.16s ease, transform 0.16s ease; }
.swap.fade, .fadeable.fade { opacity: 0; transform: translateY(4px); }
.release .alt { margin-top: 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.6); text-align: center; white-space: nowrap; }
.release .alt a { color: #c9c7ff; }

/* ---- footer ---- */
footer { padding: 56px 0 64px; color: var(--text-2); font-size: 15px; font-weight: 600; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
footer .cols { display: flex; gap: 48px; flex-wrap: wrap; margin-left: auto; }
footer h5 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--text); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: var(--text-2); transition: color 0.2s; }
footer a:hover { color: var(--text); }

/* ---- legal pages and the sign-in page ---- */
.doc { background: var(--card); border-radius: 28px; padding: 48px clamp(24px, 6vw, 64px); margin: 16px auto 64px; max-width: 880px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; hyphens: auto; overflow-wrap: break-word; }
.doc .updated { color: var(--text-2); font-weight: 600; margin: 0 0 28px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text); opacity: 0.88; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.doc td, .doc th { border-bottom: 1px solid var(--divider); padding: 10px 8px; text-align: left; vertical-align: top; }
.doc th { font-size: 13px; font-weight: 700; color: var(--text-2); }
.docnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.docnav a { padding: 8px 14px; border-radius: 12px; background: var(--fill); font-weight: 600; font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.docnav a:hover { color: var(--text); }
.docnav a[aria-current='page'] { background: var(--accent-card); color: var(--primary); font-weight: 700; }

/* ---- reveal on scroll; children of [data-stagger] follow one another ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 0.07s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero h1 .w, .fade-up, .chat > *, .devs span, .wtag, .wpin { opacity: 1 !important; transform: none !important; filter: none !important; translate: none !important; }
  .wlines line { stroke-dashoffset: 0; }
  .meter i { width: 100%; }
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .pill { display: none; }
  .nav .btn { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero { padding-top: 8px; }
  .stage { order: -1; }
  .stage canvas { max-width: 340px; transform: translate(-4.3%, 2%); }
  .box.s7, .box.s5, .box.s6, .box.s4, .box.s8 { grid-column: 1 / -1; }
  .download { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 28px; }
  .download canvas { width: 380px; right: -110px; bottom: -120px; }
  .download [data-dl-sub] { min-height: 3lh; }
  .platforms button span { display: none; }
  .say { padding: 64px 0 56px; }
}
@media (max-width: 760px) {
  .wtag, .wlines { display: none; }
  .wmap { --cx: 0.22; --cy: 0; --cw: 0.4; --ch: 0.45; }
  .wpin { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
  .wlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .feats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .doc thead { display: none; }
  .doc tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--divider); }
  .doc td { display: block; border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 700; }
  .doc td:nth-child(3) { color: var(--text-2); font-size: 14px; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .box { padding: 22px 18px; border-radius: 24px; }
  .flowcard canvas.sil { width: 250px; right: -80px; top: -50px; }
  .flowcard h3 { max-width: calc(100% - 90px); }
  .cta .btn { width: 100%; }
  .doc { border-radius: 24px; padding: 30px 20px; }
  .price b { font-size: 44px; }
}
[data-slots] > p { margin-bottom: 22px; }
/* Buttons in a card keep their own width (cards are flex columns). */
.box > .btn { align-self: flex-start; }
