/* Bayni promo. Mature, editorial: the app's own Paper theme (paper / ink, one Oxblood accent; Wine in dark),
   Frank Ruhl Libre headings + Assistant text, hairlines instead of stickers, calm motion. */
:root {
  --bg: #f7f3ec; --bg2: #f0e9dd; --card: #fffdf9; --ink: #2a2622; --ink2: #6e645a; --line: #e4dccf;
  --acc: #6b2131; --acc-ink: #fff; --acc-text: #6b2131; --mark: #6b2131; --acc-soft: #6b21310f;
  --focus: #6b2131; --ok: #17683f;
  --night: #1f1c19; --night2: #262320; --night-ink: #ece4d8; --night-ink2: #a39887; --night-line: #3a342e; --wine: #bd4f62; --wine-text: #d9798a;
  --shadow: 0 24px 60px -30px rgba(45, 25, 15, .45);
  --soft: 0 1px 2px rgba(45, 25, 15, .05), 0 10px 30px -20px rgba(45, 25, 15, .25);
  --frame: #1c1a17;
  --r: 16px;
  --head: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font: "Assistant", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1c19; --bg2: #24211d; --card: #2a2622; --ink: #ece4d8; --ink2: #a39887; --line: #38322c;
    --acc: #ece4d8; --acc-ink: #1f1c19; --acc-text: #d9798a; --mark: #bd4f62; --acc-soft: #bd4f6214; --focus: #d9798a;
    --night: #151311; --night2: #1d1a17;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8); --soft: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -20px rgba(0, 0, 0, .6);
    --frame: #0d0c0b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1c19; --bg2: #24211d; --card: #2a2622; --ink: #ece4d8; --ink2: #a39887; --line: #38322c;
  --acc: #ece4d8; --acc-ink: #1f1c19; --acc-text: #d9798a; --mark: #bd4f62; --acc-soft: #bd4f6214; --focus: #d9798a;
  --night: #151311; --night2: #1d1a17;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8); --soft: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -20px rgba(0, 0, 0, .6);
  --frame: #0d0c0b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
[lang="en"] body, body:lang(en) { font-size: 1.05rem; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
[dir="ltr"] .ltr-flip { transform: scaleX(-1); }
.en-word, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; display: inline-block; }

h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
em.ac { font-style: normal; color: var(--acc-text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px;
  padding: .65em 1.4em; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s, color .2s, transform .2s var(--ease);
}
.btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--acc) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* ---------- logo ---------- */
.logo { display: block; height: 30px; width: auto; color: var(--ink); }
.logo .tg { fill: var(--mark); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding-block: 8px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; color: var(--ink2); }
.nav a:hover { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; font: inherit; font-weight: 600; font-size: .9rem;
}
.icon-btn:hover { border-color: var(--ink2); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-ic-dark { display: none; }
:root[data-theme="dark"] .theme-ic-dark { display: block; }
:root[data-theme="dark"] .theme-ic-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-ic-dark { display: block; }
  :root:not([data-theme]) .theme-ic-light { display: none; }
}
.top .btn { min-height: 44px; padding: .4em 1.1em; font-size: 1rem; }
@media (max-width: 920px) { .nav { display: none; } .tools { margin-inline-start: auto; } }
@media (max-width: 420px) { .top .btn-label-long { display: none; } .logo { height: 26px; } .tools { gap: 4px; } }

/* ---------- shared section type ---------- */
section { scroll-margin-top: 74px; }
.sec { padding-block: clamp(72px, 11vw, 136px); position: relative; }
.sec.alt { background: var(--bg2); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; color: var(--acc-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.center .eyebrow { justify-content: center; }
.eyebrow .num { font-family: var(--mono); font-size: .8rem; letter-spacing: 0; opacity: .8; }
h2 { margin: 0 0 18px; font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.12; }
.sub { margin: 0; font-size: clamp(1.05rem, 1.9vw, 1.2rem); color: var(--ink2); text-wrap: pretty; max-width: 40em; }
.center .sub { margin-inline: auto; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -10%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--acc-soft), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.hero-copy > * { min-width: 0; }
.kicker { margin: 0 0 22px; font-weight: 600; font-size: .95rem; color: var(--ink2); letter-spacing: .01em; }
.kicker .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); margin-inline-end: 10px; vertical-align: .12em; }
.hero h1 { margin: 0 0 24px; font-weight: 500; font-size: clamp(3rem, 11vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em; }
.hero h1 .l2 { display: block; color: var(--acc-text); }
.lede { font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.65; color: var(--ink2); max-width: 34em; margin: 0 0 28px; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink2); font-size: .95rem; }
.fine li { display: inline-flex; align-items: center; gap: 7px; }
.fine svg { width: 16px; height: 16px; color: var(--acc-text); flex: none; }

/* the Workshop mention in the hero */
.hero-ws {
  display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 0 0 30px; padding: 12px 18px 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--card) 70%, transparent);
  text-decoration: none; color: var(--ink); transition: border-color .2s;
}
[dir="rtl"] .hero-ws { padding: 12px 14px 12px 18px; }
.hero-ws:hover { border-color: var(--acc-text); }
.hero-ws .new { flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: 4px 11px; border-radius: 999px; border: 1px solid currentColor; color: var(--acc-text); }
.hero-ws span.t { font-size: .98rem; line-height: 1.45; }
.hero-ws b { font-weight: 700; }
.hero-ws svg { flex: none; width: 18px; height: 18px; color: var(--acc-text); }

/* two phones: chat + workshop */
.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 28px); min-width: 0; }
.hero-media figure, .ws-phones figure { flex: 1 1 0; max-width: 250px; min-width: 0; }
.hero-media figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.hero-media figcaption { font-size: .88rem; color: var(--ink2); font-weight: 600; letter-spacing: .02em; }
.hero-media .phone, .ws-phones .phone { width: 100%; }
.hero-media figure:nth-child(2) { transform: translateY(-36px); }
@media (max-width: 699px) { .hero-media figure, .ws-phones figure { max-width: 200px; } .hero-media figure:nth-child(2) { transform: translateY(-22px); } }

/* phone mockup: recordings are 1124x2436 (= 390x845), shown whole */
.phone {
  position: relative; width: min(232px, 70%); aspect-ratio: 390 / 845; border-radius: 30px;
  border: 6px solid var(--frame); background: var(--frame); overflow: hidden; box-shadow: var(--shadow);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #f7f3ec; cursor: pointer; }
.phone.dark video, .phone.dark img { background: #1f1c19; }

/* pause / play toggle for autoplaying loops (WCAG 2.2.2) */
.vid-toggle {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; background: rgba(20, 17, 14, .72); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.vid-toggle:hover { background: rgba(20, 17, 14, .9); }
.vid-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 4px rgba(20, 17, 14, .85); }
.vid-toggle svg { width: 18px; height: 18px; }
.vid-toggle .ic-play, .vid-toggle[aria-pressed="true"] .ic-pause { display: none; }
.vid-toggle[aria-pressed="true"] .ic-play { display: block; }
.phone .vid-toggle { inset-inline-end: 8px; bottom: 8px; opacity: 0; transition: opacity .15s; }
.phone:hover .vid-toggle, .phone:focus-within .vid-toggle, .phone .vid-toggle:focus-visible, .phone .vid-toggle[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .phone .vid-toggle { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .phone .vid-toggle { transition: none; opacity: 1; } }

/* ---------- model line ---------- */
.strip { border-block: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; padding-block: 20px; }
.strip p { margin: 0; color: var(--ink2); font-size: .95rem; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.strip li { direction: ltr; font-family: var(--head); font-size: 1.25rem; font-weight: 500; }

/* ---------- feature grid ---------- */
.feats { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat {
  display: grid; grid-template-rows: auto 1fr; gap: 20px; padding: 26px 24px 0;
  border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; min-width: 0;
}
.feat h3 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.25; }
.feat p { margin: 0; color: var(--ink2); font-size: 1rem; }
.tag { display: block; margin-bottom: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--acc-text); }
/* whole phone screen stays visible: the result is at the bottom of each recording */
.feat .stage { display: grid; place-items: center; margin-inline: -24px; padding-block: 12px 28px; background: linear-gradient(transparent 32%, var(--bg2) 32%); }
.feat .stage .phone { width: min(220px, 66%); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .5); }

/* ---------- split sections ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } .split.rev > :first-child { order: 2; } }
.split .media { display: grid; place-items: center; min-width: 0; }
.split .media .phone { width: min(280px, 72%); }
.models { display: grid; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.models li {
  display: grid; grid-template-columns: 6em minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
}
.models .m-name { direction: ltr; font-family: var(--head); font-weight: 500; font-size: 1.3rem; text-align: start; }
[dir="rtl"] .models .m-name { text-align: end; }
.models .m-what { color: var(--ink2); }
.models .m-plan { font-size: .82rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; color: var(--ink2); }
.m-plan.free { color: var(--acc-text); }
.note { margin: 20px 0 0; color: var(--ink2); font-size: .98rem; }
.checks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks svg { width: 18px; height: 18px; color: var(--acc-text); margin-top: 5px; }

/* ---------- the Workshop (night band) ---------- */
.ws {
  background: var(--night); color: var(--night-ink);
  --ink: var(--night-ink); --ink2: var(--night-ink2); --line: var(--night-line); --card: var(--night2); --bg2: #191715;
  --acc-text: var(--wine-text); --mark: var(--wine); --focus: var(--wine-text); --acc: var(--night-ink); --acc-ink: var(--night);
  --frame: #0b0a09;
}
.ws .sub { color: var(--night-ink2); }
.ws-top { display: grid; gap: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .ws-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ws-top .sec-head { margin-bottom: 0; }
.ws-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 28px); }
.ws-phones figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.ws-phones figcaption { font-size: .88rem; color: var(--night-ink2); font-weight: 600; }
.ws-phones .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -28px #000; }
.ws-phones figure:nth-child(2) { transform: translateY(-36px); }
@media (max-width: 699px) { .ws-phones figure:nth-child(2) { transform: translateY(-22px); } }

.modes { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 820px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mode { padding: 28px 26px; border-radius: var(--r); border: 1px solid var(--night-line); background: var(--night2); display: flex; flex-direction: column; gap: 12px; }
.mode h3 { margin: 0; font-size: 1.6rem; }
.mode p { margin: 0; color: var(--night-ink2); }
.mode ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mode li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--night-ink2); }
.mode li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wine); margin-top: .62em; justify-self: center; }
.mode .btn { margin-top: auto; align-self: flex-start; }
.mode .fineprint { font-size: .88rem; color: var(--night-ink2); opacity: .9; }
.mode .btn + .fineprint { margin-top: -2px; }

.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--night-line); }
@media (min-width: 680px) { .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1040px) { .ws-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ws-grid div { padding: 26px 0; border-bottom: 1px solid var(--night-line); }
.ws-grid .num { display: block; font-family: var(--mono); font-size: .8rem; color: var(--wine-text); margin-bottom: 10px; }
.ws-grid h3 { margin: 0 0 6px; font-size: 1.3rem; }
.ws-grid p { margin: 0; color: var(--night-ink2); font-size: 1rem; }
.ws-grid code, .live code { font-family: var(--mono); font-size: .86em; direction: ltr; unicode-bidi: isolate; }

/* the live line, set as the app shows it */
.live { display: grid; gap: 8px; margin-top: 14px; }
.live span { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 8px 14px; border-radius: 10px; background: #2c2824; font-size: .92rem; color: var(--night-ink); }
.live span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); flex: none; }

.ws-allow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(40px, 6vw, 64px); padding: 26px 28px; border-radius: var(--r); border: 1px solid var(--night-line); }
.ws-allow h3 { margin: 0 0 4px; font-size: 1.4rem; }
.ws-allow p { margin: 0; color: var(--night-ink2); max-width: 44em; }
.ws .btn-ghost { color: var(--night-ink); border-color: #5a5149; }
.ws .btn-ghost:hover { border-color: var(--night-ink); }

/* ---------- devices ---------- */
.devices { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
.dev-desk { position: relative; width: min(100%, 940px); margin-inline: auto; border-radius: 12px 12px 4px 4px; padding: 9px 9px 0; background: #2a2622; box-shadow: var(--shadow); }
.dev-desk::after { content: ""; display: block; height: 12px; margin-inline: -5%; background: linear-gradient(#d3cbbf, #aca395); border-radius: 0 0 18px 18px; }
.dev-img-dark { display: none; }
:root[data-theme="dark"] .dev-img-dark { display: block; }
:root[data-theme="dark"] .dev-img-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .dev-img-dark { display: block; }
  :root:not([data-theme]) .dev-img-light { display: none; }
}
.dev-desk img { border-radius: 5px 5px 0 0; aspect-ratio: 1440 / 900; object-fit: cover; width: 100%; height: auto; }
.dev-tab, .dev-phone { position: absolute; bottom: 0; border-radius: 20px; padding: 6px; background: #1c1a17; box-shadow: var(--shadow); }
.dev-tab { inset-inline-start: 0; width: 26%; }
.dev-tab img { border-radius: 15px; aspect-ratio: 820 / 1180; object-fit: cover; object-position: top; }
.dev-phone { inset-inline-end: 2%; width: 15%; border-radius: 22px; }
.dev-phone img { border-radius: 17px; aspect-ratio: 390 / 845; object-fit: cover; object-position: top; }
@media (max-width: 699px) { .dev-tab { width: 34%; inset-inline-start: -2%; } .dev-phone { width: 24%; inset-inline-end: -2%; } .devices { padding-bottom: 4%; } }
.dev-points { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .dev-points { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }
.dev-points div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.dev-points h3 { margin: 0 0 6px; font-size: 1.3rem; }
.dev-points p { margin: 0; color: var(--ink2); }
.dev-points a { color: var(--acc-text); font-weight: 600; }

/* ---------- install block ---------- */
.install { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 36px; padding: 26px 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--soft); }
.install h3 { margin: 0 0 4px; font-size: 1.5rem; }
.install p { margin: 0; color: var(--ink2); max-width: 34em; }
.install-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.install-btns .btn svg { width: 20px; height: 20px; }
.web-link { flex-basis: 100%; font-size: .95rem; color: var(--ink2); text-underline-offset: 3px; padding-block: 8px; }
.web-link:hover { color: var(--ink); }
.desktop .web-link { flex-basis: auto; }

/* ---------- plans ---------- */
.plans { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.plan.hot { border-color: var(--mark); box-shadow: 0 0 0 1px var(--mark), var(--soft); }
.plan h3 { margin: 0; font-size: 1.6rem; }
.plan .price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-family: var(--head); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.plan .price span { color: var(--ink2); }
.plan .status { font-size: .82rem; font-weight: 700; letter-spacing: .05em; }
.status.live { color: var(--ok); }
:root[data-theme="dark"] .status.live { color: #6fd6a1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.live { color: #6fd6a1; } }
.status.soon { color: var(--ink2); }
.plan ul { display: grid; gap: 9px; margin: 6px 0 0; padding: 14px 0 0; list-style: none; flex: 1; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 1rem; }
.plan li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--acc-text); }
.plan li.ws-li span { color: var(--ink); }
.plan li.ws-li b { font-weight: 700; color: var(--acc-text); }
.plan .btn { width: 100%; }
.plan.soon { background: transparent; border-style: dashed; }
.plan.soon h3, .plan.soon .price b { color: var(--ink2); }
.plan .soon-line { margin: 0; padding-block: .7em; text-align: center; color: var(--ink2); font-weight: 600; }
.plans-note { margin: 24px 0 0; text-align: center; color: var(--ink2); font-size: .95rem; }

/* ---------- WhatsApp invitation ---------- */
.btn-wa { background: #1f7a45; color: #fff; }
.btn-wa:hover { background: #1a6a3c; }
.btn-wa svg { width: 20px; height: 20px; }
.wa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin: 32px auto 0; max-width: 980px; padding: 26px 28px; border-radius: var(--r); background: var(--card); border: 1px solid color-mix(in srgb, #1f7a45 40%, var(--line)); }
.wa h3 { margin: 0 0 6px; font-size: clamp(1.4rem, 3.2vw, 1.8rem); line-height: 1.25; }
.wa h3 em { font-style: normal; color: #1f7a45; }
:root[data-theme="dark"] .wa h3 em { color: #6fd6a1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa h3 em { color: #6fd6a1; } }
.wa p { margin: 0; color: var(--ink2); max-width: 36em; }
.wa .btn { flex: none; }
@media (max-width: 560px) { .wa .btn, .install-btns, .install-btns .btn { width: 100%; } }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 2px; cursor: pointer; font-family: var(--head); font-weight: 500; font-size: 1.3rem; list-style: none; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font); font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--acc-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 2px 22px; color: var(--ink2); max-width: 42em; }
.faq a { color: var(--acc-text); }

/* ---------- final CTA ---------- */
.final { text-align: center; padding-block: clamp(80px, 12vw, 150px); border-top: 1px solid var(--line); }
.final .mark { width: 64px; margin: 0 auto 26px; color: var(--ink); }
.final .mark .tg { fill: var(--mark); }
.final h2 { font-size: clamp(2.6rem, 8vw, 5rem); }
.final .url { display: inline-block; direction: ltr; margin: 0 0 32px; font-family: var(--head); font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--acc-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.final .cta-row { justify-content: center; }
.qr-box { display: none; margin: 40px auto 0; width: fit-content; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.qr-box svg { width: 140px; height: 140px; }
.qr-box p { margin: 8px 0 0; color: #6e645a; font-size: .88rem; font-weight: 600; }
@media (min-width: 900px) and (hover: hover) { .qr-box { display: block; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 30px 40px; color: var(--ink2); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot .who { display: inline-flex; align-items: center; gap: 12px; }
.foot .logo { height: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- dialogs ---------- */
.dlg-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.dlg-close svg { width: 18px; height: 18px; }
.ios-dlg { width: min(94vw, 460px); padding: 24px 24px 26px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.ios-dlg::backdrop { background: rgba(15, 12, 10, .6); backdrop-filter: blur(3px); }
.ios-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ios-head h2 { margin: 0; font-size: 1.7rem; }
.ios-sub { margin: 8px 0 20px; color: var(--ink2); }
.ios-steps { display: grid; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.ios-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.ios-steps b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--head); font-weight: 500; color: var(--acc-text); }
.ios-steps span { padding-top: 3px; }
.ios-steps a { color: var(--acc-text); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.ios-ic { display: inline-block; width: 21px; height: 21px; vertical-align: -5px; color: #0a84ff; }
.ios-go { width: 100%; }

/* reveal on scroll (only when JS is on and motion allowed) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@keyframes rv-fallback { to { opacity: 1; transform: none; } }
.js:not(.rv-on) .rv:not(.in) { animation: rv-fallback .01s linear 2.5s forwards; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Workshop reel (composed 9:16 loop) ---------- */
.ws-film { display: grid; place-items: center; }
.reel { position: relative; width: min(340px, 82vw); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #141210;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -36px #000; }
.reel video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.reel .vid-toggle { inset-inline-end: 12px; bottom: 12px; }

/* ---------- film card (secondary video, with sound in a dialog) ---------- */
.film-card { display: grid; gap: 24px 40px; grid-template-columns: minmax(0, 1fr); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .film-card { grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); } }
.film-poster { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: pointer; background: #2a2622; box-shadow: var(--soft); }
.film-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.film-poster .fp-wide { aspect-ratio: 16 / 9; }
.film-poster .fp-tall { display: none; aspect-ratio: 9 / 16; }
@media (max-width: 699px) { .film-poster { max-width: 270px; margin-inline: auto; } .film-poster .fp-wide { display: none; } .film-poster .fp-tall { display: block; } }
.film-poster:hover img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .film-poster img, .film-poster:hover img { transition: none; transform: none; } }
.film-poster .pbtn { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(28, 26, 23, .82); color: #f7f3ec; backdrop-filter: blur(6px); }
.film-poster .pbtn svg { width: 28px; height: 28px; margin-inline-start: 3px; }
[dir="rtl"] .film-poster .pbtn svg { margin-inline: 0 3px; transform: none; }
.film-opts h3 { margin: 0 0 6px; font-size: 1.5rem; }
.film-opts p { margin: 0 0 16px; color: var(--ink2); }
.film-opts .opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; margin-bottom: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.film-opts .opt:hover { border-color: var(--ink2); }
.film-opts .opt small { color: var(--ink2); font-weight: 500; white-space: nowrap; }

/* ---------- film dialog ---------- */
.film-dlg { width: min(96vw, 1100px); max-height: 94svh; padding: 0; border: 0; border-radius: 18px; background: #141210; color: #ece4d8; overflow: hidden; --focus: #d9798a; }
.film-dlg.vert { width: min(94vw, calc(86svh * 9 / 16)); }
.film-dlg::backdrop { background: rgba(10, 8, 6, .84); backdrop-filter: blur(4px); }
.film-dlg video { width: 100%; max-height: calc(94svh - 64px); background: #000; aspect-ratio: 16 / 9; }
.film-dlg.vert video { aspect-ratio: 9 / 16; }
.dlg-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 60px; }
.dlg-bar .seg { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-end: auto; }
.dlg-bar .seg button { min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1px solid #4a423a; background: transparent; color: #ece4d8; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.dlg-bar .seg button[aria-pressed="true"] { background: #ece4d8; color: #1f1c19; }
.film-dlg .dlg-close { color: #ece4d8; border-color: #4a423a; }
