/* creatyk.com · base.css: the design system every page shares (DESIGN.md has the rules). It follows
   the landing-page-design skill: Geist, named text styles, the spacing and radius tokens, the
   dark palette (#000 #181818 #1F1F1F #272727 #313131 #131209), flat surfaces, Phosphor icons and
   one motion curve. The Creatyk violet stays as the brand accent. Page styles live in their
   area's file (home.css, pages/<area>.css) and use only these tokens and text styles.
   Owner: the lead designer. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── tokens ───────────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Backgrounds: only these, always flat. */
  --bg-0: #000000;
  --bg-1: #181818;
  --bg-2: #1f1f1f;
  --bg-3: #272727;
  --bg-4: #313131;
  --bg-warm: #131209;
  /* Lines go all the way round a shape or nowhere. */
  --line: #272727;
  --line-2: #313131;

  /* Text. --ink-3 is the floor for readable text (5.9:1 on black); --ink-4 is decoration only. */
  --ink: #f5f5f5;
  --ink-2: #b4b4b4;
  --ink-3: #8f8f8f;
  --ink-4: #5c5c5c;

  /* The Creatyk violet: the action, links, the logo's orbit, featured chips. */
  --violet-300: #d8b4fe;
  --violet-400: #c084fc;
  --violet-500: #a855f7;
  --violet-600: #9333ea;
  --violet-700: #7e22ce;
  --accent: var(--violet-500);
  --accent-text: var(--violet-400);
  --accent-soft: rgba(168, 85, 247, 0.16);
  --accent-line: rgba(168, 85, 247, 0.48);
  --button: var(--violet-600);
  --button-hover: var(--violet-700);

  --ok: #4ade80;
  --warn: #f5b841;
  --gold: #f5c55c;
  --danger: #f87171;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Spacing: only these values (Spacing-0 … Spacing-900). */
  --spacing-0: 0;
  --spacing-25: 2px;
  --spacing-50: 4px;
  --spacing-75: 8px;
  --spacing-100: 12px;
  --spacing-200: 16px;
  --spacing-300: 24px;
  --spacing-400: 32px;
  --spacing-500: 40px;
  --spacing-600: 48px;
  --spacing-700: 64px;
  --spacing-800: 80px;
  --spacing-900: 96px;
  /* The page's gutter, the gap between sections and under a section heading, per width. */
  --gutter: var(--spacing-200);
  --section-gap: var(--spacing-700);
  --head-gap: var(--spacing-400);

  /* Radius: Tailwind's scale. Nested shapes: inner = outer − gap (when the gap < 32 and the
     result > 2). */
  --radius-2: 2px;
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-full: 9999px;

  /* Sizes (not spacing). */
  --container: 1200px;
  --narrow: 1040px;
  --text: 720px;
  --wide: 1320px;
  --measure: 680px;
  --nav-h: 56px;
  --nav-offset: calc(var(--nav-h) + var(--spacing-200) * 2);

  /* Motion: one curve. 500 ms for layout and position, 300 ms for hover colour and opacity
     (never under 200 ms), reveals rise 32 px and fade over 700 ms, once. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-move: 500ms;
  --dur-hover: 300ms;
  --dur-press: 200ms;
  --dur-reveal: 700ms;
  --rise: var(--spacing-400);

  /* Older names, kept so pages keep working while they move to the names above. */
  --bg: var(--bg-0);
  --surface-1: var(--bg-1); --surface-2: var(--bg-2); --surface-3: var(--bg-3); --surface-4: var(--bg-4);
  --tint: var(--bg-2);
  --tint-2: var(--bg-3);
  --ground: var(--bg-0); --ground-2: var(--bg-1); --card: var(--bg-1); --card-2: var(--bg-2); --card-3: var(--bg-3);
  --rounded-sm: var(--radius-2); --rounded: var(--radius-4); --rounded-md: var(--radius-6); --rounded-lg: var(--radius-8);
  --rounded-xl: var(--radius-12); --rounded-2xl: var(--radius-16); --rounded-3xl: var(--radius-24); --rounded-full: var(--radius-full);
  --dur-layout: var(--dur-move);
  --s-1: var(--spacing-50); --s-2: var(--spacing-75); --s-3: var(--spacing-100); --s-4: var(--spacing-200);
  --s-5: var(--spacing-300); --s-6: var(--spacing-300); --s-8: var(--spacing-400); --s-10: var(--spacing-500);
  --s-12: var(--spacing-600); --s-16: var(--spacing-700); --s-20: var(--spacing-800); --s-24: var(--spacing-900);
  --s-32: var(--spacing-900);
  --pad-x: var(--gutter);
  --gap-section: var(--section-gap);
  --gap-head: var(--head-gap);
  --header-h: var(--nav-offset);
  --r-xs: var(--radius-6); --r-sm: var(--radius-8); --r-md: var(--radius-12);
  --r-lg: var(--radius-16); --r-xl: var(--radius-24); --r-pill: var(--radius-full);
  --fs-display: 3.75rem; --fs-h1: 3.75rem; --fs-h2: 3rem; --fs-h3: 1.875rem; --fs-h4: 1.25rem;
  --fs-lead: 1.25rem; --fs-body: 1rem; --fs-small: 0.875rem; --fs-xs: 0.75rem;
  --ease-out: var(--ease); --ease-expo: var(--ease); --ease-in-out: var(--ease); --ease-soft: var(--ease);
  --t-press: var(--dur-press); --t-hover: var(--dur-hover); --t-ui: var(--dur-move);
  --t-reveal: var(--dur-reveal); --t-open: var(--dur-reveal); --stagger: 60ms;
  --frame-line: 0 0 0 1px var(--line-2);
  --float: 0 0 0 0 transparent;
  --overlay: 0 0 0 0 transparent;
}
@media (min-width: 768px) {
  :root { --gutter: var(--spacing-300); --section-gap: var(--spacing-800); --head-gap: var(--spacing-600); }
}
@media (min-width: 1024px) {
  :root { --gutter: var(--spacing-400); --section-gap: var(--spacing-900); }
}

/* ── text styles: every piece of text uses one (sizes from Tailwind's scale) ──────────────────
   Headings step down on narrow screens (still on the scale). Body 7 and 8 are this site's
   additions for leads, built from scale steps as the skill asks. Older component classes that
   share a style are listed with it, so each style is defined once. */
.heading-1, .page-head__title { font-size: 3.75rem; line-height: 3.75rem; font-weight: 600; letter-spacing: -0.025em; }
.heading-2, .section-title, .final__title { font-size: 3rem; line-height: 3rem; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.025em; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.025em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1, .card__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2, .qa__q { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3, .link-arrow, .site-footer__title { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4, .nav__link { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3, .card__text, .qa__a, .checks li, .steps li { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6, .site-footer__col a, .site-footer__brand p, .table { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.body-7, .section-lead, .page-head__lead, .final__lead { font-size: 1.25rem; line-height: 1.75rem; font-weight: 400; }
.body-8 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 400; }
.button-lg, .btn--lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-md, .btn { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm, .btn--sm, .seg__tab { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.button-xsm { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-1, .page-head__live, .crumbs { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2, .page-head__note, .final__note, .site-footer__bottom { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3, .chip, .badge, .lang__item { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }
@media (max-width: 1023px) {
  .heading-1, .page-head__title { font-size: 3rem; line-height: 3rem; }
  .heading-2, .section-title, .final__title { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (max-width: 767px) {
  .heading-1, .page-head__title { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-2, .section-title, .final__title { font-size: 1.875rem; line-height: 2.25rem; }
  .heading-3 { font-size: 1.875rem; line-height: 2.25rem; }
  .heading-4 { font-size: 1.5rem; line-height: 2rem; }
  .body-7, .section-lead, .page-head__lead, .final__lead { font-size: 1.125rem; line-height: 1.75rem; }
}
/* B5: the hero heading's left-to-right tone (the one place a gradient is used, on text only). */
.text-gradient-hero { background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: B5 hero heading tone */
.text-gradient-hero [data-line] { background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: B5 hero heading tone */

/* ── base ─────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg-0); scroll-padding-top: calc(var(--nav-offset) + var(--spacing-200)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem; line-height: 1.5rem; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; font-weight: 600; }
p, li, dd, figcaption, summary { text-wrap: pretty; }
.qa__q span, summary span { text-wrap: balance; }
em, i, cite, dfn, var, address { font-style: normal; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 600; color: var(--ink); }
::selection { background: var(--violet-600); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 2px; border-radius: var(--radius-4); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--spacing-200); top: var(--spacing-200); z-index: 100; padding: var(--spacing-75) var(--spacing-100); background: var(--button); color: #fff; border-radius: var(--radius-8); text-decoration: none; translate: 0 -200%; transition: translate var(--dur-move) var(--ease); }
.skip:focus { translate: none; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── layout ───────────────────────────────────────────────────────────────────────────────── */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--wide)); }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); }
.container--text { width: min(100% - 2 * var(--gutter), var(--text)); }
.section { padding-top: var(--section-gap); }
.section--first { padding-top: var(--spacing-600); }
.section--tight { padding-top: var(--spacing-700); }
.section[id] { scroll-margin-top: calc(var(--spacing-400) - var(--section-gap)); }
main > :last-child { padding-bottom: var(--section-gap); }

.section-head { max-width: var(--measure); margin-bottom: var(--head-gap); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { color: var(--ink); }
.section-lead { margin-top: var(--spacing-300); color: var(--ink-2); }
.section-head--center .section-lead { margin-inline: auto; }
.section-more { margin-top: var(--spacing-300); }
.section-head--center .section-more { display: flex; justify-content: center; }
.section-lead a { color: var(--accent-text); }

/* ── links, buttons, chips ────────────────────────────────────────────────────────────────── */
.link-arrow { display: inline-flex; align-items: center; gap: var(--spacing-75); color: var(--accent-text); text-decoration: none; border-radius: var(--radius-4); transition: color var(--dur-hover) var(--ease); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur-move) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--violet-300); }
  .link-arrow:hover .icon { transform: translateX(var(--spacing-50)); }
}
.link-arrow:active .icon { transform: translateX(var(--spacing-50)) scale(0.98); }

/* Main buttons: 8 px by 12 px of padding, Button-md; small ones Button-sm; radius rounded-lg. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-75);
  padding: var(--spacing-75) var(--spacing-100); border-radius: var(--radius-8); border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-press) var(--ease), background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn--sm .icon { width: 16px; height: 16px; }
.btn:active { transform: scale(0.98); }
.btn--block { width: 100%; }
.btn--primary { background: var(--button); color: #fff; }
.btn--secondary { background: var(--bg-2); border-color: var(--line-2); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--light { background: var(--ink); color: #000; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--button-hover); }
  .btn--secondary:hover { background: var(--bg-3); }
  .btn--ghost:hover { background: var(--bg-1); }
  .btn--light:hover { background: #ffffff; }
}

.chip, .badge {
  display: inline-flex; align-items: center; gap: var(--spacing-50); padding: var(--spacing-50) var(--spacing-75); border-radius: var(--radius-full);
  white-space: nowrap;
}
.chip { background: var(--bg-3); color: var(--ink-2); }
.badge { background: var(--accent-soft); color: var(--violet-300); }
.chip--free { color: var(--ok); }
.chip--nova { background: var(--button); color: #fff; }
.chip--quasar { color: var(--gold); }
.chip .icon { width: 12px; height: 12px; }

/* ── cards ────────────────────────────────────────────────────────────────────────────────── */
.card { position: relative; border-radius: var(--radius-16); background: var(--bg-1); border: 1px solid var(--line); padding: var(--spacing-300); }
@media (min-width: 768px) { .card { padding: var(--spacing-400); } }
.card--tint, .card--raised { background: var(--bg-2); }
.card--pick { border-color: var(--accent-line); }
a.card { display: block; color: inherit; text-decoration: none; transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), transform var(--dur-move) var(--ease); }
@media (hover: hover) and (pointer: fine) { a.card:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateY(calc(var(--spacing-25) * -1)); } }
a.card:active { transform: scale(0.98); }
.card__title { color: var(--ink); }
.card__text { margin-top: var(--spacing-75); color: var(--ink-2); }

/* ── screenshot frames: real captures of the app, never retouched ──────────────────────────── */
.shot { position: relative; overflow: clip; border-radius: var(--radius-16); background: var(--bg-1); border: 1px solid var(--line-2); }
.shot img { width: 100%; height: auto; }
.shot--window { border-radius: var(--radius-12); }
.shot--crop { padding: var(--spacing-100); }
.shot--crop img { border-radius: var(--radius-4); } /* 16 − 12 = 4 */
.shot figcaption { padding: var(--spacing-100) var(--spacing-50) 0; }

/* ── lists ────────────────────────────────────────────────────────────────────────────────── */
.checks { display: grid; gap: var(--spacing-100); }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--spacing-100); align-items: start; color: var(--ink-2); }
.checks .icon { width: 20px; height: 20px; margin-top: var(--spacing-25); color: var(--accent-text); }
.checks .chip { margin-left: var(--spacing-75); vertical-align: var(--spacing-25); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--spacing-200); color: var(--ink-2); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--spacing-200); align-items: start; }
.steps li::before { content: counter(step); width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--bg-3); color: var(--ink); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }

/* ── segmented control (tabs that sort or switch a view) ──────────────────────────────────── */
.seg { display: inline-flex; padding: var(--spacing-50); gap: var(--spacing-50); border-radius: var(--radius-12); background: var(--bg-1); border: 1px solid var(--line); }
.seg__tab { padding: var(--spacing-75) var(--spacing-100); border: 0; border-radius: var(--radius-8); background: none; color: var(--ink-3); cursor: pointer; transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), transform var(--dur-press) var(--ease); } /* 12 − 4 = 8 */
.seg__tab[aria-pressed="true"], .seg__tab[aria-selected="true"] { background: var(--bg-3); color: var(--ink); }
.seg__tab:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .seg__tab:hover { color: var(--ink); } }

/* ── accordion (details/summary). The answer fades in; heights never animate. ─────────────── */
.qa { border-radius: var(--radius-12); background: var(--bg-1); border: 1px solid var(--line); transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease); }
.qa + .qa { margin-top: var(--spacing-75); }
.qa[open] { background: var(--bg-2); border-color: var(--line-2); }
.qa__q { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-200); padding: var(--spacing-200) var(--spacing-300); color: var(--ink); cursor: pointer; list-style: none; border-radius: var(--radius-12); }
.qa__q::-webkit-details-marker { display: none; }
.qa__icon { width: 20px; height: 20px; color: var(--ink-3); transform: rotate(90deg); transition: transform var(--dur-move) var(--ease); }
.qa[open] .qa__icon { transform: rotate(-90deg); }
.qa__a { padding: 0 var(--spacing-300) var(--spacing-300); color: var(--ink-2); max-width: 70ch; }
.qa__a a { color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { .qa:hover { border-color: var(--line-2); } }
@media (prefers-reduced-motion: no-preference) { .qa[open] .qa__a { animation: ck-fade-down var(--dur-move) var(--ease); } }
@media (prefers-reduced-motion: reduce) { .qa[open] .qa__a { animation: ck-fade var(--dur-hover) var(--ease); } }

/* ── tables (data; borders go all the way round the table) ─────────────────────────────────── */
.table-wrap { border-radius: var(--radius-16); background: var(--bg-1); border: 1px solid var(--line); overflow: clip; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--spacing-100) var(--spacing-200); text-align: left; vertical-align: middle; }
.table tr + tr > * { box-shadow: inset 0 1px 0 var(--line); } /* row separators inside the table's own frame */
.table thead th { color: var(--ink-3); background: var(--bg-2); }
.table td { color: var(--ink-2); }

/* ── states: loading (skeletons), empty and error (B9) ────────────────────────────────────── */
.skeleton { display: block; border-radius: var(--radius-8); background: var(--bg-2); }
.skeleton--line { height: 12px; border-radius: var(--radius-full); }
.skeleton--block { aspect-ratio: 16 / 9; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: ck-pulse 1600ms var(--ease) infinite alternate; } }
.state { display: grid; justify-items: start; gap: var(--spacing-75); padding: var(--spacing-400); border-radius: var(--radius-16); background: var(--bg-1); border: 1px solid var(--line); }
.state--center { justify-items: center; text-align: center; }
.state__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--bg-3); color: var(--ink-2); margin-bottom: var(--spacing-75); }
.state__icon .icon { width: 20px; height: 20px; }
.state--error .state__icon { color: var(--danger); }
.state__title { color: var(--ink); }
.state__text { color: var(--ink-2); max-width: 52ch; }
.state .btn { margin-top: var(--spacing-100); }

/* ── logo ─────────────────────────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: var(--spacing-75); }
.logo__mark { width: 32px; height: 32px; }
.logo__word { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); } /* Heading 6 */

/* ── navigation: a compact bar floating off the top, centred and sized to its content ────── */
.site-header { position: fixed; top: var(--spacing-200); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: var(--gutter); pointer-events: none; }
.site-header__bar {
  position: relative; pointer-events: auto; display: flex; align-items: center; gap: var(--spacing-300);
  height: var(--nav-h); padding: var(--spacing-75) var(--spacing-75) var(--spacing-75) var(--spacing-200);
  border-radius: var(--radius-full); border: 1px solid var(--line-2);
}
/* The translucent surface and its blur sit on a layer of their own, so the full-height mobile
   menu inside the bar can still cover the whole screen. */
.site-header__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(24, 24, 24, 0.72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); transition: background-color var(--dur-hover) var(--ease); } /* taste-skill-ignore: B7 floating nav */
.site-header.is-scrolled .site-header__bar::before { background: rgba(24, 24, 24, 0.86); }
.site-header__brand { display: block; border-radius: var(--radius-8); text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--spacing-300); }
.nav__links { display: flex; align-items: center; gap: var(--spacing-50); }
.nav__link { display: block; padding: var(--spacing-75) var(--spacing-100); border-radius: var(--radius-full); color: var(--ink-2); text-decoration: none; transition: color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--bg-3); }
.nav__link:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--ink); background: var(--bg-2); } }
.nav__end { display: flex; align-items: center; gap: var(--spacing-75); }
.nav__end .btn { border-radius: var(--radius-full); } /* inside the pill: full stays full */
.lang { display: inline-flex; align-items: center; padding: var(--spacing-25); border-radius: var(--radius-full); background: var(--bg-2); border: 1px solid var(--line); }
.lang__item { display: inline-grid; place-items: center; padding: var(--spacing-50) var(--spacing-75); border-radius: var(--radius-full); color: var(--ink-3); text-decoration: none; transition: color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease); }
.lang__item.is-current { background: var(--bg-4); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { a.lang__item:hover { color: var(--ink); } }
a.lang__item:active { transform: scale(0.98); }

/* The menu toggle: two lines that turn into a cross on the base curve. */
/* the bar's own download button, for phones (the menu's copy is inside the closed panel) */
.site-header__cta { display: none; }
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; border-radius: var(--radius-full); border: 0; background: var(--bg-3); cursor: pointer; transition: background-color var(--dur-hover) var(--ease), transform var(--dur-press) var(--ease); }
.nav-toggle:active { transform: scale(0.98); }
.nav-toggle__line { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: var(--radius-full); background: var(--ink); transition: transform var(--dur-move) var(--ease); }
.nav-toggle__line:nth-of-type(1) { top: 15px; }
.nav-toggle__line:nth-of-type(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1039px) {
  .site-header__bar { width: 100%; justify-content: space-between; }
  .js .nav-toggle { display: block; }
  .js .site-header__cta { display: inline-flex; margin-left: auto; margin-right: var(--spacing-75); }
  /* the mobile menu: a full-height panel with a strong blur; links arrive one by one */
  .js .nav {
    position: fixed; inset: 0; z-index: -2;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--spacing-400);
    padding: calc(var(--nav-offset) + var(--spacing-400)) var(--gutter) var(--spacing-600);
    background: rgba(0, 0, 0, 0.88); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); /* taste-skill-ignore: B7 mobile menu */
    overflow-y: auto; opacity: 0; visibility: hidden;
    transition: opacity var(--dur-hover) var(--ease), visibility 0s linear var(--dur-hover);
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-hover) var(--ease), visibility 0s; }
  .js .nav__links { display: grid; gap: var(--spacing-50); }
  .js .nav__link { padding: var(--spacing-100) var(--spacing-200); border-radius: var(--radius-12); font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--ink); } /* Heading 5 */
  .js .nav__end { justify-content: space-between; }
  .js .nav__links > li, .js .nav__end { opacity: 0; transform: translateY(var(--spacing-300)); transition: opacity var(--dur-move) var(--ease), transform var(--dur-move) var(--ease); transition-delay: min(calc(var(--i, 0) * 60ms), 400ms); }
  .js .nav.is-open .nav__links > li, .js .nav.is-open .nav__end { opacity: 1; transform: none; }
  html:not(.js) .site-header { position: static; padding-top: var(--spacing-200); }
  html:not(.js) .site-header__bar { height: auto; flex-wrap: wrap; border-radius: var(--radius-16); }
  html:not(.js) .nav { flex-wrap: wrap; }
  html:not(.js) .nav__links { flex-wrap: wrap; }
}
body.menu-open { overflow: hidden; }

/* ── the starfield canvas (core.js draws it; still with reduced motion). It is imagery. ─────── */
.space { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── inner page header ────────────────────────────────────────────────────────────────────── */
.page-head { position: relative; overflow: clip; padding: calc(var(--nav-offset) + var(--spacing-700)) 0 var(--spacing-600); }
@media (min-width: 1024px) { .page-head { padding-top: calc(var(--nav-offset) + var(--spacing-900)); } }
.page-head__sky { /* a still starfield until the canvas takes over (imagery, masked to fade out) */
  position: absolute; inset: 0; pointer-events: none; opacity: 0.75;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, #d8c8ff 50%, transparent 51%), /* taste-skill-ignore: drawn stars, not a fill */
    radial-gradient(1.5px 1.5px at 44% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 76%, #fff 50%, transparent 51%), /* taste-skill-ignore: drawn stars, not a fill */
    radial-gradient(1px 1px at 72% 34%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 86% 60%, #e4d6ff 50%, transparent 51%), /* taste-skill-ignore: drawn stars, not a fill */
    radial-gradient(1px 1px at 94% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%); /* taste-skill-ignore: drawn stars, not a fill */
  background-size: 640px 360px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); /* taste-skill-ignore: a fade mask on the starfield */
}
.js .page-head__sky { display: none; }
.space--head { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); } /* taste-skill-ignore: a fade mask on the starfield */
.page-head .container { position: relative; }
.crumbs { display: flex; align-items: center; gap: var(--spacing-75); color: var(--ink-3); }
.crumbs [aria-current="page"] { color: var(--ink-2); }
.crumbs a { color: var(--accent-text); text-decoration: none; border-radius: var(--radius-4); transition: color var(--dur-hover) var(--ease); }
.crumbs a .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--violet-300); text-decoration: underline; text-underline-offset: 0.25em; } }
.page-head__title { margin-top: var(--spacing-300); max-width: var(--measure); color: var(--ink); }
.page-head__lead { margin-top: var(--spacing-300); max-width: var(--measure); color: var(--ink-2); }
.page-head__actions { margin-top: var(--spacing-400); display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-200) var(--spacing-300); }
.page-head__note { display: flex; gap: var(--spacing-75); align-items: center; color: var(--ink-3); }
.page-head__note .icon { width: 16px; height: 16px; }
.page-head__live { margin-top: var(--spacing-300); display: inline-flex; gap: var(--spacing-75); align-items: center; padding: var(--spacing-75) var(--spacing-200); border-radius: var(--radius-full); background: var(--bg-2); border: 1px solid var(--line-2); color: var(--accent-text); }
.page-head__live .icon { width: 16px; height: 16px; }

/* ── closing call ─────────────────────────────────────────────────────────────────────────── */
.final__panel {
  position: relative; overflow: clip; isolation: isolate; border-radius: var(--radius-24); text-align: center;
  padding: var(--spacing-800) var(--spacing-300);
  background: var(--bg-1); border: 1px solid var(--line);
  transform-origin: 50% 100%;
}
@media (min-width: 768px) { .final__panel { padding: var(--spacing-900) var(--spacing-600); } }
.final__panel .space { z-index: -1; }
.final__content { position: relative; display: grid; justify-items: center; }
.final__logo { width: 80px; height: 80px; }
.final__title { margin-top: var(--spacing-300); max-width: var(--measure); color: var(--ink); }
.final__lead { margin-top: var(--spacing-200); max-width: var(--measure); color: var(--ink-2); }
.final__actions { margin-top: var(--spacing-400); }
.final__note { margin-top: var(--spacing-200); display: flex; gap: var(--spacing-75); align-items: center; color: var(--ink-3); }
.final__note .icon { width: 16px; height: 16px; }

/* ── footer: the links, the legal row, then the name ──────────────────────────────────────── */
.site-footer { position: relative; overflow: clip; padding-top: var(--spacing-800); background: var(--bg-0); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--spacing-500); }
.site-footer__brand a { display: inline-block; text-decoration: none; border-radius: var(--radius-8); }
.site-footer__brand p { margin-top: var(--spacing-200); max-width: 36ch; color: var(--ink-3); }
.site-footer__title { color: var(--ink); }
.site-footer__col ul { margin-top: var(--spacing-200); display: grid; gap: var(--spacing-100); list-style: none; padding: 0; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; border-radius: var(--radius-4); transition: color var(--dur-hover) var(--ease); }
.site-footer__col a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .site-footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; } }
.site-footer__bottom { margin-top: var(--spacing-700); display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-200); color: var(--ink-3); }
.site-footer__bottom a { color: var(--ink-2); text-decoration: none; border-radius: var(--radius-4); transition: color var(--dur-hover) var(--ease); }
.site-footer__bottom a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .site-footer__bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; } }
.site-footer__word { display: flex; align-items: center; gap: var(--spacing-200); margin-top: var(--spacing-600); padding-inline: max(var(--gutter), (100% - var(--container)) / 2); font-size: 8rem; line-height: 8rem; font-weight: 600; letter-spacing: -0.05em; color: var(--ink-4); user-select: none; pointer-events: none; white-space: nowrap; transform: translateY(var(--spacing-400)); } /* text-9xl */
.site-footer__mark { width: 112px; height: 112px; opacity: 0.4; }
.site-footer__mark .mark__glint { display: none; }

/* ── the rebuilt app pieces ([data-ui]): the app's controls, on this site's palette ────────── */
[data-ui] {
  --ui-bg: var(--bg-1);
  --ui-card: var(--bg-2);
  --ui-raised: var(--bg-3);
  --ui-line: var(--bg-4);
  --ui-ink: var(--ink);
  --ui-soft: var(--ink-2);
  --ui-muted: var(--ink-3);
  --ui-accent: var(--violet-500);
  --ui-accent-text: var(--violet-400);
  color: var(--ui-ink);
}
[data-ui] .ui-mono { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; } /* Caption 4 in the mono the app uses for its labels */
[data-ui] .ui-accent { color: var(--ui-accent-text); }
[data-ui] .ui-btn {
  display: inline-flex; align-items: center; gap: var(--spacing-75); padding: var(--spacing-75) var(--spacing-100);
  border-radius: var(--radius-8); background: var(--ui-raised); border: 1px solid var(--ui-line); color: var(--ui-ink);
  font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), transform var(--dur-press) var(--ease);
} /* Button-Xsm */
[data-ui] .ui-btn .icon { width: 16px; height: 16px; }
[data-ui] .ui-btn:active { transform: scale(0.98); }
[data-ui] .ui-btn--accent { background: var(--button); border-color: var(--button); color: #fff; }
[data-ui] .ui-btn--small { padding: var(--spacing-50) var(--spacing-75); }
[data-ui] .ui-btn--danger { color: var(--danger); }
[data-ui] .ui-chip { align-self: flex-start; font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; font-weight: 500; padding: var(--spacing-25) var(--spacing-75); border-radius: var(--radius-6); background: var(--ui-raised); color: var(--ui-soft); white-space: nowrap; }
[data-ui] .ui-chip--accent { background: var(--accent-soft); color: var(--ui-accent-text); }
[data-ui] .ui-chip--free { color: var(--ok); }
[data-ui] .ui-chip--warn { color: var(--warn); }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .ui-btn:hover { background: var(--bg-4); }
  [data-ui] .ui-btn--accent:hover { background: var(--button-hover); border-color: var(--button-hover); }
}
.switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--bg-4); cursor: pointer; transition: background-color var(--dur-hover) var(--ease); }
.switch::after { content: ""; position: absolute; inset: calc(var(--spacing-75) * -1) calc(var(--spacing-50) * -1); }
.switch__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--ink-2); transition: transform var(--dur-move) var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(20px); background: #fff; }
.switch:active .switch__knob { transform: scale(0.98); }
.switch[aria-checked="true"]:active .switch__knob { transform: translateX(20px) scale(0.98); }
[data-ui] .ui-switch { position: relative; width: 32px; height: 16px; border-radius: var(--radius-full); background: var(--bg-4); flex: 0 0 auto; }
[data-ui] .ui-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--ink-2); transition: transform var(--dur-move) var(--ease); }
[data-ui] .ui-switch.is-on { background: var(--ui-accent); }
[data-ui] .ui-switch.is-on::after { transform: translateX(16px); background: #fff; }

/* ── tablet and phone ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__word { font-size: 4.5rem; line-height: 4.5rem; } /* text-7xl */
  .site-footer__mark { width: 64px; height: 64px; }
  .qa__q { padding: var(--spacing-200); }
  .qa__a { padding: 0 var(--spacing-200) var(--spacing-200); }
}

/* ── motion ───────────────────────────────────────────────────────────────────────────────────
   One curve (--ease). Things enter once, rising 32 px and fading in over 700 ms. Only transform
   and opacity move. With "reduce motion" nothing travels: things only fade. DESIGN.md → Motion
   has the rules; core.js → Creatyk.motion the API. */

/* scroll-linked values that CSS (or core.js, where scroll timelines are missing) writes */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

@keyframes ck-line-up { to { transform: none; } }
@keyframes ck-load { to { opacity: 1; translate: none; } }
@keyframes ck-fade { from { opacity: 0; } }
@keyframes ck-fade-down { from { opacity: 0; transform: translateY(calc(var(--spacing-75) * -1)); } }
@keyframes ck-pulse { from { opacity: 1; } to { opacity: 0.5; } }
@keyframes ck-progress { from { --p: 0; } to { --p: 1; } }
@keyframes ck-parallax { from { translate: 0 var(--parallax, 32px); } to { translate: 0 calc(var(--parallax, 32px) * -1); } }

/* masked headline lines (a first screen): <h1 class="lines"><span class="line"><span data-line style="--i:0">… */
.lines .line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }

/* Reveals: [data-reveal] (and the older values mask, open, blur, zoom, rise, which now do the
   same) rise and fade; "fade" only fades; "scale", "left", "right" keep their direction.
   They move with the individual properties translate / scale / opacity, so a component's own
   transform (hover, press) keeps working. --rd is an item's delay (data-stagger sets it). */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity var(--dur-reveal) var(--ease) var(--rd, 0ms),
    translate var(--dur-reveal) var(--ease) var(--rd, 0ms),
    scale var(--dur-reveal) var(--ease) var(--rd, 0ms),
    transform var(--dur-move) var(--ease), background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease);
}
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
.js [data-load], .js [data-rise] { opacity: 0; animation: ck-load var(--dur-reveal) var(--ease) forwards; animation-delay: var(--d, 120ms); }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(108%); animation: ck-line-up var(--dur-reveal) var(--ease) forwards; animation-delay: calc(var(--i, 0) * 100ms + 100ms); }
  .js [data-load], .js [data-rise] { translate: 0 var(--spacing-200); }
  .js [data-reveal] { translate: 0 var(--rise); }
  .js [data-reveal="fade"] { translate: none; }
  .js [data-reveal="scale"], .js [data-reveal="zoom"] { translate: none; scale: 0.96; }
  .js [data-reveal="left"] { translate: calc(var(--rise) * -1) 0; }
  .js [data-reveal="right"] { translate: var(--rise) 0; }
  .js [data-reveal="rise"] { translate: 0 var(--rise); }

  /* data-parallax: drifts by ±--parallax (default 32px) while it crosses the screen. Never on
     the same element as data-reveal (both use translate): wrap one in the other. */
  @supports (animation-timeline: view()) {
    [data-parallax] { animation: ck-parallax var(--ease) both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* data-scrub: writes --p from 0 to 1 as the element passes; the range picks which part */
    [data-scrub] { animation: ck-progress var(--ease) both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    [data-scrub="enter"] { animation-range: entry 0% cover 45%; }
    [data-scrub="exit"] { animation-range: exit 0% exit 100%; }
    [data-scrub="center"] { animation-range: cover 0% cover 50%; }
    [data-scrub="page"] { animation-timeline: scroll(root); animation-range: 0px var(--scrub-end, 600px); }
  }

  .js .space { opacity: 0; transition: opacity var(--dur-reveal) var(--ease) 150ms; }
  .js .space.is-on { opacity: 1; }
  .mark__glint { opacity: 0.85; }

  /* the closing panel grows into place as it arrives */
  .final__panel[data-scrub] { transform: scale(calc(0.96 + var(--p) * 0.04)); }
}

/* B11: the tagline reveal. Words start at 30% and take full colour one by one, in reading
   order, as the line passes a trigger line (core.js). With reduced motion: full colour. */
.tagline { max-width: var(--measure); color: var(--ink); }
.js [data-tagline].is-split .tagline__word { opacity: 0.3; transition: opacity var(--dur-move) var(--ease); }
.js [data-tagline].is-split .tagline__word.is-lit { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-load], .js [data-rise] { translate: none !important; scale: none !important; }
  .js .lines [data-line] { transform: none; animation: ck-fade var(--dur-reveal) var(--ease) both; }
  .mark__glint { display: none; }
  [data-scrub] { --p: 1; }
  .js .nav__links > li, .js .nav__end { transform: none !important; }
}
@media print {
  .js [data-reveal], .js [data-load], .js .lines [data-line] { opacity: 1 !important; transform: none !important; translate: none !important; }
  .site-header, .space, .site-footer__word { display: none !important; }
}
