/* ===== Scribe landing – warm paper light theme ===== */
:root{
  --bg-1:#f8f3ea;
  --bg-2:#ece1cd;
  --surface:#faf9f6;
  --surface-2:#f4eee2;
  --ink:#1f1d18;
  --ink-2:#6b675e;
  --line:rgba(31,29,24,.10);
  --gold-1:#e2ac40;
  --gold-2:#d49a2e;
  --gold-3:#bd7c28;
  --gold-deep:#b8791f;
  --gold-grad:linear-gradient(135deg,#e2ac40 0%,#d49a2e 48%,#bd7c28 100%);
  --shadow-sm:0 1px 2px rgba(31,29,24,.05),0 2px 8px rgba(31,29,24,.04);
  --shadow-md:0 8px 24px rgba(31,29,24,.08),0 2px 6px rgba(31,29,24,.05);
  --shadow-lg:0 30px 70px -20px rgba(89,63,15,.28),0 12px 30px rgba(31,29,24,.10);
  --radius:18px;
  --radius-sm:12px;
  --maxw:1160px;
  /* Self-hosted (assets/fonts.css): Lora – a serif grown out of broad-nib
     calligraphy (on-brand for the scribe), Inter – same face the app uses. */
  --font-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,"Noto Sans",sans-serif;
  --font-display:"Lora","Georgia","Times New Roman",serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--ink);
  background:linear-gradient(180deg,var(--bg-1) 0%,#f4ebdb 40%,var(--bg-2) 100%);
  background-attachment:fixed;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px}
.container--narrow{max-width:780px}

.eyebrow{
  display:inline-block;
  font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold-deep);margin-bottom:16px;
}

/* ===== Buttons ===== */
.btn{
  --bh:52px;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:var(--bh);padding:0 22px;border-radius:999px;
  font-family:var(--font-sans);font-size:1rem;font-weight:650;
  cursor:pointer;border:1px solid transparent;white-space:nowrap;
  transition:transform .18s ease,box-shadow .25s ease,background .25s ease;
}
.btn svg{flex:none}
.btn--sm{--bh:40px;padding:0 18px;font-size:.92rem}
.btn--lg{--bh:56px;padding:0 26px;font-size:1.04rem}
.btn--primary{
  color:#3a2708;background:var(--gold-grad);
  box-shadow:0 8px 20px -6px rgba(184,121,31,.55),inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover{transform:translateY(-2px);box-shadow:0 14px 28px -8px rgba(184,121,31,.6),inset 0 1px 0 rgba(255,255,255,.4)}
.btn--ghost{
  color:var(--ink);background:var(--surface);border-color:var(--line);
  box-shadow:var(--shadow-sm);
}
.btn--ghost:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:rgba(184,121,31,.35)}
.btn--disabled{
  color:var(--ink-2);background:var(--surface-2);border-color:var(--line);
  box-shadow:none;cursor:default;
}
.btn--disabled:hover{transform:none;box-shadow:none;border-color:var(--line)}

/* ===== Nav ===== */
.nav{position:sticky;top:0;z-index:50;transition:background .3s ease,box-shadow .3s ease,border-color .3s ease;border-bottom:1px solid transparent}
.nav.is-stuck{background:rgba(250,249,246,.82);backdrop-filter:saturate(140%) blur(14px);-webkit-backdrop-filter:saturate(140%) blur(14px);box-shadow:0 1px 0 rgba(31,29,24,.06);border-color:var(--line)}
.nav__inner{max-width:var(--maxw);margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:24px}
.nav__brand{display:flex;align-items:center;gap:10px}
.nav__mark{border-radius:9px;box-shadow:var(--shadow-sm)}
.nav__name{font-family:var(--font-display);font-weight:700;font-size:1.28rem;letter-spacing:.01em}
.nav__links{display:flex;gap:28px;margin-left:auto;font-size:.96rem;font-weight:500;color:var(--ink-2)}
.nav__links a{position:relative;padding:4px 0;transition:color .2s}
.nav__links a:hover{color:var(--ink)}
.nav__links a::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;background:var(--gold-grad);border-radius:2px;transition:right .25s ease}
.nav__links a:hover::after{right:0}
.nav__cta{margin-left:8px}

/* Scroll-driven docking of the wordmark (ref: "pure CSS header animation to sticky
   nav"). Pure CSS via animation-timeline; no JS, no scroll listener. The reference
   animates font-size, which changes the bar's height and drags the page up while it
   shrinks - on a sticky bar that reads as jitter, so this scales instead: transforms
   cost no layout. Guarded by @supports, and everything below the guard is the plain
   sticky bar we already had. */
@supports (animation-timeline: scroll()){
  @media (prefers-reduced-motion:no-preference) and (min-width:761px){
    @keyframes navDock{ from{transform:scale(1.34)} to{transform:scale(1.16)} }
    .nav__wordmark{
      transform-origin:left center;transform:scale(1.16);
      animation:navDock linear both;
      animation-timeline:scroll(root block);
      animation-range:0 260px;
    }
    /* the bar earns its background over the same stretch */
    @keyframes navSettle{ from{opacity:0} to{opacity:1} }
    .nav::before{
      content:"";position:absolute;inset:0;z-index:-1;
      background:rgba(250,249,246,.82);
      backdrop-filter:saturate(140%) blur(14px);-webkit-backdrop-filter:saturate(140%) blur(14px);
      box-shadow:0 1px 0 rgba(31,29,24,.06);border-bottom:1px solid var(--line);
      /* Must land almost immediately: the hero video passes under the bar at once,
         so a late fade reads as the backdrop running away and then coming back. */
      animation:navSettle linear both;
      animation-timeline:scroll(root block);
      animation-range:0 70px;
    }
    .nav{isolation:isolate}
    /* the JS class would double the background up */
    .nav.is-stuck{background:transparent;box-shadow:none;border-color:transparent}
  }
}

/* ===== Hero ===== */
.hero{position:relative;padding:72px 0 96px;overflow:hidden}
/* Living background: a drop-in AI video (assets/hero-bg.mp4, activated by JS
   only when present) over a warm animated gold-light fallback. A left-to-right
   paper scrim keeps the copy column crisp while motion lives on the right. */
.hero__bg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.hero__bg-fx{
  position:absolute;inset:-12% -12% -12% 8%;
  background:
    radial-gradient(38% 46% at 78% 28%,rgba(226,172,64,.30),transparent 70%),
    radial-gradient(44% 52% at 92% 66%,rgba(212,154,46,.24),transparent 72%),
    radial-gradient(30% 40% at 58% 88%,rgba(245,228,196,.55),transparent 70%);
  filter:blur(12px);
  animation:heroDrift 24s ease-in-out infinite alternate;
  will-change:transform;
}
.hero__bg-video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .1s linear;
  /* the clip is a touch cooler than the page's paper, which made the nav's cream
     backdrop look like a separate stripe sitting on top of it */
  filter:sepia(.16) saturate(1.02) brightness(1.03);
}
/* The scribe actually writing. hero-scribe.jpg underneath is the same scene, so
   it acts as the poster frame and the reduced-motion fallback. The two are NOT
   cross-faded: they are different moments of the same shot, so any overlap shows
   as a double exposure. The still is cut the instant the clip starts playing. */
.hero__bg-video.is-on{opacity:1}
.hero__bg.has-video .hero__bg-image{opacity:0}
.hero__bg-scrim{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,#f8f3ea 0%,rgba(248,243,234,.82) 30%,rgba(248,243,234,.24) 60%,rgba(248,243,234,0) 100%),
    linear-gradient(0deg,#f2ead9 1%,rgba(242,234,217,0) 26%);
}
@keyframes heroDrift{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(-4%,2.5%,0) scale(1.1)}
}
@media (prefers-reduced-motion:reduce){.hero__bg-fx{animation:none}}
.hero__glow{
  position:absolute;top:-180px;right:-120px;width:640px;height:640px;pointer-events:none;
  background:radial-gradient(circle at center,rgba(226,172,64,.30),rgba(226,172,64,0) 62%);
  filter:blur(6px);
}
.hero__particles{position:absolute;inset:0;pointer-events:none;z-index:0}
.particle{
  position:absolute;top:0;left:0;width:5px;height:5px;border-radius:50%;
  background:radial-gradient(circle at 40% 35%,#fffdf8,#faf7f0 72%);
  box-shadow:0 0 7px 1.5px rgba(250,247,240,.75);
  opacity:0;filter:blur(1px);will-change:transform,opacity;pointer-events:none;
}
.hero__inner{
  position:relative;z-index:1;max-width:var(--maxw);margin:0 auto;padding:0 24px;
  display:grid;grid-template-columns:1.02fr .98fr;gap:56px;align-items:center;
}
.hero__copy{max-width:560px;position:relative}
.hero__copy::before{
  content:"";position:absolute;inset:-46px -80px -34px -56px;z-index:-1;pointer-events:none;
  background:radial-gradient(64% 68% at 38% 50%,rgba(250,247,240,.94),rgba(250,247,240,.62) 58%,rgba(250,247,240,0) 100%);
  filter:blur(22px);
}
.hero__title{
  font-family:var(--font-display);font-weight:700;letter-spacing:-.015em;
  font-size:clamp(2.6rem,5.6vw,4.2rem);line-height:1.04;margin:.1em 0 .35em;
}
.hero__title .line{display:block}
.hero__title .line:last-child{
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero__pron{font-size:.92rem;color:var(--ink-2);opacity:.85;margin:-2px 0 18px;font-style:italic;letter-spacing:.01em}
.hero__sub{font-size:1.18rem;color:var(--ink-2);margin:0 0 32px;max-width:520px}
.hero__cta{display:flex;flex-wrap:wrap;gap:14px}
.hero__note{margin:20px 0 0;font-size:.94rem;color:var(--ink-2);letter-spacing:.01em}

/* Hero visual */
.hero__visual{position:relative;perspective:1400px}
.window{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-lg);overflow:hidden;
}
.window--hero{transform:rotateY(-6deg) rotateX(2deg);transform-style:preserve-3d}
.window__bar{
  display:flex;align-items:center;gap:8px;padding:12px 16px;
  background:linear-gradient(180deg,#f6f1e7,#efe7d7);border-bottom:1px solid var(--line);
}
.window__bar .dot{width:11px;height:11px;border-radius:50%;background:#d9cdb6}
.window__bar .dot:nth-child(1){background:#e6b64b}
.window__bar .dot:nth-child(2){background:#d9cbb0}
.window__bar .dot:nth-child(3){background:#cdbf9f}
.window__title{margin-left:8px;font-size:.86rem;color:var(--ink-2);font-weight:600}

/* Screenshot slots */
.shot{position:relative;aspect-ratio:16/10;background:var(--surface-2)}
.shot--wide{aspect-ratio:16/7}
.shot img.shot__real{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shot__ph{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  color:var(--ink-2);font-size:.98rem;font-weight:600;text-align:center;
  background:
    radial-gradient(120% 90% at 50% 0%,rgba(226,172,64,.16),transparent 60%),
    linear-gradient(160deg,#faf6ee 0%,#f1e7d4 55%,#ecdfc8 100%);
}
.shot__mark{opacity:.9;border-radius:16px;filter:drop-shadow(0 8px 18px rgba(184,121,31,.28))}
.window--widget{
  position:absolute;right:-6px;bottom:-30px;width:230px;border-radius:14px;
  transform:rotateY(-6deg);
}
.window--widget .shot__ph{position:static;height:100%}
.shot__ph--pill{
  flex-direction:row;gap:10px;padding:18px 20px;font-size:1rem;color:var(--ink);
  background:linear-gradient(160deg,#fbf7ef,#f1e6d2);
}
.rec{width:12px;height:12px;border-radius:50%;background:var(--gold-grad);box-shadow:0 0 0 0 rgba(212,154,46,.6);animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(212,154,46,.55)}70%{box-shadow:0 0 0 12px rgba(212,154,46,0)}100%{box-shadow:0 0 0 0 rgba(212,154,46,0)}}

/* ===== Trust strip ===== */
.strip{padding:8px 0 28px}
.strip__inner{
  max-width:var(--maxw);margin:0 auto;padding:22px 24px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);margin-left:24px;margin-right:24px;width:auto;
}
@media(min-width:1208px){.strip__inner{margin-left:auto;margin-right:auto}}
.strip__item{display:flex;flex-direction:column;gap:3px;padding:4px 10px;border-left:2px solid rgba(184,121,31,.28)}
.strip__item strong{font-size:1.02rem}
.strip__item span{font-size:.9rem;color:var(--ink-2)}

/* ===== Sections ===== */
.section{padding:96px 0}
.section--paper{background:linear-gradient(180deg,rgba(250,249,246,.6),rgba(244,238,226,.75));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section__head{text-align:center;max-width:680px;margin:0 auto 56px}
.section__title{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;font-size:clamp(1.9rem,3.6vw,2.7rem);line-height:1.12;margin:0}
.section__lead{color:var(--ink-2);font-size:1.12rem;margin:16px 0 0}

/* Features grid */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:30px 28px;box-shadow:var(--shadow-sm);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.card:hover{box-shadow:var(--shadow-md);border-color:rgba(184,121,31,.28)}

/* Sheets dealt onto a desk. The section owns the perspective, so the depth is
   contained here and nothing else on the page inherits a 3D context. The hover
   lift above dropped its translate on purpose: GSAP writes the card transform
   inline while scrolling, and a CSS transform on the same element would be
   overwritten mid-animation. */
@media (min-width:761px){
  #features{perspective:1500px;perspective-origin:50% 40%}
}
.grid--deck{transform-style:preserve-3d}
.grid--deck .card{will-change:transform,opacity;backface-visibility:hidden}
@media (prefers-reduced-motion:reduce){
  #features{perspective:none}
  .grid--deck .card{transform:none!important;opacity:1!important}
}
.card__icon{
  width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  color:#5a3d0e;background:linear-gradient(150deg,rgba(226,172,64,.24),rgba(189,124,40,.16));
  border:1px solid rgba(184,121,31,.22);margin-bottom:18px;
}
.card h3{font-size:1.18rem;margin:0 0 8px;letter-spacing:-.005em}
.card p{margin:0;color:var(--ink-2);font-size:1rem}

/* Steps */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:24px;counter-reset:s}
.step{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:34px 28px;box-shadow:var(--shadow-sm)}
.step__num{
  font-family:var(--font-display);font-size:2.4rem;font-weight:700;line-height:1;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
  display:block;margin-bottom:16px;
}
.step h3{font-size:1.16rem;margin:0 0 8px}
.step p{margin:0;color:var(--ink-2)}

/* Editions table */
.table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow-sm);background:var(--surface)}
.editions{width:100%;border-collapse:collapse;min-width:640px}
.editions th,.editions td{padding:18px 22px;text-align:left;font-size:1rem;border-bottom:1px solid var(--line);vertical-align:middle}
.editions thead th{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2);font-weight:700;background:var(--surface-2)}
.editions tbody tr:last-child th,.editions tbody tr:last-child td{border-bottom:none}
.editions tbody tr{transition:background .2s}
.editions tbody tr:hover{background:rgba(226,172,64,.06)}
.editions td em{color:var(--gold-deep);font-style:normal;font-size:.86rem}
.tag{display:inline-block;font-weight:700;padding:5px 12px;border-radius:999px;background:linear-gradient(150deg,rgba(226,172,64,.2),rgba(189,124,40,.14));border:1px solid rgba(184,121,31,.28);color:#5a3d0e}
.tag--exp{background:linear-gradient(150deg,rgba(107,103,94,.14),rgba(107,103,94,.08));border-color:var(--line);color:var(--ink)}

.settings-peek{margin-top:36px;max-width:900px;margin-left:auto;margin-right:auto}

/* Name story */
.story{
  text-align:center;padding:56px 48px;border-radius:28px;
  background:
    radial-gradient(110% 130% at 50% 0%,rgba(226,172,64,.16),transparent 58%),
    linear-gradient(180deg,#fbf7ef,#f2e8d5);
  border:1px solid rgba(184,121,31,.2);box-shadow:var(--shadow-md);
}
.story__mark{margin:0 auto 18px;border-radius:16px;filter:drop-shadow(0 10px 22px rgba(184,121,31,.28))}
.story .section__title{margin-bottom:22px}
.story__text{
  font-family:var(--font-display);font-size:1.22rem;line-height:1.75;color:var(--ink);
  max-width:640px;margin:0 auto;text-align:left;text-wrap:pretty;
}
.story__text::first-letter{
  font-size:3.1em;float:left;line-height:.82;padding:.04em .12em 0 0;font-weight:700;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
@media(max-width:600px){
  .story{padding:40px 22px}
  .story__text{font-size:1.08rem}
}

/* Promo band */
.promo{padding:96px 0 96px}
/* Captivo cross-promo – styled in Captivo's own brand (dark navy + blue) so it
   reads as "their" band against the warm Pysar page. */
.promo__card{
  display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;
  padding:44px 48px;border-radius:24px;
  background:
    radial-gradient(120% 150% at 100% 0%,#1e3a63 0%,rgba(30,58,99,0) 55%),
    linear-gradient(135deg,#132038,#0f172a);
  border:1px solid rgba(127,176,255,.18);
  box-shadow:0 30px 70px -26px rgba(9,14,28,.6);
  color:#e6edf7;
}
.promo__brand{display:flex;align-items:center;gap:11px;margin-bottom:16px}
.promo__logo{width:36px;height:36px;display:block}
.promo__brandname{font-family:var(--font-display);font-weight:700;font-size:1.4rem;color:#fff;letter-spacing:.01em}
.promo__text{max-width:640px}
.promo__text .eyebrow{margin-bottom:10px;color:#7fb0ff}
.promo__text h2{font-family:var(--font-display);font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.18;margin:0 0 10px;color:#fff}
.promo__text p{margin:0;color:#c5d3ea;font-size:1.06rem}
.btn--captivo{
  color:#fff;background:linear-gradient(135deg,#3f85f6 0%,#6366f1 100%);
  box-shadow:0 10px 24px -8px rgba(63,133,246,.6),inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--captivo:hover{transform:translateY(-2px);box-shadow:0 16px 30px -8px rgba(63,133,246,.7),inset 0 1px 0 rgba(255,255,255,.3)}

/* FAQ */
.faq{display:flex;flex-direction:column;gap:12px}
.faq__item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);overflow:hidden}
.faq__item summary{
  list-style:none;cursor:pointer;padding:20px 24px;font-weight:650;font-size:1.06rem;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{content:"";width:12px;height:12px;flex:none;border-right:2px solid var(--gold-deep);border-bottom:2px solid var(--gold-deep);transform:rotate(45deg);transition:transform .25s ease;margin-top:-4px}
.faq__item[open] summary::after{transform:rotate(-135deg);margin-top:2px}
.faq__body{padding:0 24px 22px;color:var(--ink-2)}
.faq__body p{margin:0}

/* Final CTA */
.finalcta{padding:20px 0 100px}
/* The card IS the artwork: a paper field with the wordmark written in its top
   right corner, so the gradient it used to carry is gone - two paper tones
   layered would only fight each other. Phones drop back to the flat paper: at a
   portrait crop the wordmark falls outside the visible slice anyway. */
.finalcta__inner{
  text-align:center;padding:64px 32px;border-radius:28px;
  background:linear-gradient(180deg,#faf5ec,#efe4cf);
  border:1px solid rgba(184,121,31,.22);box-shadow:var(--shadow-lg);
}
@media(min-width:761px){
  .finalcta__inner{
    background:
      /* washes the reading half so the headline never sits on the script, and
         tones the paper down overall; clears to nothing over the right third */
      /* flat 0.35 wash over the whole card so the copy always has a floor of
         contrast, then the horizontal one that clears the wordmark's corner */
      linear-gradient(rgba(250,245,236,.35),rgba(250,245,236,.35)),
      linear-gradient(90deg,rgba(250,245,236,.9) 0%,rgba(250,245,236,.8) 40%,rgba(250,245,236,.34) 70%,rgba(250,245,236,0) 92%),
      /* right-anchored: the wordmark lives on that edge, so the left is what gets
         cropped on narrower cards */
      url(cta-paper.jpg) right center/cover no-repeat,
      linear-gradient(180deg,#faf5ec,#efe4cf);
  }
}
.finalcta__mark{margin:0 auto 18px;border-radius:20px;filter:drop-shadow(0 12px 26px rgba(184,121,31,.3))}
.finalcta h2{font-family:var(--font-display);font-size:clamp(1.8rem,3.4vw,2.5rem);margin:0 0 8px}
.finalcta p{color:var(--ink-2);font-size:1.12rem;margin:0 0 28px}
.finalcta .hero__cta{justify-content:center}

/* Footer */
.footer{border-top:1px solid var(--line);padding:40px 0;background:rgba(244,238,226,.5)}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.footer__brand{display:flex;align-items:center;gap:10px}
.footer__brand .nav__name{font-size:1.14rem}
.footer__links{display:flex;gap:24px;flex-wrap:wrap;color:var(--ink-2);font-size:.96rem}
.footer__links a:hover{color:var(--ink)}
.footer__link--disabled{cursor:default}
.footer__made{display:flex;align-items:center;gap:10px;font-size:.96rem;color:var(--ink-2)}
.flag{border-radius:3px;box-shadow:var(--shadow-sm);flex:none}

/* ===== Reveal animation base (JS/GSAP drives the rest) ===== */
[data-reveal]{opacity:0;transform:translateX(-30px)}
.no-js [data-reveal]{opacity:1;transform:none}
/* Both effects we put on headlines paint only inside the element's box: the wipe
   reveal is a mask-image, and the gold hero line is background-clip:text. Our
   display line-heights (1.04-1.12) are tighter than Lora's real glyph extent, so
   ascenders and descenders sat outside the box and were cut off. Grow the box,
   hand the space straight back to the layout. */
/* The start state has to live in CSS, not only in wipeReveal(): that helper only
   applies it inside the ScrollTrigger's onEnter, so until the trigger fired the
   heading sat fully visible and then snapped to hidden to animate in. */
[data-wipe]{
  will-change:opacity;padding-block:.16em;margin-block:-.16em;
  -webkit-mask-image:linear-gradient(to right,#000 -20%,#0000 0%);
  mask-image:linear-gradient(to right,#000 -20%,#0000 0%);
}
.no-js [data-wipe]{-webkit-mask-image:none;mask-image:none}

@media(prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none}
  [data-wipe]{-webkit-mask-image:none;mask-image:none}
  .particle{display:none}
  *{scroll-behavior:auto}
}

/* ===== Responsive ===== */
@media(max-width:940px){
  .hero__inner{grid-template-columns:1fr;gap:44px}
  .hero__visual{width:100%;max-width:520px;margin:0 auto}
  .window--hero{transform:none}
  .window--widget{transform:none;right:8px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr}
  .strip__inner{grid-template-columns:repeat(2,1fr)}
  .nav__links{display:none}
}
@media(max-width:600px){
  .section{padding:68px 0}
  .grid{grid-template-columns:1fr}
  .strip__inner{grid-template-columns:1fr}
  .promo__card{padding:32px 26px}
  .finalcta__inner{padding:44px 22px}
  .hero__cta .btn{flex:1 1 100%}
  .container{padding:0 18px}
  .nav__cta{display:none}
}
@media(max-width:360px){
  .hero__title{font-size:2.3rem}
  .container{padding:0 14px}
}

/* Pysar gradient wordmark (nav + footer) */
.nav__wordmark{width:auto;display:block}
.footer__brand .nav__wordmark{opacity:.95}

/* Hero background: AI calligraphy image, right-anchored, scrim keeps copy crisp */
.hero__bg-image{
  position:absolute;inset:0;
  background:url(hero-scribe.jpg) center/cover no-repeat;
  opacity:1;transition:opacity .1s linear;
  filter:sepia(.16) saturate(1.02) brightness(1.03);
}
@media (max-width:760px){
  /* Crop to the hands and the writing rather than the empty window side: at phone
     width the frame shows one thing, and it should be the thing the product does. */
  .hero__bg-image{opacity:.5;background-position:60% 62%}
  .hero__bg-video{object-position:60% 62%}
  .hero__bg-video.is-on{opacity:.5}
  /* the copy now sits over a busier crop, so its wash works harder */
  .hero__copy::before{
    inset:-30px -26px -26px -26px;
    background:radial-gradient(72% 66% at 46% 50%,rgba(250,247,240,.97),rgba(250,247,240,.8) 60%,rgba(250,247,240,0) 100%);
  }
}

/* Historical painting in the name-story section */
.story__figure{margin:38px 0 0}
.story__figure img{width:100%;height:auto;border-radius:var(--radius);box-shadow:var(--shadow-lg);border:1px solid var(--line);display:block}
.story__figure figcaption{margin-top:14px;font-size:.9rem;color:var(--ink-2);font-style:italic;text-align:center;line-height:1.5}

/* ===== Night band (the "why Pysar" story) ===== */
#name.section--night{
  position:relative;isolation:isolate;overflow:hidden;
  background:#1d150c;
  border-top:1px solid rgba(226,172,64,.16);border-bottom:1px solid rgba(226,172,64,.16);
}
.night__bg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
/* Full-bleed, so the clip's own rectangle has no edge inside the frame and needs
   no mask. Anchored right: the flame sits clear of the text column. */
.night__candle{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:76% 52%;opacity:.85;
}
.night__bokeh{
  position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;
  opacity:.14;mix-blend-mode:screen;filter:blur(13px) saturate(.85);
}
/* Keeps the reading column dark enough for cream text while the flame stays lit. */
.night__veil{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgba(20,14,7,.92) 0%,rgba(20,14,7,.8) 46%,rgba(20,14,7,.34) 78%,rgba(20,14,7,.2) 100%),
    linear-gradient(0deg,rgba(20,14,7,.7),rgba(20,14,7,.25) 40%);
}
#name.section--night .container{position:relative;z-index:1}
#name.section--night .story{background:transparent;border-color:rgba(226,172,64,.18);box-shadow:none}
#name.section--night .section__title{color:#faf5ea}
#name.section--night .story__text{color:#efe6d5}
#name.section--night .story__text::first-letter{color:var(--gold-1)}
#name.section--night .story__figure figcaption{color:#c7bda9}
#name.section--night .story__figure img{border-color:rgba(226,172,64,.2)}
@media(max-width:640px){
  /* the flame needs to clear the text column, which goes full-width on phones */
  .night__candle{object-position:92% 54%}
}
@media(prefers-reduced-motion:reduce){
  .night__candle,.night__bokeh{display:none}
}

/* Captivo promo fine print (on the dark Captivo card) */
.promo__fine{font-size:.86rem;margin-top:8px;color:#8fa3c4 !important}

/* ===== Shared: centered section title (replaces inline text-align) ===== */
.section__title--center{text-align:center}

/* ===== Manifesto - line-reveal on paper ===== */
#manifesto{
  padding:126px 0;overflow:hidden;position:relative;isolation:isolate;
  background:radial-gradient(120% 100% at 50% 46%,#3a2a18 0%,#281b0e 56%,#1c1308 100%);
  border-top:1px solid rgba(226,172,64,.16);border-bottom:1px solid rgba(226,172,64,.16);
}
.manifesto__wrap{position:relative;z-index:1}
.manifesto__text{
  position:relative;z-index:1;
  font-family:var(--font-display);font-size:clamp(1.3rem,2.3vw,1.85rem);
  line-height:1.55;color:#f2ead9;
  max-width:820px;margin:30px auto 0;text-align:center;text-wrap:pretty;
}
.manifesto__text + .manifesto__text{margin-top:20px}
#manifesto .section__title{position:relative;z-index:1;color:#faf5ea}
/* runtime-split lines (built in main.js). No overflow clipping here: the reveal
   is a mask-image wipe on the inner, and a clipping wrapper would cut any line
   the splitter mis-measures instead of just letting it wrap. */
.mline{display:block}
.mline__inner{display:inline-block;will-change:mask-image}

/* The name being written in gold, multiplied into the page's paper. Full-bleed on
   purpose: the source has a strong vignette, so any bounded shape would show the
   image's own edge as a rectangle - running it edge to edge leaves nothing to see. */
.manifesto__ink{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url(hero-writing.jpg) center 62%/cover no-repeat;
  opacity:.34;filter:sepia(.3) saturate(.8) brightness(.32) contrast(1.1);
}
@media(max-width:600px){
  #manifesto{padding:84px 0}
  /* pull the script left so it does not sit under the centred text column */
  .manifesto__ink{opacity:.26;background-position:20% 62%}
}


/* ===== Speed comparison ===== */
.speed-stat{text-align:center;max-width:640px;margin:22px auto 20px}
.speed-stat__lead{margin:0 0 4px;color:var(--ink-2);font-size:1.06rem;letter-spacing:.01em}
.speed-stat__num{
  font-family:var(--font-display);font-weight:700;line-height:1;
  font-size:clamp(3rem,7vw,4.2rem);letter-spacing:-.02em;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.speed-stat__cap{margin:14px auto 0;max-width:540px;color:var(--ink-2);font-size:1.06rem;line-height:1.55}
.speed-chart__head{text-align:center;max-width:600px;margin:0 auto 30px;color:var(--ink-2);font-size:.98rem;line-height:1.5}
/* The "why it feels instant" line – a statement, not a footnote box. */
.speed-kicker{
  max-width:760px;margin:52px auto 0;text-align:center;
  font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;
  font-size:clamp(1.5rem,3.3vw,2.35rem);line-height:1.22;color:var(--ink);text-wrap:balance;
}
.speed-kicker em{
  font-style:normal;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.speed-kicker span{
  display:block;margin-top:12px;
  font-family:var(--font-sans);font-weight:500;letter-spacing:0;
  font-size:clamp(.98rem,1.5vw,1.1rem);line-height:1.5;color:var(--ink-2);
}

.speed-chart{
  max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:22px;
}
.speed-bar__top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px}
.speed-bar__label{font-weight:650;font-size:1rem;color:var(--ink)}
.speed-bar__meta{font-size:.82rem;color:var(--ink-2);letter-spacing:.04em;white-space:nowrap}
.speed-bar__track{
  position:relative;height:34px;border-radius:10px;
  background:rgba(31,29,24,.06);border:1px solid var(--line);overflow:visible;
}
.speed-bar__fill{
  height:100%;border-radius:9px;width:0;
  display:flex;align-items:center;justify-content:flex-end;overflow:hidden;
  transition:width 1s cubic-bezier(.2,.7,.2,1);
}
.speed-chart.is-in .speed-bar__fill{width:var(--w)}
/* gentle cascade: each bar starts a beat after the previous */
.speed-bar:nth-child(2) .speed-bar__fill{transition-delay:.10s}
.speed-bar:nth-child(3) .speed-bar__fill{transition-delay:.20s}
.speed-bar:nth-child(4) .speed-bar__fill{transition-delay:.30s}
.speed-bar:nth-child(5) .speed-bar__fill{transition-delay:.40s}
.speed-bar:nth-child(6) .speed-bar__fill{transition-delay:.50s}
.speed-bar__fill--gold{background:var(--gold-grad)}
.speed-bar__fill--gold-2{background:linear-gradient(135deg,#ecc06a 0%,#e2ac40 100%)}
/* GPU bar – calm teal from the accent set; alive, but not competing with gold */
.speed-bar__fill--cuda{background:linear-gradient(135deg,#4db3c4 0%,#1d94a8 100%)}
.speed-bar__fill--cuda .speed-bar__val{color:#fff}
.speed-bar__fill--muted{background:rgba(31,29,24,.16)}
.speed-bar__val{padding:0 12px;font-weight:700;font-size:.96rem;color:#3a2708;white-space:nowrap}
.speed-bar__fill--muted .speed-bar__val{color:var(--ink)}
/* Very short bars: value sits to the right of the bar so it never clips. */
.speed-bar--short .speed-bar__fill{overflow:visible;justify-content:flex-start}
.speed-bar--short .speed-bar__val{
  position:absolute;left:var(--w);top:0;height:34px;display:flex;align-items:center;
  padding:0 0 0 10px;color:var(--ink);
}
.speed-foot{
  max-width:820px;margin:26px auto 0;text-align:center;
  font-size:.85rem;color:var(--ink-2);line-height:1.5;
}
@media(prefers-reduced-motion:reduce){
  .speed-bar__fill{width:var(--w);transition:none}
}

/* ===== Hero pronunciation + stickers ===== */
.hero__pron-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-2px 0 18px}
.hero__pron-row .hero__pron{margin:0;flex:1 1 240px;min-width:0}
.pron-stickers{display:inline-flex;align-items:center;gap:4px;margin-left:10px;vertical-align:middle}
/* die-cut illustration stickers of the sound-alikes (Pisa / pizza / pie),
   struck through with a hand-drawn X – "py" is NOT pronounced like any */
.sticker{position:relative;display:inline-block;line-height:0}
/* Toned into the page's gold family. At full saturation these three photos are
   the loudest thing on the screen and pull attention off the headline; sepia plus
   reduced saturation keeps the joke readable without it shouting. */
.sticker img{
  width:66px;height:auto;display:block;opacity:.86;
  filter:sepia(.68) saturate(.6) contrast(.94) brightness(1.06)
         drop-shadow(0 3px 6px rgba(31,29,24,.22));
}
/* the X: two crossing strokes, both ABOVE the image. The img's drop-shadow
   filter makes it its own stacking context, so without an explicit z-index the
   ::before stroke would paint behind an opaque sticker (only one line shows). */
.sticker::before,.sticker::after{
  content:"";position:absolute;left:14%;right:14%;top:calc(50% - 1.6px);height:3.2px;
  background:#8e3b46;border-radius:3px;opacity:.72;z-index:2;
}
.sticker::before{transform:rotate(24deg)}
.sticker::after{transform:rotate(-24deg)}
/* random-ish resting angles so they look hand-placed */
.sticker--a{transform:rotate(-13deg)}
.sticker--b{transform:rotate(9deg);margin-left:-2px;z-index:1}
.sticker--c{transform:rotate(-6deg);margin-left:-2px}

/* ===== Notes showcase ===== */
.notes__grid{
  display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;
}
.notes__text .section__title{text-align:left}
.notes__lead{color:var(--ink-2);font-size:1.12rem;line-height:1.6;margin:18px 0 22px}
.notes__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.notes__list li{
  position:relative;padding-left:26px;color:var(--ink);font-size:1.02rem;line-height:1.5;
}
.notes__list li::before{
  content:"";position:absolute;left:0;top:.5em;width:12px;height:12px;
  border-right:2px solid var(--gold-deep);border-bottom:2px solid var(--gold-deep);
  transform:rotate(45deg) translateY(-3px);
}
@media(max-width:940px){
  .notes__grid{grid-template-columns:1fr;gap:36px}
}
@media(max-width:600px){
  .speed-bar__top{flex-wrap:wrap;gap:2px}
  .speed-bar__label{font-size:.94rem}
  /* On phones the row wraps, and `flex:1 1 240px` on the text left the stickers
     stranded on their own line with a full gap above. Let the text take the whole
     width and pull the stickers up tight under it. */
  .hero__pron-row{gap:4px;flex-direction:column;align-items:flex-start}
  .hero__pron-row .hero__pron{flex:1 1 auto;width:100%}
  .pron-stickers{margin-left:0;margin-top:2px}
  .sticker img{width:52px}
}

/* ===== Language offer bar ===== */
.langbar{
  position:fixed;left:50%;bottom:20px;z-index:60;
  transform:translate(-50%,calc(100% + 28px));opacity:0;
  transition:transform .32s cubic-bezier(.22,.61,.36,1),opacity .32s ease;
  display:flex;align-items:center;gap:14px;
  max-width:calc(100vw - 32px);padding:12px 12px 12px 20px;
  border-radius:999px;background:rgba(250,249,246,.94);
  backdrop-filter:saturate(150%) blur(16px);-webkit-backdrop-filter:saturate(150%) blur(16px);
  border:1px solid rgba(184,121,31,.24);box-shadow:0 14px 38px -12px rgba(89,63,15,.34);
  font-size:.94rem;color:var(--ink);
}
.langbar.is-in{transform:translate(-50%,0);opacity:1}
.langbar__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.langbar__cta{
  flex:none;padding:8px 16px;border-radius:999px;font-weight:650;white-space:nowrap;
  color:#3a2708;background:var(--gold-grad);
  box-shadow:0 6px 14px -5px rgba(184,121,31,.5);
  transition:transform .18s ease,box-shadow .25s ease;
}
.langbar__cta:hover{transform:translateY(-1px);box-shadow:0 10px 20px -6px rgba(184,121,31,.55)}
.langbar__x{
  flex:none;width:32px;height:32px;border:0;border-radius:50%;cursor:pointer;
  background:transparent;color:var(--ink-2);font-size:1.25rem;line-height:1;
  transition:background .2s ease,color .2s ease;
}
.langbar__x:hover{background:rgba(31,29,24,.07);color:var(--ink)}
@media(max-width:560px){
  .langbar{left:16px;right:16px;transform:translateY(calc(100% + 28px));max-width:none;padding:12px 10px 12px 16px;font-size:.88rem}
  .langbar.is-in{transform:translateY(0)}
  .langbar__text{white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  .langbar{transition:opacity .2s ease}
}

/* Language switch in the nav (injected in main.js so it can compute the target
   path from the page's own depth). */
.nav__lang{
  flex:none;margin-left:4px;padding:7px 13px;border-radius:999px;
  font-size:.82rem;font-weight:700;letter-spacing:.06em;color:var(--ink-2);
  border:1px solid var(--line);background:rgba(250,249,246,.6);
  transition:color .2s ease,border-color .2s ease,background .2s ease;
}
.nav__lang:hover{color:var(--ink);border-color:rgba(184,121,31,.4);background:rgba(250,249,246,.95)}
@media(max-width:900px){.nav__lang{margin-left:auto}}

/* ===== Purchase page ===== */
.buy{padding-top:84px}
.buy__head{text-align:center}
.buy__price{margin:26px 0 0}
.buy__amount{
  font-family:var(--font-display);font-weight:700;letter-spacing:-.02em;
  font-size:clamp(3.2rem,7vw,5rem);line-height:1;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
  padding-block:.08em;margin-block:-.08em;display:inline-block;
}
.buy__lead{max-width:560px;margin:14px auto 0;color:var(--ink-2);font-size:1.1rem;line-height:1.6}
.buy__cta{margin-top:30px}
.buy__note{margin:14px 0 0;font-size:.92rem;color:var(--ink-2)}
.buy__list{
  list-style:none;margin:52px auto 0;padding:0;max-width:680px;
  display:grid;gap:2px;
}
.buy__list li{
  padding:20px 22px;background:var(--surface);border:1px solid var(--line);
  color:var(--ink-2);line-height:1.6;
}
.buy__list li:first-child{border-radius:var(--radius) var(--radius) 0 0}
.buy__list li:last-child{border-radius:0 0 var(--radius) var(--radius)}
.buy__list strong{color:var(--ink);display:block;margin-bottom:4px}
#get .card h3{margin-top:0}
#get .card .btn{margin-top:18px}
@media(max-width:600px){
  .buy{padding-top:56px}
  .buy__list{margin-top:36px}
}
.buy__again{margin-top:38px;text-align:center}

/* Download cards: unequal copy lengths left the buttons at different heights.
   A column flex with an auto-margin button pins them to a common baseline. */
#get .card{display:flex;flex-direction:column}
#get .card p{flex:1 1 auto}
#get .card .btn{margin-top:18px;align-self:flex-start}
.buy__all{margin:30px 0 0;text-align:center}

/* ===== Auto-correction: what was said vs what was written ===== */
.fixes{max-width:820px;margin:0 auto;display:grid;gap:14px}
.fixes__row{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;
  padding:20px 24px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow-sm);
}
.fixes__row::before{content:none}
.fixes__said{
  margin:0;color:var(--ink-2);font-style:italic;line-height:1.5;
  text-decoration:line-through;text-decoration-color:rgba(142,59,70,.45);
}
.fixes__got{
  margin:0;color:var(--ink);font-family:var(--font-display);font-size:1.06rem;line-height:1.5;
}
.fixes__row::after{
  content:"→";grid-column:2;grid-row:1;
  color:var(--gold-deep);font-size:1.2rem;line-height:1;
}
.tiers{max-width:820px;margin:44px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:22px}
.tier{
  padding:26px 26px 28px;border-radius:var(--radius);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);
}
.tier h3{margin:0 0 10px;font-family:var(--font-display);font-size:1.24rem}
.tier p{margin:0;color:var(--ink-2);line-height:1.6}
.tier sup{color:var(--gold-deep)}
.fixes__foot{
  max-width:820px;margin:20px auto 0;text-align:center;
  font-size:.86rem;color:var(--ink-2);line-height:1.5;
}
.fixes__foot sup{color:var(--gold-deep)}
@media(max-width:760px){
  .tiers{grid-template-columns:1fr}
  .fixes__row{grid-template-columns:1fr;gap:8px}
  .fixes__row::after{content:"↓";grid-column:1;grid-row:auto;justify-self:start}
}

/* ===== Big statement (Apple-style claim) ===== */
.statement{padding:120px 0;text-align:center}
.statement__big{
  max-width:980px;margin:0 auto;
  font-family:var(--font-display);font-weight:700;letter-spacing:-.02em;
  font-size:clamp(2.1rem,5.2vw,3.9rem);line-height:1.1;color:var(--ink);text-wrap:balance;
}
.statement__sub{
  max-width:720px;margin:28px auto 0;
  font-size:clamp(1.02rem,1.5vw,1.18rem);line-height:1.65;color:var(--ink-2);text-wrap:pretty;
}
.statement__sub--last{
  margin-top:18px;color:var(--gold-deep);font-weight:600;
}
@media(max-width:600px){.statement{padding:76px 0}}
.buy__more{max-width:680px;margin:34px auto 0;padding:18px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.buy__more summary{cursor:pointer;font-weight:650;color:var(--ink)}
.buy__more p{margin:12px 0 16px;color:var(--ink-2);line-height:1.6;font-size:.96rem}
