/* The affiliate landing page, t6fv.io/a/<code>.
   The homepage's ledger-and-highlighter system carried onto a subpage,
   like /login — self-contained, light and dark from the same tokens.
   The document itself comes from renderAffiliatePage (a function behind
   the /a/** rewrite); this file and a.js are static so behaviour and
   styling never fork into a second hand-maintained copy inside the
   TypeScript template. */

/* Two weights, and the 800 is not optional: every rule lifted from the home
   page below — the pills, the tool card titles, the plan chips, the blurb —
   is `font: 800`. This file declared 900 alone, so without this they fall
   back to the system face and the whole band looks like a different site. */
@font-face {
  font-family: "Montserrat";
  font-weight: 800; font-style: normal; font-display: swap;
  src: url(/fonts/montserrat-800.woff2) format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 900; font-style: normal; font-display: swap;
  src: url(/fonts/montserrat-900.woff2) format("woff2");
}

:root {
  --paper: #ffffff;
  --paper-soft: #f6f7f4;
  --ink: #111310;
  --muted: #5b6058;
  --line: #e5e7e1;
  --accent: #4cbf35;
  --accent-text: #1c6e38;
  --danger: #b3261e;
  /* Ink for text sitting ON the accent — the sorted pills. Named here
     rather than left as the literal it used to be inside .a-btn.primary. */
  --hl-ink: #0b1f07;
  --display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0d0b;
    --paper-soft: #161812;
    --ink: #f2f4ee;
    --muted: #9ba295;
    --line: #262a22;
    --accent: #63d63f;
    --accent-text: #7ee75d;
    --danger: #ff8a80;
  }
}

* { box-sizing: border-box; }
/* The page's three CTAs are anchors to #trial, so the scroll IS the
   interaction — a jump-cut reads as a page load and loses the person. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.a-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
/* Only on the landing screen: on the four funnel screens the person is
   already inside the trial, and a button offering to start one is noise
   pointing at a form they have passed. */
.a-band-cta { display: none; padding: 9px 14px; font-size: 14px; }
body[data-screen="landing"] .a-band-cta { display: inline-block; }
.a-brand { display: block; }
/* The mark, not the name — the same picture and the same reasoning as the
   home page's header: the logo is a seven-segment display whose unlit
   segments are ghosted in a second grey, so it cannot be a mask (a mask
   lights every segment at once and gives an illegible block). Drawn as an
   image, with the two greys swapped for the dark scheme and the green kept
   in both. */
.a-brand .logo {
  display: block;
  width: 62px;
  height: 28px;
  background: url(/img/logo.svg) left center / contain no-repeat;
}
@media (prefers-color-scheme: dark) {
  .a-brand .logo { background-image: url(/img/logo-dark.svg); }
}

.a-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
/* The funnel screens are forms and stay a narrow column. The landing screen
   carries an argument as well as a form, so it gets room — with the form
   itself clamped back to the form width inside it, because a 780px-wide
   email field looks like a mistake. */
body[data-screen="landing"] .a-main { max-width: 780px; }
.a-trial { max-width: 560px; margin: 0 auto; }

/* Exactly one screen renders, switched by body[data-screen]. One
   attribute, one rule per screen — never a per-screen hidden flag, which
   is how the export-link viewer once showed two at a time. */
.a-screen { display: none; }
body[data-screen="landing"]  #s-landing  { display: block; }
body[data-screen="signin"]   #s-signin   { display: block; }
body[data-screen="verify"]   #s-verify   { display: block; }
body[data-screen="checkout"] #s-checkout { display: block; }
body[data-screen="already"]  #s-already  { display: block; }
body[data-screen="welcome"]  #s-welcome  { display: block; }

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h1 em {
  font-style: normal;
  color: var(--accent-text);
}
h2 {
  font-size: 19px;
  margin: 0 0 12px;
}

.a-kicker {
  font-weight: 700;
  color: var(--accent-text);
  margin: 0 0 6px;
}
.a-lede { color: var(--muted); margin: 0 0 18px; }
/* Ranged left, centred as a block. Three lines of very different lengths
   centred individually give three ragged edges and nothing to read down;
   `width: max-content` shrinks the list to its longest line so `auto` margins
   can centre the whole group while the text keeps one left edge.
   `max-width: 100%` is what stops that collapsing on a narrow phone. */
.a-points {
  list-style: none;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 0;
  display: grid;
  gap: 11px;
  text-align: left;
}
.a-points li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.4;
}
/* A tick, not a disc: this is a list of things you get. Drawn as a mask so it
   takes the accent in both schemes and needs no image. */
.a-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-sizing: border-box;
}
.a-points li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.14em + 6px);
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}

.a-form {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 16px;
}
.a-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 4px;
}
.a-form input {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.a-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.a-btn {
  display: inline-block;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.a-btn.primary {
  color: #0b1f07;
  background: var(--accent);
  border-color: transparent;
}
.a-btn:disabled { opacity: 0.55; cursor: default; }
.a-form .a-btn { width: 100%; margin-top: 16px; }

.a-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.a-row .a-btn { flex: 1 1 140px; }

.a-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent-text);
  cursor: pointer;
  text-decoration: underline;
}

.a-alt { color: var(--muted); }

/* The plan choice on the checkout screen: two radios, one per Web Billing
   package. Plain rows rather than cards — by this point the person has
   already said yes, and the choice is a detail of the thing they are about to
   do, not a second sales pitch. */
.a-plan-pick {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 14px;
  margin: 0 0 16px;
}
.a-plan-pick legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 4px;
}
.a-plan-pick label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  cursor: pointer;
}
.a-plan-pick label + label { border-top: 1px solid var(--line); }
.a-plan-pick input { accent-color: var(--accent); }
.a-plan-pick small { color: var(--muted); }

.a-fine {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
}
.a-fine a { color: inherit; }
/* "Signed in as … · Sign out", under the screen (R20). Set apart from the
   screen's own fine print, like /redeem's. */
.a-who { margin-top: 28px; }
.a-who .a-link { font-size: inherit; }
.a-error {
  color: var(--danger);
  font-size: 14px;
  margin: 10px 0 0;
}

/* The honeypot. Off-canvas rather than display:none — the cruder bots
   fill what a layout engine would hide. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.a-foot {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.a-foot a { color: inherit; }


/* ============================================================
   THE HERO, and the argument under it. Landing screen only.

   The still is the home page's — the shooter, the climbing line and the
   phone — laid under a scrim rather than beside the text, because this page
   is met on a phone held at arm's length in whatever light the venue has.
   The scrim is heavy for that reason and not a design preference: the
   headline has to survive a bright room.
   ============================================================ */

.a-hero { display: none; }
body[data-screen="landing"] .a-hero { display: block; }

.a-hero {
  position: relative;
  background:
    linear-gradient(rgba(8, 10, 7, 0.72), rgba(8, 10, 7, 0.82)),
    url(/img/hero-still.jpg) center / cover no-repeat;
  color: #f2f4ee;
  border-bottom: 1px solid var(--line);
}
.a-hero-in {
  max-width: 780px;
  margin: 0 auto;
  padding: 46px 20px 40px;
}
.a-hero h1 { color: #f2f4ee; }
/* The accent has to hold against the scrim, so the hero uses the lit green
   rather than --accent-text, which is tuned for ink on paper. */
.a-hero h1 em { color: #7ee75d; }
.a-hero-lede {
  color: #d6dbd0;
  margin: 0 0 22px;
  max-width: 46ch;
}
.a-hero-cta { font-size: 17px; padding: 14px 22px; }
.a-hero-fine {
  font-size: 13px;
  color: #b3bbab;
  margin: 14px 0 0;
  max-width: 46ch;
}

/* "Jane Films invited you". The one personal thing on the page, and the
   reason the prospect trusts it at all — so it leads, above the headline,
   rather than sitting under it as a caption. */
.a-invited {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(15px, 3.4vw, 18px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #7ee75d;
  margin: 0 0 10px;
}


/* ============================================================
   No exit before the card.

   The markup already omits every store link outside the welcome screen.
   This is the belt to that pair of braces: a link added back to any other
   screen — by a later edit, or by someone reasonably thinking a download
   button is helpful — does not render. It is a funnel decision, not a
   styling one, and it is written here because CSS is the layer that can
   state it once for every screen at once rather than per link.
   ============================================================ */
body:not([data-screen="welcome"]) a[href*="apps.apple.com"],
body:not([data-screen="welcome"]) a[href*="play.google.com"],
body:not([data-screen="welcome"]) a[href*="microsoft.com/store"] {
  display: none !important;
}

/* ============================================================
   THE ARGUMENT, and the toolbox. Landing screen only.

   Lifted from the home page rather than reinvented: same pills, same film,
   same rail, same plan colours. What is NOT lifted is the tool list itself —
   that is data and lives in /js/tools-data.js, which both pages read.

   The two bands sit outside `.a-main` in the markup, like the hero, because
   they are full-bleed and the funnel screens are a 560px column. So they need
   their own screen gate, exactly as `.a-hero` has one: a person on verify or
   checkout has already said yes, and a sales band at that point is noise in
   front of a form they are trying to finish.
   ============================================================ */

.a-show, .a-tools { display: none; }
body[data-screen="landing"] .a-show,
body[data-screen="landing"] .a-tools { display: block; }

.a-show-in {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}
.a-show { padding: 46px 0 8px; }
.a-tools { padding: 34px 0 40px; border-bottom: 1px solid var(--line); }

.a-show-h {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(23px, 5vw, 31px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.a-show-sub {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 46ch;
}

/* Film left, mess right — the home page's own two-column argument. It
   collapses to one column early here, because this page is met on a phone
   far more often than the home page is. */
.a-contrast {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
@media (min-width: 760px) {
  .a-contrast { grid-template-columns: 1fr 1fr; gap: 40px; }
}

figure.shot { margin: 0; }
figure.shot .vidbox {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
figure.shot .vidbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.a-blurb {
  font: 800 clamp(17px, 2.4vw, 21px)/1.4 var(--display);
  letter-spacing: -0.015em;
  margin: 26px 0 0;
}

/* ---- the pills ----
   Every pill is placed by its own centre, not its left edge: `left` names a
   point and the pill straddles it. Placing by the left edge is what made the
   mess hug the left margin on the home page — a wide pill and a narrow one
   starting at the same x end in very different places. The -50% has to live
   inside the drift keyframes too, because `transform` is one property and the
   animation owns it. */
.pillbox { position: relative; min-height: 330px; }
.pill {
  position: absolute; white-space: nowrap;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 13%, var(--paper));
  color: var(--ink);
  font: 800 15px/1 var(--display); letter-spacing: -0.01em;
  padding: 13px 20px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--pc) 22%, transparent);
  transition:
    top .9s cubic-bezier(.7, 0, .25, 1), left .9s cubic-bezier(.7, 0, .25, 1),
    transform .9s cubic-bezier(.7, 0, .25, 1),
    background-color .5s ease, border-color .5s ease, color .5s ease,
    font-size .5s ease, box-shadow .5s ease;
}
.pillbox.sorted .pill {
  animation: none; font-size: 15px;
  left: 50%; transform: translateX(-50%);
  width: 300px; text-align: center;
  background: var(--accent); color: var(--hl-ink);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 30%, transparent);
}
.pillbox.sorted .pill:nth-child(1) { top: 16%; }
.pillbox.sorted .pill:nth-child(2) { top: 32%; }
.pillbox.sorted .pill:nth-child(3) { top: 48%; }
.pillbox.sorted .pill:nth-child(4) { top: 64%; }
.pillbox.sorted .pill:nth-child(5) { top: 80%; }
/* Leaving the column: the drift animation would seize `transform` on the first
   frame and the pills would bang left; settling keeps it off until the
   transition has carried them home. */
.pillbox.settling .pill { animation: none; }
.pill:nth-child(1) { --pc: #FFC107; top: 2%;  left: 28%; animation: mess-a 9s  ease-in-out infinite alternate; }
.pill:nth-child(2) { --pc: #2D8CFF; top: 23%; left: 68%; animation: mess-b 11s ease-in-out infinite alternate; font-size: 17px; }
.pill:nth-child(3) { --pc: #F4353D; top: 44%; left: 31%; animation: mess-c 8s  ease-in-out infinite alternate; font-size: 13.5px; }
.pill:nth-child(4) { --pc: #9B5CF6; top: 63%; left: 69%; animation: mess-a 10s ease-in-out infinite alternate; }
.pill:nth-child(5) { --pc: #FF7A00; top: 83%; left: 41%; animation: mess-b 12s ease-in-out infinite alternate; font-size: 16px; }
@keyframes mess-a {
  from { transform: translate(-50%, 0) scale(1); }
  to   { transform: translate(calc(-50% + 26px), -16px) scale(1.07); }
}
@keyframes mess-b {
  from { transform: translate(-50%, 0) scale(1.05); }
  to   { transform: translate(calc(-50% - 22px), 14px) scale(.96); }
}
@keyframes mess-c {
  from { transform: translate(-50%, 0) scale(.97); }
  to   { transform: translate(calc(-50% + 18px), 20px) scale(1.08); }
}

/* ---- the tool rail ---- */
.tool-stage {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.tool-stage img {
  display: block; flex: 1 1 auto; min-width: 0; max-width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
  opacity: 1; transition: opacity .28s ease;
}
.tool-stage img.fading { opacity: 0; }
.rail-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); cursor: pointer;
  font-size: 17px; line-height: 1; display: grid; place-items: center;
}
.rail-btn:hover { border-color: var(--accent-text); color: var(--accent-text); }
.rail-zone { position: relative; }
.rail {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 14px 20px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.rail.dragging { cursor: grabbing; }
.rail.dragging .tool { user-select: none; }
/* Line the first card up with the column above once the window is wider than
   that column, so the rail reads as running off the edge rather than as a
   second, differently-indented thing. */
@media (min-width: 824px) {
  .rail { padding-left: calc((100vw - 780px) / 2 + 20px); }
}
.rail::-webkit-scrollbar { display: none; }
.tool {
  flex: 0 0 200px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.tool.lit {
  border-color: var(--tc);
  box-shadow: 0 0 0 1px var(--tc),
    0 0 30px color-mix(in srgb, var(--tc) 45%, transparent);
}
.tool .media {
  aspect-ratio: 16 / 10; position: relative;
  background:
    radial-gradient(120% 100% at 20% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 68%),
    var(--paper-soft);
  border-bottom: 1px solid var(--line);
}
.tool .media i {
  position: absolute; inset: 22% 30%;
  background-color: color-mix(in srgb, var(--tc) 46%, transparent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.tool .body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.tool .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tool .row i {
  width: 16px; height: 16px; flex: 0 0 auto;
  background-color: var(--ink);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.tool b { font: 800 14px/1.3 var(--display); letter-spacing: -0.01em; }
.tool p { color: var(--muted); font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
.tool .chiptag {
  margin-top: auto; align-self: flex-start;
  font: 800 10px/1 var(--display); letter-spacing: .08em;
  background: var(--tc); color: var(--tt);
  border-radius: 4px; padding: 3px 6px;
}
/* The app's BETA pill beside the plan's chip, as on the homepage (its
   comment there says why each number is what it is). */
.tool .chips { margin-top: auto; display: flex; align-items: center; gap: 6px; }
.tool .chips .chiptag { margin-top: 0; align-self: auto; }
.tool .betatag {
  --bc: #BE2C3D;
  font: 800 10px/1 var(--display); letter-spacing: .08em;
  color: var(--ink);
  background: color-mix(in srgb, var(--bc) 16%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent);
  border-radius: 999px; padding: 2px 7px;
  box-shadow: 0 0 8px color-mix(in srgb, var(--bc) 50%, transparent);
}

.a-tools-cta { display: block; margin: 26px auto 0; max-width: 340px; }

/* ---- the phone, which is where this page is actually read ----
   The free-floating drift needs room a 390px column does not have, so the mess
   is made out of tilt and offset instead of position: a column of chips, each
   knocked off the centre line and rotated a degree or two, reads as a pile.
   The solved state straightens them, matches their widths and turns them
   green — same beat, no absolute positioning. The reset has to outrank
   `.pill:nth-child(n)`, where the desktop animation is set; a bare `.pill`
   loses to it. */
@media (max-width: 620px) {
  .a-show { padding-top: 34px; }
  .pillbox {
    min-height: 0; display: flex; flex-direction: column;
    align-items: center; gap: 11px;
  }
  .pillbox .pill {
    position: static; animation: none; white-space: normal;
    transition: transform .75s cubic-bezier(.7, 0, .25, 1),
      background-color .5s ease, border-color .5s ease, color .5s ease,
      width .75s cubic-bezier(.7, 0, .25, 1), box-shadow .5s ease;
  }
  .pillbox .pill:nth-child(1) { font-size: 15px;   transform: translateX(-13px) rotate(-2.4deg); }
  .pillbox .pill:nth-child(2) { font-size: 16px;   transform: translateX(21px)  rotate(1.9deg); }
  .pillbox .pill:nth-child(3) { font-size: 14px;   transform: translateX(-19px) rotate(2.7deg); }
  .pillbox .pill:nth-child(4) { font-size: 15.5px; transform: translateX(15px)  rotate(-1.7deg); }
  .pillbox .pill:nth-child(5) { font-size: 14.5px; transform: translateX(-7px)  rotate(2.1deg); }
  /* Last, and deliberately: it ties on specificity with the five rules above
     and has to win. The base sorted rule's translateX(-50%) has to go too —
     these chips are laid out by flex now, not by `left`. */
  .pillbox.sorted .pill {
    transform: none; left: auto;
    width: min(300px, 100%); font-size: 15px;
  }
  .rail { padding-left: 20px; }
  .tool { flex: 0 0 180px; }
  /* No room for them beside the stage, and a finger has the rail anyway. */
  .rail-btn { display: none; }
}

/* Same specificity story as the phone reset above: `.pill` alone never beats
   `.pill:nth-child(n)`, so reduce-motion was quietly ignored on the home page
   until it was written this way. The cycler in a.js also checks the query and
   stops swapping, so this only has to kill the drift. */
@media (prefers-reduced-motion: reduce) {
  .pill:nth-child(1), .pill:nth-child(2), .pill:nth-child(3),
  .pill:nth-child(4), .pill:nth-child(5) { animation: none; }
  .tool-stage img { transition: none; }
}

/* ============================================================
   THE SIGNUP CARD, wearing the Pro treatment.

   It is selling Pro, so it looks like the Pro card on the pricing page rather
   than like a grey form: the same purple border, the same glow that breathes
   outside it, and the same three blooms orbiting the brand ramp behind the
   fields. Values are the home page's, not new ones — 2px border, 18→46px at
   .28→.62 alpha, blooms at .22.
   ============================================================ */

.a-trial {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid #9B5CF6;
  border-radius: 16px;
  background: var(--paper);
  padding: 4px;
  animation: pro-pulse 3s ease-in-out infinite alternate;
}
@keyframes pro-pulse {
  from { box-shadow: 0 0 18px rgba(155, 92, 246, .28); }
  to   { box-shadow: 0 0 46px rgba(155, 92, 246, .62); }
}
/* Everything real sits above the blooms. */
.a-trial > *:not(.a-trial-glow) { position: relative; z-index: 1; }

.a-trial-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.a-trial-glow .bloom {
  position: absolute; width: 110%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    currentColor 0%, color-mix(in srgb, currentColor 45%, transparent) 45%,
    transparent 100%);
  opacity: .22;
  animation: ai-orbit 28s linear infinite, ai-spectrum 28s linear infinite;
}
.a-trial-glow .bloom:nth-child(2) { animation-delay: -9.333s, -9.333s; }
.a-trial-glow .bloom:nth-child(3) { animation-delay: -18.666s, -18.666s; }
@keyframes ai-orbit {
  0%   { left: 92%;   top: 50%; }
  12.5%{ left: 79.7%; top: 79.7%; }
  25%  { left: 50%;   top: 92%; }
  37.5%{ left: 20.3%; top: 79.7%; }
  50%  { left: 8%;    top: 50%; }
  62.5%{ left: 20.3%; top: 20.3%; }
  75%  { left: 50%;   top: 8%; }
  87.5%{ left: 79.7%; top: 20.3%; }
  100% { left: 92%;   top: 50%; }
}
@keyframes ai-spectrum {
  0%   { color: #FFC107; }
  16.6%{ color: #FF7A00; }
  33.3%{ color: #F4353D; }
  50%  { color: #32C46A; }
  66.6%{ color: #2D8CFF; }
  83.3%{ color: #9B5CF6; }
  100% { color: #FFC107; }
}

/* The form inside the card carries no chrome of its own any more — the card
   is the chrome. Transparent, so the blooms read through it. */
.a-trial .a-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 30px 30px 26px;
  text-align: center;
}
.a-trial .a-form h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(22px, 4.6vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.a-form-lede {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
}

/* Fields and button stop short of the card's edges — a control running the
   full width of its container reads as a bar rather than as something to
   fill in. Centred as a column, labels ranged left above their own field. */
.a-trial .a-form label,
.a-trial .a-form input,
.a-trial .a-form .a-btn {
  width: min(340px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.a-trial .a-form label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 auto 6px;
}
.a-trial .a-form input {
  display: block;
  padding: 13px 14px;
  font-size: 16px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  margin-bottom: 16px;
}
.a-trial .a-form input:focus {
  outline: none;
  border-color: #9B5CF6;
  box-shadow: 0 0 0 3px rgba(155, 92, 246, .28);
}

/* The button is the one thing on the page that has to look pressable. Green
   stays — it is the brand's go colour and the hero uses it — but it gets
   depth, a lift on hover and a real press. */
.a-trial .a-form .a-btn.primary {
  display: block;
  margin-top: 6px;
  padding: 15px 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  border-radius: 12px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 88%, #ffffff) 0%,
    var(--accent) 55%,
    color-mix(in srgb, var(--accent) 86%, #000000) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .38) inset,
    0 8px 20px rgba(76, 191, 53, .32);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.a-trial .a-form .a-btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .38) inset,
    0 12px 26px rgba(76, 191, 53, .42);
}
.a-trial .a-form .a-btn.primary:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .30) inset,
    0 4px 12px rgba(76, 191, 53, .30);
}

.a-trial .a-fine,
.a-trial .a-error {
  width: min(400px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.a-trial .a-fine { text-align: center; }
/* The sign-in line belongs to the card, not to the page under it. */
.a-trial .a-alt {
  text-align: center;
  margin: 0;
  padding: 0 30px 26px;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .a-trial { animation: none; box-shadow: 0 0 26px rgba(155, 92, 246, .4); }
  .a-trial-glow .bloom { animation: none; }
  .a-trial .a-form .a-btn.primary { transition: none; }
}

/* The points sit inside the signup card now, between the lede and the first
   field. A rule under them separates "what you get" from "what to type"
   without a heading — they are one card, but two jobs. */
.a-trial .a-points {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
/* The count is written by a.js and the digits change width, so give it the
   tabular figures the rest of the sentence expects. */
.tool-count { font-variant-numeric: tabular-nums; }

/* The invitation above the heading, wearing the pricing page's MOST POPULAR
   tag: Montserrat 800 at 11px on .08em, in the Pro purple the card is bordered
   with. Same values as `.plan .tag`, so the two pages stay one design. The
   name itself steps up a little — it is the reason a stranger trusts this
   page, and it should not be the same weight as the words around it. */
.a-invited-to {
  font: 800 11px/1.35 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9B5CF6;
  margin: 0 0 8px;
}
.a-invited-to strong {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
}
.a-invited-to[hidden] { display: none; }

/* ---------------- MODULES ----------------
   The homepage's section, on this page's furniture. The stage keeps the
   still and the canvas in one box so the hand-off costs no reflow, and the
   whole engine is fetched only when the section nears the viewport — this
   page is a trial funnel and the form above it must not wait on three.js. */
.a-modules {
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--line);
}
/* Hidden site-wide since 2026-09-16, here as well as on the home page. This
   rule is what hides it on a hosting deploy before the function that renders
   the section (with its own `hidden` attribute) ships; the rules above stay
   so the band can come back in one line. The viewer script never fetches
   three.js for a section that cannot intersect the viewport, so this costs
   nothing to leave in place. */
.a-modules { display: none; }
.mod-mark {
  display: block; width: 46px; height: 46px; margin: 0 0 12px;
  background-color: var(--accent-text);
  -webkit-mask: url("/img/icons/modules.svg") no-repeat center / contain;
  mask: url("/img/icons/modules.svg") no-repeat center / contain;
}
.mod-stage {
  position: relative; margin-top: 24px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #0e0f0d;
  aspect-ratio: 900 / 560;
}
.mod-canvas { position: absolute; inset: 0; }
.mod-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.mod-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: opacity .5s ease;
}
.mod-stage.is-live .mod-still,
.mod-stage.is-live .mod-veil { opacity: 0; pointer-events: none; }
.mod-stage.is-fallback .mod-veil .a-btn { display: none; }
.mod-veil {
  position: absolute; inset: 0; display: flex; gap: 14px;
  flex-direction: column; align-items: center; justify-content: center;
  background: rgba(8, 9, 7, .52); transition: opacity .4s ease;
}
.mod-note { font-size: 14px; color: #cfd5c8; margin: 0; text-align: center; padding: 0 18px; }
.mod-stage.is-loading .mod-veil .a-btn { opacity: .5; pointer-events: none; }
.mod-bar {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 14px;
}
.mod-caption { margin: 0; font: 700 15px/1.2 var(--display); color: var(--ink); }
.mod-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-dots button {
  font: 600 12px/1 var(--display); color: var(--muted);
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.mod-dots button:hover { color: var(--ink); }
.mod-dots button[aria-current="true"] {
  color: var(--hl-ink); background: var(--accent); border-color: var(--accent);
}
.mod-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .mod-still, .mod-veil { transition: none; }
}
