/* AutoTask's website: the app's own look (near-black glass, blue → violet, macro colours). */

@font-face { font-family: "Jakarta"; src: url("fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "ArchivoX"; src: url("fonts/archivo-expanded-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "JBMono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #050508;
  --text: #f4f4fa;
  --soft: #b9b9ce;
  --muted: #8a8aa3;
  --blue: #3d7bff;
  --violet: #7c5cff;
  --lilac: #b9a4ff;
  --sky: #8db0ff;
  --glass: rgba(21, 20, 29, 0.72);
  --glass-strong: rgba(21, 20, 29, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --brand: linear-gradient(90deg, var(--blue), var(--lilac));
  --cta: linear-gradient(90deg, var(--blue), var(--violet));
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --display: "ArchivoX", "Arial Black", system-ui, sans-serif;
  --body: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JBMono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(124, 92, 255, 0.45); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }

/* the app's background: near-black and three slow blobs */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60vmax 60vmax at 18% -8%, rgba(58, 42, 138, 0.55), transparent 60%),
  radial-gradient(48vmax 48vmax at 92% 30%, rgba(28, 42, 120, 0.5), transparent 62%),
  radial-gradient(55vmax 55vmax at 10% 92%, rgba(42, 26, 102, 0.45), transparent 60%),
  var(--bg); }

.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); background: rgba(5, 5, 8, 0.62); border-bottom: 1px solid var(--line-soft); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 22px rgba(124, 92, 255, 0.45); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.top .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 420px) { .top .btn .long { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 800 16px/1 var(--body); text-decoration: none; color: #fff; border: 0; cursor: pointer; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-cta { background: var(--cta); box-shadow: 0 10px 34px rgba(124, 92, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn-cta:hover { color: #fff; filter: brightness(1.08); }
.btn-soon { background: rgba(124, 92, 255, 0.16); color: var(--lilac); box-shadow: inset 0 0 0 1px rgba(185, 164, 255, 0.4); cursor: default; }
.btn-soon:hover { color: var(--lilac); }
.btn-glass { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-glass:hover { color: var(--text); background: rgba(40, 38, 56, 0.8); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- type ---------- */
.eyebrow { font: 500 13px/1.2 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--lilac); margin: 0 0 16px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
/* "AUTOMATIQUE." is 10.3 em wide in this font: the title follows the width it has, so no word breaks */
h1 { font: 900 clamp(26px, 8.6vw, 64px)/1.04 var(--display); text-transform: uppercase; }
@media (min-width: 901px) { .hero h1 { font-size: clamp(40px, 4.6vw, 58px); } }
h2 { font: 900 clamp(28px, 4.2vw, 46px)/1.08 var(--display); }
h3 { font: 800 21px/1.25 var(--body); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--soft); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the phone: a real screen of the app in a simple frame, slightly turned */
.stage { position: relative; display: flex; justify-content: center; padding: 28px 0; }
.phone { position: relative; width: min(300px, 72vw); padding: 11px; border-radius: 48px; background: linear-gradient(135deg, #2c2c3a, #12121a); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 80px rgba(124, 92, 255, 0.25); }
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; }
@media (min-width: 901px) { .stage .phone { transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); } }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; background: var(--glass-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.float b { display: block; font-weight: 800; font-size: 15px; line-height: 1.2; }
.float small { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c2, var(--lilac)); }
.float .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #10101a; flex: none; }
.float .dot svg { width: 20px; height: 20px; }
.f1 { top: 9%; left: max(0px, calc(50% - 250px)); --c1: #ffb020; --c2: #ffde7a; }
.f2 { top: 42%; right: max(0px, calc(50% - 250px)); --c1: #3d7bff; --c2: #b9a4ff; }
.f3 { bottom: 10%; left: max(0px, calc(50% - 235px)); --c1: #1fd68a; --c2: #8cf7c2; }
.f1 { top: 20%; }
/* The badges sit beside the phone, never over its screen: further out on wide screens, only one on phones. */
@media (min-width: 861px) { .f1 { left: max(0px, calc(50% - 300px)); } .f2 { right: max(0px, calc(50% - 300px)); } .f3 { left: max(0px, calc(50% - 290px)); } }
@media (max-width: 860px) { .f2, .f3 { display: none; } }
@media (max-width: 520px) { .float { display: none; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { margin: 16px 0 0; }
.split { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip { grid-template-columns: 340px 1fr; }
.split.flip > .shot { order: -1; }
.split > *, .grid > *, .hero .wrap > * { min-width: 0; } /* grid items may shrink below their content */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > .shot { order: 0; } }
.shot { justify-self: center; }
.shot .phone { width: min(300px, 76vw); }

/* glass cards, one frame each */
.card { position: relative; border-radius: var(--radius); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c1, var(--violet)) 22%, transparent), transparent 60%); pointer-events: none; }
.card > * { position: relative; }
.card p { margin: 10px 0 0; color: var(--soft); }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .g3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2 { grid-template-columns: 1fr; } }

.tag { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--c2, var(--lilac)); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-weight: 800; color: #10101a; background: linear-gradient(135deg, var(--c1), var(--c2)); margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }
.steps { counter-reset: s; }

/* macro examples, in the macros' colours */
.ex { display: flex; gap: 16px; align-items: flex-start; }
.ex .ico { width: 48px; height: 48px; border-radius: 15px; flex: none; display: grid; place-items: center; color: #10101a; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 26px color-mix(in srgb, var(--c1) 40%, transparent); }
.ex .ico svg { width: 24px; height: 24px; }
.ex h3 { font-size: 19px; }
.ex p { margin-top: 6px; }
.when { color: var(--text); font-weight: 700; }
.c-gold { --c1: #ffb020; --c2: #ffde7a; }
.c-blue { --c1: #3d7bff; --c2: #8db0ff; }
.c-mint { --c1: #1fd68a; --c2: #8cf7c2; }
.c-pink { --c1: #ff3d8f; --c2: #ff9acb; }
.c-orange { --c1: #ff6b2c; --c2: #ffa866; }
.c-cyan { --c1: #00c8f0; --c2: #6cf2ff; }
.c-violet { --c1: #7c5cff; --c2: #b9a4ff; }
.c-lime { --c1: #a3e635; --c2: #e6ff7a; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--soft); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-soft); }

/* Nova */
.bubble { position: relative; margin: 26px 0 22px; padding: 18px 22px; border-radius: 24px 24px 24px 8px; background: linear-gradient(135deg, rgba(61, 123, 255, 0.22), rgba(124, 92, 255, 0.22)); box-shadow: inset 0 0 0 1px rgba(185, 164, 255, 0.35); font-weight: 700; font-size: 18px; max-width: 30em; }
.bubble small { display: block; margin-bottom: 6px; font: 500 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--lilac); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); }
.ticks li svg { width: 22px; height: 22px; flex: none; color: #8cf7c2; margin-top: 2px; }
.ticks li b { color: var(--text); }

/* prices */
.price { display: flex; flex-direction: column; }
.price .amount { font: 900 clamp(30px, 4vw, 40px)/1.1 var(--display); margin: 14px 0 4px; }
.price .amount .per { font-size: 0.45em; font-weight: 700; color: var(--soft); margin-left: 4px; }
.price ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; color: var(--soft); }
.price li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--c2, var(--lilac)); }
.price.best { box-shadow: inset 0 0 0 1.5px rgba(185, 164, 255, 0.55), 0 20px 60px rgba(124, 92, 255, 0.25); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--lilac); border-bottom: 2.5px solid var(--lilac); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 24px 22px; color: var(--soft); }
.faq details > div p { margin: 0 0 10px; }

/* the closing call to action */
.end { text-align: center; }
.end .card { padding: clamp(32px, 6vw, 64px) var(--gutter); }
.end img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 0 50px rgba(124, 92, 255, 0.55); }
.end h2 { margin-bottom: 14px; }
.end .actions { justify-content: center; margin: 28px 0 0; }

/* ---------- long pages (privacy, account deletion, legal) ---------- */
.doc { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(30px, 5vw, 52px); text-transform: none; margin-bottom: 14px; }
.doc h2 { font: 800 clamp(22px, 2.6vw, 28px)/1.25 var(--body); margin: 44px 0 12px; scroll-margin-top: 90px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc .updated { font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.toc { margin: 28px 0 8px; padding: 20px 24px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.toc p { margin: 0 0 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--lilac); }
.toc ol { margin: 0; columns: 2 260px; column-gap: 28px; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.box { margin: 22px 0; padding: 20px 24px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box.ok { box-shadow: inset 0 0 0 1px rgba(140, 247, 194, 0.35); }
mark.todo { background: rgba(255, 176, 32, 0.2); color: #ffde7a; padding: 0 6px; border-radius: 6px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
footer h2 { font: 500 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--lilac); margin: 6px 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer .brand { margin-bottom: 12px; }
footer .legal { grid-column: 1 / -1; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .about { grid-column: 1 / -1; } }

/* ---------- gentle entrances (only with JavaScript, never with reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .faq summary::after { transition: none; }
}

/* ---------- community ---------- */
.community .lead { margin-bottom: 28px; }
.cm-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 20px; }
.cm-tools input[type="search"] { flex: 1 1 260px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 500 16px var(--body); }
.cm-check { display: inline-flex; gap: 8px; align-items: center; color: var(--soft); font-size: 15px; }
.cm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.cm-item h3 { margin: 0 0 8px; font-size: 19px; }
.cm-item p { margin: 0 0 10px; }
.cm-flow { line-height: 2; }
.cm-k { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lilac); margin-right: 4px; }
.cm-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(124, 92, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(185, 164, 255, 0.3); font-size: 14px; line-height: 1.6; }
.cm-chip.warn { background: rgba(255, 176, 32, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 222, 122, 0.45); }
.cm-small { font-size: 14px; color: var(--soft); }
.cm-small.warn { color: #ffde7a; }
.cm-meta { font-size: 14px; color: var(--soft); }
.cm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-report { background: none; border: 0; color: var(--soft); text-decoration: underline; cursor: pointer; font: 500 14px var(--body); padding: 8px; }
.cm-note { color: var(--soft); }
.cm-more { text-align: center; margin: 20px 0 0; }
#cm-form label { display: block; margin: 0 0 14px; font-weight: 700; }
#cm-form input, #cm-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; border: 0; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 500 16px var(--body); }
#cm-form textarea[name="code"] { font-family: var(--mono); font-size: 13px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; }
.langs span { color: var(--text); font-weight: 800; }
[hidden] { display: none !important; }

/* ---------- language menu (header) ---------- */
.lang-menu { position: relative; margin-left: 8px; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 800 13px/1 var(--body); cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; min-width: 190px; padding: 8px; border-radius: 18px; background: #14131c; box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.6); }
.lang-menu nav a, .lang-menu nav span { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 15px; }
.lang-menu nav a:hover { background: rgba(124, 92, 255, 0.18); }
.lang-menu nav span { color: var(--lilac); font-weight: 800; }
@media (max-width: 860px) { .lang-menu { margin-left: auto; } .top .lang-menu + .btn { margin-left: 8px; } }
@media (max-width: 420px) { .lang-menu summary span { display: none; } }
#cm-signed-out .btn { display: flex; width: fit-content; margin-top: 18px; }
.price li strong { color: var(--text); }
.cm-shared { margin: 0 0 24px; box-shadow: inset 0 0 0 1px rgba(185, 164, 255, 0.6), 0 20px 60px rgba(124, 92, 255, 0.25); }
.price-one { max-width: 560px; }
.end .tester { color: var(--soft); max-width: 520px; margin: 14px auto 0; }
.num svg { width: 24px; height: 24px; }

/* ---------- motion (only for visitors who have not asked to reduce it) ---------- */
.reveal { --dl: calc(var(--i, 0) * 80ms); }
.js .reveal { transition-delay: var(--dl); }
.js .card.reveal { transition: opacity 0.7s ease var(--dl), transform 0.7s ease var(--dl), translate 0.35s ease, box-shadow 0.35s ease; }
.count { font-variant-numeric: tabular-nums; }
.typed { white-space: pre-wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 164, 255, 0.16), transparent 62%); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* the night sky slowly drifts */
  .sky::before, .sky::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: translate; }
  .sky::before { top: -20vmax; left: -15vmax; background: radial-gradient(circle, rgba(124, 92, 255, 0.2), transparent 62%); animation: drift-a 28s ease-in-out infinite alternate; }
  .sky::after { bottom: -25vmax; right: -20vmax; background: radial-gradient(circle, rgba(61, 123, 255, 0.18), transparent 62%); animation: drift-b 34s ease-in-out infinite alternate; }
  @keyframes drift-a { to { translate: 22vw 18vh; } }
  @keyframes drift-b { to { translate: -24vw -16vh; } }

  /* hero: the words arrive one after the other, the phone floats, the cards pop in and bob */
  .js .hero .wrap > div:first-child > * { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .js .hero .wrap > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero .wrap > div:first-child > :nth-child(3) { animation-delay: 0.18s; }
  .js .hero .wrap > div:first-child > :nth-child(4) { animation-delay: 0.28s; }
  .js .hero .wrap > div:first-child > :nth-child(5) { animation-delay: 0.38s; }
  .js .hero h1 { animation-name: rise-keep; }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } }
  @keyframes rise-keep { from { translate: 0 22px; } }
  .stage .phone { animation: bob 7s ease-in-out infinite; }
  .js .stage .phone { animation: phone-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both, bob 7s ease-in-out 1s infinite; }
  .float { animation: pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) var(--d, 0.5s) both, bob 6s ease-in-out calc(var(--d, 0.5s) + 0.7s) infinite; }
  .f1 { --d: 0.55s; } .f2 { --d: 0.8s; } .f3 { --d: 1.05s; }
  @keyframes phone-in { from { opacity: 0; translate: 0 40px; } }
  @keyframes pop { from { opacity: 0; scale: 0.8; } }
  @keyframes bob { 50% { translate: 0 -10px; } }
  @media (min-width: 901px) and (hover: hover) {
    .stage .phone { transform: perspective(1400px) rotateY(calc(-14deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))); transition: transform 0.5s ease-out; }
  }

  /* the gradient words shimmer */
  .grad { background-image: linear-gradient(90deg, var(--blue), var(--lilac), var(--violet), var(--blue)); background-size: 300% 100%; animation: sheen 9s linear infinite; }
  @keyframes sheen { to { background-position: 300% 0; } }

  /* the main button catches the light */
  .btn-cta { position: relative; overflow: hidden; isolation: isolate; }
  .btn-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); translate: -120% 0; animation: shine 5s ease-in-out 2s infinite; }
  @keyframes shine { 35%, 100% { translate: 120% 0; } }
  .btn { transition: scale 0.2s ease, filter 0.2s ease, background 0.2s ease; }
  .btn:not(.btn-soon):active { scale: 0.97; }

  /* cards lift and light up under the pointer */
  @media (hover: hover) {
    .card:not(.price):hover, .faq details:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(185, 164, 255, 0.35), 0 22px 50px rgba(0, 0, 0, 0.4); }
    .card:hover::after { opacity: 1; }
    .ex:hover .ico, .card:hover .num { animation: wiggle 0.6s ease; }
    .faq details { transition: translate 0.35s ease, box-shadow 0.35s ease; }
  }
  @keyframes wiggle { 30% { rotate: -10deg; scale: 1.08; } 60% { rotate: 7deg; } }

  /* the chips of the examples arrive one by one */
  .js .chips.reveal li { opacity: 0; translate: 0 10px; transition: opacity 0.5s ease, translate 0.5s ease; transition-delay: calc(var(--i, 0) * 45ms + 0.15s); }
  .js .chips.reveal.in li { opacity: 1; translate: none; }

  /* the message being typed */
  .typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--lilac); animation: caret 1s steps(1) infinite; }
  .typed.done::after { animation: caret 1s steps(1) 3 forwards; }
  @keyframes caret { 50% { opacity: 0; } 100% { opacity: 0; } }

  /* the app icon breathes */
  .end img { animation: glow 4.5s ease-in-out infinite; }
  @keyframes glow { 50% { box-shadow: 0 0 80px rgba(124, 92, 255, 0.85); scale: 1.04; } }

  /* the questions open smoothly */
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* how far down the page you are, under the header */
  @supports (animation-timeline: scroll()) {
    .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cta); transform-origin: 0 50%; animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
