/* YT Cartell Studio — public site. The app's "Warm Board" world (GO/DESIGN.md), extended to a landing page. */

@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/fira-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/fira-500.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fira-600.woff2") format("woff2"); }

/* ---------- tokens: light «Світла» */
:root {
  color-scheme: light;
  --ground: #FFF4E6;
  --surface: #F7EBDD;
  --surface-hover: #F0E1D0;
  --card: #FFFFFF;
  --border: #E7DACB;
  --border-strong: #D9C8B4;
  --text: #2B241F;
  --text-2: #6F625A;
  --text-3: #736960;
  --action: #FF6A3D;
  --action-hover: #FF7B52;
  --action-pressed: #F9602F;
  --action-soft: #FFE3D6;
  --action-soft-hi: #FFD5C2;
  --action-text: #AF492A;
  --on-action: #2B241F;
  --focus: #FF6A3D66;
  --outline-ink: rgba(43, 36, 31, .85);
  --overlay: rgba(255, 255, 255, .92);
  --overlay-ink: #2B241F;
  --header-bg: rgba(255, 244, 230, .94);
  --sh-control: 0 1px 3px rgba(74, 46, 28, .10), 0 2px 8px rgba(74, 46, 28, .06);
  --sh-card: 0 2px 10px rgba(74, 46, 28, .06), 0 12px 28px rgba(74, 46, 28, .05);
  --sh-hover: 0 3px 10px rgba(74, 46, 28, .06), 0 16px 32px rgba(74, 46, 28, .09);
  --sh-pop: 0 2px 6px rgba(74, 46, 28, .06), 0 14px 36px rgba(74, 46, 28, .14);
  --sh-sheet: 0 2px 8px rgba(74, 46, 28, .06), 0 24px 60px rgba(74, 46, 28, .18);
  --sh-hero: 0 4px 14px rgba(74, 46, 28, .07), 0 40px 90px rgba(74, 46, 28, .20);

  --r-small: 8px;
  --r-control: 12px;
  --r-inner: 16px;
  --r-card: 22px;

  --pad: 16px;
  --gut: 24px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- tokens: dark «Вечір» (explicit choice) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #1B1714;
  --surface: #26201B;
  --surface-hover: #322A24;
  --card: #2C2520;
  --border: #3D342D;
  --border-strong: #52463D;
  --text: #F6EEE6;
  --text-2: #C2B4A6;
  --text-3: #9E9083;
  --action: #FF7A4D;
  --action-hover: #FF8B62;
  --action-pressed: #F0683A;
  --action-soft: #4A2C20;
  --action-soft-hi: #5A3527;
  --action-text: #FF8A61;
  --on-action: #1B1714;
  --focus: #FF7A4D73;
  --outline-ink: rgba(246, 238, 230, .85);
  --overlay: rgba(44, 37, 32, .92);
  --overlay-ink: #F6EEE6;
  --header-bg: rgba(27, 23, 20, .94);
  --sh-control: 0 1px 3px rgba(0, 0, 0, .26), 0 2px 8px rgba(0, 0, 0, .16);
  --sh-card: 0 2px 10px rgba(0, 0, 0, .16), 0 12px 28px rgba(0, 0, 0, .13);
  --sh-hover: 0 3px 10px rgba(0, 0, 0, .16), 0 16px 32px rgba(0, 0, 0, .23);
  --sh-pop: 0 2px 6px rgba(0, 0, 0, .16), 0 14px 36px rgba(0, 0, 0, .36);
  --sh-sheet: 0 2px 8px rgba(0, 0, 0, .16), 0 24px 60px rgba(0, 0, 0, .47);
  --sh-hero: 0 4px 14px rgba(0, 0, 0, .2), 0 40px 90px rgba(0, 0, 0, .55);
}

/* same evening palette when scripts are off and the system is dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ground: #1B1714; --surface: #26201B; --surface-hover: #322A24; --card: #2C2520;
    --border: #3D342D; --border-strong: #52463D; --text: #F6EEE6; --text-2: #C2B4A6; --text-3: #9E9083;
    --action: #FF7A4D; --action-hover: #FF8B62; --action-pressed: #F0683A; --action-soft: #4A2C20;
    --action-soft-hi: #5A3527; --action-text: #FF8A61; --on-action: #1B1714; --focus: #FF7A4D73;
    --outline-ink: rgba(246, 238, 230, .85); --overlay: rgba(44, 37, 32, .92); --overlay-ink: #F6EEE6;
    --header-bg: rgba(27, 23, 20, .94);
    --sh-control: 0 1px 3px rgba(0, 0, 0, .26), 0 2px 8px rgba(0, 0, 0, .16);
    --sh-card: 0 2px 10px rgba(0, 0, 0, .16), 0 12px 28px rgba(0, 0, 0, .13);
    --sh-hover: 0 3px 10px rgba(0, 0, 0, .16), 0 16px 32px rgba(0, 0, 0, .23);
    --sh-pop: 0 2px 6px rgba(0, 0, 0, .16), 0 14px 36px rgba(0, 0, 0, .36);
    --sh-sheet: 0 2px 8px rgba(0, 0, 0, .16), 0 24px 60px rgba(0, 0, 0, .47);
    --sh-hero: 0 4px 14px rgba(0, 0, 0, .2), 0 40px 90px rgba(0, 0, 0, .55);
  }
}

@media (min-width: 900px) { :root { --pad: 24px; --header-h: 72px; } }
@media (min-width: 1280px) { :root { --pad: 32px; } }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Fira Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[class], ol[class], nav ul, footer ul) { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
::selection { background: #FF9A7066; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--text); padding: 10px 16px; border-radius: var(--r-control); box-shadow: var(--sh-pop); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .25s var(--ease-std), color .25s var(--ease-std), border-color .25s var(--ease-std), box-shadow .25s var(--ease-std), fill .25s var(--ease-std), stroke .25s var(--ease-std) !important;
}

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }

/* icons: Lucide outlines */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- type */
.display {
  font-size: clamp(2.5rem, 1.55rem + 3.3vw, 4.5rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 58ch; text-wrap: pretty; }
.body-2 { color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.small { font-size: .875rem; line-height: 1.45; color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
code, .kbd { font-family: inherit; font-weight: 500; background: var(--surface); border-radius: 6px; padding: .05em .4em; font-size: .94em; white-space: nowrap; }

.dash { display: block; width: 56px; height: 6px; border-radius: 99px; background: var(--action); margin-top: 22px; transform-origin: left center; }

.link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--action-text); font-weight: 500; text-decoration: none;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link .i { width: 16px; height: 16px; transition: transform .12s var(--ease-std); }
.link:hover { text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--action-text) 45%, transparent); }
.link:hover .i { transform: translateX(2px); }
.prose-link { color: var(--action-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border: 0; border-radius: var(--r-control);
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .12s var(--ease-std), box-shadow .12s var(--ease-std), transform .22s var(--ease-out), color .12s;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 20px; height: 20px; }
.btn .btn-arrow { transition: transform .12s var(--ease-std); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-md { --h: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-md .i { width: 18px; height: 18px; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-sm .i { width: 16px; height: 16px; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); }
.btn-primary:active { background: var(--action-pressed); }
.btn-secondary { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1.25px var(--outline-ink); }
.btn-secondary:hover { background: var(--surface); }
.btn-tinted { background: var(--surface); color: var(--text); }
.btn-tinted:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.1; }
.btn-sub small { font-size: .75rem; font-weight: 400; opacity: .82; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 0; border-radius: 999px; background: var(--surface); color: var(--text);
  cursor: pointer; transition: background-color .12s var(--ease-std), transform .22s var(--ease-out);
}
.icon-btn:hover { background: var(--surface-hover); }
.icon-btn:active { transform: scale(.94); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease-std), box-shadow .2s var(--ease-std);
}
.site-header.is-scrolled { border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.005em; border-radius: 10px; }
.brand img { width: 34px; height: 34px; }
.nav { display: none; margin-left: 12px; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: background-color .12s, color .12s; }
.nav a:hover { background: var(--surface); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.header-cta { transition: background-color .2s var(--ease-std), box-shadow .2s var(--ease-std), color .2s; }
@media (min-width: 1080px) { .nav { display: block; } }
@media (max-width: 479px) {
  .site-header .brand span { display: none; }
}

/* ---------- sections */
.section { padding-block: clamp(48px, 2rem + 2.6vw, 84px); }
.section-tight { padding-top: 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 2rem + 1.5vw, 56px); }
.section-head .lead { margin-top: 2px; }
@media (min-width: 1024px) {
  .section-head.split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; column-gap: 64px; }
  .section-head.split .lead { justify-self: start; }
}

/* ---------- windows, cutouts and sheets (the app's real screens) */
.window {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--sh-sheet);
  outline: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  outline-offset: -1px;
  overflow: hidden;
  isolation: isolate;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding-left: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2); font-size: .78rem; font-weight: 500;
  user-select: none;
}
.window-bar img { width: 16px; height: 16px; flex: none; }
.window-ctrls { margin-left: auto; display: flex; height: 100%; }
.window-ctrls svg { width: 44px; height: 34px; padding: 12px 17px; stroke: var(--text-3); stroke-width: 1; fill: none; overflow: visible; }
.window picture, .window picture img { display: block; width: 100%; }
.window picture img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--ground); }

.cutout { position: relative; }
.cutout img { display: block; width: 100%; }
.cutout.fade-b img { -webkit-mask-image: linear-gradient(to bottom, #000 var(--fade, 72%), transparent 99%); mask-image: linear-gradient(to bottom, #000 var(--fade, 72%), transparent 99%); }
.cutout.soft-edges img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.6%, #000 97.4%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 2.6%, #000 97.4%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-composite: intersect;
}
.cutout-natural { width: 100%; max-width: 669px; justify-self: center; }
.sheet img { border-radius: 3.94% / 2.52%; box-shadow: var(--sh-sheet); background: var(--card); }
.sheet.voice img { border-radius: 3.68% / 2.52%; }
.figcap { margin-top: 14px; font-size: .875rem; color: var(--text-3); line-height: 1.45; }

/* ---------- hero */
.hero { position: relative; padding-top: clamp(32px, 2rem + 2.5vw, 72px); padding-bottom: clamp(24px, 1rem + 2vw, 56px); overflow-x: clip; }
.hero-grid { display: grid; gap: 48px; }
.hero-copy { max-width: 640px; }
.hero-copy .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 34px; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .9375rem; color: var(--text-2); }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 9px; background: var(--border-strong); }
.hero-meta a { color: var(--action-text); text-decoration: none; font-weight: 500; }
.hero-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-note {
  margin-top: 26px; display: flex; gap: 12px; align-items: flex-start;
  max-width: 520px; font-size: .9375rem; color: var(--text-2); line-height: 1.45;
}
.hero-note .dot-ico { flex: none; width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; background: var(--surface); color: var(--text); }
.hero-note a { color: var(--action-text); text-underline-offset: 3px; }
.hero-visual { position: relative; }
.hero-visual .window { width: 100%; box-shadow: var(--sh-hero); }
@media (min-width: 1100px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); align-items: center; gap: 56px; }
  .hero .display { font-size: clamp(2.5rem, 3.85vw, 3.75rem); }
  .hero-visual .window { width: min(1180px, 132%); }
}
@media (min-width: 1440px) { .hero-visual .window { width: min(1180px, 128%); } }

.downloads-count { color: var(--text-2); }
.downloads-count strong { color: var(--text); font-weight: 600; }

/* ---------- steps (tabs) */
.tabs-track {
  position: relative; display: inline-flex; gap: 2px; padding: 4px;
  background: var(--surface); border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs-track::-webkit-scrollbar { display: none; }
.tabs-ind { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; background: var(--card); box-shadow: var(--sh-control); transition: transform .2s var(--ease-std), width .2s var(--ease-std); pointer-events: none; }
.tab {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 8px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font-size: .9375rem; font-weight: 500; cursor: pointer; scroll-snap-align: start;
  transition: color .12s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); font-weight: 600; }
.tab-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; background: var(--surface-hover); color: var(--text-2); font-size: .8125rem; font-weight: 600; transition: background-color .2s, color .2s; }
.tab[aria-selected="true"] .tab-n { background: var(--action); color: var(--on-action); }
.no-js .tabs-track { display: none; }

.steps-panels { margin-top: 32px; }
.step-panel { display: grid; gap: 32px; }
.step-panel + .step-panel { margin-top: 72px; }
.js .step-panel + .step-panel { margin-top: 0; }
.step-panel[hidden] { display: none; }
.step-copy { align-self: center; max-width: 520px; }
.step-copy .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.step-copy p { margin-top: 16px; color: var(--text-2); }
.facts { margin-top: 22px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 1rem; line-height: 1.45; }
.facts .i { margin-top: 1px; color: var(--action-text); width: 18px; height: 18px; }
.step-next { margin-top: 26px; }
@media (min-width: 1024px) {
  .step-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .step-panel .window { order: 2; }
}
.js .step-panel.is-entering .step-copy, .js .step-panel.is-entering .window { animation: stepIn .32s var(--ease-out) both; }
.js .step-panel.is-entering .window { animation-duration: .42s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- videos (#videos): the newest one is large, the rest are cards */
.video-card {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--r-card); overflow: hidden;
  background: #000; box-shadow: var(--sh-card);
  outline: 1px solid color-mix(in srgb, var(--border) 75%, transparent); outline-offset: -1px;
}
.video-card video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid-list { display: grid; gap: clamp(32px, 1.5rem + 1.5vw, 48px) 24px; }
@media (min-width: 700px) { .vid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vid { display: grid; gap: 16px; align-content: start; min-width: 0; }
.vid[hidden] { display: none; }
.vid .video-card { order: -1; border-radius: var(--r-inner); }
.vid-copy { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.vid-copy .h3 { font-size: 1.1875rem; line-height: 1.3; text-wrap: balance; }
.vid-copy p { color: var(--text-2); font-size: .9688rem; line-height: 1.5; max-width: 58ch; }
.vid-meta { color: var(--text-3); font-size: .875rem; }
.vid.is-lead { grid-column: 1 / -1; gap: 24px; }
.vid.is-lead .video-card { order: 2; border-radius: var(--r-card); }
.vid.is-lead .vid-copy { gap: 12px; }
.vid.is-lead .vid-copy .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.vid.is-lead .vid-copy p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
@media (min-width: 1024px) {
  .vid.is-lead { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; }
}

/* ---------- feature split */
.feature { display: grid; gap: 36px; align-items: center; }
.feature-copy { max-width: 540px; }
.feature-copy .lead { margin-top: 20px; }
.feature-copy .h2 + .lead { margin-top: 20px; }
@media (min-width: 1024px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature.flip .feature-copy { order: 2; }
}
.deflist { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.deflist > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.deflist dt { font-weight: 600; font-size: 1rem; grid-column: 2; }
.deflist dd { grid-column: 2; color: var(--text-2); font-size: .9688rem; line-height: 1.5; margin-top: 2px; }
.deflist .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 99px; background: var(--surface); color: var(--text); display: grid; place-items: center; }
.deflist .ico .i { width: 20px; height: 20px; }

/* ---------- style wall */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--card); color: var(--text-2);
  border: 1px solid var(--border); font-size: .9375rem; font-weight: 500; cursor: pointer;
  transition: background-color .12s, color .12s, border-color .12s, transform .2s var(--ease-out);
}
.chip:hover { color: var(--text); background: var(--surface); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--action-soft); border-color: transparent; color: var(--text); }
.chip-n { font-size: .8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip-n { color: var(--action-text); }

.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px; }
@media (min-width: 700px) { .style-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 20px; } }
.style figure { position: relative; border-radius: var(--r-inner); outline: none; }
.style-img { position: relative; border-radius: var(--r-inner); overflow: hidden; background: var(--surface); box-shadow: var(--sh-card); aspect-ratio: 4 / 3; transition: box-shadow .12s var(--ease-std), transform .12s var(--ease-std); }
.style-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.style figcaption { margin-top: 10px; font-size: .9375rem; font-weight: 500; line-height: 1.3; color: var(--text); }
.style-suits {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--overlay); color: var(--overlay-ink);
  font-size: .8125rem; line-height: 1.35;
  opacity: 0; transform: translateY(6px);
  transition: opacity .16s var(--ease-std), transform .2s var(--ease-out);
}
.style figure:hover .style-img { box-shadow: var(--sh-hover); transform: translateY(-2px); }
.style figure:hover .style-img img { transform: scale(1.035); }
.style figure:hover .style-suits { opacity: 1; transform: none; }
.style[hidden] { display: none; }
.style.is-new { animation: tileIn .36s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 12ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
#styles-all .btn-arrow { transition: transform .2s var(--ease-std); }
#styles-all.is-open .btn-arrow { transform: rotate(180deg); }
.styles-more { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 36px; }
.styles-more p { color: var(--text-2); max-width: 70ch; }

/* ---------- montage */
.montage-figure { margin-top: 8px; }
.feature-grid { margin-top: 40px; display: grid; gap: 0 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-grid > div { padding: 20px 0 22px; border-top: 1px solid var(--border); }
.feature-grid h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.feature-grid h3 .num { color: var(--text); }
.feature-grid p { margin-top: 6px; color: var(--text-2); font-size: .9688rem; line-height: 1.5; }
.montage-note { margin-top: 12px; color: var(--text-2); max-width: 75ch; }

/* ---------- languages / translation / own voice */
.lang-grid { display: grid; gap: 48px 32px; }
@media (min-width: 1200px) { .lang-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 700px) and (max-width: 1199px) { .lang-grid { grid-template-columns: 1fr 1fr; } .lang-card { grid-column: 1 / -1; } .lang-wall { max-height: 300px; } }
.lang-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); outline: 1px solid color-mix(in srgb, var(--border) 75%, transparent); outline-offset: -1px; padding: 28px; }
.lang-card .h3, .lang-col .h3 { margin-bottom: 10px; }
.lang-card p, .lang-col p { color: var(--text-2); }
.lang-wall { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 4px; font-size: .875rem; line-height: 1.5; color: var(--text-2); max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.lang-wall li { padding: 3px 10px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
.lang-wall li:nth-child(-n+2) { color: var(--text); font-weight: 500; }
.lang-col .sheet { margin-top: 26px; max-width: 420px; }

/* ---------- access */
.access { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .access { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.ol-steps { margin-top: 28px; display: grid; gap: 18px; counter-reset: s; }
.ol-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.ol-steps .n { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-hover); color: var(--text-2); font-weight: 600; font-size: .875rem; }
.ol-steps b { display: block; font-weight: 600; }
.ol-steps span.d { display: block; color: var(--text-2); font-size: .9688rem; margin-top: 2px; }
.ol-steps a { color: var(--action-text); text-underline-offset: 3px; }
.access-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 26px; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; color: var(--text-2); font-size: .9375rem; line-height: 1.45; }
.trust .i { color: var(--text); margin-top: 1px; width: 18px; height: 18px; }

/* ---------- download */
.dl-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .dl-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); outline: 1px solid color-mix(in srgb, var(--border) 75%, transparent); outline-offset: -1px; padding: 28px; }
@media (max-width: 599px) { .card, .lang-card { padding: 20px; } }
.card-head { display: flex; gap: 14px; align-items: center; }
.card-head .box { flex: none; width: 48px; height: 48px; border-radius: var(--r-control); background: var(--surface); display: grid; place-items: center; }
.card-head .box .i { width: 24px; height: 24px; }
.card-head .h3 { font-size: 1.375rem; }
.card-head p { color: var(--text-2); font-size: .9375rem; margin-top: 2px; }
.dl-list { margin-top: 22px; display: grid; gap: 10px; }
.dl-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 14px 14px 16px; border-radius: var(--r-inner); background: var(--surface);
}
.dl-row .os { width: 44px; height: 44px; border-radius: 99px; background: var(--card); display: grid; place-items: center; }
.dl-row .os .i { width: 22px; height: 22px; }
.dl-row b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.dl-row .meta { display: block; color: var(--text-3); font-size: .8125rem; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.dl-row.is-you { background: var(--action-soft); }
.dl-row.is-you .meta { color: var(--text-2); }
.dl-you { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 500; color: var(--action-text); vertical-align: 1px; }
@media (max-width: 520px) {
  .dl-row { grid-template-columns: 40px minmax(0, 1fr); }
  .dl-row .os { width: 40px; height: 40px; }
  .dl-row .btn { grid-column: 1 / -1; width: 100%; }
}
.dl-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; font-size: .9375rem; color: var(--text-2); }
.dl-status { min-height: 1.45em; }
.req-list { margin-top: 20px; display: grid; gap: 0; }
.req-list li { padding: 14px 0; border-top: 1px solid var(--border); }
.req-list li:first-child { border-top: 0; padding-top: 4px; }
.req-list b { display: block; font-weight: 600; }
.req-list span { display: block; color: var(--text-2); font-size: .9375rem; line-height: 1.5; margin-top: 3px; }
.first-run { margin-top: 32px; }
.first-run .h4 { margin-bottom: 12px; }
.well { background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.well + .well { margin-top: 10px; }
.well b { color: var(--text); font-weight: 600; }

/* ---------- faq */
.faq { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-head .lead { margin-top: 18px; }
.faq-head .link { margin-top: 18px; }
.qa { border-top: 1px solid var(--border); }
.qa:last-child { border-bottom: 1px solid var(--border); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-size: 1.125rem; font-weight: 500; line-height: 1.35;
  border-radius: 8px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { flex: none; color: var(--text-2); transition: transform .2s var(--ease-std); }
.qa[open] summary .i { transform: rotate(180deg); }
.qa summary:hover { color: var(--text); }
.qa .a { padding: 0 4px 22px; color: var(--text-2); max-width: 68ch; }
.qa .a p + p { margin-top: 10px; }
.qa .a a { color: var(--action-text); text-underline-offset: 3px; }

/* ---------- closing + footer */
.closing { text-align: left; }
.closing-card { display: grid; gap: 28px; align-items: center; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); outline: 1px solid color-mix(in srgb, var(--border) 75%, transparent); outline-offset: -1px; padding: clamp(28px, 1.5rem + 2vw, 56px); }
@media (min-width: 1024px) { .closing-card { grid-template-columns: minmax(0, 1fr) auto; } }
.closing-card .lead { margin-top: 14px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { padding-block: 48px 56px; border-top: 1px solid var(--border); margin-top: clamp(24px, 1rem + 2vw, 56px); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.site-footer .brand { margin-bottom: 12px; }
.site-footer p { color: var(--text-2); font-size: .9375rem; max-width: 46ch; }
.site-footer h2 { font-size: .9375rem; font-weight: 600; margin-bottom: 10px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer ul a { color: var(--text-2); text-decoration: none; font-size: .9375rem; }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal { margin-top: 36px; color: var(--text-3); font-size: .8125rem; max-width: none; }

/* ---------- motion: scroll reveal (JS adds .js; content is visible without it) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--rd, 0) * 70ms); }
.js [data-reveal="shot"] { opacity: 0; transform: translateY(28px) scale(.975); }
.js [data-reveal="shot"].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out); }

/* hero entrance: the one authored moment */
.js .hero [data-hero] { opacity: 0; transform: translateY(14px); }
.js .hero.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--hd, 0) * 80ms + 60ms); }
.js .hero .dash { transform: scaleX(0); }
.js .hero.is-ready .dash { transform: scaleX(1); transition: transform .7s var(--ease-out) .45s; }
.js .hero .hero-visual .window { opacity: 0; transform: translateY(48px) scale(.955); box-shadow: var(--sh-card); }
.js .hero.is-ready .hero-visual .window { opacity: 1; transform: none; box-shadow: var(--sh-hero); transition: opacity .9s var(--ease-out) .15s, transform 1.3s var(--ease-out) .15s, box-shadow 1.3s var(--ease-out) .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="shot"], .js .hero [data-hero], .js .hero .hero-visual .window { opacity: 1 !important; transform: none !important; }
  .js .hero .dash { transform: none !important; }
}
#styles-all:hover .btn-arrow { transform: translateY(2px); }
#styles-all.is-open .btn-arrow, #styles-all.is-open:hover .btn-arrow { transform: rotate(180deg); }

/* ---------- download rows: secondary link */
.row-link { display: inline-block; margin-top: 4px; font-size: .8125rem; font-weight: 500; color: var(--action-text); text-decoration: none; }
.row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.well a { color: var(--action-text); text-underline-offset: 3px; }

/* ---------- Mac: install through an AI agent */
.macai { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .macai { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.macai-copy .facts { margin-top: 14px; }
.macai-note { margin-top: 18px; color: var(--text-2); font-size: .9375rem; line-height: 1.5; max-width: 52ch; }
.macai-manual-title { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.manual-steps { margin-top: 18px; }
.manual-steps a { color: var(--action-text); text-underline-offset: 3px; }
.ol-steps .cmd, .cmd {
  display: block; margin-top: 8px; padding: 10px 12px; border-radius: var(--r-control);
  background: var(--surface); color: var(--text); font-weight: 500; font-size: .875rem; line-height: 1.45;
  white-space: normal; overflow-wrap: anywhere; user-select: all;
}
.prompt-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); outline: 1px solid color-mix(in srgb, var(--border) 75%, transparent); outline-offset: -1px; padding: 22px; min-width: 0; }
.prompt-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.prompt-head .box { width: 48px; height: 48px; border-radius: var(--r-control); background: var(--surface); display: grid; place-items: center; }
.prompt-head .box .i { width: 24px; height: 24px; }
.prompt-title p { color: var(--text-2); font-size: .9375rem; line-height: 1.4; margin-top: 2px; }
@media (max-width: 640px) {
  .prompt-head { grid-template-columns: 44px minmax(0, 1fr); }
  .prompt-head .box { width: 44px; height: 44px; }
  .prompt-head .copy-btn { grid-column: 1 / -1; width: 100%; }
  .prompt-card { padding: 16px; }
}
.copy-btn .i-done { display: none; }
.copy-btn.is-done { background: var(--success-soft, #DDF3E6); color: var(--success-ink, #187B43); }
.copy-btn.is-done .i-copy { display: none; }
.copy-btn.is-done .i-done { display: block; }
:root[data-theme="dark"] .copy-btn.is-done { background: #1E3A2A; color: #5FD394; }
.prompt-well {
  margin-top: 18px; border-radius: var(--r-inner); background: var(--surface);
  max-height: 560px; overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.prompt-well:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.prompt {
  margin: 0; padding: 18px 20px; font-family: inherit; font-size: .875rem; line-height: 1.62; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; font-variant-numeric: tabular-nums;
}
.prompt code { font-family: inherit; font-weight: 500; background: var(--surface-hover); border-radius: 5px; padding: .05em .3em; white-space: inherit; overflow-wrap: anywhere; }
.prompt .bt { color: var(--text-3); }
.prompt-foot { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-size: .9375rem; }
.copy-status { color: var(--text-2); min-height: 1.4em; }

/* ---------- G-Labs Studio */
.glabs { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .glabs { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.glabs-copy { max-width: 620px; }
.glabs-copy .lead { margin-top: 20px; }
.glabs-more { margin-top: 16px; }
.ext-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.ext-links a {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .12s, border-color .12s;
}
.ext-links a:hover { background: var(--surface); border-color: var(--border-strong); }
.ext-links .i { width: 16px; height: 16px; color: var(--text-2); }
.glabs-alt { margin-top: 24px; }
.glabs-card .ol-steps { margin-top: 22px; }
.glabs-card code, .ol-steps code { font-family: inherit; font-weight: 500; background: var(--surface); border-radius: 6px; padding: .05em .4em; white-space: nowrap; color: var(--text); }

/* ---------- open source (2.1.0): hero card + «Для вайбкодерів» */
.hero-oss { margin-top: 28px; max-width: 580px; padding: 18px 20px; border-radius: var(--r-inner); background: var(--action-soft); }
.hero-oss p { font-size: .9688rem; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.hero-oss b { font-weight: 600; color: var(--action-text); }
.hero-oss-cta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.oss-pill { margin-bottom: 14px; }
.section-head.split > div > .oss-pill + .h2 { margin-top: 0; }
.section-head.split > div:last-child .lead + .lead { margin-top: 12px; }
.oss { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .oss { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.oss-copy .ol-steps { margin-top: 18px; }
.oss-copy .access-cta { margin-top: 28px; }
.trust li > span a { color: var(--action-text); }
.vibe-list { margin-top: 18px; display: grid; gap: 10px; }
.vibe-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 8px 12px 16px; border-radius: var(--r-inner); background: var(--surface); }
.vibe-list p { font-size: .9375rem; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.vibe-list .copy-btn { width: 40px; height: 40px; background: var(--card); color: var(--text-2); }
.vibe-list .copy-btn:hover { color: var(--text); }
.vibe-list .copy-btn.is-done { background: var(--success-soft, #DDF3E6); color: var(--success-ink, #187B43); }
:root[data-theme="dark"] .vibe-list .copy-btn.is-done { background: #1E3A2A; color: #5FD394; }
@media (max-width: 599px) { .hero-oss { padding: 16px; } .hero-oss-cta .btn { flex: 1 1 auto; } }
