/* ==========================================================================
   Trojected marketing site — styles.css
   Sections: 1 tokens · 2 base · 3 header · 4 hero · 5 section skeletons ·
             6 footer · 7 motion / reduced motion · 8 breakpoints
   Measurements come from the Wix screenshots (2× captures of a 1723 px
   viewport); see DESIGN_PLAN.md §3.
   ========================================================================== */

/* 0. Fonts (self-hosted, latin subset, variable weight; PAGE_AUDIT row 26) --- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #9a9a9a;          /* body / subtitles on black */
  --gray-light: #bebebe;    /* lighter body (hero subtitle, pages) */
  --line: #3a3a3a;          /* neutral 1px borders */

  --blue: #3d7fff;
  --green: #2ee06e;
  --yellow: #facf33;
  --orange: #ff8c1a;
  --red: #ff423a;
  --purple: #9700ff;
  --pink: #ff00d0;

  /* hero underline / divider / CTA underline: fades out at both ends */
  --rainbow-linear: linear-gradient(90deg,
      transparent 0%, var(--yellow) 8%, var(--orange) 22%, var(--red) 36%,
      var(--pink) 50%, var(--purple) 63%, var(--blue) 77%, var(--green) 90%,
      transparent 100%);
  /* card borders: clockwise from the left edge */
  --rainbow-conic: conic-gradient(from 270deg,
      var(--blue), var(--green), var(--yellow), var(--orange),
      var(--red), var(--pink), var(--purple), var(--blue));

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale: the vw values are the reference sizes over the 1723 px viewport */
  --fs-h1: clamp(2.75rem, 6.8vw, 7.3rem);         /* ≈117 px */
  --fs-h2: clamp(2.125rem, 4.64vw, 5rem);          /* 80 px */
  --fs-sub: clamp(0.9375rem, 1.51vw, 1.625rem);    /* 26 px */
  --fs-hero-sub: clamp(0.9375rem, 1.6vw, 1.75rem); /* 28 px */
  --fs-body: clamp(1rem, 1.22vw, 1.3125rem);       /* 21 px */
  --fs-brand: clamp(1.25rem, 1.63vw, 1.75rem);     /* 28 px */
  --fs-footer: 1.0625rem;                          /* 17 px */

  --container: 1336px;
  --gutter: clamp(16px, 5.6vw, 96px);
  --header-h: clamp(60px, 4.6vw, 79px);

  /* footer metrics; the CTA reads them to place itself in the page's last screen (5f) */
  --footer-pt: clamp(36px, 3.9vw, 56px);
  --footer-pb: clamp(26px, 2.1vw, 36px);
  --footer-meta-gap: clamp(14px, 1.2vw, 18px);
  --footer-meta-fs: clamp(0.8125rem, 0.95vw, 0.875rem);
  --footer-h: calc(var(--footer-pt) + 1.35 * var(--fs-footer) + var(--footer-meta-gap) + 1.4 * var(--footer-meta-fs) + var(--footer-pb));   /* the links row and one row of meta: true from 921 px up */

  --radius-panel: 24px;
  --radius-card: 18px;
  --radius-step: 14px;
  --radius-badge: 12px;

  /* hero bars */
  --bar-gap: clamp(6px, 3.25vw, 56px);
  --bar-radius: 14px;
  --bar-border: 3.5px;
  --pill-w: 57px;        /* cap; pills are flex-sized to the bar below this */
  --pill-h: clamp(6px, 0.7vw, 12px);
  --pill-gap: 8px;
  --name-h: clamp(1.125rem, 1.62vw, 1.75rem);  /* fixed line box so font-fitting never moves the pills */
  --bar-h3: 64%;   /* outer bars */
  --bar-h2: 59%;
  --bar-h1: 53%;
  --bar-h0: 47%;   /* focused centre bar */
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }
.skip-link {                                      /* keyboard users jump past the header (PAGE_AUDIT row 31) */
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}
.skip-link:focus { top: 12px; outline-offset: 2px; }
.sr-only {                                        /* visually hidden, read by screen readers (the inert badges' "coming soon", S20) */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { color: var(--white); font-style: italic; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 3. Header ---------------------------------------------------------------- */
.site-header .container {
  display: flex;
  align-items: center;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-icon { width: clamp(24px, 1.86vw, 32px); height: auto; }
.brand-name {
  font-size: var(--fs-brand);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* 4. Hero ------------------------------------------------------------------ */
.hero { padding-bottom: clamp(48px, 6vw, 96px); }

/* the stage shares the panel's box; bars sit on it, outside the panel's clip,
   so their glow can spill past the rounded video */
.hero-stage { position: relative; }

.hero-panel {
  position: relative;
  height: clamp(560px, calc(100svh - var(--header-h) - 12px), 830px);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: #101010;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* darkens the lower half so the bars, pills and labels sit on black */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0.5) 26%,
      rgba(0, 0, 0, 0.92) 48%, #000 60%, #000 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(36px, 6.5%, 60px) clamp(16px, 4vw, 48px) 0;
}
.hero-title-part { display: inline-block; }
.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero-sub {
  margin-top: clamp(8px, 0.7vw, 12px);
  font-size: var(--fs-sub);
  font-weight: 700;
  color: #d4d4d4; /* lighter than the section subtitles: it sits on the video */
}
.hero-copy .badge { margin-top: clamp(24px, 3.4vw, 58px); }

.badge {
  display: inline-block;
  border-radius: 8px;
  line-height: 0;
  transition: transform 0.25s ease;
}
.badge:hover,
.badge:focus-visible { transform: scale(0.94); }
.badge img { height: clamp(46px, 3.4vw, 58px); width: auto; }
.badge[aria-disabled="true"] { cursor: default; }

/* bars: seven columns edge to edge, bottoms flush with the panel */
.bars {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--bar-gap);
  align-items: end;
  pointer-events: none;   /* the list box covers the whole stage; only the bars themselves are interactive */
}
.bar { pointer-events: auto; }
.bar {
  --glow: 0 0 34px color-mix(in srgb, var(--c) 50%, transparent);
  --label-alpha: 0.35;
  --bar-alpha: 0.7;   /* resting opacity: outer bars sit back, centre is full */
  position: relative;
  container-type: inline-size;   /* labels + pills size from the bar's own width (see the @supports block at the end) */
  opacity: var(--bar-alpha);
  height: var(--bar-h3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 0.7vw, 12px) 6px clamp(5px, 0.45vw, 8px);
  border-radius: var(--bar-radius);
  border: var(--bar-border) solid #0b0b0b;
  /* clip + no-repeat: otherwise the gradient tiles under the bottom border
     and a sliver of full colour shows there */
  background: linear-gradient(180deg,
      var(--c) 0%,
      color-mix(in srgb, var(--c) 72%, #000) 28%,
      color-mix(in srgb, var(--c) 28%, #000) 58%,
      #050505 78%,
      #050505 100%) no-repeat;
  background-clip: padding-box;
  box-shadow: var(--glow);
  will-change: transform, opacity;
}
.bar[data-d="2"] { height: var(--bar-h2); --label-alpha: 0.55; --bar-alpha: 0.8; --glow: 0 0 36px color-mix(in srgb, var(--c) 55%, transparent); }
.bar[data-d="1"] { height: var(--bar-h1); --label-alpha: 0.8;  --bar-alpha: 0.9; --glow: 0 0 38px color-mix(in srgb, var(--c) 60%, transparent); }
.bar[data-d="0"] {
  height: var(--bar-h0);
  --label-alpha: 1;
  --bar-alpha: 1;
  --glow: 0 0 42px color-mix(in srgb, var(--c) 75%, transparent);
}

.bar-top,
.bar-name {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  font-weight: 700;
  color: var(--white);
  opacity: var(--label-alpha);
}
.bar-top {
  font-size: clamp(0.75rem, 1.28vw, 1.375rem);                   /* 22 px */
  line-height: 1.15;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}
.bar-state,
.bar-score { display: block; width: 100%; white-space: nowrap; overflow: hidden; }
.bar-name {
  font-size: clamp(0.8125rem, 1.28vw, 1.375rem);                 /* 22 px */
  height: var(--name-h);
  line-height: var(--name-h);
}
.bar-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(5px, 0.55vw, 9px);
  width: 100%;
}
.pills { display: flex; gap: var(--pill-gap); width: 100%; justify-content: center; }
.pill {
  display: block;
  flex: 1 1 0;
  max-width: var(--pill-w);
  height: var(--pill-h);
  border-radius: 99px;
  background: linear-gradient(90deg, #050505 0%, #0d1f4a 35%, var(--blue) 100%);
}
.pill-green { background: linear-gradient(90deg, #050505 0%, #0b2e1a 35%, var(--green) 100%); }

/* rotating label (centre bar) */
.bar-name[data-rotate] {
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.bar-name[data-rotate].is-out { opacity: 0; transform: translateY(-8px); }
.bar-name[data-rotate].is-prep { opacity: 0; transform: translateY(8px); transition: none; }

/* 5. Section skeletons (built out in later sessions) ----------------------- */
.section { padding: clamp(96px, 12vw, 200px) 0; }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
}
.section-sub {
  margin-top: clamp(12px, 1.6vw, 24px);
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--gray);
  text-align: center;
}
/* 5f. CTA: two headline lines over rainbow rules, badge centred below (reference 05-cta.png) */
.cta {
  --cta-rule: clamp(7px, 0.81vw, 14px);
  padding-top: clamp(96px, 13.5vw, 232px);
  padding-bottom: clamp(60px, 7vw, 112px);        /* was 72–230 px: the band between the badge and the footer tightened 2026-10-01, a deliberate deviation from 05-cta.png */
}
.cta-title {
  font-size: clamp(2.375rem, 6.85vw, 7.375rem);   /* 118 px */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.cta-line { display: block; }
.cta-line--2 { margin-top: clamp(10px, 1.16vw, 20px); }
.cta-text { display: block; position: relative; z-index: 1; }   /* the letters paint over the rules, so descenders cross them rather than hide behind */
.cta-line--2 .cta-text { text-align: right; }   /* line two ends on the right end of its pill row at every width (2026-10-05); a fixed 97 px indent used to do that at 1723 only and left it 81–162 px short from 721 to 1440 */
.cta-rule {                                       /* both rules span the full container width */
  display: block;
  height: var(--cta-rule);
  margin-top: clamp(-10px, -0.58vw, -3px);        /* pulled up into the descender space so the text sits close on the rule, the j crossing it as in the reference */
}
.cta-rule--solid {
  border-radius: 999px;
  background: linear-gradient(90deg,
      #FACF33 0%, #FF8C1A 16%, #FF423A 30%, #FF00D0 43%,
      #9700FF 54%, #3D7FFF 67%, #2EE06E 82%, rgba(46, 224, 110, 0) 100%);
}
.cta-rule--dashes {                               /* seven pills on a 7-column grid sharing one continuous gradient */
  --g: clamp(6px, 0.93vw, 16px);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--g);
}
.cta-rule--dashes i {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
}
.cta-rule--dashes i::before {                     /* the whole row's gradient, shifted left by this pill's slot, so it flows across the gaps */
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * var(--k) * (100% + var(--g)));
  width: calc(700% + 6 * var(--g));
  height: 100%;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0%, #2EE06E 11%, #3D7FFF 24%, #9700FF 37%,
      #FF00D0 50%, #FF423A 63%, #FF8C1A 77%, #FACF33 92%);   /* only the first pill fades in from black */
}
.cta-rule--dashes i:nth-child(1) { --k: 0; }
.cta-rule--dashes i:nth-child(2) { --k: 1; }
.cta-rule--dashes i:nth-child(3) { --k: 2; }
.cta-rule--dashes i:nth-child(4) { --k: 3; }
.cta-rule--dashes i:nth-child(5) { --k: 4; }
.cta-rule--dashes i:nth-child(6) { --k: 5; }
.cta-rule--dashes i:nth-child(7) { --k: 6; }
.cta-badge { position: relative; margin-top: clamp(36px, 3.7vw, 64px); text-align: center; }
.cta-qr {                                         /* desktop-only QR of the ct=web-qr campaign link (S8); main.js draws and shows it once the App Store URL exists */
  position: absolute;
  top: 50%;
  left: calc(50% + clamp(46px, 3.4vw, 58px) * 1.5 + 28px);   /* the badge is 3:1, so 1.5 × its height is half its width */
  display: block;
  width: 128px;
  height: 128px;
  padding: 8px;
  border-radius: 12px;
  background: var(--white);
  transform: translateY(-50%);
  line-height: 0;
}
/* phones (2026-10-05): a word per line, so the type can be about twice the size of the one-line fit it replaces
   (59 px at 390; it was 30). The two ideas stay, turned upright: the solid rule runs down the left of "Project Your
   Future", and the seven pills run down the right of "Map Your Trajectory", which is set flush right. "Trajectory"
   is 5.30 em wide, so (container - rule - gap) / 5.45 leaves it a little short of the pills. Each word is its own
   span (.cta-w), inline everywhere else. */
@media (max-width: 480px) {
  .cta { --cta-rule: 8px; --cta-side: 16px; }
  .cta-title { font-size: calc((100vw - 2 * var(--gutter) - var(--cta-rule) - var(--cta-side)) / 5.45); line-height: 0.98; letter-spacing: -0.02em; }
  .cta-w { display: block; }
  .cta-line { display: grid; grid-template-columns: var(--cta-rule) minmax(0, 1fr); column-gap: var(--cta-side); }
  .cta-line .cta-text { grid-column: 2; grid-row: 1; }
  .cta-line .cta-rule { grid-column: 1; grid-row: 1; width: var(--cta-rule); height: auto; margin: 0.1em 0 0.12em; }
  .cta-rule--solid {
    background: linear-gradient(180deg,
        #FACF33 0%, #FF8C1A 16%, #FF423A 30%, #FF00D0 43%,
        #9700FF 54%, #3D7FFF 67%, #2EE06E 82%, rgba(46, 224, 110, 0) 100%);
  }
  .cta-line--2 { margin-top: 0.62em; grid-template-columns: minmax(0, 1fr) var(--cta-rule); }   /* the two phrases stand apart (Will: a bit more than the 0.34em first drawn) */
  .cta-line--2 .cta-text { grid-column: 1; text-align: right; }
  .cta-line--2 .cta-rule { grid-column: 2; }
  .cta-rule--dashes { --g: 7px; grid-template-columns: none; grid-template-rows: repeat(7, minmax(0, 1fr)); }
  .cta-rule--dashes i { height: auto; }
  .cta-rule--dashes i::before {                   /* the same shared gradient, now running down the column */
    left: 0;
    top: calc(-1 * var(--k) * (100% + var(--g)));
    width: 100%;
    height: calc(700% + 6 * var(--g));
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%, #2EE06E 11%, #3D7FFF 24%, #9700FF 37%,
        #FF00D0 50%, #FF423A 63%, #FF8C1A 77%, #FACF33 92%);
  }
  .cta-badge { margin-top: 44px; }
}
.cta-qr[hidden] { display: none; }
.cta-qr svg { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) { .cta-qr { display: none; } }
/* desktop, 2026-10-05: at the end of the page the headline, rules and badge sat low in the window (315 px of black
   above them, 162 px between the badge and the footer's links at 1440×900). The space under the badge now grows until
   those two are equal: half of what the window has left over the group, the footer and the footer's top padding.
   Never less than the band set on 2026-10-01, and capped, so a very tall window does not open a hole above the
   footer. --cta-group is the group's own height, from the same clamps as the rules above (two lines at 1.05, the gap,
   both rules less their pull-up, the badge and its margin); the footer metrics are in the tokens; the 0.32em (5 px,
   in em so the large-monitor tier leaves it alone) is what the badge's line box leaves under it. */
@media (min-width: 921px) {
  .cta {
    --cta-group: calc(2.1 * clamp(2.375rem, 6.85vw, 7.375rem) + clamp(10px, 1.16vw, 20px) + 2 * (var(--cta-rule) + clamp(-10px, -0.58vw, -3px)) + clamp(36px, 3.7vw, 64px) + clamp(46px, 3.4vw, 58px));
    padding-bottom: clamp(clamp(60px, 7vw, 112px), calc((100svh - var(--cta-group) - var(--footer-h) - var(--footer-pt)) / 2 - 0.32em), clamp(140px, 17vw, 280px));
  }
}
/* entrance (main.js adds .is-in when the section is ~20 % up the viewport): line one and its solid rule wipe in
   together from the left (1.35 s from 0.25 s); line two and its dash row wipe in together (1.35 s from 1.05 s);
   then the badge rises at 1.95 s. Text and rules share one easing and width so the fronts move together. */
.cta {                                            /* entrance timing in one place (slowed 2026-09-11 at Will's request) */
  --cta-wipe: 1.35s;                              /* each left-to-right sweep */
  --cta-l1: 0.25s;                                /* line one + solid rule start */
  --cta-l2: 1.05s;                                /* line two + dash row start (line one is ~60 % through) */
  --cta-badge: 1.95s;                             /* badge rises as line two finishes */
}
.cta-text, .cta-rule--solid { transition: clip-path var(--cta-wipe) cubic-bezier(0.2, 0.8, 0.2, 1) var(--cta-l1); }
.cta-line--2 .cta-text, .cta-rule--dashes { transition: clip-path var(--cta-wipe) cubic-bezier(0.2, 0.8, 0.2, 1) var(--cta-l2); }   /* line two and its dash row sweep together */
.cta-badge { transition: opacity 0.8s ease var(--cta-badge), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--cta-badge); }
/* the resting clip must be a shape too (a transition to `none` has no in-between values and just snaps);
   the negative top/bottom/left insets keep descenders and glyph overhang unclipped */
.js .cta-text, .js .cta-rule--solid, .js .cta-rule--dashes { clip-path: inset(-0.35em -0.1em -0.35em -0.1em); }
.js .cta:not(.is-in) .cta-text, .js .cta:not(.is-in) .cta-rule--solid, .js .cta:not(.is-in) .cta-rule--dashes { clip-path: inset(-0.35em 100% -0.35em -0.1em); }   /* left-to-right wipes; clip-path so gradients never stretch */
.js .cta:not(.is-in) .cta-badge { opacity: 0; transform: translateY(18px); }
@media (max-width: 480px) {                       /* the upright rule and pills draw from the top down while their words wipe in */
  .js .cta:not(.is-in) .cta-rule--solid, .js .cta:not(.is-in) .cta-rule--dashes { clip-path: inset(-0.1em -0.1em 100% -0.1em); }
}

/* 5h. Launch gate (index.html only, while SITE_LOCKED is true in main.js). <html data-gate> holds <main> back
   until main.js has decided; locked, a six-slot code field sits where the page would be. No JS: no gate. */
html.js[data-gate] body > main:not(.gate),
html.js[data-gate] .skip-link { display: none; }
html.js[data-gate=""] .site-footer { display: none; }   /* back once main.js has decided, so the footer never jumps */
.gate {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px) var(--gutter);
  text-align: center;
}
.gate-label {
  display: block;
  font-size: clamp(1.0625rem, 1.51vw, 1.625rem);
  font-weight: 600;
  color: var(--gray-light);
}
.gate-field {
  --slot: clamp(36px, 11.5vw, 64px);              /* 45 px at 390, 37 px at 320, 64 px from 557 px up */
  --gap: clamp(10px, 1.1vw, 16px);
  --rule: clamp(6px, 0.62vw, 9px);
  position: relative;
  width: calc(6 * var(--slot) + 5 * var(--gap));
  margin: clamp(26px, 2.8vw, 40px) auto 0;
}
.gate-input {                                     /* the one real field: invisible, stretched over the six slots that mirror it */
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;                                /* below 16 px iOS zooms the page on focus */
  cursor: text;
}
.gate-slots { display: grid; grid-template-columns: repeat(6, var(--slot)); gap: var(--gap); }
.gate-slot { position: relative; display: block; }
.gate-slot b {
  display: block;
  height: calc(var(--slot) * 1.22);
  font-size: calc(var(--slot) * 0.98);
  font-weight: 800;
  line-height: calc(var(--slot) * 1.22);
  color: var(--white);
}
.gate-slot i {                                    /* six dashes sharing one continuous rainbow, like the CTA's dash row */
  position: relative;
  display: block;
  height: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}
.gate-slot i::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-1 * var(--k) * (100% + var(--gap)));
  width: calc(600% + 5 * var(--gap));
  height: 100%;
  background: linear-gradient(90deg, #FACF33 0%, #FF8C1A 18%, #FF423A 34%, #FF00D0 50%, #9700FF 64%, #3D7FFF 80%, #2EE06E 100%);
}
.gate-slot.is-filled i,
.gate-input:focus ~ .gate-slots .gate-slot.is-active i { opacity: 1; }
.gate-input:focus ~ .gate-slots .gate-slot.is-active:not(.is-filled)::before {   /* caret in the slot that takes the next digit; with its lit dash it is the focus mark */
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 2px;
  height: 50%;
  margin-left: -1px;
  background: var(--white);
  animation: gate-caret 1.1s steps(1) infinite;
}
.gate-field.is-wrong { animation: gate-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.gate-msg {
  min-height: 1.4em;
  margin-top: clamp(18px, 1.6vw, 24px);
  font-size: clamp(0.875rem, 0.95vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray);
}
@keyframes gate-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

/* 5g. Secondary pages: support / privacy / cookies (reference/pages). One centred card under a page title,
   the footer pinned to the bottom of the viewport when the content is short. */
body.page { min-height: 100svh; display: flex; flex-direction: column; }
body.page main { flex: 1 0 auto; }
.page-hero { text-align: center; }
.page-title {
  font-size: var(--fs-h2);                        /* 80 px, like the home section titles */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.page-sub {
  margin-top: clamp(12px, 1.2vw, 21px);
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--gray);
}
.page-body { padding-top: clamp(28px, 3vw, 52px); padding-bottom: clamp(48px, 5vw, 80px); }
.page-back { margin-top: clamp(28px, 3vw, 52px); font-size: var(--fs-body); font-weight: 700; }   /* 404: the one link back home */
.page-back a { color: var(--white); text-decoration: underline; text-underline-offset: 0.14em; }
.page-back a:hover { color: var(--gray-light); }
.page-card {                                      /* 1021 px, 3 px conic rainbow frame, black inside */
  position: relative;
  max-width: 1021px;
  margin-inline: auto;
  padding: clamp(18px, 1.4vw, 24px) clamp(20px, 2.1vw, 36px) clamp(22px, 2vw, 34px);
  border: 4px solid transparent;
  border-radius: 16px;
  background: linear-gradient(var(--black), var(--black)) padding-box, var(--rainbow-conic) border-box;
}
.page-card-icon {
  position: absolute;
  top: clamp(18px, 1.85vw, 32px);
  right: clamp(18px, 1.8vw, 31px);
  width: clamp(34px, 2.8vw, 48px);
  height: auto;
  color: var(--white);
}
.page-card h2 {
  padding-right: clamp(50px, 4vw, 70px);          /* keep clear of the icon */
  font-size: clamp(1.5rem, 2.67vw, 2.875rem);     /* 46 px */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.page-card p {
  margin-top: 10px;                               /* runs the card's full inner width, as the reference does */
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-light);
}
.page-card h2 + p { margin-top: clamp(6px, 0.5vw, 8px); }
.page-mail { font-weight: 700; color: var(--white); text-decoration: underline; text-underline-offset: 0.12em; }
.page-card .page-card-note,
.page-card .page-card-links {                     /* the small gray line(s) at the foot of the card */
  margin-top: clamp(22px, 1.75vw, 30px);
  font-size: clamp(0.9375rem, 1.05vw, 1.125rem);  /* 18 px */
  font-weight: 500;
  color: var(--gray);
}
.page-card-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; max-width: none; }
.page-card-links a { color: var(--gray); text-decoration: underline; text-underline-offset: 0.12em; }
.page-card-links a:hover, .page-mail:hover { color: var(--white); }
.page-card--plain {                               /* "Questions about your data?": 2 px gray frame, link on the right */
  margin-top: clamp(24px, 2.1vw, 36px);
  padding: clamp(18px, 1.4vw, 24px) clamp(20px, 2.1vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  border: 2px solid #555;
  background: none;
}
.page-card--plain p { margin: 0; font-weight: 500; }
.page-card-link { font-size: var(--fs-body); font-weight: 600; color: var(--gray-light); text-decoration: underline; text-underline-offset: 0.14em; }
.page-card-link:hover { color: var(--white); }
/* Support: "Send feedback", a second card under the main one (2026-10-05). The gray frame of the "Questions about your
   data?" card, so the rainbow card stays the page's first read; a short list of what is useful to hear and one mailto
   button with the subject and a few prompts filled in. /feedback redirects to its anchor (firebase.json). */
.page-card--feedback { margin-top: clamp(24px, 2.1vw, 36px); border: 2px solid #555; background: none; scroll-margin-top: 24px; }
.page-card--feedback h2 { font-size: clamp(1.375rem, 2.1vw, 2.25rem); }   /* 36 px, a step under the main card's 46 */
.page-card--feedback .page-card-icon { width: clamp(30px, 2.4vw, 42px); color: var(--gray-light); }
.page-list { display: grid; gap: clamp(6px, 0.5vw, 8px); margin-top: clamp(10px, 0.9vw, 14px); }
.page-list li {
  position: relative;
  padding-left: 1.25em;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray-light);
}
.page-list li::before { content: ""; position: absolute; left: 0.15em; top: 0.45em; width: 0.4em; height: 0.4em; border-radius: 50%; background: var(--white); }
.page-card .page-card-action { margin-top: clamp(18px, 1.5vw, 24px); }
.page-button {
  display: inline-block;
  padding: 0.62em 1.15em;
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}
.page-button:hover { background: var(--white); color: var(--black); }
.page-button:focus-visible { border-radius: 999px; }
.page-card--feedback .page-card-note { margin-top: clamp(16px, 1.3vw, 22px); }

/* 5a. What Trojected is (round 5, 2026-10-04) --------------------------------
   The page's plain statement, directly under the hero: a lead line (the section's h2), the rainbow rule, and the
   app's cycle as three terms joined by thin arrows, with a return path under them from Log Work back to Timelines.
   Type and lines only: no cards, no badges, no icons. On phones the three stack with down arrows and a loop mark. */
.what {
  --what-gap: clamp(44px, 6.4vw, 110px);         /* between two terms; the arrows sit in it */
  --what-line: #8a8a8a;
  padding: clamp(60px, 7.8vw, 134px) 0 clamp(88px, 11.8vw, 204px);   /* 2026-10-04: more air above and below (was 48 / 5.6vw / 96 and 36 / 4.2vw / 72); 2026-10-05: more again below, so the return path sits further from "Control the Chaos" than any two sections sit from each other (was 56 / 6.95vw / 120) */
  text-align: center;
}
.what-lead {
  font-size: clamp(1.1875rem, 2.05vw, 2.1875rem);   /* 35 px */
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.what-rule {
  display: block;
  height: clamp(5px, 0.5vw, 8px);
  margin: clamp(18px, 1.9vw, 32px) 0 clamp(24px, 2.6vw, 44px);
  border-radius: 99px;
  background: var(--rainbow-linear);
}
.what-loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--what-gap); }
.what-item { position: relative; }
.what-term {
  font-size: clamp(1.25rem, 2.9vw, 3.125rem);    /* 50 px */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.what-def {
  max-width: 21em;
  margin: clamp(8px, 0.9vw, 16px) auto 0;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray);
  text-wrap: balance;
}
.what-arrow {                                    /* in the gap to the left of the second and third terms, on the term's own line */
  position: absolute;
  right: 100%;
  top: 0;
  width: calc(var(--what-gap) * 0.5);
  height: calc(clamp(1.25rem, 2.9vw, 3.125rem) * 1.1);
  margin-right: calc(var(--what-gap) * 0.25);
  color: var(--what-line);
}
.what-return {                                   /* from under Log Work back to Timelines: the two outer columns' centres */
  position: relative;
  display: block;
  height: clamp(20px, 2.2vw, 38px);
  margin: clamp(16px, 1.7vw, 28px) calc((100% - 2 * var(--what-gap)) / 6) 0;
  border: 2px solid var(--what-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  clip-path: inset(-12px);                       /* room for the arrowhead, which sits outside the box */
}
.what-return-tip { position: absolute; left: -8px; top: -6px; width: 14px; height: 9px; color: var(--what-line); }
.what-return-loop { display: none; }
/* entrance (generic [data-reveal]): the lead and the three terms rise in turn, the rule wipes in, then the return path is drawn */
.what-lead, .what-item { transition: opacity 0.6s ease, transform 0.6s ease; }
.what-item { transition-delay: calc(0.25s + var(--i, 0) * 0.12s); }
.what-rule { transition: clip-path 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s; }
.what-return { transition: clip-path 0.8s ease 0.85s, opacity 0.5s ease 0.85s; }
.js .what:not(.is-in) .what-lead, .js .what:not(.is-in) .what-item { opacity: 0; transform: translateY(18px); }
.js .what:not(.is-in) .what-rule { clip-path: inset(0 100% 0 0); }
.js .what:not(.is-in) .what-return { clip-path: inset(-12px -12px -12px 100%); }
@media (max-width: 720px) {
  .what-loop { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .what-term { font-size: 1.625rem; white-space: normal; }
  .what-arrow { position: static; display: block; width: 30px; height: 22px; margin: 4px auto 12px; transform: rotate(90deg); }
  .what-return { height: auto; margin: 12px 0 0; border: 0; clip-path: none; }
  .what-return-tip { display: none; }
  .what-return-loop { display: block; width: 26px; height: 26px; margin: 0 auto; color: var(--what-line); }
  .js .what:not(.is-in) .what-return { clip-path: none; opacity: 0; }
}

/* 5b. Control the Chaos ---------------------------------------------------- */
.chaos { padding-top: clamp(32px, 4.5vw, 72px); padding-bottom: clamp(80px, 10vw, 160px); }
.chaos .section-sub { margin-bottom: clamp(40px, 4.4vw, 76px); }
.chaos-stage {
  display: grid;
  grid-template-columns: minmax(0, clamp(340px, 35.9vw, 618px)) minmax(0, 1fr);   /* 618 px at the reference width, shrinking with the text */
  column-gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.chaos-cards { display: grid; gap: clamp(24px, 2.5vw, 44px); }
.chaos-item { display: grid; position: relative; }
.chaos-item::before {                      /* rainbow glow behind the active box; the box's black fill hides it inside */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-card);
  background: var(--rainbow-conic);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.chaos-card {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2vw, 34px) clamp(22px, 2.1vw, 36px);
  border: 2px solid transparent;
  border-radius: var(--radius-card);
  background: linear-gradient(var(--black), var(--black)) padding-box, var(--rainbow-conic) border-box;
  transition: opacity 0.45s ease, transform 0.6s ease;
}
.chaos-card h3 {
  font-size: clamp(1.5rem, 2.67vw, 2.875rem);   /* 46 px */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.chaos-card p {
  margin-top: clamp(8px, 0.7vw, 12px);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--gray);
}
.chaos-card p em { color: var(--white); font-style: italic; font-weight: 700; }
.chaos-card-shot { display: none; }             /* phone view only */

.chaos-phone, .action-phone { display: flex; justify-content: center; align-items: center; min-width: 0; }   /* the phone column of either stage */
.phone-stack {                                   /* the trimmed Rotato export (1168×2422); 88svh so the bar labels reach ~11 px at 1440×900 (2026-10-02). The box is
                                                    sized by its width, with the height bound folded in, so it keeps the device's aspect in a narrow column too
                                                    (2026-10-05: on portrait tablets it used to keep the svh height while the column clamped its width, and the
                                                    clips and the pair, which are percentages of this box, were squeezed with it) */
  position: relative;
  width: min(100%, calc(min(88svh, 820px) * 1168 / 2422));
  aspect-ratio: 1168 / 2422;
}
.phone-front > picture, .phone-back > picture { position: absolute; inset: 0; }
/* A pair (2026-10-03): one phone in front leaning clockwise, a second behind it leaning the other way, lower and to the
   left. Angles, scale and offset were measured from Will's Rotato layout for card 1 (front +8.5°, back −13.2°,
   back 87.3 %, its centre 59.1 % of a phone-width left and 24.8 % of a phone-width lower). Section 3 uses the mirror
   image (front −8.5°, back +13.2° and to the right). Both are separate layers;
   the front wrapper carries the rotation, and the stills and clips sit inside it, so they stay registered at any
   angle. main.js centres the pair in its column, keeps the scale the viewport's height allows and narrows the offset
   between the two phones until the pair fits the column (--back-x / --pair-s / --pair-x / --pair-y), and sets
   .is-leaning on the states listed in data-lean: card 1 in section 2 (the Activity phone behind, dimmed and blurred
   as a backdrop), steps 2 and 3 in section 3 (the screen each sheet opens from, kept readable). Without the class
   the back phone is faded out and the front one sits at 0°, the column centre and full size; the change either way
   is one 450 ms transform. The fallback values are for a 1440×900 window with no JS, where only card 1 leans. */
.phone-pair {
  --lean-front: 8.5deg;
  --lean-back: -13.2deg;
  --back-scale: 0.873;
  --back-x: -59.1%;
  --back-y: 11.96%;
  position: absolute;
  inset: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-pair.is-leaning { transform: translate(var(--pair-x, 27%), var(--pair-y, -3%)) scale(var(--pair-s, 0.94)); }
.phone-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-pair.is-leaning .phone-front { transform: rotate(var(--lean-front)); }
.phone-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translate(var(--back-x), var(--back-y)) rotate(var(--lean-back)) scale(var(--back-scale));
  filter: brightness(0.55) blur(1.5px);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.phone-pair.is-leaning .phone-back { opacity: 1; }
.phone-back img { width: 100%; height: 100%; object-fit: contain; }
.phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.08));
}
.phone-shot.is-active { opacity: 1; }
.phone-clip {                                    /* C2: the simulator recording over the still's screen. The screen is the raw at 0.897 placed at (42,36) in the 1168×2422 export,
                                                    so 3.6 % / 1.49 % / 92.6 % / 97.1 %; the corner radius is ~148 export px = 13.7 % of the screen width, 6.3 % of its height (2026-10-02) */
  position: absolute;
  left: 3.68%;                                   /* the screen sits at (43,36) of the 1168×2422 device, 1082×2352 */
  top: 1.49%;
  width: 92.64%;
  height: 97.11%;
  border-radius: 13.7% / 6.3%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.phone-clip video { display: block; width: 100%; height: 100%; object-fit: fill; background: #000; }
.phone-clip.is-playing { opacity: 1; }           /* visible only once the clip is actually playing; the still underneath is the fallback, and the last frame holds */

@media (min-width: 901px) {                      /* the pinned layout; portrait tablets get the phone layout since 2026-10-05 (PAGE_AUDIT row 36) */
  .chaos-cards { grid-auto-rows: 1fr; }          /* the three cards are always the same height, whatever wraps (tweaks round, item 2) */
  .js .chaos-card { opacity: 0.4; }              /* inactive cards sit back while the stage is pinned */
  .js .chaos-card.is-active { opacity: 1; }
  .js .chaos-item.is-active::before { opacity: 0.5; }
}
.js .chaos-card:not(.is-in) { opacity: 0; transform: translateY(24px); }   /* entrance, revealed by JS */


/* 5c. See It In Action ------------------------------------------------------ */
.action { padding-top: clamp(32px, 4.5vw, 72px); padding-bottom: clamp(80px, 10vw, 160px); }
.action .section-sub { margin-bottom: clamp(40px, 4.4vw, 76px); }
.action-stage {                                  /* mirror of the chaos stage: phones left, steps right (2026-10-03: phones only, a single one on steps 1 and 4, a pair on 2 and 3) */
  --badge: clamp(40px, 3.54vw, 61px);
  --badge-overhang: calc(var(--badge) / 2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(clamp(400px, 35.9vw, 618px) + var(--badge-overhang)));   /* 400 px floor: the one-line subs need it at 1024 px (tweaks round, item 3) */
  column-gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.action .phone-pair {                            /* section 2's V mirrored (2026-10-04): the stage is on the other side of the page, and with the back phone on the right its right edge is clear, where the room's deadline boxes are */
  --lean-front: -8.5deg;
  --lean-back: 13.2deg;
  --back-x: 59.1%;
  --back-clear: 0.47;                            /* in a narrow column the back phone tucks in no further than this share of its width left clear: all six deadline boxes of the room stay visible from 46 % (main.js fitPair; the default is a third) */
}
.action .phone-back { filter: brightness(0.8); }  /* this back phone carries content (step 2's todo colours, step 3's selected rows): lighter than card 1's backdrop, no blur */
.action-steps {
  display: grid;
  gap: clamp(18px, 1.63vw, 28px);
  padding-left: var(--badge-overhang);           /* room for the half of the badge outside each card */
}
.action-item { display: grid; position: relative; }
.action-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;                        /* title over its one-line sub (PAGE_AUDIT row 4) */
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.4vw, 7px);
  min-height: clamp(64px, 5.86vw, 101px);
  padding: clamp(14px, 1.3vw, 22px) clamp(20px, 2.4vw, 40px) clamp(14px, 1.3vw, 22px) clamp(40px, 3.6vw, 62px);
  border: 1px solid #555;
  border-radius: var(--radius-step);
  background: var(--black);
  transition: opacity 0.45s ease, transform 0.6s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.action-step h3 {
  font-size: clamp(1.375rem, 2.67vw, 2.875rem);   /* 46 px */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
}
.action-step p {
  max-width: 30em;
  font-size: clamp(0.9375rem, 1.05vw, 1.125rem);  /* 18 px */
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--gray);
}
.step-num {                                      /* rainbow-bordered number, centred on the card's left edge */
  position: absolute;
  left: calc(-1 * var(--badge-overhang));
  top: 50%;
  transform: translateY(-50%);
  width: var(--badge);
  height: var(--badge);
  display: grid;
  place-items: center;
  font-size: clamp(1.25rem, 2.55vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-badge);
  background: linear-gradient(var(--black), var(--black)) padding-box, var(--rainbow-conic) border-box;
}
@media (min-width: 901px) { .action-step-shot { display: none; } }   /* shots are for the phone layout only */

@media (min-width: 901px) {
  .js .action-step { opacity: 0.4; }
  .js .action-step.is-active {
    opacity: 1;
    border-color: #9a9a9a;
    box-shadow: 0 0 34px rgba(255, 255, 255, 0.08);
  }
}
.js .action-step:not(.is-in) { opacity: 0; transform: translateY(24px); }

/* Cards and steps as buttons (S16). main.js gives each one role="button" and a tab stop while its stage follows the
   cards (the desktop layouts; never on phones, where there is nothing to drive): a click, Enter or Space scrolls the
   page to that card's state. Inactive ones brighten a little under a pointer so they read as clickable. */
.chaos-card[role="button"], .action-step[role="button"] { cursor: pointer; -webkit-user-select: none; user-select: none; }
.chaos-card[role="button"]:focus-visible, .action-step[role="button"]:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.js .chaos-card[role="button"]:focus-visible, .js .action-step[role="button"]:focus-visible { opacity: 1; }   /* the ring is never dimmed with an inactive card */
@media (hover: hover) {
  .js .chaos-card[role="button"]:not(.is-active):hover, .js .action-step[role="button"]:not(.is-active):hover { opacity: 0.62; }
}

/* 5e. Timeline-Smart Features ---------------------------------------------- */
.features { padding-top: clamp(32px, 4.5vw, 72px); padding-bottom: clamp(80px, 10vw, 160px); }
.features .section-sub { margin-bottom: clamp(30px, 3.2vw, 56px); }
.feature-grid {                                   /* featured card across the top, then 3 + 3 */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto repeat(2, minmax(0, 1fr));   /* the two rows of small cards share one height (tweaks round, item 4) */
  gap: clamp(30px, 3.9vw, 66px) clamp(20px, 2.26vw, 39px);   /* (d) taller row gap: each card reads as a unit; rows a little further apart again 2026-10-05 (was 24 / 3vw / 52). The column gap sets the cards' width and with it every line break, so it stays */
}
.feature {                                        /* border + icon in the card's own accent */
  --accent: var(--blue);
  /* (a) calm frames: ~60 % accent at the top-left fading to a grayed accent; the icon carries the full colour */
  --accent-head: color-mix(in srgb, var(--accent) 60%, #2a2a2a);
  --accent-tail: color-mix(in srgb, var(--accent) 22%, #202020);
  --i: 0;
  position: relative;
  min-height: clamp(120px, 9.9vw, 170px);
  padding: clamp(18px, 1.57vw, 27px) clamp(22px, 2.1vw, 36px);   /* 170 px tall at the reference width */
  border: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    linear-gradient(135deg, var(--accent-head) 0%, var(--accent-tail) 100%) border-box;
  /* entrance (opacity/transform, staggered by column --i and row --row-delay) + hover glow (box-shadow) */
  --enter-delay: calc(var(--i) * 70ms + var(--row-delay, 0ms));
  transition:
    box-shadow 0.25s ease,
    opacity 0.6s ease var(--enter-delay),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--enter-delay);
}
@media (hover: hover) {
  .feature:hover {                                /* border to the full accent, glow outside only */
    --accent-head: var(--accent);
    --accent-tail: var(--accent);
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent);
  }
  .feature.is-settled:hover { transform: translateY(-3px); }   /* lift */
}
.feature.is-settled {                             /* after the entrance: no stagger delays on hover */
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.js .feature:not(.is-in) { opacity: 0; transform: translateY(24px); }   /* each card reveals as its row scrolls in */
.feature-icon .draw {                             /* icon shapes stroke in one after another (--t / --d set per shape by main.js); main.js starts each icon in turn */
  transition: stroke-dashoffset var(--d, 0.45s) ease var(--t, 0s);
}
.feature { grid-column: span 2; }                 /* six small cards, three per row */
.feature--featured {                              /* Priorities: the section's hero, rainbow frame, live demo */
  grid-column: 1 / -1;
  --frame: 3px;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);  /* wide text column keeps the card short */
  column-gap: clamp(24px, 3.5vw, 60px);
  align-items: center;
  padding: clamp(22px, 1.9vw, 32px) clamp(24px, 2.6vw, 44px);
  border-width: var(--frame);
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    var(--rainbow-conic) border-box;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
}
@media (hover: hover) {
  .feature--featured:hover {
    background:
      linear-gradient(var(--black), var(--black)) padding-box,
      var(--rainbow-conic) border-box;
    box-shadow: 0 0 70px rgba(255, 255, 255, 0.1);
  }
}
.feature--featured .feature-head .feature-icon { width: clamp(34px, 2.55vw, 44px); }
.feature.feature--featured h3 { font-size: clamp(1.75rem, 3.2vw, 3.5rem); }   /* 56 px, outranks .feature h3 */
.feature .feature-lead {                          /* outranks .feature p */
  max-width: none;
  margin-top: clamp(10px, 0.9vw, 14px);
  font-size: clamp(1.125rem, 1.51vw, 1.625rem);                            /* 26 px */
  font-weight: 700;
  color: var(--white);
}
.feature--featured .feature-main > p:last-child { max-width: 46em; }

/* live demo: three mini timelines, the app's TimelineCellV2 in miniature (label inside the gradient when
   the bar is tall enough, else above it; deadline + goal pills; name on black; white-to-colour when
   ahead), stepping through a scripted loop and re-ranking by priority (main.js) */
.priority-demo { --c-hint: var(--white); display: grid; gap: clamp(10px, 0.9vw, 14px); justify-items: center; }
.pd-stage {
  --g: clamp(10px, 1.2vw, 18px);
  position: relative;
  width: 100%;
  max-width: 290px;
  height: clamp(136px, 9.3vw, 156px);
}
.pd-bar {                                          /* one cell column; --slot = rank, highest priority left */
  position: absolute;
  bottom: 0;
  left: calc(var(--slot) * (100% + var(--g)) / 3);
  width: calc((100% - 2 * var(--g)) / 3);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.pd-stage.is-reset .pd-bar { opacity: 0; }
.pd-stage.is-snap *, .pd-stage.is-snap *::before, .pd-stage.is-snap *::after { transition: none !important; }
.pd-cell {                                         /* the app's borderView: black, colour glow; holds body + pills + name */
  --glow-c: var(--c);
  height: var(--h);
  display: flex;
  flex-direction: column;
  padding: 3px 3px 0;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 22px color-mix(in srgb, var(--glow-c) 45%, transparent);
  transition: height 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.pd-bar.is-ahead .pd-cell { --glow-c: #fff; }
.pd-bar.is-mover .pd-cell {                        /* "about to move": the app's white guide outline */
  box-shadow: 0 0 26px color-mix(in srgb, var(--glow-c) 60%, transparent), 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.pd-body {                                         /* the app's timeView: colour at the top fading to black */
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--c) 0%, #000 100%);
  overflow: hidden;
}
.pd-body::after {                                  /* negative level: white at the bottom instead of black */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--c) 0%, #fff 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pd-bar.is-ahead .pd-body::after { opacity: 1; }
.pd-top {                                          /* state word over the signed level */
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(0.6875rem, 0.75vw, 0.8125rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--white);
  text-shadow: 0.9px 0.9px 0 rgba(0, 0, 0, 0.7);
  transition: opacity 0.35s ease;
}
.pd-top b { display: block; }
.pd-top--in { position: absolute; top: 5px; left: 0; z-index: 1; }
.pd-top--out { position: relative; padding-bottom: 2px; }
.pd-bar.is-out .pd-top--in, .pd-bar:not(.is-out) .pd-top--out { opacity: 0; }
.pd-bar.is-ahead .pd-top--in { text-shadow: 1.6px 1.6px 0 rgba(0, 0, 0, 0.7); }   /* deeper shadow on the lighter fill, like the app */
.pd-pills { display: flex; align-items: center; gap: 4px; height: 12px; padding: 0 1px; }
.pd-pill {                                         /* deadline (blue, left) and weekly goal (green, right); --warn = the app's warning border */
  --pc: var(--blue);
  position: relative;
  flex: 1 1 0;
  height: 7px;
  border-radius: 4px;
  border: 1px solid var(--warn, transparent);
  background: #242424;
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.pd-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--p) * 100%);
  border-radius: 4px;
  background: linear-gradient(90deg, #000 0%, var(--pc) 100%);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pd-pill--goal { --pc: var(--green); }
.pd-name {
  display: block;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: clamp(0.6875rem, 0.75vw, 0.8125rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  color: var(--white);
  transition: color 0.3s ease;
}
.pd-chips {                                       /* the highlighted timeline's score breakdown, in the app's factor icons */
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-chip-label { min-width: 4.8em; text-align: right; font-size: 0.75rem; font-weight: 700; color: var(--gray); margin-right: 2px; }
.pd-chip {
  --c: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid #333;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pd-chip-icon { width: 15px; height: 15px; color: var(--c); }
.pd-chip-val { min-width: 2em; text-align: center; }
.pd-chip.is-hint,
.priority-demo[data-hint="all"] .pd-chip {
  transform: translateY(-2px) scale(1.08);
  border-color: var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent);
}
.pd-chip.is-updated { animation: pd-chip-pop 0.7s ease; }
@keyframes pd-chip-pop {
  35% { transform: translateY(-2px) scale(1.1); border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent); }
}
.priority-demo[data-hint="rank"] .pd-name { color: var(--yellow); }
.pd-caption {
  min-height: 4.2em;                              /* room for three lines: the longest caption wraps to three, and the card must not jump mid-loop */
  font-size: clamp(0.75rem, 0.8vw, 0.875rem);
  font-weight: 600;
  font-style: italic;
  color: var(--gray);
  text-align: center;
  transition: opacity 0.3s ease;
}
.feature .pd-caption em { color: #b4b4b4; font-style: italic; }   /* the caption sits back with the body emphasis (it was white) and keeps its italic; the selector has to outrank .feature p em */
.pd-caption.is-swap { opacity: 0; }
.pd-steps { display: flex; gap: 4px; margin-top: -4px; }   /* step dots: click to jump; the loop also holds while the card is hovered or focused */
.pd-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pd-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c3c3c;
  transition: background 0.3s ease, transform 0.3s ease;
}
.pd-dot:hover::before { background: #8a8a8a; }
.pd-dot[aria-current="step"]::before { background: var(--white); transform: scale(1.25); }
.pd-dot:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; border-radius: 50%; }
.feature-tag {                                    /* role label in the card's accent: top-left, in flow, so every card's label sits where the featured card's does */
  display: block;
  margin-bottom: clamp(8px, 0.7vw, 12px);
  font-size: clamp(0.6875rem, 0.75vw, 0.8125rem);  /* 13 px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c8c8c;                                  /* neutral since 2026-10-05 (6.3:1 on black); in the card's accent the seven tags competed with the icons, and the purple one was 3.8:1 */
}
.feature-head {                                   /* (b) icon leads the title: one left-aligned scan path */
  display: flex;
  align-items: center;
  gap: clamp(10px, 0.9vw, 14px);
}
.feature h3 {
  font-size: clamp(1.5rem, 2.67vw, 2.875rem);     /* 46 px */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: clamp(12px, 0.95vw, 16px);          /* (d) a little more air under the title */
  max-width: 32em;                                /* (d) shorter measure */
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--gray);
}
.feature p em { color: #d2d2d2; font-style: normal; font-weight: 600; }   /* (c) emphasis, not a second headline; upright light gray since 2026-10-05 (13.9:1 on black, 1.86:1 against the body gray; it was italic white) */
.feature-icon {
  flex: 0 0 auto;
  width: clamp(30px, 2.2vw, 38px);
  height: auto;
  color: var(--accent);
}

/* icon hover motion on the six small cards (hover-capable devices; off under reduced motion) */
@media (hover: hover) {
  .feature-icon g, .feature-icon path, .feature-icon circle, .feature-icon rect { transform-box: view-box; }
  /* Goals: the dart sways about the bullseye centre, its tip sweeping along the ring */
  .feature:hover .ic-dart { transform-origin: 12px 12px; animation: ic-sway 2.4s ease-in-out infinite alternate; }
  /* Sessions: the minute hand ticks forward, the hour hand creeps */
  .feature:hover .ic-min { transform-origin: 12px 12px; animation: ic-tick 6s steps(12, end) infinite; }
  .feature:hover .ic-hr { transform-origin: 12px 12px; animation: ic-creep 6s linear infinite; }
  /* Weights: the beam rocks about the pivot, right down as left goes up, and back */
  .feature:hover .ic-beam { transform-origin: 12px 6.5px; animation: ic-rock 2.6s ease-in-out infinite alternate; }
  /* Statistics: the arrow pivots at the line's last bend, so the line's end follows its direction */
  .feature:hover .ic-arrow { transform-origin: 12.5px 15.5px; animation: ic-point 2s ease-in-out infinite alternate; }
  /* Auto Align: the three strokes twinkle out of phase */
  .feature:hover .ic-align path { animation: ic-twinkle 1.6s ease-in-out infinite alternate; }
  .feature:hover .ic-align path:nth-child(2) { animation-delay: -0.55s; }
  .feature:hover .ic-align path:nth-child(3) { animation-delay: -1.1s; }
  /* Todos: the box walks the app's checkbox states: white unchecked → orange (due soon) → green checked
     → orange unchecked → red (overdue) → yellow checked → white unchecked; the check draws in the box's colour */
  .feature:hover .ic-todo-box { animation: ic-box 6.6s linear infinite; }
  .feature:hover .ic-todo-check { animation: ic-check 6.6s linear infinite; }
}
@keyframes ic-sway { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes ic-tick { to { transform: rotate(360deg); } }
@keyframes ic-creep { to { transform: rotate(30deg); } }
@keyframes ic-rock { from { transform: rotate(0deg); } to { transform: rotate(15deg); } }
@keyframes ic-point { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes ic-twinkle { from { opacity: 1; } to { opacity: 0.35; } }
@keyframes ic-box {                              /* seven phases of ~0.95 s; short colour blends between them */
  0%, 12.5% { stroke: #fff; }
  14.5%, 27% { stroke: var(--orange); }
  29%, 41.5% { stroke: var(--green); }
  43.5%, 56% { stroke: var(--orange); }
  58%, 70.5% { stroke: var(--red); }
  72.5%, 85% { stroke: var(--yellow); }
  87%, 100% { stroke: #fff; }
}
@keyframes ic-check {                            /* draws in during the green and yellow phases, retracts before each ends */
  0%, 29% { stroke-dashoffset: var(--off); stroke: var(--green); }
  33%, 39.5% { stroke-dashoffset: 0; stroke: var(--green); }
  43.5%, 72.5% { stroke-dashoffset: var(--off); stroke: var(--yellow); }
  76.5%, 83% { stroke-dashoffset: 0; stroke: var(--yellow); }
  87%, 100% { stroke-dashoffset: var(--off); stroke: var(--yellow); }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-rows: auto repeat(3, minmax(0, 1fr)); }   /* three rows of two */
  .feature { grid-column: span 3; }                                       /* small cards: two per row */
  .feature--featured { grid-column: 1 / -1; }
  .feature--featured { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }   /* text over the demo */
  .priority-demo { justify-self: center; width: min(100%, 420px); }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 26px; }
  .feature { min-height: 0; }
  .feature { grid-column: 1 / -1; }
  .feature--featured { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .pd-stage { max-width: 260px; height: 150px; }
}

/* 5d. Phone layout for both pinned stages (after both blocks on purpose) --- */
@media (max-width: 900px) {
  /* phone layout for both stages. The pinned two-column stage holds down to 901 px; portrait tablets (768, 820, 834)
     take this layout since 2026-10-05 (PAGE_AUDIT row 36): there the pinned pair was a 136–169 px phone behind
     2,400–2,800 px of pinned scroll. The pictures stop at 440 px wide and sit centred, so a 680 px column does not
     get a 680 px phone; a phone's column is narrower than that, so nothing changes at 390. */
  .chaos-stage, .action-stage { grid-template-columns: minmax(0, 1fr); }
  .chaos-phone, .action-phone { display: none; }
  .chaos-cards, .action-steps { gap: clamp(40px, 8vw, 64px); }
  /* the step number sits on the card's top edge, centred, so the card takes the whole column and its text is centred
     on the page (2026-10-05; on the left edge it pushed the card 20 px in and the text 30 px off the middle) */
  .action-steps { padding-left: 0; row-gap: calc(clamp(40px, 8vw, 64px) + var(--badge-overhang)); }
  .action-step { padding: calc(var(--badge-overhang) + 10px) 20px 18px; }
  .step-num { left: 50%; top: 0; transform: translate(-50%, -50%); }
  .chaos-card { text-align: center; }        /* phones: card text centred like the titles above it and the step cards below (2026-10-05) */
  .action-step-shot, .chaos-card-shot { display: block; position: relative; overflow: hidden; width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
  .action-step-shot {                        /* section 3 shows whole screens (2026-10-03): the capture at column width with the device's corner radius. Since 2026-10-05 the step card comes first, as in section 2, and steps 1, 3 and 4 use captures with their empty stretches taken out (the -m files, tools/mockup-build.py); --h is each file's height in screen px, 2622 untrimmed */
    margin-top: 16px;
    border-radius: 13.68% / calc(165 / var(--h, 2622) * 100%);   /* the device's 165 px corner on a 1206 px wide screen */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  .action-step-shot img { display: block; width: 100%; height: auto; }
  /* Section 2 (2026-10-05): the card first, then a full-width window onto the part of its screen the card is about,
     fading out where the screen carries on, so a card and its picture share one phone screen and the in-app text
     keeps its size. Each window is given inline in screen px (the captures are 1206×2622): --top and --h, and --fade,
     where the fade starts. A recording is cropped by the same window as its still; both recordings keep their action
     in the top 60 % of the screen. Card 1 is about the lower screen, so its window keeps the device's bottom corners
     and fades at the top (--low). */
  .chaos-card-shot {
    --r: calc(165 / var(--h) * 100%);        /* the device's 165 px corner as a share of the window's height */
    margin-top: 14px;
    aspect-ratio: 1206 / var(--h);
    border-radius: 13.68% 13.68% 0 0 / var(--r) var(--r) 0 0;
    -webkit-mask-image: linear-gradient(180deg, #000 var(--fade), transparent);
    mask-image: linear-gradient(180deg, #000 var(--fade), transparent);
  }
  .chaos-card-shot--low {
    border-radius: 0 0 13.68% 13.68% / 0 0 var(--r) var(--r);
    -webkit-mask-image: linear-gradient(0deg, #000 var(--fade), transparent);
    mask-image: linear-gradient(0deg, #000 var(--fade), transparent);
  }
  .chaos-card-shot picture { display: block; height: 100%; }
  .chaos-card-shot img, .chaos-card-shot .screen-clip {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% calc(var(--top) / (2622 - var(--h)) * 100%);
  }
  .screen-clip {                             /* the C2 and C3 recordings, inline over their screens; main.js plays each once when its screen is 60 % in view */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .screen-clip.is-playing { opacity: 1; }
}

/* 5h. Built for: four audience cards with the feature cards' frames, an icon each, six example timelines as pills
   (tweaks round, item 7). Four columns ≥ 1024 px, 2 × 2 to 721 px, one column below; reveal via [data-reveal]. */
.builtfor { padding-top: clamp(32px, 4.5vw, 72px); padding-bottom: clamp(80px, 10vw, 160px); }
.builtfor .section-sub { margin-bottom: clamp(30px, 3.2vw, 56px); }
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.26vw, 39px);
}
.who-card {
  --accent: var(--blue);
  --accent-head: color-mix(in srgb, var(--accent) 60%, #2a2a2a);
  --accent-tail: color-mix(in srgb, var(--accent) 22%, #202020);
  --i: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.57vw, 27px) clamp(18px, 1.7vw, 28px) clamp(20px, 1.7vw, 30px);
  border: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    linear-gradient(135deg, var(--accent-head) 0%, var(--accent-tail) 100%) border-box;
  transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.6s ease calc(var(--i) * 70ms), translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 70ms);
}
.who-card .feature-head { gap: clamp(8px, 0.8vw, 12px); }
.who-card .feature-icon { width: clamp(26px, 1.9vw, 32px); }
.who-card h3 {
  font-size: clamp(1.25rem, 1.75vw, 1.875rem);   /* 30 px */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;                            /* one line each; the names are chosen to fit at every width */
}
.who-line {
  margin-top: clamp(8px, 0.7vw, 12px);
  font-size: clamp(0.9375rem, 1.02vw, 1.0625rem);  /* 17 px */
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray);
}
.who-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(14px, 1.2vw, 20px);
}
.who-list li {
  padding: 5px 11px;
  border-radius: 999px;
  background: #1e1e1e;
  font-size: clamp(0.75rem, 0.8vw, 0.875rem);    /* 14 px */
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-light);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.5s ease calc(0.35s + var(--i) * 70ms + var(--k) * 40ms);
}
@media (hover: hover) {
  .who-card:hover {
    --accent-head: var(--accent);
    --accent-tail: var(--accent);
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent);
    transform: translateY(-3px);
  }
  .who-card:hover .who-list li { color: var(--white); background: #262626; }
  /* icon motion, in the feature cards' language */
  .who-card:hover .ic-tassel { transform-origin: 22px 9px; animation: ic-sway 2s ease-in-out infinite alternate; }
  .who-card:hover .ic-rline { animation: ic-twinkle 1.4s ease-in-out infinite alternate; }
  .who-card:hover .ic-rline:nth-of-type(3) { animation-delay: -0.45s; }
  .who-card:hover .ic-rline:nth-of-type(4) { animation-delay: -0.9s; }
  .who-card:hover .ic-pencil { transform-origin: 12px 12px; animation: ic-point 2s ease-in-out infinite alternate; }
  .who-card:hover .ic-flame { transform-origin: 12px 16px; animation: ic-flicker 1.1s ease-in-out infinite alternate; }
}
@keyframes ic-flicker { from { transform: scaleY(1); opacity: 0.85; } to { transform: scaleY(1.07) scaleX(0.97); opacity: 1; } }
.js .builtfor:not(.is-in) .who-card { opacity: 0; translate: 0 24px; }
.js .builtfor:not(.is-in) .who-list li { opacity: 0; }
@media (max-width: 1023px) {
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .who-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}


/* 6. Footer ---------------------------------------------------------------- */
.site-footer {
  padding: var(--footer-pt) var(--gutter) var(--footer-pb);   /* bottom padding raised 2026-09-12 (was 16–20 px); top tightened 2026-10-01 with the CTA's bottom padding */
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(12px, 1.2vw, 20px);                 /* two gaps per pair now that a dot sits between links */
  font-size: var(--fs-footer);
  font-weight: 600;
  color: var(--gray);
}
.footer-links a { color: var(--gray); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-links a[aria-current="page"] { color: var(--white); }   /* current page reads white; the leading dot went when the separators arrived (2026-09-12) */
.footer-sep { font-size: 0.85em; color: var(--gray); opacity: 0.9; }
.footer-meta {                                    /* brand line and legal line as one row under the links, stacked on phones (2026-10-01) */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: var(--footer-meta-gap);
  font-size: var(--footer-meta-fs);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray);
  text-wrap: balance;                             /* under ~360 px both lines wrap; balanced, neither leaves a one-word orphan */
}
/* .footer-tagline, the page's one plain statement of what this is (S11), takes the row's own style since 2026-10-04:
   the © line's gray and weight, a step smaller and lighter than the links above, so it sits in the footer's hierarchy
   instead of on top of it (it was 600 and --gray-light). The maker clause lives on the Support page. */
@media (max-width: 920px) {                       /* the two lines no longer fit one row with the dot: stack them (720 px with the first line, 880 with the second; the third shares a row from 921) */
  .footer-meta { flex-direction: column; align-items: center; gap: 8px; }
  .footer-meta .footer-sep { display: none; }
}
@media (max-width: 640px) {                       /* phones: links and the legal line only (2026-10-05, the footer read crowded). The home page says "app for iPhone" in its section 1b headline; on the other pages this line was the only place */
  .footer-tagline { display: none; }
}

/* 7. Motion ---------------------------------------------------------------- */
/* Bars are hidden only when JS has run; GSAP (or the CSS fallback) reveals them. */
.bar[data-d="0"] { --dist: 0; }
.bar[data-d="1"] { --dist: 1; }
.bar[data-d="2"] { --dist: 2; }
.bar[data-d="3"] { --dist: 3; }
.js .hero:not(.is-in) .bar { opacity: 0.01; transform: translateY(-48px); }
.js .hero.css-in .bar {
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-duration: calc(1s + var(--dist) * 0.267s);
}
.js .hero:not(.is-in) .hero-copy > * { opacity: 0; }
.js .hero.css-in .hero-copy > * { transition: opacity 1s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero:not(.is-in) .bar { opacity: var(--bar-alpha); transform: none; }
  .js .hero:not(.is-in) .hero-copy > * { opacity: 1; }
  .badge { transition: none; }
  .bar-name[data-rotate] { transition: none; }
  .bar { will-change: auto; }
  .js .chaos-card:not(.is-in), .js .action-step:not(.is-in) { opacity: 1; transform: none; }
  .js .what:not(.is-in) .what-lead, .js .what:not(.is-in) .what-item { opacity: 1; transform: none; }
  .js .what:not(.is-in) .what-rule, .js .what:not(.is-in) .what-return { clip-path: none; opacity: 1; }
  .what-lead, .what-item, .what-rule, .what-return { transition: none; }
  .js .feature:not(.is-in) { opacity: 1; transform: none; }
  .js .cta-text, .js .cta-rule--solid, .js .cta-rule--dashes, .js .cta:not(.is-in) .cta-text, .js .cta:not(.is-in) .cta-badge, .js .cta:not(.is-in) .cta-rule--solid, .js .cta:not(.is-in) .cta-rule--dashes { opacity: 1; transform: none; clip-path: none; }
  .cta-text, .cta-badge, .cta-rule--solid, .cta-rule--dashes { transition: none; }
  .js .builtfor:not(.is-in) .who-card, .js .builtfor:not(.is-in) .who-list li { opacity: 1; translate: none; }
  .who-card, .who-list li { transition: none; }
  .pd-bar, .pd-cell, .pd-body::after, .pd-top, .pd-pill, .pd-pill::before, .pd-name, .pd-chip, .pd-caption, .pd-dot::before { transition: none; animation: none; }
  .phone-shot, .chaos-card, .action-step, .feature, .feature-icon .draw { transition: none; }
  .phone-clip, .phone-pair, .phone-front, .phone-back { transition: none; }   /* clips never get sources under reduced motion (main.js); a pair changes at once: leaning on card 1 and on steps 2 and 3, flat elsewhere */
  .feature-icon * { animation: none !important; }
  .gate-field.is-wrong, .gate-slot::before { animation: none !important; }   /* no shake, steady caret; the message still says the code was wrong */
  .gate-slot i { transition: none; }
}

/* 8. Breakpoints ----------------------------------------------------------- */
@media (max-width: 1100px) {
  /* tablet / half-window desktop: seven bars get too thin, keep five */
  :root { --bar-gap: clamp(12px, 3vw, 34px); }
  .bars { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bar[data-d="3"] { display: none; }
  .bar-top, .bar-name { font-size: clamp(0.875rem, 1.6vw, 1.25rem); }
  .bar[data-d="2"] { --label-alpha: 0.6; }       /* outer pair of the five-bar layout: 60 % minimum (PAGE_AUDIT row 34) */
}

@media (max-width: 900px) {
  .hero-panel { height: clamp(520px, calc(100svh - var(--header-h) - 12px), 760px); }
}

@media (max-width: 640px) {
  :root {
    --bar-h1: 47%;                               /* 2026-10-05: five points shorter (were 52 / 46), so the bars' tops sit further under the badge */
    --bar-h0: 41%;
    --bar-radius: 12px;
  }
  .hero-panel { height: clamp(540px, 74svh, 640px); border-radius: 20px; }
  .hero-copy { padding-top: 34px; }
  .hero-title { font-size: clamp(2.75rem, 13.3vw, 3.5rem); }
  .hero-sub { font-size: 0.9375rem; margin-top: 12px; }
  .hero-copy .badge { margin-top: 22px; }
  .hero-shade {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0.55) 22%,
        rgba(0, 0, 0, 0.92) 40%, #000 50%, #000 100%);
  }

  /* seven bars don't fit 390 px legibly: keep the middle three */
  .bars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bar[data-d="3"], .bar[data-d="2"] { display: none; }
  .bar { padding: 8px 6px 6px; border-width: 2.5px; }
  .bar[data-d="1"] { --label-alpha: 0.85; }      /* the visible outer pair on phones (PAGE_AUDIT row 34) */
  .bar-top { font-size: 0.9375rem; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55); }
  .bar-name { font-size: 0.9375rem; }
  .bar-foot { gap: 6px; }
  :root { --pill-h: 8px; --name-h: 1.375rem; --bar-gap: clamp(12px, 4.1vw, 18px); }   /* 2026-10-05: thicker bars, closer together (was 28 / 10vw / 44: 89 px bars 39 px apart at 390, now 105 and 16) */
  .footer-links { gap: 12px; }
}

/* 9. Bar-relative sizing (container query units) ---------------------------
   Labels and pills follow the width of their own bar, so they stay in
   proportion at the top and bottom of every breakpoint. Browsers without
   cqw support keep the viewport-based sizes declared above. */
@supports (font-size: 1cqw) {
  /* gentle slope with a base size: ~15.7 px on an 89 px phone bar,
     22 px from ~130 px bars upward (1cqw = 1 % of the bar's content width) */
  .bar-top,
  .bar-name { font-size: clamp(13px, 8px + 11cqw, 22px); }
  .bar-name {
    height: calc(clamp(13px, 8px + 11cqw, 22px) * 1.3);
    line-height: calc(clamp(13px, 8px + 11cqw, 22px) * 1.3);
  }
  .pill { height: clamp(6px, 3px + 7.3cqw, 12px); }
}
