/*
 * TextUp public landing page — resources/views/landing.blade.php, served at `/`.
 * Plain static CSS (no Vite build step) so the page never depends on the admin bundle.
 *
 * Layout: the "Linguist AI" Dribbble landing page. Violet "sky" bands (hero, the difference,
 * CTA) alternate with white and lavender-grey sections, joined by torn-paper edges.
 * Colours come from the app icon (public/images/logo.png): violet #522DE9, lavender #D7C1F5,
 * and the icon's light-purple highlight #AC75E9.
 *
 * Motion: elements marked [data-reveal] start hidden only when <html class="js"> is set (the
 * script that reveals them can run) and never under prefers-reduced-motion.
 */
:root {
  --violet: #522DE9;
  --violet-700: #4122CF;
  --violet-900: #2A158F;
  --lav: #D7C1F5;
  --lav-200: #E4D8FA;
  --lav-100: #EFE9FD;
  --lav-50: #F7F4FE;
  --ink: #16112E;
  --muted: #5E5878;
  --faint: #9B95B3;
  --rule: #E7E3F2;
  --page: #F3F1F9;
  --white: #FFFFFF;
  --bad: #CF344A;
  --bad-soft: #FDECEF;
  --bad-rule: #F6CDD5;
  --go: #1E9E5F;

  --shadow-card: 0 1px 2px rgba(22, 17, 46, .04), 0 14px 34px -20px rgba(22, 17, 46, .22);
  --shadow-lift: 0 34px 70px -34px rgba(42, 21, 143, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Inter Tight", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-h1: clamp(2.7rem, 6.6vw, 5.7rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 3.75rem);
  --header-h: 76px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.sky :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lav), #AC75E9, var(--violet)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .i { transform: translateX(3px); }
.btn-white { background: #fff; color: var(--violet); box-shadow: 0 4px 0 rgba(42, 21, 143, .25), 0 18px 30px -18px rgba(22, 17, 46, .5); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 4px 0 rgba(22, 17, 46, .25); }
.btn-soft { background: #E9E5F4; color: var(--ink); box-shadow: 0 3px 0 rgba(22, 17, 46, .08); }
.btn-soft:hover { background: #E1DCF0; }
.link-light {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, .8); padding-bottom: 3px;
}
.link-light .i { width: 16px; height: 16px; }
.link-light:hover { border-bottom-color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  color: var(--ink); font-size: 1.02rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 5px;
}
.kicker .i { width: 18px; height: 18px; }
.kicker-light { color: #fff; border-bottom-color: rgba(255, 255, 255, .75); }
a.kicker:hover .i { transform: translateX(3px); }
a.kicker .i { transition: transform .25s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), transform .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--rule);
  color: var(--ink);
}
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 16px; }
.brand {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; letter-spacing: -.03em;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-pill {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .35s, border-color .35s;
}
.nav-pill a { position: relative; z-index: 1; padding: 9px 18px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 500; font-size: .96rem; transition: background-color .2s, color .35s; }
.nav-pill a:hover { background: rgba(255, 255, 255, .16); }
.scrolled .nav-pill { background: var(--lav-50); border-color: var(--rule); }
.scrolled .nav-pill a:hover { background: var(--lav-100); }
/* Scrollspy: one pill slides under whichever link's section is on screen. */
.nav-ind {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 10px; opacity: 0; pointer-events: none;
  background: rgba(255, 255, 255, .24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: transform .55s cubic-bezier(.3, 1.3, .5, 1), width .55s cubic-bezier(.3, 1.3, .5, 1), opacity .3s, background-color .35s;
}
.scrolled .nav-ind { background: var(--violet); box-shadow: 0 8px 18px -8px rgba(82, 45, 233, .8); }
.nav-pill a[aria-current]:hover { background: transparent; }
.scrolled .nav-pill a[aria-current] { color: #fff; }
.nav-cta {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: inherit;
  font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
  transition: color .35s, padding .35s, background-color .35s, border-radius .35s;
}
.scrolled .nav-cta.is-active { color: #fff; background: var(--violet); border-bottom-color: transparent; padding: 9px 16px; border-radius: 12px; }
.nav-cta .i { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.nav-cta:hover .i { transform: translateX(3px); }
@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
}

/* ---------- Sky bands ---------- */
.sky {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(172, 117, 233, .55), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(215, 193, 245, .35), transparent 65%),
    linear-gradient(180deg, #4424D4 0%, #522DE9 38%, #6E46EE 72%, #9C7BF2 100%);
}
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud-layer { position: absolute; inset: 0; will-change: transform; }
.cloud {
  position: absolute; display: block; opacity: .55; filter: blur(16px);
  background:
    radial-gradient(38% 50% at 28% 62%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(34% 58% at 52% 44%, rgba(244, 238, 255, .95), transparent 70%),
    radial-gradient(30% 48% at 74% 62%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(60% 34% at 50% 80%, rgba(236, 228, 255, .85), transparent 75%);
  animation: drift 26s ease-in-out infinite alternate;
}
.cloud.c1 { width: 620px; height: 260px; left: -140px; top: 14%; }
.cloud.c2 { width: 560px; height: 240px; right: -120px; top: 34%; animation-duration: 32s; opacity: .45; }
.cloud.c3 { width: 720px; height: 280px; left: -180px; bottom: 6%; animation-duration: 38s; opacity: .5; }
.cloud.c4 { width: 520px; height: 220px; right: 4%; top: 2%; animation-duration: 30s; opacity: .35; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

/* Torn-paper edges sit inside the section, filled with the neighbour's colour. */
.tear { position: absolute; left: 0; width: 100%; height: 36px; display: block; z-index: 4; pointer-events: none; overflow: visible; }
.tear use { fill: currentColor; }
.tear .tear-hi { fill: #fff; opacity: .55; }
.tear-top { top: -1px; transform: scaleY(-1); }
.tear-bottom { bottom: -1px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 64px); }
.hero-copy { position: relative; z-index: 2; max-width: calc(800px + 80px); will-change: transform, opacity; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1; letter-spacing: -.048em; margin-top: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; }
.hero h1 .line.tone { color: var(--lav); }
.hero h1 .line.tone > span { animation-delay: .12s; }
@keyframes lineUp { from { transform: translateY(108%); } }
.load-in { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.lede { margin-top: 24px; max-width: 34em; font-size: 1.16rem; color: rgba(255, 255, 255, .86); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .72); }

.mascot { position: absolute; z-index: 2; right: max(5vw, 32px); top: calc(var(--header-h) + 96px); animation: bob 5s ease-in-out infinite; }
.mascot img { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 24px 40px -18px rgba(22, 17, 46, .6); }
.mascot-bubble {
  position: absolute; right: 70px; top: -26px; padding: 6px 14px; border-radius: 16px 16px 4px 16px;
  background: rgba(255, 255, 255, .92); color: var(--violet); font: 700 1rem/1.3 var(--font-display); letter-spacing: -.02em;
  animation: pop 4s var(--ease) infinite;
}
@keyframes bob { 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.12); } }
@media (max-width: 1100px) { .mascot { display: none; } }

.hero-stage {
  position: relative; z-index: 2; margin-top: 72px; padding-bottom: 110px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 34px; align-items: start;
}
.glass {
  position: absolute; top: 150px; bottom: 70px; left: 40px; right: 40px; z-index: 0; border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
/* On wide screens the callouts are flown in and out by the scroll loop in landing.js;
   on narrow screens they reveal like any other [data-reveal] element. */
.callouts { position: relative; z-index: 1; list-style: none; margin: 0; padding: 230px 0 0; display: grid; gap: 26px; }
.callouts-left { justify-items: end; }
.callouts-right { justify-items: start; }
.callout {
  display: flex; align-items: center; gap: 14px; max-width: 340px; padding: 14px 18px;
  background: rgba(255, 255, 255, .93); color: var(--ink); border-radius: 14px; font-size: .95rem; line-height: 1.4;
  box-shadow: 0 18px 30px -22px rgba(22, 17, 46, .5);
}
.callout .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--lav-100); color: var(--violet); display: grid; place-items: center; flex: none; }
.callout .ic .i { width: 19px; height: 19px; }
.callouts-left .callout:nth-child(2) { margin-right: 46px; }
.callouts-left .callout:nth-child(3) { margin-right: -6px; }
.callouts-right .callout:nth-child(1) { margin-top: -40px; }
.callouts-right .callout:nth-child(2) { margin-left: -18px; }
.callouts-right .callout:nth-child(3) { margin-left: 34px; }

/* ---- Hero screenshot: springs up out of the glass, tilts with scroll and pointer, and a shine
   sweeps across it once it lands. ---- */
.phone-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
/* The landing sequence starts when landing.js adds .go (scrolled into view), so visitors
   actually see it. Without JS (.js absent) the screenshot simply shows, unanimated. */
.js .phone-wrap:not(.go) .hero-shot,
.js .phone-wrap:not(.go) .phone-glow { opacity: 0; }
.phone-glow {
  position: absolute; z-index: 0; left: 50%; top: 46%; width: 620px; height: 620px; max-width: 160vw; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 220, 255, .75) 0%, rgba(172, 117, 233, .38) 34%, transparent 66%);
  filter: blur(6px);
}
.phone-wrap.go .phone-glow { animation: glowIn 1.8s var(--ease) .15s both, glowPulse 5.5s ease-in-out 2s infinite; }
@keyframes glowIn { from { opacity: 0; scale: .4; } }
@keyframes glowPulse { 50% { scale: 1.08; opacity: .8; } }
.phone-3d { position: relative; z-index: 1; transform-style: preserve-3d; perspective: 1400px; will-change: transform; }
/* A definite width (not a percentage): the wrappers above size to their content. The phone
   frame itself is the shared .shot below. */
.hero-shot { --bz: 11px; --r: 50px; margin: 0; width: 320px; max-width: calc(100vw - 32px); transform-origin: 50% 100%; }
.phone-wrap.go .hero-shot { animation: phoneLand 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes phoneLand {
  0% { opacity: 0; transform: translateY(240px) rotateX(42deg) scale(.8); }
  50% { opacity: 1; }
  58% { transform: translateY(-18px) rotateX(-5deg) scale(1.02); }
  78% { transform: translateY(6px) rotateX(1.5deg) scale(.996); }
  100% { transform: none; }
}
/* The shine that sweeps across the screen once it lands. It moves by background-position, not
   transform, so it stays inside the screen without an overflow:hidden that would also clip the
   frame's side buttons. */
.hero-shot::after {
  content: ""; position: absolute; inset: var(--bz); z-index: 1; pointer-events: none; border-radius: calc(var(--r) - var(--bz));
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat;
}
.phone-wrap.go .hero-shot::after { animation: shine 1.3s ease-in-out 1.25s both; }
@keyframes shine { to { background-position: 0 0; } }

@media (max-width: 1000px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; margin-top: 56px; padding-bottom: 90px; }
  .glass { display: none; }
  .phone-wrap { order: -1; margin-bottom: 18px; }
  .callouts { padding: 0; width: 100%; max-width: 440px; gap: 12px; justify-items: stretch; }
  .callout, .callouts .callout:nth-child(n) { margin: 0; max-width: none; }
  .phone-glow { width: 420px; height: 420px; }
}

/* ---------- App screenshots in a phone frame (public/landing/screens/) ---------- */
/* The screenshots are exactly an iPhone screen (1290x2796), so each one is shown as the screen of
   a drawn phone: .shot is the body, the <img> the screen. --bz is the bezel and --r the outer
   corner radius; smaller phones below set smaller values so the proportions hold. */
.shot {
  --bz: 10px; --r: 46px; --btn: #2B2547;
  position: relative; display: block; width: 300px; max-width: 100%;
  padding: var(--bz); border-radius: var(--r); background: #15112A;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 0 3px #0B0818,
    0 0 0 1px rgba(255, 255, 255, .1),
    0 40px 70px -34px rgba(18, 8, 70, .6);
}
.shot img { width: 100%; height: auto; aspect-ratio: 480 / 1040; border-radius: calc(var(--r) - var(--bz)); background: #4F5BEF; }
/* Side buttons, drawn just outside the body: action + volume up/down on the left, power on the
   right. One pseudo-element, two 3px-wide stripes whose colour stops are the buttons. */
.shot::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -3px; right: -3px; pointer-events: none;
  background:
    linear-gradient(transparent 15%, var(--btn) 15% 19%, transparent 19% 23%, var(--btn) 23% 30%, transparent 30% 32%, var(--btn) 32% 39%, transparent 39%) left / 3px 100% no-repeat,
    linear-gradient(transparent 25%, var(--btn) 25% 35%, transparent 35%) right / 3px 100% no-repeat;
}
/* A soft panel the screenshot sits in (AI recording, multiple numbers). */
.shot-stage {
  display: grid; place-items: center; padding: 40px 24px; border-radius: 32px;
  background: radial-gradient(120% 80% at 50% 0%, var(--lav-200), var(--page) 70%);
}
.shot-stage .shot { width: 280px; }

/* ---------- Marquee strip ---------- */
.strip { background: #fff; padding-block: 30px 34px; overflow: hidden; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; }
.m-item {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 38px; white-space: nowrap;
  color: #9690AE; font: 600 1.5rem/1 var(--font-display); letter-spacing: -.03em;
  border-right: 1px solid var(--rule); transition: color .2s;
}
.m-item .i { width: 28px; height: 28px; stroke-width: 1.6; }
.m-item:hover { color: var(--violet); }

/* ---------- Statement + stats ---------- */
.statement { background: #fff; padding-block: 90px 130px; }
.statement-text { max-width: 1100px; font: 600 clamp(1.9rem, 4.3vw, 3.5rem)/1.12 var(--font-display); letter-spacing: -.04em; }
.statement-text em { font-style: normal; color: var(--violet); }
.statement-text .w { color: #D9D3EA; transition: color .3s ease; }
.statement-text .w.lit { color: var(--ink); }
.statement-text .w.accent.lit { color: var(--violet); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 80px; }
.stat { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.stat b { font: 600 clamp(2.8rem, 5vw, 4.2rem)/1 var(--font-display); letter-spacing: -.05em; color: var(--violet); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .38em; letter-spacing: -.01em; margin-left: 6px; color: var(--ink); }
.stat > span { color: var(--muted); max-width: 22ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Generic sections ---------- */
.section { position: relative; padding-block: 120px; }
.section.page { background: var(--page); }
.section.white { background: #fff; padding-block: 90px; }
.section.how { padding-top: 40px; }
.faq-section { padding-top: 40px; }
@media (max-width: 640px) {
  .section { padding-block: 84px; }
  .section.white { padding-block: 64px; }
  .section.how, .faq-section { padding-top: 24px; }
}
.head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 72px; align-items: end; margin-bottom: 60px; }
.head h2, .copy h2, .cta-copy h2 { font: 600 var(--fs-h2)/1.04 var(--font-display); letter-spacing: -.045em; margin-top: 24px; }
.tone { display: block; color: var(--violet); }
.head-side { display: grid; gap: 24px; justify-items: start; }
.head-side p { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.head.on-sky h2 { color: #fff; }
.head.on-sky .tone, .cta-copy .tone { color: var(--lav); }
.head.on-sky .head-side p { color: rgba(255, 255, 255, .85); }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 20px; }
.cell.w { grid-column: span 4; }
.cell.s { grid-column: span 3; }
.card {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 18px; padding: 24px;
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-card); overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(82, 45, 233, .09), transparent 60%);
}
.card:hover { box-shadow: 0 1px 2px rgba(22, 17, 46, .04), 0 30px 50px -28px rgba(42, 21, 143, .4); }
.card:hover::after { opacity: 1; }
.card .tile { width: 58px; height: 58px; border-radius: 16px; background: var(--page); color: var(--ink); display: grid; place-items: center; flex: none; }
.card .tile .i { width: 24px; height: 24px; }
.card-body { margin-top: auto; display: grid; gap: 8px; }
.card h3 { font: 600 1.35rem/1.2 var(--font-display); letter-spacing: -.03em; }
.card p { color: var(--muted); font-size: .97rem; }
.mock { background: var(--page); border-radius: 18px; padding: 16px; }
@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell.w { grid-column: span 2; }
  .cell.s { grid-column: span 1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell.w, .cell.s { grid-column: span 1; }
}

/* Bento mini-mocks */
.chat-mock { display: grid; gap: 8px; }
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.chat-top b { display: block; font: 500 .88rem/1.2 var(--font-mono); }
.chat-top small { color: var(--muted); font-size: .76rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lav); color: var(--violet-900); display: grid; place-items: center; font: 700 .72rem/1 var(--font-body); }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: .88rem; }
.bub.in { background: #fff; border-bottom-left-radius: 4px; justify-self: start; }
.bub.out { background: var(--violet); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.attach { display: flex; gap: 6px; justify-self: end; }
.attach .ph { width: 54px; height: 44px; border-radius: 10px; display: grid; place-items: center; font: 600 .7rem/1 var(--font-mono); color: var(--violet-900); }
.attach .p1 { background: linear-gradient(135deg, #C9B2F5, #8E6BF0); }
.attach .p2 { background: linear-gradient(135deg, #EADFFC, #B79CF5); }
.attach .pdf { background: #fff; border: 1px solid var(--rule); }
.chat-meta { display: flex; justify-content: space-between; align-items: center; }
.chat-meta small { color: var(--muted); font-size: .74rem; }
.typing { display: inline-flex; gap: 4px; padding: 8px 10px; background: #fff; border-radius: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.ctrl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ctrl-row span { font: 500 .74rem/1 var(--font-mono); padding: 7px 9px; border-radius: 999px; background: var(--page); }
.ctrl-row .on { background: var(--violet); color: #fff; }
.ctrl-row .rec { background: var(--bad-soft); color: var(--bad); }
.vm-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--page); border-radius: 14px; }
.vm-row small { font: 500 .76rem/1 var(--font-mono); color: var(--muted); }
.vm-play { width: 30px; height: 30px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; flex: none; }
.vm-play svg { width: 13px; height: 13px; fill: #fff; }
.vm-wave { flex: 1; height: 22px; background: repeating-linear-gradient(90deg, var(--lav) 0 3px, transparent 3px 6px); -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 30%, #000 70%, transparent 90%); border-radius: 4px; }
.mini-seg { display: grid; grid-template-columns: auto 1fr; gap: 3px; padding: 3px; border-radius: 11px; background: var(--page); font-size: .8rem; font-weight: 600; }
.mini-seg span { padding: 7px 10px; border-radius: 8px; color: var(--muted); text-align: center; white-space: nowrap; }
.mini-seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22, 17, 46, .1); }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--page); border-radius: 12px; font-size: .84rem; flex-wrap: wrap; }
.pill-bad { font: 600 .72rem/1 var(--font-body); color: var(--bad); background: var(--bad-soft); border: 1px solid var(--bad-rule); padding: 5px 9px; border-radius: 999px; }
.dnd-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--page); border-radius: 12px; font-size: .9rem; }
.dnd-row .i { width: 16px; height: 16px; color: var(--faint); }
.switch { margin-left: auto; width: 38px; height: 22px; border-radius: 999px; background: var(--violet); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.pin-row { display: flex; gap: 12px; padding: 14px; background: var(--page); border-radius: 12px; justify-content: center; }
.pin-row i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--violet); }
.pin-row i.f { background: var(--violet); }

.lang-mock { display: grid; gap: 10px; overflow: hidden; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lang-row { display: flex; gap: 8px; width: max-content; animation: langScroll 40s linear infinite; }
.lang-row.rev { animation-direction: reverse; animation-duration: 46s; }
.lang-row span { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.lang-row span:nth-child(4n+1) { background: var(--lav-100); border-color: var(--lav-200); color: var(--violet-900); }
@keyframes langScroll { to { transform: translateX(-50%); } }

.recents-mock { display: grid; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.filters span { font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); }
.filters .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.r-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: #fff; border-radius: 12px; }
.r-row b { display: block; font-size: .86rem; font-weight: 600; }
.r-row b.mono { font-weight: 500; }
.r-row small { color: var(--muted); font-size: .74rem; }
.r-row > small { font-family: var(--font-mono); }
.r-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--lav-100); color: var(--violet); display: grid; place-items: center; }
.r-ic .i { width: 17px; height: 17px; }
.r-ic.miss { background: var(--bad-soft); color: var(--bad); }

/* ---------- How it works: sticky stacking cards ---------- */
/* Each card keeps a long bottom margin so it stays pinned for a while before the next one
   slides over it; the last card's margin holds the finished stack on screen for a moment. */
.stack { display: grid; gap: 0; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 24px + var(--i) * 22px);
  margin-bottom: 55vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  min-height: 420px; padding: clamp(28px, 4.5vw, 64px); border-radius: 34px; overflow: hidden;
  transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 -10px 40px -24px rgba(22, 17, 46, .35);
}
.stack-card:last-child { margin-bottom: 22vh; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: #0B0820; opacity: var(--dim, 0); pointer-events: none; }
.stack-card.c1 { background: var(--violet); color: #fff; }
.stack-card.c2 { background: var(--lav); color: var(--ink); }
.stack-card.c3 { background: var(--ink); color: #fff; }
.stack-copy { display: grid; gap: 16px; align-content: start; max-width: 30em; }
.stack-n { font: 500 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.stack-card h3 { font: 600 clamp(2rem, 4vw, 3.3rem)/1.02 var(--font-display); letter-spacing: -.045em; }
.stack-card p { font-size: 1.1rem; opacity: .85; }
/* The screenshot hangs from the top of the visual column and runs past the card's bottom edge
   (the card clips it), so a 2:1 portrait image doesn't make the sticky cards too tall to stack. */
.stack-visual {
  position: relative; align-self: stretch; min-height: 340px;
  margin-bottom: calc(-1 * clamp(28px, 4.5vw, 64px));
}
.stack-visual .shot { --bz: 9px; --r: 42px; position: absolute; top: 4px; left: 50%; width: 270px; translate: -50% 0; }
.stack-visual.pair .shot { --bz: 8px; --r: 36px; width: 230px; }
.stack-visual.pair .shot:first-child { translate: calc(-100% + 22px) 0; rotate: -5deg; }
.stack-visual.pair .shot:last-child { translate: -22px 30px; rotate: 5deg; }
@media (max-width: 820px) {
  .stack-card { grid-template-columns: minmax(0, 1fr); min-height: 0; top: calc(var(--header-h) + 12px + var(--i) * 14px); }
  .stack-visual { min-height: 280px; }
  .stack-visual .shot { --bz: 8px; --r: 34px; width: 220px; }
  .stack-visual.pair .shot { --bz: 6px; --r: 25px; width: 160px; }
}

/* ---------- The difference ---------- */
.compare { padding-block: 130px 150px; }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.vs-card { background: #fff; color: var(--ink); border-radius: 32px; padding: 14px 14px 6px; box-shadow: 0 40px 70px -40px rgba(18, 8, 70, .6); }
.vs-head { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; background: var(--page); }
.vs-head .tile { width: 58px; height: 58px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--ink); flex: none; }
.vs-head .tile .i { width: 26px; height: 26px; }
.vs-head .tile img { border-radius: 9px; }
.vs-head b { display: block; font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.03em; }
.vs-head small { color: var(--muted); font-size: .98rem; }
.vs-card.old .vs-head b { color: var(--bad); }
.vs-card.new .vs-head b { color: var(--violet); }
.vs-rows { list-style: none; margin: 6px 0 0; padding: 0 14px; }
.vs-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); font: 600 1.06rem/1.3 var(--font-display); letter-spacing: -.015em; flex-wrap: wrap; }
.vs-rows li:last-child { border-bottom: 0; }
.chip-bad, .chip-good { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 500 .9rem/1.2 var(--font-body); letter-spacing: 0; }
.chip-bad { color: var(--bad); background: var(--bad-soft); border: 1px solid var(--bad-rule); }
.chip-good { color: var(--violet); background: var(--lav-100); border: 1px solid var(--lav-200); }
.chip-bad .i, .chip-good .i { width: 16px; height: 16px; stroke-width: 2; }
@media (max-width: 900px) { .vs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split sections (visual + checklist) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px 88px; align-items: center; }
/* Grid items default to min-width:auto, which lets wide content stretch the column past the
   screen on phones. */
.split > *, .head > *, .cta-grid > *, .hero-stage > *, .panel > * { min-width: 0; }
.copy { display: grid; justify-items: start; align-content: start; }
.copy-lede { margin-top: 22px; color: var(--muted); font-size: 1.1rem; max-width: 32em; }
.rows { list-style: none; margin: 30px 0 0; padding: 0; width: 100%; }
.rows li { display: flex; gap: 14px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.rows .i { color: var(--violet); width: 22px; height: 22px; margin-top: 1px; }
.rows a { color: var(--violet); font-weight: 600; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { font: 500 .78rem/1 var(--font-mono); letter-spacing: .03em; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); }
.pill.on { background: var(--violet); border-color: var(--violet); color: #fff; }
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .visual { order: 2; }
}

.panel { background: var(--page); border-radius: 32px; padding: 22px; display: grid; gap: 14px; }
.mini { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-card); display: grid; gap: 10px; }
.pill-soft { display: inline-flex; align-items: center; gap: 6px; font: 500 .74rem/1 var(--font-mono); color: var(--violet); background: var(--lav-100); padding: 6px 10px; border-radius: 999px; }
.fixer-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.fixer-head b { display: block; font: 600 1.15rem/1.2 var(--font-display); letter-spacing: -.02em; }
.fixer-head small { color: var(--muted); font-size: .82rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; border-radius: 14px; font-weight: 500; font-size: .95rem; box-shadow: var(--shadow-card); }
.check::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; transition: background-color .3s; }
.check.ok::before { background: var(--violet); }
.check .st { margin-left: auto; font: 500 .72rem/1 var(--font-mono); }
.st-wait { color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.st-wait::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--lav-200); border-top-color: var(--violet); animation: spin .8s linear infinite; }
.st-ok { color: var(--violet); display: none; }
.check.ok .st-wait { display: none; }
.check.ok .st-ok { display: inline; animation: fadeUp .35s var(--ease) both; }
@keyframes spin { to { transform: rotate(360deg); } }
.fixes { display: flex; flex-wrap: wrap; gap: 6px; }
.fixes span { font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--violet); color: var(--violet); }
@media (max-width: 420px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan { display: grid; gap: 18px; padding: 14px; border-radius: 32px; background: rgba(255, 255, 255, .55); border: 1px solid #fff; }
.plan.featured { background: #fff; box-shadow: var(--shadow-lift); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 22px; background: var(--page); color: var(--violet); }
.plan.featured .plan-head { background: #fff; border: 1px solid var(--rule); }
.plan-head small { display: block; color: var(--muted); font-size: .9rem; }
.plan-head b { display: block; font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.035em; color: var(--violet); }
.plan.featured .plan-head b { color: var(--ink); }
.plan-head .i { width: 30px; height: 30px; stroke-width: 1.5; }
.plan-desc { padding: 0 10px; color: var(--muted); }
.plan-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; flex-wrap: wrap; }
.amt { font: 600 2.7rem/1 var(--font-display); letter-spacing: -.05em; color: var(--violet); }
.amt small { font: 400 .95rem/1 var(--font-body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan-price .btn { min-height: 46px; padding: 0 16px; font-size: .94rem; }
.plan ul { list-style: none; margin: 0; padding: 4px 18px; border-radius: 22px; background: var(--page); }
.plan li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.plan li:last-child { border-bottom: 0; }
.plan li .i { color: var(--violet); width: 20px; height: 20px; margin-top: 2px; }
.fine { margin-top: 30px; color: var(--muted); font-size: .9rem; max-width: 60em; }
@media (max-width: 1000px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ---------- FAQ ---------- */
.faq-split { align-items: start; }
.faq { border-top: 1px solid var(--rule); width: 100%; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 52px 22px 0;
  font: 600 1.15rem/1.35 var(--font-display); letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background:
    linear-gradient(var(--violet), var(--violet)) center / 12px 2px no-repeat,
    linear-gradient(var(--violet), var(--violet)) center / 2px 12px no-repeat,
    var(--lav-100);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--violet); }
.faq details p { padding: 0 52px 24px 0; color: var(--muted); max-width: 60ch; }
.faq details[open] p { animation: fadeUp .4s var(--ease) both; }

/* ---------- CTA band ---------- */
.cta-band { padding-top: 140px; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: end; }
.cta-copy { padding-bottom: 150px; }
.cta-copy h2 { color: #fff; }
.cta-lede { margin-top: 22px; font-size: 1.15rem; color: rgba(255, 255, 255, .86); max-width: 30em; }
.cta-visual { position: relative; height: 560px; }
.cta-shot { position: absolute; right: 8%; top: 60px; width: 300px; animation: bob 6s ease-in-out infinite; }
.glass-callout {
  position: absolute; left: -10px; top: 10px; z-index: 3; max-width: 300px;
  background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: none;
}
.glass-callout .ic { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-copy { padding-bottom: 20px; }
  .cta-visual { height: 540px; } /* tall enough to show the headline and number cards above the torn edge */
  .cta-shot { left: 50%; right: auto; width: 280px; transform: translateX(-50%); animation: none; }
  .glass-callout { left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--page); padding-top: 70px; overflow: hidden; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { margin-top: 16px; color: var(--muted); max-width: 26em; }
.foot-col { display: grid; gap: 12px; }
.foot-col b { font: 600 1rem/1.2 var(--font-display); margin-bottom: 4px; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--violet); }
.foot-card { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-card); }
.foot-card b { font: 600 1.15rem/1.2 var(--font-display); letter-spacing: -.02em; }
.foot-card small { color: var(--muted); }
.foot-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-btns .btn { min-height: 44px; flex: 1; white-space: nowrap; }
.foot-copy { grid-column: 1 / -1; font: 500 .8rem/1 var(--font-mono); color: var(--muted); padding-top: 24px; border-top: 1px solid var(--rule); }
.wordmark {
  display: flex; justify-content: center; margin-top: 20px; margin-bottom: -.16em;
  font: 700 clamp(6rem, 25vw, 23rem)/.85 var(--font-display); letter-spacing: -.07em; color: #E6E1F4; user-select: none;
}
.wordmark span { display: inline-block; }
@media (max-width: 960px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand, .foot-card { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll (only with JS) ---------- */
.js [data-reveal] {
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; translate: 0 34px; }
.js [data-reveal="left"]:not(.is-in) { translate: -56px 0; }
.js [data-reveal="right"]:not(.is-in) { translate: 56px 0; }
.js [data-reveal="rise"]:not(.is-in) { translate: 0 60%; opacity: 0; }
.js [data-reveal="rise"] { transition-duration: 1.1s; transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; translate: none; }
  .stack-card, .stack-card:last-child { position: relative; top: auto; margin-bottom: 28px; }
}
