/* ============================================================ WorkTaskMe

   The marketing site, second edition.

   Paper, ink and a serif stay - they are the brand and they still say
   "somebody chose this" before a word is read. What changes is the voltage:
   a living aurora behind the hero, a product demo that actually plays, a
   bento of moving parts, and one dark section so the page has a pulse.

   One stylesheet for six pages, so a class means the same thing everywhere.
   No build step and a strict CSP (script-src 'self'): every animation here is
   CSS or /site/site.js. Everything that moves stops under reduced motion.
*/

/* ------------------------------------------------------------------ ink */

:root {
  --paper: #fbfaf6;
  --paper-2: #f4f2ea;
  --paper-3: #ebe8dc;
  --card: #ffffff;

  --ink: #121119;
  --ink-2: #45435a;
  --ink-3: #777589;          /* also used inline by site.js - keep the name */
  --line: rgba(18, 17, 25, .10);
  --line-soft: rgba(18, 17, 25, .06);

  --violet: #5b46e5;
  --violet-2: #7c67ff;
  --violet-ink: #3d2bb8;
  --lilac: #e9e4ff;
  --mint: #d4eedd;
  --peach: #fde0c8;
  --sky: #dbe8fc;
  --rose: #fcd9e0;
  --sun: #fff1b8;

  --night: #0d0c16;
  --night-2: #16142a;
  --night-line: rgba(255, 255, 255, .09);
  --night-ink: #f3f1ff;
  --night-ink-2: rgba(243, 241, 255, .68);

  --radius: 16px;
  --radius-lg: 26px;
  --shell: 1180px;

  --shadow: 0 1px 2px rgba(18, 17, 25, .05), 0 12px 32px -18px rgba(18, 17, 25, .22);
  --shadow-lift: 0 2px 4px rgba(18, 17, 25, .05), 0 30px 70px -30px rgba(40, 24, 120, .38);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.6%, 1.061 22.4%, 1.071 25.5%, 1.049 30.5%, 1.003 39.5%, .988 45.8%, 1.001 66%, 1);

  /* Names older pages spend in inline styles. Mapped, not deleted. */
  --paper-muted: #777589;
  --paper-hair: rgba(18, 17, 25, .07);
  --hair: rgba(18, 17, 25, .12);
  --violet-deep: #5b46e5;
  --violet-lift: #7c67ff;
  --good: #2f7d52;
  --void: #121119;
}

/* ----------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }

.band { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.band-tight { padding-block: clamp(48px, 6vw, 80px); position: relative; }
.on-paper { background: var(--paper-2); }
.band-2 { background: var(--paper-2); }

/* The page top clears the floating nav. */
body > .band-tight:first-of-type,
.page-head { padding-top: 150px; }

/* ----------------------------------------------------------- typography */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  background: linear-gradient(100deg, var(--violet) 10%, #9b5cff 55%, #e0679a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-inline-end: .06em;
}

.lede {
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .lede { margin-inline: auto; }
.section-head.left { margin-inline: 0; text-align: start; }
.section-head.left .lede { margin-inline: 0; }

/* -------------------------------------------------------------- buttons */

.btn {
  --h: 46px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .96rem/1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--spring), background-color .2s, border-color .2s, box-shadow .3s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--violet) 45%, transparent); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(18, 17, 25, .6); }
.btn-primary:hover { background: #26243a; box-shadow: 0 16px 34px -14px rgba(61, 43, 184, .7); transform: translateY(-1px); }
/* A light sweep across the dark button on hover. */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-accent { background: var(--violet); color: #fff; box-shadow: 0 12px 28px -12px rgba(91, 70, 229, .8); }
.btn-accent:hover { background: var(--violet-ink); transform: translateY(-1px); }

.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(18, 17, 25, .28); background: #fff; }

.btn-lg { --h: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  padding-inline: 16px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: calc(var(--shell) - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 10px 0 20px;
  background: rgba(251, 250, 246, .72);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 30px -18px rgba(18, 17, 25, .35);
  transition: height .35s var(--ease), box-shadow .35s, background-color .35s;
}
.nav.scrolled .nav-inner { height: 56px; background: rgba(251, 250, 246, .9); box-shadow: 0 14px 40px -20px rgba(18, 17, 25, .45); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; transition: transform .6s var(--spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand b { color: var(--violet); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: .94rem; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-links > a:hover { color: var(--ink); background: rgba(18, 17, 25, .05); }
.nav-links > a[aria-current="page"] { color: var(--ink); background: var(--paper-3); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { --h: 42px; padding: 0 18px; font-size: .92rem; }
.nav-drawer-cta { display: none; }
.nav-burger {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer;
}

/* ----------------------------------------------------------------- hero */

.hero { position: relative; padding: 150px 0 40px; text-align: center; isolation: isolate; }

/* Three soft blobs drifting behind the headline, and a dotted grid that
   fades out towards the edges. Pure CSS, GPU-only transforms. */
.aurora { position: absolute; inset: -10% 0 auto; height: 900px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { width: 560px; height: 460px; left: 8%; top: 12%; background: #c9bdff; animation: drift-a 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 480px; height: 420px; right: 6%; top: 4%; background: #ffd2b8; animation: drift-b 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 520px; height: 380px; left: 36%; top: 34%; background: #c7ecd6; opacity: .45; animation: drift-c 26s ease-in-out infinite alternate; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(18, 17, 25, .13) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift-a { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-140px, 110px) scale(.9); } }
@keyframes drift-c { to { transform: translate(-90px, -70px) scale(1.2); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; margin-bottom: 26px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75); backdrop-filter: blur(8px);
  font-size: .88rem; color: var(--ink-2); text-decoration: none;
  transition: border-color .2s, transform .3s var(--spring);
}
.hero-badge:hover { border-color: rgba(91, 70, 229, .45); transform: translateY(-1px); }
.hero-badge b {
  padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(100deg, var(--violet), #9b5cff);
}

.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); line-height: .96; letter-spacing: -.03em; }
.hero .lede { margin-inline: auto; max-width: 640px; }

/* Words rise into place one after another on load - CSS only, so nothing
   has to wait for a script and nothing flashes. */
.rise { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px);
  animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
/* A word that animates is its own layer, so the italic line's gradient text
   has to be painted per word or it comes out transparent. */
.display em .rise { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .06em; }
/* backwards, not forwards: once it has arrived the element is back to its own
   styles, so a hover lift on a card that entered this way still works. */
.fade-up { animation: enter .9s var(--ease) backwards; animation-delay: var(--d, 500ms); }
@keyframes enter { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: .88rem; color: var(--ink-3); }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--good); }

/* ------------------------------------------------------- product frame */

.stage { position: relative; margin: 64px auto 0; max-width: 1100px; perspective: 1600px; }
.stage::before { /* halo under the frame */
  content: ""; position: absolute; inset: 12% 6% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(91, 70, 229, .35), transparent);
  filter: blur(40px);
}
.frame {
  border-radius: 22px; overflow: hidden; text-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift), 0 0 0 8px rgba(255, 255, 255, .5);
  transform-origin: 50% 0;
  animation: tilt-in 1.4s var(--ease) .45s backwards;
}
@keyframes tilt-in { from { opacity: 0; transform: rotateX(18deg) translateY(40px) scale(.96); } }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: #fbfbfd; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3e1ea; }
.frame-bar i:nth-child(1) { background: #ff8a80; } .frame-bar i:nth-child(2) { background: #ffd166; } .frame-bar i:nth-child(3) { background: #7bd88f; }
.frame-url { margin-inline: auto; padding: 4px 14px; border-radius: 8px; background: var(--paper-2); font: 500 .74rem var(--mono); color: var(--ink-3); }

.demo-body { display: grid; grid-template-columns: 330px 1fr; min-height: 430px; }
.demo-body > * { min-width: 0; }

/* Voice panel */
.demo-voice { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-inline-end: 1px solid var(--line-soft); background: linear-gradient(180deg, #faf9ff, #fff); }
.voice-head { display: flex; align-items: center; gap: 12px; }
.mic { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ink); transition: background-color .3s; }
.mic svg { width: 20px; height: 20px; }
.mic::before, .mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--violet); opacity: 0; }
[data-demo].listening .mic { background: var(--violet); }
[data-demo].listening .mic::before { animation: ping 1.6s var(--ease) infinite; }
[data-demo].listening .mic::after { animation: ping 1.6s var(--ease) .8s infinite; }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.voice-state { font-size: .82rem; line-height: 1.3; }
.voice-state b { display: block; font-weight: 600; font-size: .9rem; }
.voice-state span { color: var(--ink-3); }

.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { flex: 1; height: 18%; border-radius: 3px; background: var(--lilac); transition: background-color .3s; }
[data-demo].listening .wave i { background: var(--violet); animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s !important; } .wave i:nth-child(4n) { animation-delay: -.55s !important; } .wave i:nth-child(5n+1) { animation-delay: -.8s !important; } .wave i:nth-child(7n) { animation-duration: .7s !important; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }

.transcript { min-height: 76px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.transcript:empty::before { content: "Listening…"; color: var(--ink-3); }
.transcript .w { opacity: 0; animation: word .35s var(--ease) forwards; }
@keyframes word { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
.transcript mark { color: inherit; border-radius: 5px; padding: 0 3px; margin: 0 -1px; background: transparent; transition: background-color .45s, color .45s; }
.transcript mark.on.t-who { background: var(--sky); color: #1f4b99; }
.transcript mark.on.t-date { background: var(--mint); color: #1f6a3c; }
.transcript mark.on.t-prio { background: var(--rose); color: #9b1f3a; }

.drafts { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.drafts .label { font: 500 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fake-create { margin-top: auto; align-self: flex-start; height: 34px; padding: 0 14px; border-radius: 8px; display: inline-flex; align-items: center; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; opacity: .25; transition: opacity .3s, transform .2s; }
.fake-create.ready { opacity: 1; }
.fake-create.press { transform: scale(.94); background: var(--violet); }

.thinking { height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--violet), transparent); background-size: 50% 100%; background-repeat: no-repeat; opacity: 0; }
[data-demo].thinking .thinking { opacity: 1; animation: scan 1s linear infinite; }
@keyframes scan { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* Board */
.demo-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; background: #fcfcfe; }
.demo-col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--paper-2); min-width: 0; overflow: hidden; }
.demo-col h6 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 4px; font: 600 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.demo-col h6 b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(18, 17, 25, .07); color: var(--ink-2); font-size: .7rem; transition: background-color .3s, color .3s; }
.demo-col h6 b.bump { background: var(--violet); color: #fff; }

.demo-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 11px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(18, 17, 25, .05);
  font-size: .86rem; font-weight: 500; line-height: 1.35;
  text-align: start;
}
.demo-card .row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.demo-card.fresh { border-color: rgba(91, 70, 229, .45); box-shadow: 0 0 0 3px rgba(91, 70, 229, .12), 0 8px 18px -10px rgba(91, 70, 229, .5); }
.demo-card.draft { border-style: dashed; border-color: rgba(91, 70, 229, .4); background: #fcfbff; animation: pop .5s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.key { font: 500 .7rem var(--mono); color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: .7rem; font-weight: 600; background: var(--paper-2); color: var(--ink-2); }
.chip.high { background: var(--peach); color: #8a3d0c; }
.chip.highest { background: var(--rose); color: #9b1f3a; }
.chip.med { background: var(--sun); color: #7a5a00; }
.chip.low { background: var(--sky); color: #1f4b99; }
.chip.done { background: var(--mint); color: #1f6a3c; }
.chip.new { background: var(--lilac); color: var(--violet-ink); }
.who { margin-inline-start: auto; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .62rem; font-weight: 600; }
.who.v { background: var(--violet); } .who.g { background: #2f7d52; } .who.o { background: #c2410c; }

/* ------------------------------------------------------------- marquee */

.marquee { position: relative; overflow: hidden; padding-block: 8px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--violet)); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-caption { text-align: center; font-size: .84rem; color: var(--ink-3); margin: 0 0 16px; }

/* --------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.zoom { transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; filter: none; } }

/* ----------------------------------------------------------------- steps */

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps::before { /* the line that draws itself between the three */
  content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--violet), #e0679a);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s;
}
.steps.in::before { transform: scaleX(1); }
.step { position: relative; z-index: 1; padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); counter-increment: step; }
.step::before {
  content: "0" counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px;
  font: 500 .9rem var(--mono); color: #fff; background: var(--ink);
}
.step:nth-child(2)::before { background: var(--violet); }
.step:nth-child(3)::before { background: linear-gradient(135deg, var(--violet), #e0679a); }
.step h3 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.step .say { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-size: .86rem; color: var(--ink-2); font-style: italic; }

/* ----------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 2; min-height: 290px;
  display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform .5s var(--spring), box-shadow .4s, border-color .4s;
}
.tile.wide { grid-column: span 3; }
.tile.xwide { grid-column: span 4; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(91, 70, 229, .25); }
/* A soft light that follows the pointer (site.js sets --mx/--my). */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 103, 255, .12), transparent 45%);
}
.tile:hover::before { opacity: 1; }
.tile h3 { margin: 0 0 6px; font-size: 1.14rem; font-weight: 600; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--ink-2); font-size: .93rem; max-width: 46ch; }
.tile .viz { margin-top: auto; padding-top: 22px; }
.tile.ink { background: var(--night); color: var(--night-ink); border-color: transparent; }
.tile.ink p { color: var(--night-ink-2); }
.tile.ink::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 103, 255, .3), transparent 50%); }

/* viz: a card that walks across a three-column board, forever */
.mini-board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 118px; }
.mini-board > i { border-radius: 10px; background: var(--paper-2); }
.mini-board .walker {
  position: absolute; top: 14px; left: 6px; width: calc(33.33% - 17px);
  height: 42px; border-radius: 8px; background: #fff; border: 1px solid rgba(91, 70, 229, .35);
  box-shadow: 0 10px 20px -10px rgba(91, 70, 229, .6);
  animation: walk 6s var(--ease) infinite;
}
.mini-board .walker::before { content: ""; position: absolute; left: 10px; top: 11px; width: 60%; height: 7px; border-radius: 4px; background: var(--ink); opacity: .75; }
.mini-board .walker::after { content: ""; position: absolute; left: 10px; top: 24px; width: 26px; height: 7px; border-radius: 4px; background: var(--peach); }
.mini-board .still { position: absolute; height: 42px; border-radius: 8px; background: #fff; border: 1px solid var(--line-soft); width: calc(33.33% - 17px); }
@keyframes walk {
  0%, 12% { transform: translate(0, 0) rotate(0); }
  22% { transform: translate(calc(100% + 11px), -4px) rotate(3deg); }
  30%, 45% { transform: translate(calc(100% + 11px), 0) rotate(0); }
  55% { transform: translate(calc(200% + 22px), -4px) rotate(3deg); }
  63%, 85% { transform: translate(calc(200% + 22px), 0) rotate(0); }
  100% { transform: translate(0, 0); }
}

/* viz: two calendars, deadlines vs meetings */
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-cal span { aspect-ratio: 1.3; border-radius: 6px; background: var(--paper-2); position: relative; }
.mini-cal span.dl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #e0679a; }
.mini-cal span.mt { background: var(--lilac); }
.mini-cal span.today { outline: 2px solid var(--violet); outline-offset: -2px; }
.tile.in .mini-cal span { animation: pop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 25ms); }
.legend { display: flex; gap: 14px; margin-top: 12px; font-size: .78rem; color: var(--ink-3); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 1px; }

/* viz: roles */
.roles { display: flex; flex-direction: column; gap: 6px; }
.roles div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); font-size: .84rem; }
.roles div b { font-weight: 600; } .roles div small { margin-inline-start: auto; color: var(--night-ink-2); font-size: .74rem; }
.toggle { width: 30px; height: 18px; border-radius: 9px; background: var(--violet); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.toggle.off { background: rgba(255, 255, 255, .18); } .toggle.off::after { right: auto; left: 2px; }

/* viz: search typing */
.search-box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .9rem; }
.search-box svg { width: 16px; height: 16px; color: var(--ink-3); }
.search-box .typed { overflow: hidden; white-space: nowrap; border-inline-end: 2px solid var(--violet); width: 0; animation: type-in 5s steps(16) infinite, caret .8s step-end infinite; }
@keyframes type-in { 0%, 8% { width: 0; } 45%, 90% { width: 16ch; } 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
.results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.results div { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--paper-2); font-size: .82rem; opacity: 0; animation: res 5s var(--ease) infinite; }
.results div:nth-child(2) { animation-delay: .15s; } .results div:nth-child(3) { animation-delay: .3s; }
.results em { font-style: normal; margin-inline-start: auto; font: 500 .66rem var(--mono); color: var(--ink-3); text-transform: uppercase; }
@keyframes res { 0%, 40% { opacity: 0; transform: translateY(6px); } 50%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* viz: import progress */
.imports { display: flex; flex-direction: column; gap: 12px; }
.imports div { font-size: .82rem; }
.imports header { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--ink-2); }
.imports header b { font: 500 .8rem var(--mono); color: var(--ink); }
.bar { height: 7px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--violet), #9b5cff); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); }
.tile.in .bar i, .in .bar i { transform: scaleX(1); }

/* viz: an automation rule */
.rule { display: flex; flex-direction: column; gap: 0; }
.rule .node { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .84rem; }
.rule .node small { display: block; font: 500 .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rule .node i { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-style: normal; font-size: .9rem; background: var(--lilac); }
.rule .node.then i { background: var(--mint); }
.rule .link { width: 2px; height: 18px; margin-inline-start: 25px; background: repeating-linear-gradient(var(--violet) 0 4px, transparent 4px 8px); background-size: 2px 8px; animation: flow .6s linear infinite; }
@keyframes flow { to { background-position: 0 8px; } }

/* viz: bars growing */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--lilac); transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s var(--spring); transition-delay: calc(var(--i) * 70ms); }
.bars i.hot { background: linear-gradient(var(--violet-2), var(--violet)); }
.tile.in .bars i { transform: scaleY(1); }

/* viz: share link */
.share { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 500 .78rem var(--mono); color: var(--ink-2); }
.share span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share b { margin-inline-start: auto; flex: none; padding: 7px 12px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 .76rem var(--sans); }
.share-note { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------- dark section */

.on-ink { background: var(--night); color: var(--night-ink); overflow: hidden; isolation: isolate; }
.on-ink .lede { color: var(--night-ink-2); }
.on-ink .eyebrow { color: #b3a6ff; }
.on-ink .display em { background: linear-gradient(100deg, #b3a6ff, #ff9ec4); -webkit-background-clip: text; background-clip: text; }
.on-ink::before { /* a slow violet glow drifting in the dark */
  content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: -200px; margin-left: -450px; z-index: -1;
  background: radial-gradient(closest-side, rgba(91, 70, 229, .45), transparent);
  filter: blur(40px); animation: drift-b 20s ease-in-out infinite alternate;
}
.on-ink .demo-card { background: #1d1b33; border-color: var(--night-line); color: var(--night-ink); box-shadow: none; }
.on-ink .key { color: rgba(243, 241, 255, .5); }

.say-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; max-width: 980px; margin: 0 auto; }
.say-bubble { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); }
.say-bubble .wave { height: 28px; margin-bottom: 12px; }
.say-bubble .wave i { background: #b3a6ff; animation: eq 1.1s ease-in-out infinite; }
.say-bubble p { margin: 0; font-size: 1.1rem; line-height: 1.5; font-family: var(--serif); font-size: 1.45rem; }
.say-arrow { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; box-shadow: 0 0 0 10px rgba(91, 70, 229, .18); animation: nudge 2s var(--ease) infinite; }
.say-arrow svg { width: 22px; height: 22px; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.guard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 72px; }
.guard { padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); transition: background-color .3s, border-color .3s, transform .5s var(--spring); }
.guard:hover { background: rgba(255, 255, 255, .07); border-color: rgba(179, 166, 255, .35); transform: translateY(-3px); }
.guard i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px; background: rgba(179, 166, 255, .15); color: #cfc6ff; font-style: normal; }
.guard i svg { width: 20px; height: 20px; }
.guard h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.guard p { margin: 0; font-size: .9rem; color: var(--night-ink-2); }

/* ------------------------------------------------------------- split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-media { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lift); }
.split-media.tinted { background: linear-gradient(160deg, #f5f2ff, #fff 60%); }

.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-inline-start: 32px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235b46e5'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist li svg { display: none; }
.on-ink .checklist li { color: var(--night-ink-2); }

/* chat turns (assistant) */
.turns { display: flex; flex-direction: column; gap: 10px; }
.turn { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.turn.mine { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.turn.theirs { align-self: flex-start; background: var(--paper-2); color: var(--ink-2); border-bottom-left-radius: 5px; }
.turn.theirs b { color: var(--ink); }
.on-ink .turn.theirs { background: rgba(255, 255, 255, .07); color: var(--night-ink-2); }
.on-ink .turn.theirs b { color: var(--night-ink); }
/* In sequence once the panel scrolls into view. */
.seq > * { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--spring); }
.seq.in > * { opacity: 1; transform: none; }
.seq.in > :nth-child(1) { transition-delay: .1s; } .seq.in > :nth-child(2) { transition-delay: .7s; } .seq.in > :nth-child(3) { transition-delay: 1.4s; }
.seq.in > :nth-child(4) { transition-delay: 2s; } .seq.in > :nth-child(5) { transition-delay: 2.4s; } .seq.in > :nth-child(6) { transition-delay: 2.8s; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px !important; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stat { padding: 30px 26px; background: var(--card); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.stat b .unit { color: var(--violet); }
.stat span { display: block; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }

/* ------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); transition: transform .5s var(--spring), box-shadow .4s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; background: var(--lilac); color: var(--violet-ink); }
.card-icon svg { width: 21px; height: 21px; }
.card-icon.mint { background: var(--mint); color: #1f6a3c; } .card-icon.peach { background: var(--peach); color: #8a3d0c; } .card-icon.sky { background: var(--sky); color: #1f4b99; } .card-icon.rose { background: var(--rose); color: #9b1f3a; }

/* ----------------------------------------------------------- pricing */

.billing-switch { display: flex; justify-content: center; margin: 36px 0 44px; }
.seg {
  --x: 0; position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.seg::before { /* the pill that slides under the chosen option */
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--ink);
  transform: translateX(calc(var(--x) * 100%)); transition: transform .55s var(--spring);
}
.seg[data-period="yearly"] { --x: 1; }
.seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 .94rem var(--sans); color: var(--ink-2); transition: color .3s;
}
.seg button[aria-pressed="true"] { color: #fff; }
.seg .save { padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--mint); color: #1f6a3c; }
/* The same switch with --n choices; the page's script sets --x to the chosen one. */
.seg.seg-n { grid-template-columns: repeat(var(--n), 1fr); }
.seg.seg-n::before { width: calc((100% - 10px) / var(--n)); }
.seg.seg-n button { padding: 0 16px; }
.tiers.four { grid-template-columns: repeat(4, 1fr); }
.tiers.four .tier { padding: 26px; }
.tiers.four .price .amount { font-size: 3rem; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  transition: transform .5s var(--spring), box-shadow .4s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tier.featured { background: var(--night); color: var(--night-ink); border-color: transparent; box-shadow: 0 40px 80px -40px rgba(61, 43, 184, .8); }
/* A slow conic light running round the featured card's border. */
.tier.featured::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 60%, #b3a6ff 75%, #ff9ec4 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --spin: 360deg; } }
.tier.featured { isolation: isolate; }
.tier-flag { position: absolute; top: 18px; right: 18px; padding: 5px 11px; border-radius: 999px; font: 600 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(100deg, var(--violet), #9b5cff); color: #fff; }
.tier h3 { margin: 0; font-size: 1.14rem; font-weight: 600; }
.tier .note { margin: 8px 0 0; font-size: .92rem; color: var(--ink-3); min-height: 3em; }
.tier.featured .note { color: var(--night-ink-2); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 4px; }
.price .amount { font-family: var(--serif); font-size: 3.6rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price .amount.flip { animation: flip .5s var(--ease); }
@keyframes flip { 0% { opacity: 0; transform: translateY(-40%); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
.price small { font-size: .88rem; color: var(--ink-3); line-height: 1.3; }
.tier.featured .price small { color: var(--night-ink-2); }
.price-sub { min-height: 1.5em; margin: 0 0 22px; font-size: .84rem; color: var(--ink-3); }
.price-sub s { opacity: .7; }
.price-sub b { color: #2f7d52; font-weight: 600; }
.tier.featured .price-sub { color: var(--night-ink-2); }
.tier.featured .price-sub b { color: #7de0a5; }
.tier ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 11px; font-size: .93rem; }
.tier.featured ul { border-color: var(--night-line); }
.tier li { position: relative; padding-inline-start: 28px; color: var(--ink-2); }
.tier.featured li { color: var(--night-ink-2); }
.tier li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235b46e5'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tier.featured li::before { background-color: rgba(179, 166, 255, .9); }
.tier li b { color: var(--ink); font-weight: 600; } .tier.featured li b { color: #fff; }
.tier .btn { margin-top: auto; }
.tier.featured .btn-primary { background: #fff; color: var(--ink); }
.tier.featured .btn-primary:hover { background: var(--lilac); }

.enterprise { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 18px; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.enterprise h3 { margin: 0 0 4px; font-size: 1.1rem; }
.enterprise p { margin: 0; color: var(--ink-2); font-size: .93rem; max-width: 64ch; }
.enterprise .btn { margin-inline-start: auto; }

/* team-size calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 34px; border-radius: var(--radius-lg); background: linear-gradient(140deg, #f3efff, #fff 55%, #fff4ea); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.calc label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 18px; }
.calc label output { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1; color: var(--violet); }
.calc input[type="range"] { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; border-radius: 4px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--violet) var(--fill, 20%), var(--paper-3) var(--fill, 20%)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--violet); box-shadow: 0 4px 14px -4px rgba(91, 70, 229, .7); transition: transform .2s; }
.calc input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--violet); }
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(91, 70, 229, .4); outline-offset: 2px; }
.calc .ticks { display: flex; justify-content: space-between; margin-top: 10px; font: 500 .72rem var(--mono); color: var(--ink-3); }
.calc-out { padding: 24px; border-radius: 20px; background: var(--night); color: var(--night-ink); }
.calc-out small { display: block; font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink-2); }
.calc-out .big { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 2px; }
.calc-out .big b { font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1; }
.calc-out .big span { color: var(--night-ink-2); font-size: .9rem; }
.calc-out p { margin: 12px 0 0; font-size: .9rem; color: var(--night-ink-2); }
.calc-out p b { color: #7de0a5; }

/* comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: var(--card); box-shadow: var(--shadow); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.compare th:first-child, .compare td:first-child { text-align: start; color: var(--ink-2); }
.compare thead th { position: sticky; top: 0; background: #fff; font-weight: 600; font-size: .95rem; }
.compare thead th.hl { color: var(--violet); }
.compare td.hl { background: rgba(91, 70, 229, .04); }
.compare tbody tr:hover td { background: rgba(18, 17, 25, .02); }
.compare .group td { background: var(--paper-2) !important; font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-block: 10px; }
.yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); color: var(--violet); font-weight: 700; font-size: .8rem; }
.no { color: var(--ink-3); opacity: .5; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line-soft); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 400; font-size: 1.3rem; transition: transform .4s var(--spring), background-color .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--ink-2); animation: rise .5s var(--ease); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* -------------------------------------------------------------- cta */

.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border-radius: 32px; text-align: center;
  background: var(--night); color: var(--night-ink);
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); }
.cta-band::before { width: 520px; height: 420px; left: -120px; top: -160px; background: rgba(91, 70, 229, .7); animation: drift-a 16s ease-in-out infinite alternate; }
.cta-band::after { width: 460px; height: 380px; right: -120px; bottom: -180px; background: rgba(224, 103, 154, .45); animation: drift-b 18s ease-in-out infinite alternate; }
.cta-band .display { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-band .display em { background: linear-gradient(100deg, #b3a6ff, #ff9ec4); -webkit-background-clip: text; background-clip: text; }
.cta-band .lede { color: var(--night-ink-2); margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--lilac); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ----------------------------------------------------------- features */

.feature-nav { position: sticky; top: 88px; z-index: 20; display: flex; justify-content: center; margin: 32px auto 0; }
.feature-nav div { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px); border: 1px solid var(--line-soft); box-shadow: var(--shadow); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.feature-nav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: .86rem; color: var(--ink-2); text-decoration: none; transition: background-color .25s, color .25s; }
.feature-nav a:hover { background: var(--paper-2); color: var(--ink); }
.feature-nav a.active { background: var(--ink); color: #fff; }

.code { padding: 20px; border-radius: 16px; background: var(--night); color: #d9d4ff; font: .82rem/1.7 var(--mono); overflow-x: auto; }
.code .c { color: rgba(217, 212, 255, .45); }
.code .ok { color: #7de0a5; }
.code .n { color: #fff; }

/* ----------------------------------------------------------- security */

.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pledges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pledge { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-soft); }
.pledge i { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #e0a93b; box-shadow: 0 0 0 5px rgba(224, 169, 59, .18); }
.pledge p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.pledge b { color: var(--ink); display: block; margin-bottom: 2px; }

/* ------------------------------------------------------------- prose */

.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -.01em; }
.prose h3 { margin: 28px 0 8px; font-size: 1.08rem; font-weight: 600; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--violet); }
.prose code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 5px; background: var(--paper-3); }
.prose-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0 24px; }
.prose th, .prose td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.updated { font: 500 .8rem var(--mono); color: var(--ink-3); }

/* ------------------------------------------------------------- legal */
/* Terms and Privacy (2026-09-28). The two documents side by side in the
   hero, the short version in cards, then the full text beside a contents
   list that marks where the reader is. The full text is what applies - the
   cards only help find the way into it, and each one links to its section.
   One contact everywhere: admin@lyomastech.com. */

.legal-hero { position: relative; isolation: isolate; padding: 150px 0 8px; text-align: center; }
.legal-hero .aurora { height: 680px; }
.legal-hero .aurora i { opacity: .4; }
.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.legal-hero .lede { margin-inline: auto; max-width: 620px; }

.legal-switch { display: inline-flex; gap: 4px; padding: 5px; margin: 0 0 28px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line-soft); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.legal-switch a { padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .25s, color .25s; }
.legal-switch a:hover { background: var(--paper-2); color: var(--ink); }
.legal-switch a[aria-current="page"] { background: var(--ink); color: #fff; }

.legal-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.legal-meta > * { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line-soft); font: 400 .84rem var(--sans); color: var(--ink-2); text-decoration: none; }
.legal-meta svg { flex: none; width: 15px; height: 15px; color: var(--violet); }
.legal-meta a, .legal-meta button { cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.legal-meta a:hover, .legal-meta button:hover { border-color: rgba(91, 70, 229, .4); background: #fff; color: var(--violet-ink); }
.legal-meta .updated { font: inherit; color: inherit; }

/* The short version */
.legal-gist { padding: 56px 0 8px; }
.gist-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.gist-head .eyebrow { margin: 0; }
.gist-head p:last-child { margin: 0; font-size: .86rem; color: var(--ink-3); }
.gist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gist { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); text-decoration: none; transition: transform .5s var(--spring), box-shadow .4s, border-color .3s, opacity .9s var(--ease), filter .9s var(--ease); }
.gist:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: rgba(91, 70, 229, .25); }
.gist .card-icon { flex: none; width: 38px; height: 38px; margin: 0; border-radius: 11px; }
.gist .card-icon svg { width: 19px; height: 19px; }
.gist b { display: block; margin-bottom: 3px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.gist p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }

/* The full text */
.legal-body { padding: 44px 0 clamp(64px, 8vw, 104px); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }

.legal-toc { position: sticky; top: 104px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line-soft); backdrop-filter: blur(12px); }
.legal-toc summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; list-style: none; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); cursor: default; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary svg { display: none; width: 16px; height: 16px; transition: transform .3s var(--ease); }
.toc-bar { flex: 1 0 100%; height: 3px; margin: 12px 0 10px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.toc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #9b5cff, #e0679a); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .15s linear; }
[dir="rtl"] .toc-bar i { transform-origin: right; background: linear-gradient(270deg, var(--violet), #9b5cff, #e0679a); }
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-toc ol a { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .88rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.legal-toc ol a span { min-width: 1.6em; font: 500 .7rem var(--mono); color: var(--ink-3); }
.legal-toc ol a:hover { background: var(--paper-2); color: var(--ink); }
.legal-toc ol a.active { background: var(--lilac); color: var(--violet-ink); font-weight: 500; }
.legal-toc ol a.active span { color: var(--violet); }
.toc-mail { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 10px 0; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--ink-3); text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.toc-mail:hover { color: var(--violet); }
.toc-mail svg { flex: none; width: 15px; height: 15px; }

.legal-doc { min-width: 0; max-width: 820px; padding: clamp(24px, 4.2vw, 56px); border-radius: 28px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc a { color: var(--violet); text-underline-offset: 3px; }
.legal-doc strong { font-weight: 600; color: var(--ink); }
.legal-intro { font-size: 1.06rem; }
.legal-sec { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line-soft); }
.legal-sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; }
.legal-sec h2 .num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--lilac); color: var(--violet-ink); font: 500 .8rem var(--mono); letter-spacing: 0; }
.legal-sec h3 { margin: 26px 0 8px; font-size: 1.04rem; font-weight: 600; }
.legal-doc ul { display: grid; gap: 10px; margin: 4px 0 14px; padding: 0; list-style: none; }
.legal-doc ul li { position: relative; padding-inline-start: 24px; }
.legal-doc ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--lilac); }

.legal-note { display: flex; gap: 12px; margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: #f3f0ff; border: 1px solid rgba(91, 70, 229, .14); font-size: .95rem; }
.legal-note svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--violet); }
.legal-note p { margin: 0; color: var(--ink); }
.legal-note.warm { background: #fff4ea; border-color: rgba(179, 84, 26, .16); }
.legal-note.warm svg { color: #b3541a; }
.legal-doc > .legal-note:first-child { margin-top: 0; }

/* Privacy: what we collect */
.legal-table { width: 100%; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .92rem; }
.legal-table th { padding: 11px 14px; background: var(--paper-2); text-align: start; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.legal-table td { padding: 13px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
.legal-table td:first-child { font-weight: 500; color: var(--ink); }
.legal-table .chip { height: 22px; white-space: nowrap; }

/* Privacy: how long we keep it */
.keep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 14px; }
.keep { padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-soft); }
.keep small { display: block; margin-bottom: 8px; font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.keep b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; color: var(--ink); }
.keep span { display: block; margin-top: 6px; font-size: .88rem; color: var(--ink-2); }

/* Contact */
.legal-contact { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 48px; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--night); color: var(--night-ink); }
.legal-contact::before, .legal-contact::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); }
.legal-contact::before { width: 480px; height: 380px; right: -140px; top: -170px; background: rgba(91, 70, 229, .6); animation: drift-b 18s ease-in-out infinite alternate; }
.legal-contact::after { width: 380px; height: 300px; left: -120px; bottom: -200px; background: rgba(224, 103, 154, .35); animation: drift-a 20s ease-in-out infinite alternate; }
.legal-contact .eyebrow { color: #b3a6ff; }
.legal-contact .display { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.legal-contact .display em { background: linear-gradient(100deg, #b3a6ff, #ff9ec4); -webkit-background-clip: text; background-clip: text; }
.legal-contact > div > p:last-child { max-width: 52ch; margin: 14px 0 0; color: var(--night-ink-2); }
.contact-actions { display: grid; gap: 10px; min-width: 300px; }
.contact-mail { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); font: 500 1rem var(--mono); color: #fff; text-decoration: none; transition: background-color .2s, border-color .2s; }
.contact-mail:hover { background: rgba(255, 255, 255, .1); border-color: rgba(179, 166, 255, .45); }
.contact-mail svg { flex: none; width: 18px; height: 18px; color: #b3a6ff; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.legal-contact .btn-primary { background: #fff; color: var(--ink); }
.legal-contact .btn-primary:hover { background: var(--lilac); }
.legal-contact .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.legal-contact .btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.legal-contact .btn.done { border-color: #7de0a5; color: #7de0a5; }

/* Arabic has no small caps and the mono face has no Arabic letters. */
html[lang="ar"] .legal-toc summary, html[lang="ar"] .legal-table th, html[lang="ar"] .keep small { font-family: var(--sans); font-size: .8rem; text-transform: none; }
html[lang="ar"] .legal-sec h2 { font-weight: 600; line-height: 1.35; }
html[lang="ar"] .legal-contact .display em { font-style: normal; }

@media (max-width: 1080px) {
  .gist-grid { grid-template-columns: 1fr 1fr; }
}

/* Below this the contents list becomes a bar under the nav that opens. */
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 14px; }
  .legal-toc { top: 80px; z-index: 15; padding: 12px 16px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
  .legal-toc summary { cursor: pointer; }
  .legal-toc summary svg { display: block; }
  .legal-toc[open] summary svg { transform: rotate(180deg); }
  .toc-bar { margin: 10px 0 0; }
  .legal-toc[open] .toc-bar { margin-bottom: 10px; }
  .legal-toc ol { max-height: 52vh; overflow-y: auto; }
  .toc-mail { display: none; }
  .legal-doc { max-width: none; }
  .legal-contact { grid-template-columns: 1fr; }
  .contact-actions { min-width: 0; }
}

@media (max-width: 640px) {
  .legal-hero { padding-top: 120px; }
  .legal-switch a { padding: 8px 14px; font-size: .84rem; }
  .gist-grid, .keep-grid { grid-template-columns: 1fr; }
  .legal-body { padding-top: 32px; }
  .legal-doc { padding: 22px 18px; border-radius: 22px; }
  .legal-sec { margin-top: 28px; padding-top: 28px; }
  .legal-sec h2 .num { width: 32px; height: 32px; }
  /* The table reads as one card per row, each cell with its heading. */
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr { padding: 12px 14px 14px; border-top: 1px solid var(--line-soft); }
  .legal-table tr:first-child { border-top: 0; }
  .legal-table td { padding: 0; border: 0; }
  .legal-table td + td::before { content: attr(data-label); display: block; margin: 10px 0 2px; font: 500 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  html[lang="ar"] .legal-table td + td::before { font-family: var(--sans); font-size: .76rem; text-transform: none; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-mail { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-contact::before, .legal-contact::after { animation: none !important; }
}

/* A legal text gets printed: the text alone, on white. */
@media print {
  .nav, .foot, .aurora, .legal-switch, .legal-meta a, .legal-meta button, .legal-gist, .legal-toc, .legal-contact-band { display: none !important; }
  .legal-meta { justify-content: flex-start; }
  body, .legal-doc { background: #fff; }
  .legal-hero { padding: 0 0 16px; text-align: start; }
  .legal-hero .lede { margin-inline: 0; }
  .legal-body { padding: 0; }
  .legal-layout { display: block; }
  .legal-doc { max-width: none; padding: 0; border: 0; box-shadow: none; }
  .legal-sec h2 { break-after: avoid; }
  .rise, .fade-up, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}

/* ----------------------------------------------------------------- foot */

.foot { padding: 72px 0 36px; border-top: 1px solid var(--line-soft); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 4px 0 14px; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--ink-2); font-size: .94rem; transition: color .2s; }
.foot ul a:hover { color: var(--violet); }
.foot-bottom { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: .86rem; color: var(--ink-3); }
.foot-bottom .spacer { margin-inline-start: auto; }
.foot-word { margin-top: 40px; font-family: var(--serif); font-size: clamp(4rem, 15vw, 12rem); line-height: .8; letter-spacing: -.04em; text-align: center; user-select: none;
  background: linear-gradient(180deg, rgba(18, 17, 25, .1), rgba(18, 17, 25, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .demo-body { grid-template-columns: 290px 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.xwide { grid-column: span 1; }
  .tile.xwide { grid-column: span 2; }
  .guard-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tiers .tier:last-child { grid-column: span 2; }
  .tiers.four { grid-template-columns: 1fr 1fr; }
  .tiers.four .tier:last-child { grid-column: auto; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .nav-actions .btn-ghost { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 72px; left: 16px; right: 16px; padding: 12px;
    border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lift);
    animation: pop .4s var(--spring);
  }
  .nav.open .nav-links > a { padding: 12px 14px; font-size: 1rem; }
  .nav.open .nav-drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

  .demo-body { grid-template-columns: 1fr; }
  .demo-voice { border-inline-end: 0; border-bottom: 1px solid var(--line-soft); }
  .demo-board { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; }
  .steps, .cards, .sec-grid, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .say-flow { grid-template-columns: 1fr; justify-items: center; }
  .say-arrow { transform: rotate(90deg); animation: none; }
  .calc { grid-template-columns: 1fr; padding: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: span 2; }
  .pledges { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { padding-inline: 16px; }
  .hero { padding-top: 120px; }
  .hero-badge { font-size: .78rem; text-align: start; }
  .reveal.from-left, .reveal.from-right { transform: translateY(28px); }
  body > .band-tight:first-of-type, .page-head { padding-top: 120px; }
  .nav { inset: 10px 0 auto; padding-inline: 10px; }
  .nav-inner { gap: 12px; padding-inline: 14px 8px; }
  .nav-actions .btn { padding: 0 14px; }
  .bento, .guard-grid, .tiers, .tiers.four { grid-template-columns: 1fr; }
  .tile.xwide, .tiers .tier:last-child { grid-column: span 1; }
  .stats { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .enterprise .btn { margin-inline-start: 0; width: 100%; }
  .seg button { padding: 0 16px; }
  .seg.seg-n { grid-template-columns: repeat(2, 1fr); border-radius: 22px; }
  .seg.seg-n::before { display: none; }
  .seg.seg-n button[aria-pressed="true"] { background: var(--ink); }
  .tier, .step, .tile { padding: 22px; }
  .demo-board { padding: 12px; }
  .transcript { font-size: .88rem; }
}

/* --------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal.from-left, .reveal.from-right, .reveal.zoom { opacity: 1; transform: none; filter: none; }
  .wave i, .say-bubble .wave i { animation: none !important; height: 55%; }
  .rise { opacity: 1; transform: none; filter: none; animation: none; }
  .fade-up, .frame { animation: none; }
  .aurora i, .marquee-track, .mini-board .walker, .on-ink::before, .cta-band::before, .cta-band::after, .tier.featured::before { animation: none !important; }
  .seq > * { opacity: 1; transform: none; }
  .search-box .typed { width: 16ch; animation: none; }
  .results div { opacity: 1; animation: none; }
}

/* ------------------------------------------------------ Arabic pages */
/* /ar/*: lang="ar" dir="rtl". Arabic letters join, so no letter-spacing
   (it pulls words apart) and no italics (Arabic has none - a slanted em is
   a synthetic skew). The display face is Readex Pro, the text face IBM Plex
   Sans Arabic; numbers stay Western, as the prices are written. */
html[lang="ar"] {
  --serif: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --sans: "IBM Plex Sans Arabic", "Inter Tight", system-ui, "Segoe UI", sans-serif;
}
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: normal !important; }
html[lang="ar"] .display, html[lang="ar"] .hero h1, html[lang="ar"] .prose h2 { font-weight: 600; line-height: 1.25; }
html[lang="ar"] .display em, html[lang="ar"] .step .say { font-style: normal; }
html[lang="ar"] .hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.nav-lang { font-weight: 600; }

[dir="rtl"] .tier-flag { right: auto; left: 18px; }
[dir="rtl"] .tier li::before, [dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .turn.mine { border-bottom-right-radius: 18px; border-bottom-left-radius: 5px; }
[dir="rtl"] .turn.theirs { border-bottom-left-radius: 18px; border-bottom-right-radius: 5px; }
[dir="rtl"] .bar i, [dir="rtl"] .steps::before { transform-origin: right; }
/* The period switch's pill slides the other way. */
[dir="rtl"] .seg::before { left: auto; right: 5px; transform: translateX(calc(var(--x) * -100%)); }
[dir="rtl"] .reveal.from-left { transform: translateX(36px); }
[dir="rtl"] .reveal.from-right { transform: translateX(-36px); }
[dir="rtl"] .reveal.in.from-left, [dir="rtl"] .reveal.in.from-right { transform: none; }
html[lang="ar"] .eyebrow, html[lang="ar"] .foot h4, html[lang="ar"] .drafts .label,
html[lang="ar"] .demo-col h6, html[lang="ar"] .rule .node small { font-family: var(--sans); }
/* Arrows point the way Arabic reads. */
[dir="rtl"] .btn svg, [dir="rtl"] .say-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .say-arrow { animation-name: nudge-rtl; }
@keyframes nudge-rtl { 50% { transform: translateX(-6px); } }
@media (max-width: 860px) { [dir="rtl"] .say-arrow { transform: rotate(-90deg); animation: none; } }

/* ---------------------------------------------------- help and contact */
/* /help and /contact (and /ar/...): the help center's search, topic grid
   and articles, and the contact form. Plain fields on white cards, the
   same radius and hairlines as everything else on the site. */
.help-search { display: block; position: relative; max-width: 560px; margin: 28px auto 0; }
.help-search svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.help-search input { width: 100%; height: 56px; padding-inline: 48px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); font: inherit; font-size: 1rem; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.help-search input:focus { border-color: color-mix(in srgb, var(--violet) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 14%, transparent), var(--shadow); }
.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 48px; }
.help-topics a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .4s var(--spring), border-color .3s; }
.help-topics a:hover { transform: translateY(-2px); border-color: rgba(91, 70, 229, .3); }
.help-topics .card-icon { width: 34px; height: 34px; margin: 0; border-radius: 10px; flex: none; }
.help-topics .card-icon svg { width: 17px; height: 17px; }
.help-layout { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.help-article { scroll-margin-top: 110px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.help-article:target { border-color: color-mix(in srgb, var(--violet) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 10%, transparent), var(--shadow); }
.help-article h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; }
.help-article h3 { margin: 22px 0 8px; font-size: 1rem; font-weight: 600; }
.help-article > p:first-of-type { margin-top: 0; }
.help-article p, .help-article li { color: var(--ink-2); font-size: .96rem; line-height: 1.65; }
.help-article ol, .help-article ul { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.help-article b { color: var(--ink); font-weight: 600; }
.help-article kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--paper-2); font: 500 .8rem var(--mono); color: var(--ink); text-align: center; }
.help-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: .9rem; color: var(--ink-2); }
/* Search hides what doesn't match; these set a display, so say it again. */
.help-topics[hidden], .help-article[hidden], .help-none[hidden], .sent[hidden], form[hidden] { display: none; }
.help-none { max-width: 560px; margin: 0 auto; text-align: center; color: var(--ink-3); }
.help-article table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .92rem; }
.help-article th, .help-article td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: start; color: var(--ink-2); }
.help-article th { color: var(--ink); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lift, var(--shadow)); }
.contact-side { display: grid; gap: 14px; }
.contact-side .card { padding: 22px; }
.contact-side .card a { color: var(--violet-ink, var(--violet)); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field small { color: var(--ink-3); font-size: .8rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .96rem; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--violet) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 14%, transparent); }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); color: var(--ink-2); font-size: .92rem; }
.form-status.bad { background: var(--rose); color: #8f1d36; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.form-foot small { color: var(--ink-3); font-size: .84rem; }
.sent { text-align: center; padding: 18px 6px; outline: none; }
.sent .card-icon { margin: 0 auto 16px; width: 54px; height: 54px; border-radius: 50%; }
.sent h2 { margin: 0 0 8px; font-size: 1.5rem; }
.sent p { color: var(--ink-2); margin: 0 auto; max-width: 42ch; }
.sent code { font: 600 .95rem var(--mono); color: var(--ink); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .help-topics { grid-template-columns: 1fr 1fr; }
  .help-topics a { padding: 12px; gap: 10px; font-size: .88rem; }
}

/* ------------------------------------------- plans, shots, service desk */
/* 2026-11-09: three plans with features (Starter / Team / Business), real
   app screenshots in a browser frame, plan tags on feature lists, and the
   service-desk page. Uses the tokens above; nothing here is page-specific. */

/* Text for screen readers only - the comparison marks, the plan tags. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* A real screenshot in a browser-window frame. The img keeps its box before
   it loads (aspect-ratio and a paper background), so nothing jumps. */
.shot { position: relative; margin: 0; border-radius: 20px; overflow: hidden; text-align: start; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lift), 0 0 0 6px rgba(255, 255, 255, .5); }
.shot .frame-bar { height: 36px; padding: 0 14px; }
.shot .frame-bar i { width: 10px; height: 10px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top left; background: var(--paper-2); }
.shot-caption { margin: 14px auto 0; max-width: 64ch; text-align: center; font-size: .88rem; color: var(--ink-3); }
.on-ink .shot { background: #15132a; border-color: var(--night-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .04); }
.on-ink .shot .frame-bar { background: #1b1933; border-color: var(--night-line); }
.on-ink .shot .frame-url { background: rgba(255, 255, 255, .06); color: var(--night-ink-2); }
.on-ink .shot img { background: #1d1b33; }
.on-ink .shot-caption { color: var(--night-ink-2); }

/* The board on a laptop, and the same board on a phone leaning on its corner. */
.shot-pair { position: relative; max-width: 1100px; margin: 0 auto; }
.shot-pair > .shot { margin-inline-end: clamp(0px, 6vw, 72px); }
.shot-phone { position: absolute; inset-inline-end: 0; bottom: -28px; width: clamp(150px, 18%, 210px); margin: 0; border-radius: 30px; overflow: hidden; background: var(--ink); border: 7px solid var(--ink); box-shadow: 0 30px 60px -24px rgba(18, 17, 25, .55); }
.shot-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 23px; background: var(--paper-2); }
.shot-wide { max-width: 1000px; margin: 56px auto 0; }

/* "Team" / "Business": which plan a feature needs. */
.plan-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 .66rem var(--sans); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; vertical-align: .2em; margin-inline-start: 8px; background: var(--lilac); color: var(--violet-ink); text-decoration: none; }
.plan-tag.biz { background: var(--peach); color: #8a3d0c; }
.plan-tag.solo { margin-inline-start: 0; }
.on-ink .plan-tag, .tile.ink .plan-tag { background: rgba(179, 166, 255, .18); color: #e3deff; }
.on-ink .plan-tag.biz, .tile.ink .plan-tag.biz { background: rgba(253, 224, 200, .16); color: #ffd9bd; }
html[lang="ar"] .plan-tag { font-family: var(--sans); font-size: .74rem; text-transform: none; }
.plan-key { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin: 18px auto 0; font-size: .86rem; color: var(--ink-3); }
.plan-key .plan-tag { margin: 0; }

/* Pricing: a plan's three limits, above its feature list. */
.tier-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; }
.tier-limits > div { padding: 10px 6px 9px; border-radius: 12px; background: var(--paper-2); text-align: center; min-width: 0; }
.tier-limits dt { font-size: .72rem; color: var(--ink-3); line-height: 1.3; }
.tier-limits dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.tier.featured .tier-limits > div { background: rgba(255, 255, 255, .07); }
.tier.featured .tier-limits dt { color: var(--night-ink-2); }
.tier.featured .tier-limits dd { color: #fff; }
html[lang="ar"] .tier-limits dd { font-size: 1.05rem; font-weight: 600; }
.tier li.lead { color: var(--ink); font-weight: 600; }
.tier.featured li.lead { color: #fff; }
.tier li a { color: inherit; text-underline-offset: 3px; }

/* What all three plans share - a strip of chips under the cards. */
.shared { margin-top: 18px; padding: 22px 26px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line-soft); }
.shared h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; }
.shared ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shared li { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-soft); font-size: .88rem; color: var(--ink-2); }
.shared li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }

/* The plan comparison: it scrolls inside its own box on a phone, and the
   feature names stay put on the start side while the plan columns slide. */
.compare.plans { min-width: 600px; table-layout: fixed; }
.compare.plans col.feat { width: 40%; }
.compare.plans th, .compare.plans td { padding: 13px 16px; }
.compare.plans thead th { vertical-align: bottom; }
.compare.plans thead th small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-3); }
.compare.plans thead th.hl small { color: var(--violet); }
.compare.plans tbody th[scope="row"] { font-weight: 500; text-align: start; color: var(--ink-2); }
.compare.plans tbody th[scope="row"] small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.compare.plans thead th:first-child, .compare.plans tbody th[scope="row"] { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--card); }
.compare.plans tbody th[scope="row"]::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 1px; background: var(--line-soft); }
.compare.plans tr.group th { padding-block: 10px; text-align: start; background: var(--paper-2); font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.compare.plans tr.group th span { position: sticky; inset-inline-start: 16px; }
.compare.plans tbody tr:hover td, .compare.plans tbody tr:hover th[scope="row"] { background: #fbfaff; }
.compare.plans td { color: var(--ink); }
.compare .no { display: inline-block; min-width: 22px; font-weight: 600; }
html[lang="ar"] .compare.plans tr.group th { font-family: var(--sans); font-size: .82rem; text-transform: none; }
.compare-note { margin: 12px 0 0; text-align: center; font-size: .84rem; color: var(--ink-3); }

/* A long unbreakable line (a share link) must not widen a split's column. */
.split > * { min-width: 0; }

/* Service desk page: a few facts in a row. */
.desk-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.desk-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

@media (max-width: 1080px) {
  .tier-limits dd { font-size: 1.2rem; }
}
@media (max-width: 860px) {
  .desk-facts { grid-template-columns: 1fr; }
  /* The four role cards on /features carry an inline 4-column grid. */
  #roles .cards { grid-template-columns: 1fr 1fr !important; }
  .shot-pair > .shot { margin-inline-end: 0; }
  .shot-phone { width: 26%; bottom: -22px; inset-inline-end: -6px; border-width: 5px; border-radius: 22px; }
  .shot-phone img { border-radius: 17px; }
}
@media (max-width: 640px) {
  .shot { border-radius: 14px; box-shadow: var(--shadow-lift); }
  .shot .frame-bar { height: 28px; gap: 5px; padding: 0 10px; }
  .shot .frame-bar i { width: 8px; height: 8px; }
  .shot .frame-url { font-size: .64rem; padding: 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
  .shot-phone { display: none; }
  .shot-wide { margin-top: 40px; }
  #roles .cards { grid-template-columns: 1fr !important; }
  .compare.plans { min-width: 520px; font-size: .86rem; }
  .compare.plans th, .compare.plans td { padding: 11px 10px; }
  .compare.plans col.feat { width: 38%; }
  .shared { padding: 18px; }
  .shared li { font-size: .84rem; }
}