/* ============================================================================
   shorts4u.ai — marketing site
   Plain CSS, no build step, no external fonts/scripts. Dark-first; light theme
   via prefers-color-scheme.

   Palette is taken from the brand SVGs in studio/brand/ and must match them:
     amber #F0932B · ink #1C1B19 · white #FFFFFF
   The surrounding greys mirror the app's own tokens (studio/frontend
   globals.css) so the site feels continuous with the product.

   The one visual motif is the mark itself: three offset vertical frames
   receding into depth. Its geometry (see assets/mark.svg) drives .stack —
   the percentages there are measured off that SVG, don't eyeball them.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --amber:        #F0932B;
  --on-amber:     #1C1B19;   /* ink on amber — 7.5:1 */
  --accent-text:  #F0932B;   /* amber is only safe as text on dark */

  --bg:      #0A0A0C;
  --bg-2:    #0E0E11;
  --panel:   #15151A;
  --panel-2: #1B1B22;
  --line:    #2A2A33;
  --line-2:  #202028;

  --tx:   #EDEDF2;
  --tx-2: #B6B6C2;
  --tx-3: #8C8C9B;

  --glow-a: rgba(240, 147, 43, 0.07);
  --glow-b: rgba(240, 147, 43, 0.14);
  /* opaque on purpose: the two ghost frames overlap, and translucent fills
     compound in the overlap into a third value that muddles the depth read. */
  --frame-fill-mid:  #1E1E25;
  --frame-fill-back: #141419;
  --frame-line-mid:  rgba(255, 255, 255, 0.09);
  --frame-line-back: rgba(255, 255, 255, 0.05);
  --frame-line:      rgba(255, 255, 255, 0.10);
  --shadow-lift: 0 32px 70px -28px rgba(0, 0, 0, 0.85);

  --r:    14px;
  --r-lg: 20px;
  --wrap: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --accent-text: #9A5B08;   /* #F0932B on white is 2.4:1 — this is 5.2:1 */

    --bg:      #FBFAF8;
    --bg-2:    #F5F3EF;
    --panel:   #FFFFFF;
    --panel-2: #FFFFFF;
    --line:    #E4E0D9;
    --line-2:  #EDEAE4;

    --tx:   #1C1B19;
    --tx-2: #55524C;
    --tx-3: #6E6A63;

    --glow-a: rgba(240, 147, 43, 0.10);
    --glow-b: rgba(240, 147, 43, 0.16);
    --frame-fill-mid:  #E9E5DE;
    --frame-fill-back: #F2EFEA;
    --frame-line-mid:  rgba(28, 27, 25, 0.10);
    --frame-line-back: rgba(28, 27, 25, 0.06);
    --frame-line:      rgba(28, 27, 25, 0.10);
    --shadow-lift: 0 26px 60px -30px rgba(28, 27, 25, 0.35);
  }
}

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

html, body {
  margin: 0;
  /* clip, not hidden: `hidden` would make body a scroll container and break
     the sticky header. */
  overflow-x: clip;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 640px at 82% -6%,  var(--glow-b), transparent 62%),
    radial-gradient(900px  620px at -8% 10%,  var(--glow-a), transparent 58%);
  background-repeat: no-repeat;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* keeps the footer at the bottom on the short legal stub pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, figcaption { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

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

/* off-canvas by transform, not left:-9999px — the page uses overflow-x: clip and a
   far-negative box is one more thing that can go wrong there. */
.skip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transform: translateY(-140%);
  padding: 12px 18px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { transform: translateY(0); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* -------------------------------------------------------------- typography */
h1, h2, h3 {
  font-weight: 800;
  /* the wordmark is a tight grotesque (letter-spacing -1 at 52px); headings
     track in to match it. */
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 6.4vw, 3.7rem);
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  color: var(--accent-text);
}

h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.015em; }

.lede {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  line-height: 1.62;
  color: var(--tx-2);
  max-width: 34em;
}

.sub {
  margin-top: 16px;
  color: var(--tx-2);
  max-width: 48ch;
  font-size: 1.03rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 20px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(240, 147, 43, 0.16);
  flex: none;
}

.num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-text);
}

.fineprint {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--tx-3);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease,
              transform 0.16s ease, box-shadow 0.16s ease;
}

.btn--primary {
  background: var(--amber);
  color: var(--on-amber);
  box-shadow: 0 10px 26px -14px rgba(240, 147, 43, 0.75);
}
.btn--primary:hover {
  background: #FFA544;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--tx);
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--accent-text);
}

.btn--sm  { padding: 9px 16px;  font-size: 0.9rem; border-radius: 9px; }
.btn--lg  { padding: 16px 30px; font-size: 1.05rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ------------------------------------------------------- free-trial banner */
/* A centred amber pill rather than a full-bleed stripe. Full width in solid
   amber shouted over the nav and the hero's own amber CTA; contained, it reads
   as one highlighted announcement instead of a second brand bar.

   It drops in from above on load, and the × removes it and gives the space
   back. The row keeps its height while the pill animates, so the drop doesn't
   shove the whole page down — only the collapse on dismiss changes layout, and
   that one is deliberate. */
.promo-row {
  display: flex;
  justify-content: center;
  padding: 16px 20px 0;
  overflow: hidden;
  transition: height 0.34s ease, padding 0.34s ease, opacity 0.22s ease;
}

.promo {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  border-radius: 999px;
  background: var(--amber);
  color: var(--on-amber);
  box-shadow: 0 10px 30px -16px rgba(240, 147, 43, 0.85);
  /* The drop-in is a keyframe animation, NOT a JS-toggled transition. A class
     that script has to add can fail to arrive — requestAnimationFrame doesn't
     run in a background tab, so a banner armed that way sits invisible until
     the tab is focused. An animation runs on its own; if promo.js never loads,
     the banner still drops in and is still there at the end. */
  animation: promo-drop 0.5s cubic-bezier(0.22, 1.15, 0.36, 1) both;
  transition: transform 0.34s ease, opacity 0.24s ease;
}

@keyframes promo-drop {
  from { transform: translateY(-150%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.promo__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 10px 6px 10px 18px;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.promo__link:hover .promo__cta { text-decoration: underline; }

.promo__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--on-amber);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.promo__text strong { font-weight: 800; }
.promo__cta { font-weight: 700; white-space: nowrap; }

.promo__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: none;
  color: var(--on-amber);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.16s ease, background-color 0.16s ease;
}
.promo__close:hover { opacity: 1; background: rgba(28, 27, 25, 0.1); }
.promo__close:focus-visible { opacity: 1; outline-offset: -3px; }

/* dismissed — collapse the row so the page returns to its own height */
.promo-row.is-out { height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.promo-row.is-out .promo { transform: translateY(-150%); opacity: 0; }

@media (max-width: 620px) {
  .promo-row { padding: 12px 16px 0; }
  /* a pill that has to wrap isn't a pill — square it off and let it fill */
  .promo { border-radius: var(--r); width: 100%; }
  .promo__link { font-size: 0.84rem; padding: 11px 4px 11px 14px; }
  .promo__close { border-radius: 0 var(--r) var(--r) 0; }
  /* the arrow is redundant with the text once space is tight */
  .promo__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* no drop-in; it's simply there. Dismiss still works, just without the slide. */
  .promo { animation: none; }
}

/* ------------------------------------------------------------- the crew ---- */
.crew {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
@media (min-width: 680px)  { .crew { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .crew { grid-template-columns: repeat(3, 1fr); } }

.crew li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 4px var(--r) var(--r) 4px;
}
.crew__role {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.crew__does { font-size: 0.93rem; color: var(--tx-3); line-height: 1.45; }
/* the second half of each card is what YOU decide — it carries the argument the
   removed "Your call" table used to make, so it gets the emphasis, not the grey. */
.crew__does em { font-style: normal; color: var(--tx); font-weight: 600; }

/* --------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .nav { background: var(--bg); }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.nav__brand, .foot__brand { display: block; text-decoration: none; }

.lockup { height: 32px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 9px 12px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--tx-2);
  text-decoration: none;
  border-radius: 9px;
  transition: color 0.16s ease;
}
.nav__link:hover { color: var(--tx); }

@media (max-width: 560px) {
  .nav__link--wide { display: none; }
  .lockup { height: 28px; }
}

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }

.hero__grid {
  display: grid;
  gap: clamp(44px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.06fr 0.94fr; }
}

.hero__visual { justify-self: center; width: 100%; }

/* --- the mark, at scale -----------------------------------------------------
   Percentages below are measured off assets/mark.svg, whose content box spans
   x 10→82 (72 wide) and y 13→87 (74 tall):
     front  x 42..82 (w 40, h 74)  → left 44.4%, width 55.6%, height 100%
     mid    x 24..54 (w 30, h 58)  → left 19.4%, width 41.7%, height  78.4%
     back   x 10..36 (w 26, h 48)  → left  0.0%, width 36.1%, height  64.9%
   All three are vertically centred in the mark; the back frame sits ~2 units
   lower, kept here as the small margin-top nudge.
   Corner radius in the SVG is 25% of width — right for a 32px logo, a blob at
   300px, so the large frames use ~9% and the small decorative ones ~14%.       */
.stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

.stack__frame { border-radius: clamp(14px, 9%, 30px); }

.stack__frame--back,
.stack__frame--mid {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--frame-line);
  border-radius: clamp(11px, 14%, 22px);
  /* clip the ghost videos to the rounded corners; the fill below stays as the
     backdrop while they load */
  overflow: hidden;
}

/* The receding frames play the same clip, pushed right back so the front frame
   still clearly leads. Grey + dim rather than opacity: opacity would let the
   frame behind bleed through and re-create the muddled overlap the opaque fills
   were chosen to avoid. */
.stack__media--ghost {
  filter: grayscale(1) brightness(0.42) contrast(0.95);
}
.stack__frame--back .stack__media--ghost {
  filter: grayscale(1) brightness(0.3) contrast(0.9);
}

/* Receding has to mean "toward the background", and the background flips. Darkening
   these on a near-white page turns them into the two heaviest objects in the hero
   and the eye goes to them instead of the live frame — the depth order inverts.
   So in light mode they wash out rather than down. */
@media (prefers-color-scheme: light) {
  .stack__media--ghost {
    filter: grayscale(1) brightness(1.45) contrast(0.45);
  }
  .stack__frame--back .stack__media--ghost {
    filter: grayscale(1) brightness(1.6) contrast(0.3);
  }
}
.stack__frame--mid  { left: 19.4%; width: 41.7%; height: 78.4%;
                      background: var(--frame-fill-mid);
                      border-color: var(--frame-line-mid); }
.stack__frame--back { left: 0;     width: 36.1%; height: 64.9%;
                      background: var(--frame-fill-back);
                      border-color: var(--frame-line-back);
                      margin-top: 1.4%; }

.stack__frame--front {
  position: relative;   /* defines the stack's height */
  margin-left: 44.4%;
  width: 55.6%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--panel-2);
  border: 2px solid var(--amber);
  box-shadow: var(--shadow-lift), 0 0 60px -18px rgba(240, 147, 43, 0.35);
}

.stack__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(60px, 8.5vw, 108px) 0; }

/* the header is sticky, so in-page anchors must clear it */
[id] { scroll-margin-top: 84px; }

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line-2);
}

.section__head { margin-bottom: clamp(36px, 5vw, 56px); }

/* ------------------------------------------------------------ proof points */
.proof {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 38px);
}

.proof__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.proof__head h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }

.proof__body {
  color: var(--tx-2);
  max-width: 62ch;
  font-size: 1rem;
}

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

/* the 12-frame consistency grid */
.grid12 { margin-top: 28px; }

/* three tiles, not twelve — see the comment on the markup. Capped narrow so three
   portrait frames read as a considered set rather than three lonely columns. */
.grid12__cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 460px;
}
@media (min-width: 560px) { .grid12__cells { gap: 14px; max-width: 520px; } }

.shot__label {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--tx-3);
}

.cell {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px dashed var(--line);
}
.cell img { width: 100%; height: 100%; object-fit: cover; }

/* The cast sheet is a transparent cutout, not a scene still. `contain` keeps the
   whole figure and lets the panel show through, so it reads as "this is the
   reference" rather than "this is another shot" — and the alpha means it sits
   correctly on both the dark and the light panel without a baked-in backdrop. */
.cell--ref {
  background: var(--panel-2);
  border-style: solid;
}
.cell--ref img { object-fit: contain; padding: 8px 6px 0; }


.grid12 figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--tx-3);
}
.grid12 figcaption strong { color: var(--accent-text); font-weight: 700; }

/* ------------------------------------------------- you're the director ---- */
.dir__note {
  margin-top: clamp(22px, 3vw, 32px);
  max-width: 64ch;
  color: var(--tx-2);
  font-size: clamp(1rem, 2vw, 1.1rem);
}
.dir__note em { color: var(--accent-text); font-style: normal; font-weight: 700; }

/* ------------------------------------------------------------ how it works */
.rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.rail li {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-2);
}
.rail li + li::before {
  content: "→";
  margin: 0 clamp(8px, 1.6vw, 16px);
  color: var(--amber);
  font-family: var(--sans);
  letter-spacing: normal;
}
@media (max-width: 540px) {
  .rail { border-radius: var(--r); padding: 14px 18px; }
}

.steps {
  display: grid;
  gap: 18px;
}
@media (min-width: 680px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--amber);
  border-radius: 4px 4px var(--r) var(--r);
}
.step p { color: var(--tx-2); font-size: 0.96rem; }

.step .gate {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 0.86rem;
  color: var(--tx-3);
}
.gate span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-right: 7px;
}

.callout {
  margin-top: clamp(24px, 3.6vw, 36px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 4px var(--r-lg) var(--r-lg) 4px;
  background: var(--panel);
}
.callout p {
  color: var(--tx-2);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 68ch;
}
.callout strong { color: var(--tx); }

/* ----------------------------------------------------------------- pricing */
/* The single live plan. A lone card in a 4-column grid looks like three plans
   failed to load, so the only plan gets the full-width panel treatment instead. */
.trial {
  display: grid;
  gap: clamp(22px, 3.5vw, 44px);
  padding: clamp(24px, 3.4vw, 36px);
  margin-bottom: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(240, 147, 43, 0.5);
  border-radius: var(--r-lg);
  background:
    linear-gradient(120deg, rgba(240, 147, 43, 0.09), transparent 55%),
    var(--panel);
  box-shadow: 0 0 0 1px rgba(240, 147, 43, 0.12);
}
@media (min-width: 820px) {
  .trial { grid-template-columns: minmax(230px, 0.85fr) 1.15fr; align-items: center; }
}

.trial__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.trial__name { font-size: 1.5rem; }
.trial__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 6px;
}
.trial__amt {
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.trial__per { color: var(--tx-3); font-size: 0.95rem; }
.trial__note { margin: 8px 0 20px; font-size: 0.85rem; color: var(--tx-3); }

.trial__feats { display: grid; gap: 14px; align-content: center; }
/* NOT display:grid on the li. These items contain a <strong> plus a trailing text
   node, and a grid container turns that text node into a third grid item — it
   lands in the 20px marker column and wraps one word per line. Absolute marker
   keeps the content inline and flowing. */
.trial__feats li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--tx-2);
}
.trial__feats li strong { color: var(--tx); }
.trial__feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--amber);
}

.trial__limit {
  /* block so it can't share a line with the button below it, `fit-content` so the
     pill still hugs its text — inline-block gave it both, and the CTA came up
     alongside it. */
  display: block;
  width: fit-content;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(240, 147, 43, 0.45);
  border-radius: 999px;
  background: rgba(240, 147, 43, 0.10);
  font-size: 0.8rem;
  color: var(--tx-2);
}
.trial__limit strong { color: var(--accent-text); }

/* ── the not-yet-available plans ──────────────────────────────────────────────
   "Greyed out" via muted TOKENS, never `opacity`. A blanket fade on the card
   drags its body text under AA contrast; picking the muted colours by hand keeps
   the disabled look and keeps it readable. These cards carry no link at all —
   a disabled <a> is a trap for keyboard and screen-reader users, and there is
   nowhere for it to go yet anyway. */
.plans__lead {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-3);
}

.plans {
  display: grid;
  gap: 18px;
}
@media (min-width: 620px)  { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.plan--soon {
  background: transparent;
  border-style: dashed;
}

.plan__flag {
  position: absolute;
  top: -10px;
  left: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--tx-3);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan__name {
  font-size: 0.95rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-3);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
}
.plan__amt {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--tx-2);
}
.plan__per { color: var(--tx-3); font-size: 0.9rem; }

.plan__note {
  margin-top: 8px;
  font-size: 0.83rem;
  color: var(--tx-3);
  min-height: 2.4em;
}

.plan__feats {
  margin-top: 16px;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--tx-3);
}
.plan__feats li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}
.plan__feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--tx-4, var(--line));
  border: 1px solid var(--tx-3);
}

.pricing__foot {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--tx-3);
}

/* --------------------------------------------------------------- closing cta */
.closer {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-2);
  background:
    radial-gradient(700px 380px at 50% 0%, var(--glow-b), transparent 68%);
}
.closer__inner { text-align: center; display: grid; justify-items: center; gap: 16px; }
.closer__mark { width: 52px; height: auto; margin-bottom: 4px; border-radius: 11px; }
.closer p { color: var(--tx-2); max-width: 44ch; }
.closer .btn { margin-top: 12px; }

/* ------------------------------------------------------------------ footer */
/* the consent banner is fixed to the bottom and overlaps this — reserve room for
   it while it's up, or it covers the Privacy link it points at */
.has-consent-banner .foot { padding-bottom: 150px; }
@media (min-width: 900px) { .has-consent-banner .foot { padding-bottom: 110px; } }

.foot {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line-2);
  background: var(--bg-2);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
}
.foot__links a {
  color: var(--tx-2);
  text-decoration: none;
  transition: color 0.16s ease;
}
.foot__links a:hover { color: var(--accent-text); }
/* the "Cookies" re-opener is a <button>, not an <a href="#"> — it performs an
   action rather than going anywhere. Styled to sit in the link row. */
.foot__btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--tx-2);
  cursor: pointer;
  transition: color 0.16s ease;
}
.foot__btn:hover { color: var(--accent-text); }

.foot__copy {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--tx-3);
}
@media (max-width: 620px) {
  .foot__copy { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------- cookie consent -- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 44px -26px rgba(0, 0, 0, 0.8);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
/* .cookie sets `display`, which would beat the UA sheet's [hidden] rule */
.cookie[hidden] { display: none; }
.cookie.is-open { transform: translateY(0); }

.cookie__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.cookie__text {
  flex: 1 1 30ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tx-2);
}
.cookie__text strong { color: var(--tx); }
.cookie__text a { color: var(--accent-text); }

.cookie__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie__actions .btn { flex: 1 1 auto; }

@media (max-width: 560px) {
  .cookie__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie { transform: translateY(0); }
}

/* ------------------------------------------------------------- legal stubs */
/* ------------------------------------------------------- privacy / terms --- */
.legal { padding: clamp(44px, 7vw, 76px) 0 clamp(64px, 9vw, 104px); }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }

.legal h2 {
  margin: clamp(34px, 4.5vw, 48px) 0 12px;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}
.legal h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  color: var(--tx);
}

.legal p {
  color: var(--tx-2);
  max-width: 68ch;
  margin-bottom: 14px;
  line-height: 1.65;
}
.legal p strong { color: var(--tx); }
.legal a { color: var(--accent-text); }

.legal__meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--tx-3) !important;
}

/* the plain-English summary at the top of each document */
.legal__lead {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 4px var(--r) var(--r) 4px;
  background: var(--panel);
  font-size: 1.02rem;
  max-width: 68ch;
}

.legal__list {
  max-width: 68ch;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}
.legal__list li {
  position: relative;
  padding-left: 20px;
  color: var(--tx-2);
  line-height: 1.6;
}
.legal__list li strong { color: var(--tx); }
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--amber);
}

.legal code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--tx);
}

/* the sub-processor table — same responsive pattern as .dir: real table
   semantics, stacked blocks with data-label captions under 700px. */
.legal__table {
  width: 100%;
  max-width: 68ch;
  margin: 18px 0 22px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  text-align: left;
}
.legal__table th {
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.legal__table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line-2);
  font-size: 0.93rem;
  color: var(--tx-2);
  vertical-align: top;
}
.legal__table tbody tr:first-child td { border-top: 0; }
.legal__table td:first-child { color: var(--tx); font-weight: 600; white-space: nowrap; }

@media (max-width: 700px) {
  .legal__table thead {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td {
    display: block; width: auto;
  }
  .legal__table tr { border-top: 1px solid var(--line-2); }
  .legal__table tbody tr:first-child { border-top: 0; }
  .legal__table td { border-top: 0; padding: 12px 16px 2px; }
  .legal__table td:last-child { padding-bottom: 14px; }
  .legal__table td:first-child { white-space: normal; }
  .legal__table td:last-child::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tx-3);
  }
}

.legal__back { margin-top: clamp(36px, 5vw, 52px); }

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