/* Zia marketing page. One stylesheet, grouped by section in page order.
   Tokens first; every colour and radius below comes from them. */

:root {
  --bg: #ebeff5;
  /* Canvas wash — same tokens as the app (app/globals.css --canvas-*). */
  --canvas-top: #dfe2f2;
  --canvas-mid: #e9ebf3;
  --white: #ffffff;
  --surface: #ffffff;       /* cards, panels, inputs */
  --surface-2: #ffffff;     /* raised surface inside a card */
  --ink: #242426;
  --ink-2: #35363b;
  --ink-75: rgba(36, 36, 38, 0.75);
  --ink-50: rgba(36, 36, 38, 0.5);
  --ink-10: rgba(36, 36, 38, 0.1);
  --ink-06: rgba(36, 36, 38, 0.06);
  /* Makro lime (app/globals.css --highlight). Lime is only ever a FILL with ink
     on top, never text on a light surface: --accent-text is the accent for type. */
  --accent: #d9ff5c;
  --accent-hover: color-mix(in srgb, #d9ff5c 86%, #242426);
  --accent-ink: #242426;    /* text on the lime, in both themes */
  --accent-soft: #f1ffc4;   /* --highlight-soft: tint for icon tiles and highlights */
  --accent-bright: #d9ff5c; /* lime on dark panels */
  --accent-text: #242426;   /* "accent" type: ink on light, lime on dark */
  --dark: #35363b;
  --dark-2: #242426;
  --lav: #c9cbe6;
  --lav-2: #a9acd0;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 36px;

  --font: "Inter", "Inter Fallback", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1200px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 38%, var(--bg) 100%) top / 100% 100vh no-repeat, var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: 400; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--accent-bright); }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--surface); padding: 10px 14px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type scale (Inter, optical sizing → Inter Display; 400 throughout) ---------- */
.t-hero { font-size: 88px; line-height: 1.25; letter-spacing: -0.04em; }
.t-h1 { font-size: 64px; line-height: 1.25; letter-spacing: -0.04em; }
.t-h2 { font-size: 56px; line-height: 1.2; letter-spacing: -0.04em; }
.t-h3 { font-size: 36px; line-height: 1.25; letter-spacing: -0.03em; }
.t-h4 { font-size: 32px; line-height: 1.45; letter-spacing: -0.03em; }
.t-h5 { font-size: 24px; line-height: 1.5; letter-spacing: -0.02em; }
.t-h6 { font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; }
.t-lg { font-size: 18px; line-height: 1.5; }
.t-md { font-size: 14px; line-height: 1.5; }
.t-sm { font-size: 12px; line-height: 1.5; }
.muted { color: var(--ink-75); }
.faint { color: var(--ink-50); }
.dark .muted, .on-dark .muted { color: rgba(255, 255, 255, 0.75); }
.dark .faint, .on-dark .faint { color: rgba(255, 255, 255, 0.5); }
.num { font-variant-numeric: tabular-nums; }

/* Lime highlighter that sweeps in behind a phrase (ink on top) */
.mark {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center / 0% 100%;
  transition: background-size 1s var(--ease) .35s, color .5s var(--ease) .55s;
  border-radius: 14px;
  padding: 0 10px;
  margin: 0 -2px;
  white-space: nowrap;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.is-in .mark, .mark.is-in { background-size: 100% 100%; color: var(--accent-ink); }

/* ---------- Chip (eyebrow label with icon bubble) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 2px 16px 2px 2px;
  border-radius: 500px; background: var(--surface);
  font-size: 14px; line-height: 1; color: var(--ink); white-space: nowrap;
}
.chip__ico {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
}
.chip__ico svg { width: 14px; height: 14px; }
.chip--grey { background: var(--bg); }
.chip--grey .chip__ico { background: var(--surface); }
.chip--dark { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.chip--dark .chip__ico { background: var(--surface); color: var(--ink); }
.chip--ink { background: var(--ink-2); color: #fff; }
.chip--ink .chip__ico { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Buttons ----------
   A dark pill with a lime arrow tile. On hover the tile grows to fill the
   button and the label stays light, sliding the arrow to the far edge. */
.btn {
  --h: 64px; --pad: 4px; --tile: calc(var(--h) - var(--pad) * 2);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  height: var(--h); padding: var(--pad) 28px var(--pad) var(--pad);
  border-radius: 20px; background: var(--ink-2); color: #fff;
  font-size: 18px; line-height: 1; white-space: nowrap; overflow: hidden;
  transition: transform .3s var(--ease);
}
.btn__fill {
  position: absolute; z-index: -1; left: var(--pad); top: var(--pad);
  width: var(--tile); height: var(--tile);
  border-radius: 16px; background: var(--accent);
  transition: width .55s var(--ease);
}
.btn__arrow {
  width: var(--tile); height: var(--tile); flex: none;
  display: grid; place-items: center; color: var(--accent-ink);
  transition: transform .55s var(--ease);
}
.btn__arrow svg { width: 20px; height: 20px; }
.btn__label { position: relative; margin-left: 16px; transition: color .35s var(--ease); }
.btn:hover .btn__fill, .btn:focus-visible .btn__fill { width: calc(100% - var(--pad) * 2); }
.btn:hover .btn__label, .btn:focus-visible .btn__label { color: var(--accent-ink); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: rotate(-45deg); }
.btn:active { transform: scale(.98); }

.btn--sm { --h: 48px; --pad: 4px; font-size: 14px; border-radius: 16px; padding-right: 20px; }
.btn--sm .btn__fill { border-radius: 12px; }
.btn--sm .btn__arrow svg { width: 16px; height: 16px; }
.btn--sm .btn__label { margin-left: 12px; }

/* light variant: grey pill, white tile */
.btn--light { background: var(--bg); color: var(--ink-75); }
.btn--light .btn__fill { background: var(--surface); }
.btn--light .btn__arrow { color: var(--ink); }
.btn--light:hover .btn__fill, .btn--light:focus-visible .btn__fill { background: var(--accent); }
.btn--light:hover .btn__arrow, .btn--light:focus-visible .btn__arrow { color: var(--accent-ink); }
.btn--light:hover .btn__label, .btn--light:focus-visible .btn__label { color: var(--accent-ink); }

/* solid lime variant used on dark panels */
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent .btn__fill { background: var(--accent-hover); box-shadow: inset 0 0 0 1px rgba(36,36,38,.08); }
.btn--accent .btn__arrow { color: var(--accent-ink); }
.btn--accent:hover .btn__label, .btn--accent:focus-visible .btn__label { color: var(--accent-ink); }

.btn--block { width: 100%; justify-content: flex-start; }
.btn--block .btn__label { flex: 1; text-align: center; margin-left: 0; padding-right: var(--tile); }

/* ---------- Scroll reveals ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

.words .w { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  transition-delay: calc(var(--i) * 28ms + var(--d, 0s)); }
.words.is-in .w { opacity: 1; transform: none; filter: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0 var(--gutter);
  transition: padding .5s var(--ease);
}
.nav__bar {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 4px;
  border-radius: 16px;
  transition: height .5s var(--ease), padding .5s var(--ease), background-color .45s var(--ease),
              box-shadow .45s var(--ease), color .45s var(--ease), transform .5s var(--ease);
}
.nav.is-floating { padding-top: 8px; }
.nav.is-floating .nav__bar {
  height: 56px; padding: 0 8px 0 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 32px -12px rgba(36, 36, 38, 0.18);
}
.nav.is-dark .nav__bar { color: #fff; }
.nav.is-floating.is-dark .nav__bar {
  background: rgba(53, 54, 59, 0.88);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 12px 32px -12px rgba(0,0,0,.5);
}
.nav.is-hidden .nav__bar { transform: translateY(-120%); }

.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.logo__word { font-size: 24px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; padding: 0 4px; }
.logo__word--lg { font-size: 32px; }
.logo__dot { color: var(--accent-text); }
.nav.is-dark .logo__dot, .on-dark .logo__dot, .dark .logo__dot { color: var(--accent-bright); }

.nav__links { display: flex; gap: 4px; }
.nav__link {
  position: relative; padding: 6px 12px; border-radius: 10px;
  font-size: 14px; color: currentColor; opacity: .75;
  transition: opacity .25s, background-color .25s;
}
.nav__link:hover, .nav__link[aria-current="true"] { opacity: 1; }
.nav__link:hover { background: var(--ink-06); }
.nav.is-dark .nav__link:hover { background: rgba(255,255,255,.08); }
.nav__cta { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* nav CTA: grey tile + label, same fill-hover mechanic */
.nav-btn {
  --tile: 32px; position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; height: 40px;
  padding: 4px 16px 4px 4px; border-radius: 12px; font-size: 14px; letter-spacing: -0.01em;
}
.nav-btn__fill { position: absolute; z-index: -1; left: 4px; top: 4px; width: var(--tile); height: var(--tile);
  border-radius: 9px; background: var(--ink-10); transition: width .5s var(--ease), background-color .3s; }
.nav-btn__arrow { width: var(--tile); height: var(--tile); display: grid; place-items: center; transition: transform .5s var(--ease); }
.nav-btn__arrow svg { width: 14px; height: 14px; }
.nav-btn:hover .nav-btn__fill { width: calc(100% - 8px); background: var(--accent); }
.nav-btn:hover { color: var(--ink); }
.nav-btn:hover .nav-btn__arrow { transform: rotate(-45deg); }
.nav.is-floating .nav-btn { background: transparent; }
.nav.is-dark .nav-btn__fill { background: rgba(255,255,255,.14); }
.nav.is-dark .nav-btn:hover .nav-btn__fill { background: var(--accent); }
.nav-login { font-size: 14px; opacity: .75; padding: 6px 10px; border-radius: 10px; transition: opacity .25s, background-color .25s; }
.nav-login:hover { opacity: 1; background: var(--ink-06); }
.nav.is-dark .nav-login:hover { background: rgba(255,255,255,.08); }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: 12px; justify-self: end; place-items: center; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s; }
.nav__burger span + span { margin-top: 5px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav__sheet {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface); color: var(--ink); border-radius: 16px; padding: 12px;
  box-shadow: 0 24px 48px -16px rgba(36,36,38,.25);
  clip-path: inset(0 0 100% 0 round 16px); opacity: 0;
  transition: clip-path .5s var(--ease), opacity .3s;
}
.nav.is-open .nav__sheet { clip-path: inset(0 0 0 0 round 16px); opacity: 1; }
.nav__sheet a { display: block; padding: 12px; font-size: 18px; letter-spacing: -0.02em; border-radius: 10px; }
.nav__sheet a:hover { background: var(--bg); }
.nav__sheet .btn { margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 38%, var(--bg) 100%); overflow: clip; }
.hero__inner { position: relative; height: 900px; max-height: 100svh; min-height: 760px; display: grid; grid-template-columns: 1.12fr .88fr; }
.hero__copy { align-self: center; padding-top: 32px; position: relative; z-index: 2; }
.hero__copy .chip { margin-bottom: 20px; margin-left: 34px; }
/* Three-line headline: scales with the viewport so the longest line never reaches the portrait. */
.hero__title.t-hero { max-width: 700px; font-size: clamp(52px, 5.4vw, 80px); line-height: 1.12; }
/* width: max-content — a line is as wide as its words, so the clip that hides the
   slide-up never cuts the END of a line; a long line runs on over the portrait
   (the copy sits above it, z-index 2). */
.hero__title .line { display: block; width: max-content; white-space: nowrap; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease); transition-delay: var(--d, 0s); }
.is-loaded .hero__title .line > span { transform: none; }
.hero__sub { max-width: 340px; margin-top: 16px; }
.hero__actions { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.proof { display: flex; align-items: center; gap: 10px; }
.avatars { display: flex; }
.avatars span {
  width: 32px; height: 32px; border-radius: 50%; margin-left: -8px;
  display: grid; place-items: center; font-size: 12px; color: var(--ink);
  box-shadow: 0 0 0 2px var(--bg);
}
.avatars span:first-child { margin-left: 0; }
.proof p { max-width: 120px; line-height: 1.3; }

.hero__visual { position: relative; }
.hero__portrait {
  position: absolute; bottom: 0; left: 50%; width: min(620px, 118%);
  transform: translateX(-46%);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
}
.hero__portrait img { width: 100%; height: auto; opacity: 0; transform: translateY(40px) scale(1.02);
  transition: opacity .7s var(--ease) .05s, transform .9s var(--ease) .05s; }
.is-loaded .hero__portrait img { opacity: 1; transform: none; }
.hero__portrait.is-fallback { width: 420px; bottom: 120px; border-radius: 28px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }


/* ============================================================
   DASHBOARD (hero centre shot, reused in CTA + gallery)
   ============================================================ */
.showcase { position: relative; background: var(--bg); padding-top: 40px; overflow-x: clip; }
.showcase__stage { perspective: 1800px; perspective-origin: 50% 0%; }
.dash-frame {
  --rx: 0deg; --sc: 1;
  position: relative; width: min(1200px, 100%); margin: 0 auto;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.25), 0 60px 120px -40px rgba(36,36,38,.35);
  transform: rotateX(var(--rx)) scale(var(--sc));
  transform-origin: 50% 0%;
  will-change: transform;
}
.dash {
  --dash-w: 1200;
  position: relative; display: grid; grid-template-columns: 72px 1fr; aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 38%, #f3f4f8 100%);
  border-radius: var(--r-xl); overflow: hidden; color: var(--ink);
}
.dash__side { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 28px 0; background: rgba(255,255,255,.55); }
.dash__side i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-50); }
.dash__side i svg { width: 18px; height: 18px; }
.dash__side i.on { background: var(--accent); color: var(--accent-ink); }
.dash__side .zmark { width: 32px; height: 32px; border-radius: 50%; background: var(--ink-2); display: grid; place-items: center; color: var(--accent-bright); margin-bottom: 20px; }
.dash__side .me { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; background: #c8b39c; display: grid; place-items: center; font-size: 12px; color: #fff; }
.dash__main { padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dash__title { font-size: 44px; letter-spacing: -0.04em; line-height: 1.1; }
.dash__status { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--ink-75); }
.dash__status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #7a7d8c; }
.dash__tools { display: flex; align-items: center; gap: 10px; }
.select { display: inline-flex; align-items: center; gap: 28px; height: 40px; padding: 0 14px 0 16px; border-radius: 12px; background: rgba(255,255,255,.8); font-size: 13px; }
.select svg { width: 14px; height: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-75); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn--dark { background: var(--ink-2); color: #fff; }
.dash__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; min-height: 0; }
.panel { background: rgba(255,255,255,.88); border-radius: var(--r-md); padding: 18px; min-width: 0; }
.panel--ghost { background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.panel__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-75); }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--ink-2); color: #fff; line-height: 1.5; }
.pill--grey { background: var(--bg); color: var(--ink-75); }
.pill--accent { background: var(--accent); color: var(--accent-ink); }
.panel__big { font-size: 34px; letter-spacing: -0.04em; margin-top: 6px; line-height: 1.1; }
.panel__big small { font-size: 20px; color: var(--ink-50); }
.chart { height: 190px; margin-top: 14px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .ax { font-size: 10px; fill: var(--ink-50); }
.chart__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ink-10); }
.chart__stats p:first-child { font-size: 12px; color: var(--ink-50); }
.chart__stats p:last-child { font-size: 18px; letter-spacing: -0.02em; }
.breakdown__bar { display: flex; gap: 4px; height: 8px; margin: 14px 0 12px; }
.breakdown__bar span { border-radius: 99px; }
.breakdown li { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; border-top: 1px solid var(--ink-06); }
.breakdown li:first-child { border-top: 0; }
.breakdown li i { width: 8px; height: 8px; border-radius: 50%; }
.breakdown li span:nth-child(3) { color: var(--ink-50); }
.breakdown li span:last-child { min-width: 64px; text-align: right; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 10px; color: var(--ink-50); text-align: center; margin-top: 16px; }
.track { position: relative; height: 34px; margin-top: 10px; border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--ink-06) calc(100% / 12 - 1px) calc(100% / 12)); }
.track span { position: absolute; top: 6px; bottom: 6px; border-radius: 8px; font-size: 10px; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.mini-stat { display: flex; flex-direction: column; justify-content: space-between; }
.mini-stat .panel__big { font-size: 40px; margin-top: 28px; }
.mini-stat .days { display: flex; gap: 4px; }
.mini-stat .days span { flex: 1; font-size: 10px; text-align: center; background: var(--bg); padding: 6px 0; border-radius: 8px; color: var(--ink-50); }
.mini-stat .days span.on { background: var(--ink-2); color: #fff; }

.showcase__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 620px; background: linear-gradient(180deg, rgba(235,239,245,0) 0%, rgba(235,239,245,.85) 45%, var(--bg) 70%); pointer-events: none; z-index: 2; }

/* marquee of topics people bring */
.topics { position: relative; z-index: 3; margin-top: -200px; padding-bottom: 40px; }
.topics__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.link-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 4px 16px 4px 4px; border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--ink-75); transition: color .25s; }
.link-btn__ico { width: 32px; height: 32px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; transition: background-color .3s, transform .5s var(--ease); }
.link-btn__ico svg { width: 14px; height: 14px; }
.link-btn:hover { color: var(--ink); }
.link-btn:hover .link-btn__ico { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.marquee { position: relative; overflow: hidden; margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.topic { display: inline-flex; align-items: center; gap: 12px; padding: 0 36px; height: 80px; font-size: 30px; letter-spacing: -0.04em; color: rgba(36,36,38,.38); white-space: nowrap; transition: color .3s; }
.topic svg { width: 30px; height: 30px; }
.topic:hover { color: var(--ink); }

/* ============================================================
   ABOUT — statement + benefit tiles
   ============================================================ */
.about { background: var(--bg); padding: 160px 0 120px; }
.statement { max-width: 740px; margin: 0 auto; text-align: center; }
.statement .dim { color: var(--ink-50); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin: 72px auto 0; border-top: 1px solid var(--ink-10); }
.benefit { display: flex; align-items: center; gap: 14px; padding: 28px 24px; border-left: 1px solid var(--ink-10); }
.benefit:first-child { border-left: 0; }
.benefit__ico { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); }
.benefit__ico svg { width: 22px; height: 22px; }

/* ============================================================
   FEATURE STACK — sticky cards sliding over each other
   ============================================================ */
.stack { background: var(--bg); padding: 40px 0 200px; }
.stack__list { display: grid; gap: 196px; }
.fcard {
  position: sticky; top: 98px;
  display: grid; grid-template-columns: 1fr 1fr; height: 704px; max-height: calc(100svh - 120px);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 -24px 60px -30px rgba(36,36,38,.25);
  background: var(--surface);
}
.fcard--flip .fcard__copy { order: 2; }
.fcard__copy { display: flex; flex-direction: column; padding: 56px; background: var(--surface); position: relative; z-index: 1; }
.fcard__copy .chip { align-self: flex-start; margin-bottom: 48px; }
.fcard__copy h3 { max-width: 400px; }
.fcard__copy p { max-width: 320px; margin-top: 24px; }
.fcard__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 24px; border-top: 1px solid var(--ink-06); }
.check { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink-50); display: grid; place-items: center; flex: none; }
.check svg { width: 11px; height: 11px; }
.fcard__art { position: relative; overflow: hidden; display: grid; place-items: center; }
.fcard__art::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; opacity: .5; pointer-events: none; }
.art-1 { background: radial-gradient(120% 90% at 20% 10%, #f3e7da 0%, transparent 55%), radial-gradient(90% 80% at 90% 90%, #9aa0bf 0%, transparent 60%), linear-gradient(160deg, #d9d6df, #aeb2c8); }
.art-2 { background: radial-gradient(100% 90% at 80% 0%, #eef2d6 0%, transparent 55%), radial-gradient(90% 90% at 10% 100%, #8f94b4 0%, transparent 65%), linear-gradient(200deg, #dfe3ea, #b9bdd3); }
.art-3 { background: radial-gradient(110% 80% at 30% 100%, #e7d7c8 0%, transparent 55%), radial-gradient(90% 80% at 90% 10%, #b6bbd9 0%, transparent 60%), linear-gradient(170deg, #e4e3ea, #c3c1cc); }
.art-4 { background: radial-gradient(120% 90% at 70% 90%, #d7e7c8 0%, transparent 55%), radial-gradient(90% 90% at 10% 0%, #a3a8c9 0%, transparent 60%), linear-gradient(190deg, #e8e9ef, #b2b6cc); }
.art-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .7; }
.art-ui { position: relative; z-index: 2; width: min(360px, 78%); background: var(--surface); border-radius: var(--r-md); padding: 18px; box-shadow: 0 40px 80px -30px rgba(36,36,38,.45); }
.art-ui .ghost { position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.4); z-index: -1; }
.art-ui--stacked::before, .art-ui--stacked::after { content: ""; position: absolute; left: 16px; right: 16px; height: 100%; top: -12px; border-radius: inherit; background: rgba(255,255,255,.55); z-index: -1; }
.art-ui--stacked::after { left: 32px; right: 32px; top: -24px; background: rgba(255,255,255,.3); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--ink-10); }
.bars span { flex: 1; height: 100%; background: linear-gradient(180deg, #b7bad6, #e2e4ef); border-radius: 3px 3px 1px 1px; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 25ms); }
.bars span.hi { background: linear-gradient(180deg, var(--ink-2), #5b5d66); }
.bars span.you { background: var(--accent); }
.is-in .bars span, .bars.is-in span { transform: scaleY(var(--v)); }
.story { display: grid; gap: 8px; margin-top: 12px; }
.story div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 12px; }
.story s { color: var(--ink-50); }
.story div.good { background: var(--accent-soft); }

/* ============================================================
   DARK SECTIONS (bento + gallery) share one canvas
   ============================================================ */
.dark { background: var(--dark); color: #fff; }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.sec-head .chip { margin-bottom: 16px; }
.sec-head p { max-width: 540px; margin-top: 16px; }

.bento { padding: 200px 0 120px; }
.bento__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.bento__col { display: grid; gap: 16px; align-content: start; }
.bcard { position: relative; border-radius: var(--r-xl); overflow: hidden; color: var(--ink); text-align: center; padding: 28px 24px 0; }
.bcard .chip { margin-bottom: 18px; }
.bcard h4 { margin-bottom: 4px; }
.bcard--tall { height: 584px; }
.bcard--short { height: 382px; }
.bcard--grad { color: #fff; background: linear-gradient(180deg, #686b86 0%, #9ea2c0 45%, #d9dbe9 100%); }
.bcard--grad .muted { color: rgba(255,255,255,.8); }
.bcard--grad .chip { background: rgba(255,255,255,.18); color: #fff; }
.bcard--grad .chip__ico { background: var(--surface); color: var(--ink); }
.bcard--white { background: linear-gradient(180deg, #fff 0%, #ebeff5 100%); }
.bcard--white .chip { background: var(--bg); }
.bcard--white .chip__ico { background: var(--surface); }

/* gravity pile */
.gravity { position: absolute; inset: 0; pointer-events: none; }
.gpill { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 10px; border-radius: 99px;
  background: rgba(53, 54, 59, 0.78); color: #fff; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; pointer-events: auto; cursor: grab; user-select: none; touch-action: none; will-change: transform; }
.gpill:active { cursor: grabbing; }
.gpill i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.gpill i svg { width: 16px; height: 16px; }

/* ticker (deadlines) */
.ticker { position: absolute; left: 0; right: 0; bottom: 40px; height: 170px; }
.ticker__track { position: absolute; left: 50%; top: 0; display: flex; gap: 12px; transition: transform .9s var(--ease); }
.tick { width: 150px; height: 150px; flex: none; border-radius: var(--r-md); background: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 16px; color: var(--ink); transition: transform .9s var(--ease), background-color .6s, box-shadow .6s; }
.tick b { font-weight: 400; font-size: 18px; letter-spacing: -0.02em; }
.tick .ico { width: 40px; height: 40px; margin-bottom: auto; border-radius: 12px; display: grid; place-items: center; background: var(--bg); }
.tick .ico svg { width: 18px; height: 18px; }
.tick.is-active { background: var(--surface); transform: scale(1.08); box-shadow: 0 0 0 3px var(--ink-2), 0 20px 40px -18px rgba(0,0,0,.4); }

/* number / notification card */
.notif { margin: 26px auto 0; width: 88%; border-radius: var(--r-md); background: var(--ink-2); color: #fff; text-align: left; overflow: hidden; box-shadow: 0 24px 40px -20px rgba(0,0,0,.35); }
.notif__top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; }
.notif__top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(217,255,92,.2); }
.notif__top span:last-child { margin-left: auto; color: rgba(255,255,255,.5); }
.notif__body { margin: 0 4px 4px; background: var(--surface); border-radius: 12px; padding: 14px 16px; color: var(--ink); font-size: 44px; letter-spacing: -0.05em; line-height: 1; }
.notif__body .ghost { color: var(--ink-50); }

/* rotator (weekly check-ins) */
.dial { position: absolute; left: 50%; top: 250px; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.4); transition: transform 1.1s var(--ease); }
.dial button { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35);
  transform: rotate(var(--a)) translateY(-280px) rotate(calc(var(--a) * -1 - var(--spin, 0deg))); transition: transform 1.1s var(--ease), background-color .4s; }
.dial button svg { width: 20px; height: 20px; }
.dial button.on { background: var(--accent); color: var(--accent-ink); }
.rot-count { position: absolute; left: 0; right: 0; bottom: 64px; color: var(--ink); }
.rot-count b { display: block; font-weight: 400; font-size: 64px; letter-spacing: -0.04em; line-height: 1; }
.rot-count span { font-size: 16px; color: var(--ink-75); }
.flip { display: inline-block; transition: transform .5s var(--ease), opacity .4s; }
.flip.out { transform: translateY(-40%); opacity: 0; }

/* application list (vertical auto-scroll) */
.vlist { position: absolute; left: 20px; right: 20px; top: 150px; bottom: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent); }
.vlist__track { display: grid; gap: 10px; animation: vscroll 18s linear infinite; }
.vlist:hover .vlist__track { animation-play-state: paused; }
@keyframes vscroll { to { transform: translateY(-50%); } }
.app-row { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; text-align: left; box-shadow: 0 1px 0 var(--ink-06); }
.app-row__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-50); }
.app-row h5 { font-size: 20px; letter-spacing: -0.02em; margin: 8px 0 4px; color: var(--ink-75); }
.app-row__bot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-50); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); padding: 2px 10px 2px 2px; border-radius: 99px; background: var(--bg); }
.status i { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.status--offer { background: var(--accent); color: var(--accent-ink); flex-direction: row-reverse; padding: 2px 2px 2px 10px; }
.status--call { background: #e5d7c6; }

/* red flag alert */
.alert { position: absolute; left: 20px; right: 20px; bottom: 20px; border-radius: var(--r-md); background: var(--ink-2); padding: 4px; text-align: left; box-shadow: 0 30px 50px -20px rgba(0,0,0,.35); }
.alert__card { background: var(--surface); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.alert__ico { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink-10); display: grid; place-items: center; flex: none; }
.alert__ico svg { width: 16px; height: 16px; }
.alert__card p { font-size: 14px; }
.alert__card p + p { font-size: 13px; color: var(--ink-50); }
.alert__foot { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 13px; padding: 10px 10px 8px 12px; }
.toggle { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.2); position: relative; transition: background-color .4s; }
.toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .45s var(--ease); }
.toggle.on { background: var(--accent-bright); }
.toggle.on::after { transform: translateX(14px); background: var(--surface); }

/* ============================================================
   GALLERY — pinned stage; the screen slides aside for the tabs
   ============================================================ */
.gallery { padding: 80px 0 0; }
.gallery__pin { position: relative; height: 380vh; } /* room to scroll through all three cards */
.gallery__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.gallery__stage { --p: 0; position: relative; width: 100%; max-width: var(--container); margin: 0 auto; height: min(640px, 76svh); }
.gallery__panel {
  position: absolute; left: 0; top: 50%; width: 360px; transform: translate(calc(-60px * (1 - var(--pp, 0))), -50%);
  opacity: var(--pp, 0); pointer-events: none;
}
.gallery__stage.is-open .gallery__panel { pointer-events: auto; }
.gtabs { margin-top: 36px; display: grid; gap: 6px; }
.gtab { position: relative; text-align: left; padding: 16px 0 18px; opacity: .45; transition: opacity .4s; }
.gtab.is-active, .gtab:hover { opacity: 1; }
.gtab p { margin-top: 4px; max-width: 320px; }
.gtab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.gtab__bar span { position: absolute; inset: 0; background: var(--accent-bright); transform-origin: left; transform: scaleX(0); }
.gtab.is-active .gtab__bar span { animation: tabfill var(--tab-ms, 5000ms) linear forwards; }
.gallery__stage.is-paused .gtab.is-active .gtab__bar span { animation-play-state: paused; }
/* Scroll-driven (desktop): the bar is the scroll, not a timer. */
.gallery__stage.is-scroll .gtab .gtab__bar span { animation: none; transition: transform .12s linear; }
@keyframes tabfill { to { transform: scaleX(1); } }
.gallery__panel .btn { margin-top: 36px; }
.gallery__frame {
  position: absolute; top: 50%; left: 50%; width: 820px;
  transform: translate(calc(-50% + 190px * var(--pp, 0)), -50%) scale(calc(1 - .06 * var(--pp, 0)));
  border-radius: 32px; padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 40%, rgba(217,255,92,.10));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 60px 120px -40px rgba(0,0,0,.6);
}
.gallery__frame::before { content: ""; position: absolute; inset: auto 10% -30px; height: 80px; background: radial-gradient(closest-side, rgba(217,255,92,.28), transparent); filter: blur(20px); z-index: -1; }
.gscreens { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10.5; background: #f3f4f8; }
.gscreen { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.gscreen.is-active { opacity: 1; transform: none; }
.gscreen .dash { aspect-ratio: auto; height: 100%; grid-template-columns: 56px 1fr; border-radius: 0; }
.gscreen .dash__main { padding: 24px 26px; gap: 14px; }
.gscreen .dash__title { font-size: 30px; }
.gscreen .dash__side { gap: 16px; padding: 20px 0; }
.gscreen .dash__side i { width: 30px; height: 30px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis .panel { padding: 12px; }
.kpis .panel__big { font-size: 24px; margin-top: 18px; }
.gscreen .dash__grid { grid-template-columns: 1.3fr 1fr; gap: 10px; }
.gscreen .panel { padding: 12px; }
.gscreen .chart { height: 130px; }

/* ============================================================
   CHANNELS (pricing layout)
   ============================================================ */
.channels { background: var(--bg); padding: 160px 0 120px; }
.folder { position: relative; max-width: var(--container); margin: 64px auto 0; }
.folder__body { position: relative; border-radius: var(--r-xl); padding: 8px; background: linear-gradient(180deg, #fff 0%, #dfe1f1 55%, #b8bbdb 100%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan { background: var(--surface); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.plan.is-featured { box-shadow: 0 30px 60px -30px rgba(36,36,38,.35); }
.plan__big { font-size: 56px; letter-spacing: -0.04em; line-height: 1.1; margin-top: 40px; }
.plan__sub { margin-top: 4px; }
.plan .btn { margin-top: 28px; }
.plan__feats { margin-top: 28px; }
.plan__feats li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ink-06); }
.plan__feats li:first-child { border-top: 0; }
.plan__feats svg { width: 14px; height: 14px; flex: none; color: var(--ink-50); }
.teams { margin-top: 8px; border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.25)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.teams .chip { margin-bottom: 20px; }
.teams p { max-width: 440px; margin-top: 8px; }
.teams .btn { min-width: 300px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg); padding: 160px 0 140px; }
.faq__box { display: grid; grid-template-columns: 280px 1fr; margin-top: 64px; border-radius: var(--r-xl); background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); padding: 8px; gap: 8px; }
.faq__tabs { background: rgba(36,36,38,.05); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.faq__tab { text-align: left; padding: 16px 16px; border-radius: 12px; font-size: 18px; color: var(--ink-50); transition: background-color .35s, color .35s; }
.faq__tab:hover { color: var(--ink-75); }
.faq__tab[aria-selected="true"] { background: var(--surface); color: var(--ink-75); }
.faq__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.faq__pane[hidden] { display: none; }
.faq__pane { display: grid; gap: 4px; animation: pane-in .6s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px); } }
.qa { background: var(--surface); border-radius: 4px; }
.qa:first-child { border-radius: 16px 16px 4px 4px; }
.qa:last-child { border-radius: 4px 4px 16px 16px; }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 24px 36px; font-size: 24px; letter-spacing: -0.02em; color: var(--ink-75); }
.qa__icon { position: relative; width: 16px; height: 16px; flex: none; transition: transform .5s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 2px; }
.qa__icon::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.qa[data-open] .qa__icon { transform: rotate(180deg); }
.qa[data-open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa[data-open] .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 36px 26px; max-width: 760px; font-size: 18px; color: var(--ink-75); opacity: 0; transform: translateY(-6px); transition: opacity .45s, transform .55s var(--ease); }
.qa[data-open] .qa__a p { opacity: 1; transform: none; transition-delay: .1s; }
.contact { position: relative; background: var(--surface); border-radius: 16px; padding: 36px; min-height: 290px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.contact .chip { align-self: flex-start; margin-bottom: 28px; }
.contact h5 { max-width: 380px; color: var(--ink); }
.contact p { max-width: 400px; margin-top: 8px; }
.contact .btn { margin-top: 24px; align-self: flex-start; }
.contact__img { position: absolute; right: 24px; bottom: 0; width: 300px; }
.contact__img img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.contact__img.is-fallback { width: 200px; bottom: 36px; right: 36px; border-radius: 24px; overflow: hidden; }
.contact__img.is-fallback img { -webkit-mask-image: none; mask-image: none; }

/* ============================================================
   BLOG
   ============================================================ */
.blog { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 140px 0 160px; }
.blog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.blog__head p { margin-top: 16px; max-width: 360px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.post { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-xl); padding: 8px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(36,36,38,.35); }
.post__art { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; }
.post__art > div { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.post:hover .post__art > div { transform: scale(1.06); }
.post__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post__body { padding: 20px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; justify-content: space-between; gap: 12px; }
.post h6 { margin-top: 16px; color: var(--ink-2); }
.post__read { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 6px; }
.post__read svg { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.post:hover .post__read { color: var(--ink); }
.post:hover .post__read svg { transform: translateX(4px) rotate(-45deg); }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--bg); padding: 0 16px; }
.cta__panel { position: relative; background: var(--dark); color: #fff; border-radius: var(--r-2xl); padding: 120px 0 0; overflow: hidden; text-align: center; }
.cta__panel::before { content: ""; position: absolute; left: 50%; top: -30%; width: 1200px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(165,178,207,.32), transparent 70%); pointer-events: none; }
.cta__title { max-width: 720px; margin: 0 auto; }
.cta__panel > .container > p { max-width: 460px; margin: 20px auto 0; }
.cta__panel .btn { margin-top: 36px; }
.cta__shot { position: relative; width: min(1100px, calc(100% - 80px)); margin: 80px auto 0; height: 480px; overflow: hidden; }
.cta__shot .dash-frame { --ty: 120px; transform: translateY(var(--ty)); box-shadow: 0 0 0 12px rgba(255,255,255,.08); }
.cta__shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, transparent, var(--dark)); pointer-events: none; }

/* ============================================================
   FOOTER
   ============================================================ */
/* Dusk: starts on the page colour so there's no seam under the CTA, then
   settles into the same lavender the cards and artwork use. */
.footer {
  background:
    radial-gradient(70% 90% at 78% 100%, rgba(157, 161, 196, .55), transparent 70%),
    radial-gradient(50% 60% at 8% 100%, rgba(217, 255, 92, .14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #e2e5f0 35%, #d1d4e6 70%, #c3c6dd 100%);
  padding: 72px var(--gutter) 24px; overflow: hidden;
}
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; max-width: var(--container); margin: 0 auto; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols h2 { font-size: 18px; color: var(--ink-75); margin-bottom: 16px; }
.footer__cols a { display: block; width: fit-content; padding: 3px 0; color: var(--ink-75); position: relative; }
.footer__cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.footer__cols a:hover { color: var(--ink); }
.footer__cols a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__bottom { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; max-width: var(--container); margin: 56px auto 0; container-type: inline-size; }
.copyright { background: var(--ink-2); color: #fff; border-radius: var(--r-md); padding: 18px 22px; font-size: 14px; justify-self: start; min-width: min(450px, 100%); }
.bigword { font-family: "Rubik 80s Fade", var(--font); /* "itszia." is ~3.2em wide: fill the full footer width */ font-size: calc(100cqi / 3.25); font-weight: 400; letter-spacing: -0.02em; line-height: .9; color: var(--ink); display: flex; overflow: hidden; padding-top: .08em; justify-self: center; order: -1; }
.bigword span { display: inline-block; transform: translateY(100%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.bigword.is-in span { transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  :root { --gutter: 32px; }
  .t-hero { font-size: 72px; }
  .t-h2 { font-size: 48px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; }
  .fcard__copy { padding: 44px; }
  .gallery__frame { width: 680px; }
  .gallery__panel { width: 300px; }
  .plan { padding: 24px; }
  .plan__big { font-size: 46px; }
}

@media (max-width: 1023px) {
  .t-hero { font-size: 60px; }
  .t-h1 { font-size: 52px; }
  .t-h2 { font-size: 44px; }
  .t-h3 { font-size: 30px; }
  .t-h4 { font-size: 28px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .nav__sheet { display: block; }
  .nav__bar { grid-template-columns: 1fr auto; }
  .hero__inner { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; padding-top: 140px; }
  .hero__title.t-hero { font-size: 60px; }
  .hero__copy { padding-top: 0; }
  .hero__visual { height: auto; margin-top: 32px; }
  .hero__portrait { position: relative; left: auto; bottom: auto; width: min(480px, 100%); margin: 0 auto; transform: none; }
  .dash { aspect-ratio: auto; }
  .dash__grid { grid-template-columns: 1fr 1fr; }
  .dash__grid > :nth-child(1) { grid-column: 1 / -1; }
  .benefits { grid-template-columns: 1fr; max-width: 520px; }
  .benefit { border-left: 0; border-top: 1px solid var(--ink-10); }
  .benefit:first-child { border-top: 0; }
  .fcard, .fcard--flip { grid-template-columns: 1fr; height: auto; max-height: none; position: relative; top: auto; }
  .fcard--flip .fcard__copy { order: 0; }
  .fcard__art { min-height: 460px; }
  .stack__list { gap: 24px; }
  .bento__grid { grid-template-columns: 1fr 1fr; }
  .bento__col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .gallery__pin { height: auto; }
  .gallery__sticky { position: relative; height: auto; display: block; padding: 40px 0 120px; }
  .gallery__stage { height: auto; display: flex; flex-direction: column-reverse; gap: 48px; --pp: 1 !important; }
  .gallery__panel, .gallery__frame { position: relative; left: auto; top: auto; transform: none; width: 100%; opacity: 1; pointer-events: auto; }
  .plans { grid-template-columns: 1fr; }
  .teams { grid-template-columns: 1fr; align-items: start; }
  .faq__box { grid-template-columns: 1fr; }
  .faq__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .faq__tab { white-space: nowrap; font-size: 16px; padding: 12px 16px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post:nth-child(3) { display: none; }
  .footer__top, .footer__bottom { grid-template-columns: 1fr; }

}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { font-size: 14px; }
  .t-hero { font-size: 44px; line-height: 1.15; }
  .t-h1 { font-size: 40px; }
  .t-h2 { font-size: 36px; }
  .t-h3 { font-size: 26px; }
  .t-h4 { font-size: 26px; }
  .t-h5 { font-size: 20px; }
  .t-lg { font-size: 16px; }
  .nav { padding: 0 12px; }
  .hero__inner { padding-top: 120px; }
  .hero__copy .chip { margin-left: 0; }
  .hero__title .line { white-space: normal; width: auto; }
  .hero__title.t-hero { font-size: 44px; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__visual { overflow: clip; }
  .hero__portrait { width: min(340px, 100%); }
  .showcase { padding-top: 16px; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__main { padding: 20px; }
  .dash__title { font-size: 30px; }
  .dash__tools .select, .dash__tools .icon-btn:not(.icon-btn--dark) { display: none; }
  .dash__grid { grid-template-columns: 1fr; }
  .dash__grid > .panel--hide-sm { display: none; }
  .dash-frame { box-shadow: 0 0 0 6px rgba(255,255,255,.3), 0 40px 80px -40px rgba(36,36,38,.35); }
  .topics { margin-top: -60px; }
  .topics__head { flex-direction: column; align-items: flex-start; }
  .topic { font-size: 22px; padding: 0 20px; height: 60px; }
  .about { padding: 110px 0 80px; }
  .benefit { padding: 20px 4px; }
  .fcard__copy { padding: 28px; }
  .fcard__copy .chip { margin-bottom: 28px; }
  .fcard__art { min-height: 380px; }
  .bento { padding: 120px 0 80px; }
  .bento__grid, .bento__col:nth-child(3) { grid-template-columns: 1fr; }
  .bento__col:nth-child(3) { grid-column: auto; }
  .gallery__frame { padding: 10px; border-radius: 20px; }
  /* The card was a fixed 4:5 frame, so the week list was clipped. Size it to the content. */
  .gscreens { aspect-ratio: auto; height: auto; }
  .gscreen { position: absolute; height: auto; }
  .gscreen.is-active { position: relative; }
  .gscreen .dash { height: auto; grid-template-columns: 1fr; }
  .gscreen .dash__side { display: none; }
  .gscreen .dash__main { padding: 14px; gap: 12px; }
  .gscreen .dash__title { font-size: 24px; }
  .gscreen .dash__status { font-size: 13px; flex-wrap: wrap; }
  .gscreen .kpis { grid-template-columns: 1fr 1fr; }
  .gscreen .kpis .panel__big { font-size: 20px; margin-top: 8px; overflow-wrap: anywhere; }
  .gscreen .kpis .panel:nth-child(n+3), .gscreen .dash__grid > :nth-child(2) { display: none; }
  .gscreen .dash__grid { grid-template-columns: 1fr; }
  .gscreen .story div { align-items: flex-start; }
  .gscreen .story div > span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .channels { padding: 110px 0 80px; }
  .plan { padding: 24px 20px; }
  .teams { padding: 24px 20px; }
  .teams .btn { min-width: 0; width: 100%; }
  .faq { padding: 110px 0 90px; }
  .qa__q { padding: 20px; font-size: 18px; }
  .qa__a p { padding: 0 20px 20px; font-size: 16px; }
  .contact { padding: 24px; padding-bottom: 220px; }
  .contact__img { width: 220px; right: 50%; transform: translateX(50%); }
  .blog { padding: 100px 0 110px; }
  .blog__head { flex-direction: column; align-items: flex-start; }
  .posts { grid-template-columns: 1fr; }
  .posts .post:nth-child(3) { display: flex; }
  .cta { padding: 0 8px; }
  .cta__panel { padding-top: 90px; border-radius: 28px; }
  .cta__shot { width: calc(100% - 32px); height: 300px; margin-top: 56px; }
  .footer { padding-top: 56px; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }

}

@media (hover: none) {
  .btn:hover .btn__fill { width: var(--tile); }
  .btn:hover .btn__label { color: inherit; }
  .btn--light:hover .btn__label { color: var(--ink-75); }
  .btn:hover .btn__arrow { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal], .words .w, .hero__title .line > span, .hero__portrait img, .bigword span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee__track, .vlist__track { animation: none !important; }
  .dash-frame { --rx: 0deg !important; --sc: 1 !important; }
}

/* ============================================================
   INNER PAGES — blog, changelog, contact
   ============================================================ */
.page-hero { background: var(--bg); padding: 190px 0 64px; text-align: center; }
.page-hero .chip { margin-bottom: 20px; }
.page-hero p { max-width: 540px; margin: 20px auto 0; }
.page-body { background: var(--bg); padding-bottom: 120px; }

/* Blog: one featured post, then a three-up grid */
.post--feature { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.post--feature .post__art { aspect-ratio: auto; min-height: 444px; }
.post--feature .post__body { padding: 32px 32px 28px; }
.post--feature h2 { margin-top: 20px; max-width: 520px; color: var(--ink); }
.post--feature .post__excerpt { margin-top: 16px; max-width: 460px; }
.post__foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.round-btn { width: 48px; height: 48px; border-radius: 16px; background: var(--ink-2); color: #fff; display: grid; place-items: center; transition: background-color .35s, color .35s, transform .5s var(--ease); }
.round-btn svg { width: 18px; height: 18px; }
.post:hover .round-btn { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.posts--page { margin-top: 24px; }
.posts--page .post:nth-child(3) { display: flex; }

/* Changelog: sticky date rail beside each release */
.releases { display: grid; gap: 0; }
.release { display: grid; grid-template-columns: 473px 1fr; padding: 64px 0; border-top: 1px solid var(--ink-10); }
.release:first-child { border-top: 0; padding-top: 0; }
.release__rail { align-self: start; position: sticky; top: 120px; display: flex; gap: 24px; align-items: center; }
.release__tag { padding: 2px 10px; border-radius: 99px; background: var(--surface); font-size: 12px; color: var(--ink-75); }
.release__body { max-width: 667px; }
.release__body h2 { font-size: 18px; color: var(--ink); }
.release__body > p { font-size: 18px; color: var(--ink-75); margin-top: 20px; max-width: 620px; }
.release__shot { margin: 36px 0 8px; border-radius: var(--r-xl); padding: 40px; display: grid; place-items: center; overflow: hidden; position: relative; }
.release__shot .art-ui { width: min(420px, 100%); }
.changes { margin-top: 36px; display: grid; gap: 28px; }
.changes h3 { font-size: 18px; color: var(--ink-75); margin-bottom: 10px; }
.changes li { position: relative; padding: 8px 0 8px 20px; font-size: 16px; color: var(--ink-75); }
.changes li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-50); }
.changes li b { font-weight: 500; color: var(--ink); margin-right: 6px; }

/* Contact: pitch on the left, form card on the right, three help cards below */
.contact-page { background: var(--bg); padding: 190px 0 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr 568px; gap: 56px; align-items: start; }
.contact-intro { position: sticky; top: 140px; }
.contact-intro h1 { max-width: 568px; }
.contact-intro > p { max-width: 540px; margin-top: 24px; }
.contact-intro .proof { margin-top: 48px; }
.contact-intro .proof p { max-width: none; }
.form-card { background: var(--dark); border-radius: var(--r-xl); padding: 8px; color: #fff; }
.form-card__head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px 28px 32px; align-items: start; }
.form-card__head p { color: rgba(255,255,255,.75); }
.form { background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-75); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23242426' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-50); }
.field input:hover, .field select:hover, .field textarea:hover { background: #e3e8f0; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217,255,92,.55); }
.field [aria-invalid="true"] { border-color: #c2412d; background: #fff6f4; }
.field__err { font-size: 13px; color: #b03a28; min-height: 0; }
.form .btn { grid-column: 1 / -1; height: 52px; --h: 52px; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-50); text-align: center; }
.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.help-card { background: var(--surface); border-radius: var(--r-xl); padding: 36px; min-height: 311px; display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.help-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(36,36,38,.35); }
.help-card__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.help-card__ico svg { width: 22px; height: 22px; }
.help-card h2 { margin-top: auto; }
.help-card p { margin-top: 8px; }
.help-card .link-btn { margin-top: 24px; align-self: flex-start; background: var(--bg); }
.help-card:hover .link-btn { color: var(--ink); }
.help-card:hover .link-btn__ico { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.help-card .link-btn__ico { background: var(--surface); }

@media (max-width: 1023px) {
  .post--feature { grid-template-columns: 1fr; }
  .post--feature .post__art { min-height: 300px; }
  .release { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .release__rail { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .help-cards { grid-template-columns: 1fr; }
  .help-card { min-height: 0; }
  .help-card h2 { margin-top: 28px; }
}
@media (max-width: 767px) {
  .page-hero, .contact-page { padding-top: 130px; }
  .post--feature .post__body { padding: 20px 16px 16px; }
  .release__body > p { font-size: 16px; }
  .release__shot { padding: 20px; }
  .form-card__head { grid-template-columns: 1fr; padding: 20px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .help-card { padding: 24px; }
}
.blog__more { display: flex; justify-content: center; margin-top: 48px; }

/* Post preview: a miniature of the Substack article, fading out at the bottom */
.post__art--preview { background: linear-gradient(180deg, #eef1f6, #e2e7ef); padding: 22px 22px 0; }
.pv {
  height: 100%; background: var(--surface); border-radius: 12px 12px 0 0; padding: 18px 20px;
  box-shadow: 0 1px 0 rgba(36,36,38,.06), 0 20px 40px -24px rgba(36,36,38,.3);
  color: var(--ink); text-align: left; overflow: hidden; position: relative;
  transform-origin: 50% 0; transition: transform 1s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
}
.post:hover .pv { transform: translateY(-14px); }
.pv__pub { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--ink-06); font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.pv__pub img, .pv__byline img { border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--accent-soft); }
.pv__pub img { width: 22px; height: 22px; }
.pv__sub { margin-left: auto; font-size: 10px; font-weight: 500; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 99px; }
.pv__title { font-size: 17px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv__subtitle { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv__byline { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; }
.pv__byline img { width: 18px; height: 18px; }
.pv__lead { margin-top: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 12.5px; line-height: 1.6; color: rgba(36,36,38,.82); }
.post__art--preview.is-big { padding: 40px 48px 0; }
.is-big .pv { padding: 28px 32px; border-radius: 16px 16px 0 0; }
.is-big .pv__pub { font-size: 14px; padding-bottom: 16px; margin-bottom: 22px; }
.is-big .pv__pub img { width: 28px; height: 28px; }
.is-big .pv__sub { font-size: 12px; padding: 4px 12px; }
.is-big .pv__title { font-size: 28px; line-height: 1.18; -webkit-line-clamp: 4; }
.is-big .pv__subtitle { font-size: 15px; margin-top: 10px; }
.is-big .pv__byline { font-size: 13px; margin-top: 18px; }
.is-big .pv__byline img { width: 24px; height: 24px; }
.is-big .pv__lead { font-size: 15px; margin-top: 18px; }
@media (max-width: 767px) {
  .post__art--preview.is-big { padding: 20px 20px 0; }
  .is-big .pv { padding: 18px 20px; }
  .is-big .pv__title { font-size: 20px; }
}

/* ============================================================
   DARK THEME — set by data-theme="dark" on <html> (see the head script).
   Tokens flip first; the overrides below cover gradients and translucent
   whites that were tuned for the light page.
   ============================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;
  /* Mirrors app/globals.css .dark: background, card, raised, white ink tiers. */
  --bg: #16171b;
  --canvas-top: #26273b;
  --canvas-mid: #1e1f26;
  --white: #242426;
  --surface: #242426;
  --surface-2: #35363b;
  --ink: #f5f5f6;
  --ink-2: #35363b;
  --ink-75: rgba(245, 245, 246, 0.75);
  --ink-50: rgba(245, 245, 246, 0.5);
  --ink-10: rgba(255, 255, 255, 0.08);
  --ink-06: rgba(255, 255, 255, 0.06);
  --dark: #242426;
  --dark-2: #18181a;
  --accent-soft: rgba(217, 255, 92, 0.14);
  --accent-text: #d9ff5c;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] :focus-visible { outline-color: var(--accent-bright); }

/* nav */
[data-theme="dark"] .nav.is-floating .nav__bar { background: rgba(36, 36, 38, 0.92); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 12px 32px -12px rgba(0,0,0,.6); }
[data-theme="dark"] .nav.is-floating.is-dark .nav__bar { background: rgba(24, 24, 26, 0.92); }
[data-theme="dark"] .nav-login:hover, [data-theme="dark"] .nav__link:hover { background: rgba(255,255,255,.07); }

/* hero + dashboard shot */
[data-theme="dark"] .dash-frame { box-shadow: 0 0 0 12px rgba(255,255,255,.05), 0 60px 120px -40px rgba(0,0,0,.7); }
[data-theme="dark"] .dash { background: linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 38%, #191a1e 100%); }
[data-theme="dark"] .dash__side { background: rgba(255,255,255,.03); }
[data-theme="dark"] .panel { background: var(--surface); }
[data-theme="dark"] .panel--ghost { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
[data-theme="dark"] .select { background: var(--surface-2); }
[data-theme="dark"] .track span { color: #242426; }
[data-theme="dark"] .avatars span:not([style*="color"]) { color: #242426; }
[data-theme="dark"] .avatars span { box-shadow: 0 0 0 2px var(--bg); }
[data-theme="dark"] .showcase__fade { background: linear-gradient(180deg, rgba(24,24,26,0) 0%, rgba(24,24,26,.85) 45%, var(--bg) 70%); }
[data-theme="dark"] .topic { color: rgba(245,245,246,.3); }
[data-theme="dark"] .topic:hover { color: var(--ink); }

/* about + feature stack */
[data-theme="dark"] .benefit__ico, [data-theme="dark"] .help-card__ico { color: var(--accent-text); }
[data-theme="dark"] .fcard { box-shadow: 0 -24px 60px -30px rgba(0,0,0,.7); }
[data-theme="dark"] .art-1 { background: radial-gradient(120% 90% at 20% 10%, #3a3129 0%, transparent 55%), radial-gradient(90% 80% at 90% 90%, #2c3050 0%, transparent 60%), linear-gradient(160deg, #1f2027, #262a3c); }
[data-theme="dark"] .art-2 { background: radial-gradient(100% 90% at 80% 0%, #35363b 0%, transparent 55%), radial-gradient(90% 90% at 10% 100%, #2a2e4a 0%, transparent 65%), linear-gradient(200deg, #1e2026, #252839); }
[data-theme="dark"] .art-3 { background: radial-gradient(110% 80% at 30% 100%, #362d27 0%, transparent 55%), radial-gradient(90% 80% at 90% 10%, #2d3152 0%, transparent 60%), linear-gradient(170deg, #1f2026, #28283a); }
[data-theme="dark"] .art-4 { background: radial-gradient(120% 90% at 70% 90%, #35363b 0%, transparent 55%), radial-gradient(90% 90% at 10% 0%, #2b2f4d 0%, transparent 60%), linear-gradient(190deg, #1f2127, #262a3b); }
[data-theme="dark"] .art-ui { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -30px rgba(0,0,0,.8); }
[data-theme="dark"] .art-ui--stacked::before { background: rgba(255,255,255,.07); }
[data-theme="dark"] .art-ui--stacked::after { background: rgba(255,255,255,.035); }
[data-theme="dark"] .bars span { background: linear-gradient(180deg, #5a5e7e, #2d2f3d); }
[data-theme="dark"] .bars span.hi { background: linear-gradient(180deg, #cfd1dc, #8a8d9c); }

/* bento — cards sit a step above the (darker) dark section */
[data-theme="dark"] .bcard--grad { background: linear-gradient(180deg, #1c1d24 0%, #2a2c3d 55%, #3b3e57 100%); }
[data-theme="dark"] .bcard--white { background: linear-gradient(180deg, #202127 0%, #17181c 100%); }
[data-theme="dark"] .gpill { background: rgba(255,255,255,.08); }
[data-theme="dark"] .tick { background: rgba(255,255,255,.06); color: var(--ink); }
[data-theme="dark"] .tick.is-active { background: var(--surface-2); box-shadow: 0 0 0 2px var(--accent-bright), 0 20px 40px -18px rgba(0,0,0,.6); }
[data-theme="dark"] .dial button { background: var(--surface-2); color: var(--ink); }
[data-theme="dark"] .dial button.on { background: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .rot-count { color: #fff; }
[data-theme="dark"] .rot-count span { color: rgba(255,255,255,.72); }
[data-theme="dark"] .notif { background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 40px -20px rgba(0,0,0,.6); }
[data-theme="dark"] .notif__body { background: var(--surface-2); }
[data-theme="dark"] .app-row { background: var(--surface-2); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
[data-theme="dark"] .status i { background: #3a3c44; box-shadow: none; }
[data-theme="dark"] .status--call { background: #4a3f33; color: #f1e6d8; }
[data-theme="dark"] .alert { background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 50px -20px rgba(0,0,0,.6); }
[data-theme="dark"] .alert__card { background: var(--surface-2); }

/* gallery */
[data-theme="dark"] .gscreens { background: var(--bg); }

/* channels */
[data-theme="dark"] .folder__body { background: linear-gradient(180deg, #1b1c20 0%, #1f2130 55%, #2a2d44 100%); }
[data-theme="dark"] .plan.is-featured { box-shadow: 0 0 0 1px rgba(217,255,92,.35), 0 30px 60px -30px rgba(0,0,0,.7); }
[data-theme="dark"] .teams { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }

/* FAQ + contact card */
[data-theme="dark"] .faq__box { background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
[data-theme="dark"] .faq__tabs { background: rgba(255,255,255,.04); }
[data-theme="dark"] .faq__tab[aria-selected="true"] { background: var(--surface-2); }

/* blog + post previews */
[data-theme="dark"] .blog { background: var(--bg); }
[data-theme="dark"] .post:hover, [data-theme="dark"] .help-card:hover { box-shadow: 0 40px 60px -40px rgba(0,0,0,.8); }
[data-theme="dark"] .post__art--preview { background: linear-gradient(180deg, #242426, #18181a); }
[data-theme="dark"] .pv { background: var(--surface); box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 20px 40px -24px rgba(0,0,0,.7); }
[data-theme="dark"] .pv__lead { color: var(--ink-75); }
[data-theme="dark"] .round-btn { background: var(--surface-2); }

/* contact page form */
[data-theme="dark"] .field input:hover, [data-theme="dark"] .field select:hover, [data-theme="dark"] .field textarea:hover { background: var(--surface); }
[data-theme="dark"] .field input:focus-visible, [data-theme="dark"] .field select:focus-visible, [data-theme="dark"] .field textarea:focus-visible { background: var(--surface-2); border-color: var(--accent-bright); box-shadow: 0 0 0 4px rgba(217,255,92,.2); }
[data-theme="dark"] .field [aria-invalid="true"] { border-color: #e0715f; background: rgba(224,113,95,.1); }
[data-theme="dark"] .field__err { color: #f09584; }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23f5f5f6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-theme="dark"] .form-card { box-shadow: 0 0 0 1px rgba(255,255,255,.06); }

/* footer dusk, night version */
[data-theme="dark"] .footer {
  background:
    radial-gradient(70% 90% at 78% 100%, rgba(84, 88, 140, .35), transparent 70%),
    radial-gradient(50% 60% at 8% 100%, rgba(217, 255, 92, .06), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #14151b 35%, #181a24 70%, #1d1f2c 100%);
}
[data-theme="dark"] .copyright { background: var(--surface); }

/* ---------- Theme toggle (beside Log in) ---------- */
.theme-toggle {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: currentColor;
  transition: background-color .25s, transform .3s var(--ease);
}
.theme-toggle:hover { background: var(--ink-06); }
.nav.is-dark .theme-toggle:hover, [data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,.08); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .i-moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
/* a short cross-fade when the theme is switched by hand (not on load) */
html.theme-switching body, html.theme-switching section, html.theme-switching footer,
html.theme-switching .nav__bar, html.theme-switching .panel, html.theme-switching article {
  transition: background-color .45s ease, color .45s ease !important;
}
@media (max-width: 1023px) {
  .nav__bar { grid-template-columns: 1fr auto auto; }
  .nav__cta { display: flex; }
  .nav__cta .nav-login { display: none; }
}

/* ======================= OPENINGS (public job board) ======================= */
.openings .container { max-width: 1000px; }
.openings__filters { background: var(--surface); border-radius: var(--r-xl); padding: 20px; display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 12px 16px; align-items: end; }
.openings__filters .btn { height: 50px; --h: 50px; }
.openings__status { margin: 28px 4px 16px; min-height: 21px; }
.openings__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
[data-openings][aria-busy="true"] .openings__list { opacity: .55; transition: opacity .2s; }
/* Job card: tile + title, one meta line, icon tags, a short summary, then actions. */
.opening { background: var(--surface); border: 1px solid var(--ink-06); border-radius: var(--r-xl); padding: 24px 26px 20px; display: grid; gap: 14px; cursor: pointer; transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .2s; }
.opening:hover { transform: translateY(-2px); border-color: var(--ink-10); box-shadow: 0 30px 50px -36px rgba(36,36,38,.35); }
.opening__head { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.opening__logo { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 500; color: hsl(var(--h, 250) 45% 42%); background: hsl(var(--h, 250) 70% 95%); border: 1px solid hsl(var(--h, 250) 50% 88%); }
.opening__id { min-width: 0; }
.opening__title { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; overflow-wrap: anywhere; }
.opening__open { all: unset; cursor: pointer; border-radius: 6px; }
.opening__open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.opening__meta { margin-top: 4px; font-size: 15px; color: var(--ink-75); overflow-wrap: anywhere; }
.opening__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.opening__tag { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-75); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opening__tag svg { width: 16px; height: 16px; flex: none; color: var(--ink-50); }
.opening__summary { color: var(--ink-75); font-size: 15px; line-height: 1.6; max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opening__foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ink-06); }
.opening__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.opening__btn svg { width: 14px; height: 14px; }
.opening__btn:active { transform: scale(.98); }
.opening__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opening__btn--ghost { border: 1px solid var(--ink-10); background: var(--surface); color: var(--ink); }
.opening__btn--ghost:hover { border-color: var(--ink-50); }
.opening__btn--dark { border: 1px solid var(--dark); background: var(--dark); color: var(--white); }
.opening__btn--dark:hover { background: var(--dark-2); }

/* The job, opened. */
.job-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.job-dialog::backdrop { background: rgba(20,20,22,.45); backdrop-filter: blur(2px); }
.job-dialog[open] { animation: job-in .28s var(--ease); }
@keyframes job-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.job-dialog__panel { display: flex; flex-direction: column; max-height: inherit; padding: 26px 28px 20px; gap: 16px; }
.job-dialog__head { display: flex; gap: 16px; align-items: flex-start; }
.job-dialog__head .opening__id { flex: 1; }
.job-dialog__title { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; overflow-wrap: anywhere; }
.job-dialog__close { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ink-10); background: var(--surface); color: var(--ink-75); font-size: 22px; line-height: 1; cursor: pointer; }
.job-dialog__close:hover { color: var(--ink); border-color: var(--ink-50); }
.job-dialog__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.job-dialog__body { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; border-top: 1px solid var(--ink-06); padding-top: 16px; }
.job-dialog__body p { font-size: 15px; line-height: 1.7; color: var(--ink-75); white-space: pre-line; overflow-wrap: anywhere; }
.job-dialog__body p + p { margin-top: 12px; }
.job-dialog__foot { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--ink-06); }
html.job-dialog-open { overflow: hidden; }
.openings__pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.openings__pager .link-btn { border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.openings__pager [data-openings-next] { padding: 4px 4px 4px 16px; }
.openings__pager .link-btn:disabled { opacity: .45; cursor: default; }
.openings__pager .link-btn:disabled .link-btn__ico { background: var(--bg); color: inherit; transform: none; }
.openings__note { margin-top: 40px; text-align: center; }
.openings__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .opening:hover { box-shadow: 0 30px 50px -36px rgba(0,0,0,.8); }
[data-theme="dark"] .opening__logo { color: hsl(var(--h, 250) 70% 82%); background: hsl(var(--h, 250) 30% 20%); border-color: hsl(var(--h, 250) 25% 30%); }
[data-theme="dark"] .opening__btn--dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (max-width: 767px) {
  .openings__filters { grid-template-columns: 1fr 1fr; padding: 16px; }
  .openings__filters .field:first-child, .openings__filters .btn { grid-column: 1 / -1; }
  .opening { padding: 18px 18px 16px; }
  .opening__logo { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; }
  .opening__title { font-size: 18px; }
  .opening__foot .opening__btn { flex: 1; justify-content: center; }
  .job-dialog__panel { padding: 20px 18px 16px; }
  .job-dialog__foot .opening__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .opening, .opening:hover { transition: none; transform: none; }
  .job-dialog[open] { animation: none; }
}

/* ══ Hero atmosphere (2026-09-30) ══════════════════════════════════════════
   Ambient light behind the hero, visual treatment only (layout, type, CTA and
   portrait unchanged): a cool-grey base, a large rim-lit arc behind the
   portrait, a slate light ribbon sweeping from the left edge under the copy and
   up behind her, and soft glows. Each light is a wide bloom under a thin crisp
   line, so it reads as light, not decoration. Dusky, never neon. */
.hero__atmos { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero__inner { z-index: 1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0; transition: opacity 1.8s var(--ease) .3s; }
.is-loaded .hero__glow { opacity: 1; }
.hero__glow--portrait { width: 44vw; max-width: 720px; aspect-ratio: 1; right: -4vw; top: 4%; background: radial-gradient(closest-side, rgba(192, 173, 255, .30), rgba(192, 173, 255, 0) 72%); }
.hero__glow--left { width: 28vw; max-width: 460px; aspect-ratio: .7; left: -12vw; top: 24%; background: radial-gradient(closest-side, rgba(184, 222, 255, .45), rgba(184, 222, 255, 0) 72%); }
.hero__glow--low { width: 40vw; max-width: 640px; aspect-ratio: 1.6; left: 24%; bottom: -4%; background: radial-gradient(closest-side, rgba(165, 178, 207, .30), rgba(165, 178, 207, 0) 72%); }

.hero__trail { position: absolute; inset: 0; width: 100%; height: 100%; color: #58718a; opacity: 0; transition: opacity 2.4s var(--ease) .5s; }
.is-loaded .hero__trail { opacity: .5; }
.hero__trail path { fill: none; vector-effect: non-scaling-stroke; }
.hero__rim { stroke-width: 1.4; }
.hero__rim-bloom { stroke-width: 110; opacity: .34; }
.hero__sweep { stroke-width: 1.3; }
.hero__sweep-glow { stroke-width: 6; opacity: .5; }
.hero__sweep-bloom { stroke-width: 90; opacity: .28; }
.hero__arc-tl { stroke-width: 1; opacity: .6; }

/* The portrait melts into the page: the existing bottom fade, plus soft sides. */
.hero__portrait {
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 99%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 70%, transparent 99%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

/* Dark: the dashboard's indigo-to-charcoal wash, lit by dusky slate. */
[data-theme="dark"] .hero {
  background: linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 38%, var(--bg) 100%);
}
[data-theme="dark"] .hero__trail { color: #a5b2cf; }
[data-theme="dark"].is-loaded .hero__trail, [data-theme="dark"] .is-loaded .hero__trail { opacity: .72; }
[data-theme="dark"] .hero__glow--portrait { background: radial-gradient(closest-side, rgba(192, 173, 255, .18), rgba(192, 173, 255, 0) 72%); }
[data-theme="dark"] .hero__glow--left { background: radial-gradient(closest-side, rgba(165, 178, 207, .32), rgba(165, 178, 207, 0) 72%); }
[data-theme="dark"] .hero__glow--low { background: radial-gradient(closest-side, rgba(88, 113, 138, .32), rgba(88, 113, 138, 0) 72%); }
[data-theme="dark"] .hero .chip { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="dark"] .hero .chip__ico { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .hero__title { color: var(--ink); }
/* Off-white with a faint top-to-bottom falloff, per line: the lines slide in on
   their own transform, so the gradient lives on each line, not the heading. */
[data-theme="dark"] .hero__title .line > span {
  background: linear-gradient(180deg, #f5f5f6 10%, #bdbdc0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero__sub { color: var(--ink-75); }
[data-theme="dark"] .hero .btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 18px 40px -22px rgba(0, 0, 0, .8); }

@media (max-width: 767px) {
  .hero__glow { filter: blur(30px); }
  .hero__glow--portrait { width: 110vw; right: -40vw; top: 34%; }
  .hero__glow--left { width: 70vw; left: -40vw; }
  .hero__glow--low { width: 90vw; left: 5%; }
  .hero__trail { opacity: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow, .hero__trail { transition: none; }
}

