/* ===========================================================================
   LESTER — shared styling for every page.

   Layout: a fixed timeline rail across the top (scroll progress as a playhead),
   a centred column beneath it, and section titles that animate the way the
   product animates captions. Motion is the argument here: the site is a
   showreel for what the plugin does, so the headings are real caption
   animations rather than decoration.
   =========================================================================== */

:root {
  /* light — warm paper, neutrals pulled slightly toward the accent */
  --ink:        #171311;
  --ink-soft:   #5d534e;
  --ink-faint:  #938780;
  --paper:      #f7f4f1;
  --paper-2:    #ffffff;
  --paper-3:    #efe9e4;
  --rule:       #e3ddd7;
  --accent:     #c62f26;
  --accent-2:   #8f1f18;
  --accent-wash:#fbe9e7;
  --amber:      #a06a0d;
  --glow:       rgba(198, 47, 38, .22);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --measure: 62ch;
  --wrap: 1080px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #ece7e3;
    --ink-soft:   #a39892;
    --ink-faint:  #6d625d;
    --paper:      #100e0d;
    --paper-2:    #191615;
    --paper-3:    #221e1c;
    --rule:       #2b2624;
    --accent:     #ef4a3e;
    --accent-2:   #ff8078;
    --accent-wash:#2a1210;
    --amber:      #e0a53a;
    --glow:       rgba(239, 74, 62, .3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink:        #ece7e3;
  --ink-soft:   #a39892;
  --ink-faint:  #6d625d;
  --paper:      #100e0d;
  --paper-2:    #191615;
  --paper-3:    #221e1c;
  --rule:       #2b2624;
  --accent:     #ef4a3e;
  --accent-2:   #ff8078;
  --accent-wash:#2a1210;
  --amber:      #e0a53a;
  --glow:       rgba(239, 74, 62, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ===================================================== playhead + nav ==== */

.playhead {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
.playhead i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--glow);
  transition: width .08s linear;
}

header.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.bar-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; }
.mark svg { display: block; }
.mark-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .13em;
}

/* The logo's waveform bars breathe, slowly, so the mark feels live. */
.mark .bars rect { animation: bar 1.9s var(--ease) infinite; transform-origin: 50% 100%; }
.mark .bars rect:nth-child(2) { animation-delay: .12s; }
.mark .bars rect:nth-child(3) { animation-delay: .24s; }
.mark .bars rect:nth-child(4) { animation-delay: .36s; }
.mark .bars rect:nth-child(5) { animation-delay: .48s; }
@keyframes bar { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }

nav.links { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

nav.links a {
  position: relative;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 3px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
nav.links a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
nav.links a:hover { color: var(--ink); }
nav.links a:hover::after { transform: scaleX(1); }
nav.links a.on { color: var(--ink); font-weight: 600; }
nav.links a.on::after { transform: scaleX(1); }

nav.links a.buy {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-left: 6px;
}
nav.links a.buy::after { display: none; }
nav.links a.buy:hover { background: var(--accent-2); color: #fff; }

@media (max-width: 720px) {
  nav.links a { padding: 6px 8px; font-size: 13px; }
  .mark-name { font-size: 15px; }
}

/* ===================================================== caption titles ==== */
/*
   Each page title is a real caption animation. The word spans sit at their
   finished state in the HTML, so the page reads correctly with no script and
   its first frame is never blank; the script replays the animation on top.
*/

.cap {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
  text-transform: uppercase;
}

.cap .w {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

.cap .w .c { display: inline-block; }
.cap .w.ac { color: var(--accent); }
.cap[data-anim="mark"] .w.ac::before { background: var(--ink); }

/* --- pop: each word punches in and settles. The default reel look. */
.cap[data-anim="pop"].go .w {
  animation: pop .46s var(--ease) both;
  animation-delay: calc(var(--i) * 85ms);
}
@keyframes pop {
  0%   { transform: scale(.55) translateY(.22em); opacity: 0; }
  62%  { transform: scale(1.08) translateY(0); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- rise: words lift through a blur, slower and calmer. */
.cap[data-anim="rise"].go .w {
  animation: rise .62s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes rise {
  0%   { transform: translateY(.7em); opacity: 0; filter: blur(7px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

/* --- flip: words turn over on their own axis. */
.cap[data-anim="flip"].go .w {
  animation: flipin .55s var(--ease) both;
  animation-delay: calc(var(--i) * 80ms);
  transform-origin: 50% 80%;
}
@keyframes flipin {
  0%   { transform: rotateX(-88deg) translateY(.2em); opacity: 0; }
  100% { transform: rotateX(0) translateY(0); opacity: 1; }
}

/* --- type: character by character, like a caption being written. */
.cap[data-anim="type"].go .c {
  animation: typein .01s linear both;
  animation-delay: calc(var(--ci) * 36ms);
}
@keyframes typein { from { opacity: 0; } to { opacity: 1; } }

.cap[data-anim="type"].go .caret {
  display: inline-block;
  width: .07em;
  height: .82em;
  margin-left: .06em;
  vertical-align: -.06em;
  background: var(--accent);
  animation: blink .7s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* --- mark: an accent bar sweeps behind each word, then the word inverts. */
.cap[data-anim="mark"] .w { position: relative; padding-inline: .1em; }
.cap[data-anim="mark"] .w::before {
  content: "";
  position: absolute;
  inset: .06em 0 .04em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
}
.cap[data-anim="mark"].go .w::before {
  animation: sweep .4s var(--ease) both;
  animation-delay: calc(var(--i) * 110ms);
}
.cap[data-anim="mark"].go .w {
  animation: inkflip .01s linear both;
  animation-delay: calc(var(--i) * 110ms + 190ms);
}
@keyframes sweep { to { transform: scaleX(1); } }
@keyframes inkflip { to { color: #fff; } }

/* --- shift: words snap in from alternating sides. */
.cap[data-anim="shift"].go .w {
  animation: shiftin .5s var(--ease) both;
  animation-delay: calc(var(--i) * 75ms);
}
@keyframes shiftin {
  0%   { transform: translateX(var(--dir, -.5em)) skewX(-9deg); opacity: 0; }
  100% { transform: translateX(0) skewX(0); opacity: 1; }
}

/* ========================================================= reveals ======= */
/*
   Added by script only, and only to things below the first screen, so the
   page is complete at rest and stays readable with no JavaScript.
*/
.pre { opacity: 0; transform: translateY(18px); }
.in {
  opacity: 1;
  transform: none;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ========================================================= hero ========== */

.hero { padding-block: 58px 52px; position: relative; }

.hero h1 { font-size: clamp(44px, 9vw, 92px); margin-block: 16px 22px; max-width: 13ch; }
.hero h1 .accent { color: var(--accent); }

.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 30px;
}

.page-head { padding-block: 54px 10px; }
.page-head h1 { font-size: clamp(36px, 7vw, 68px); margin-block: 14px 18px; max-width: 16ch; }
.page-head .lede { margin-bottom: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .14s var(--ease), box-shadow .24s var(--ease),
              background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow);
}
/* a light sheen crossing the button on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.26) 50%, transparent 68%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { animation: sheen .75s var(--ease) 1; }
@keyframes sheen { to { transform: translateX(120%); } }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-faint); transform: translateY(-2px); }

.price-note { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.price-note b { color: var(--ink); font-weight: 600; }

/* ==================================================== demo strip ========= */

.demo {
  margin-top: 44px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: 0 24px 60px -34px var(--glow);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.demo-head .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.demo-head .tc { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.demo-head .style-name { color: var(--accent); font-weight: 600; }

.stage {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 38px 20px;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px,
      color-mix(in srgb, var(--rule) 55%, transparent) 39px 40px);
}

.stage .cap {
  font-size: clamp(24px, 5.4vw, 46px);
  text-align: center;
  max-width: 17ch;
}

.track {
  border-top: 1px solid var(--rule);
  padding: 12px 14px 14px;
  display: flex;
  gap: 3px;
  overflow-x: auto;
}
.blk {
  flex: 1 1 0;
  min-width: 24px;
  height: 26px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .02em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  padding-inline: 2px;
  transition: background .16s, color .16s, transform .16s var(--ease);
}
.blk.on { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ======================================================== sections ======= */

.cut { border: 0; border-top: 1px solid var(--rule); margin: 0; }
section.band { padding-block: 64px; }
.band h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 700; letter-spacing: -.022em;
           line-height: 1.1; margin-block: 12px 16px; max-width: 20ch; }
.band p.sub { color: var(--ink-soft); max-width: var(--measure); font-size: 17px; }

/* ======================================================== style picker === */

.styles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ======================================================== steps ========== */

.steps {
  margin-top: 38px;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--paper-2);
  padding: 26px 24px 28px;
  min-width: 0;
  position: relative;
  transition: background .25s var(--ease);
}
.step:hover { background: var(--paper-3); }
.step .n { font-family: var(--mono); font-size: 11px; color: var(--accent);
           letter-spacing: .13em; font-weight: 600; }
.step h3 { font-size: 19px; font-weight: 700; margin-block: 10px 8px; letter-spacing: -.012em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ======================================================== cards ========== */

.two { margin-top: 36px; display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper-2);
  padding: 28px 26px 30px;
  min-width: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--rule));
  box-shadow: 0 20px 44px -30px var(--glow);
}
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.016em; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0 0 14px; font-size: 15px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 9px;
            font-size: 14.5px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; width: 7px; height: 7px; margin-top: .52em;
  border-radius: 1px; background: var(--accent);
}

/* ======================================================== specs ========== */

.specs { margin-top: 30px; border-top: 1px solid var(--rule); }
.spec { display: grid; grid-template-columns: 200px 1fr; gap: 18px;
        padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
@media (max-width: 620px) { .spec { grid-template-columns: 1fr; gap: 3px; } }
.spec dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
           text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.spec dd { margin: 0; color: var(--ink-soft); min-width: 0; }

/* ======================================================== price ========== */

.pricebox {
  margin-top: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  background: var(--paper-2);
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -44px var(--glow);
}
.pricebox::before {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 60%; height: 180%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
  pointer-events: none;
}
.price-top { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.price-fig {
  font-family: var(--display);
  font-size: clamp(56px, 12vw, 86px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .9;
}
.price-meta { color: var(--ink-soft); font-size: 15px; padding-bottom: 8px; }
.price-list { margin-top: 26px; }

/* ======================================================== faq ============ */

details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
  transition: color .2s;
}
details summary:hover { color: var(--accent); }
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 15px;
  transition: transform .25s var(--ease);
}
details[open] summary::before { content: "\2013"; }
details p { color: var(--ink-soft); margin: 11px 0 2px 24px;
            max-width: var(--measure); font-size: 15px; }
details[open] p { animation: unfold .36s var(--ease) both; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ======================================================== contact ======== */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }

.addr {
  font-family: var(--mono);
  font-size: 15px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px 14px;
  user-select: all;
  display: flex;
  align-items: center;
  gap: 10px;
}
.addr span { min-width: 0; overflow-wrap: anywhere; }
.copy {
  margin-left: auto; flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-soft);
  font: inherit; font-size: 12px;
  padding: 5px 11px;
  cursor: pointer;
  transition: all .2s;
}
.copy:hover { color: var(--ink); border-color: var(--accent); }

/* ======================================================== footer ========= */

footer.foot { border-top: 1px solid var(--rule); padding-block: 30px 48px;
              color: var(--ink-faint); font-size: 13.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.foot-in .sp { margin-left: auto; }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--ink); }

/* Shown or hidden depending on whether live chat has been configured in
   assets/site.js, so the site never advertises a bubble that is not there. */
[data-no-chat] { display: none; }
.no-chat [data-needs-chat] { display: none; }
.no-chat [data-no-chat] { display: revert; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .pre { opacity: 1 !important; transform: none !important; }
}
