/* Vantia Insight home page: the flat-pack page (Tony, 6 Nov 2026; D-0738 to D-0741).

   An instruction sheet: white paper, black keylines, big step numbers; the hero
   is one assembly animation (assembly.js). Everything here is scoped to
   `body.fp` and every class carries an `fp-` prefix, because the site's shared
   stylesheet (styles.css) is loaded too, for its fonts and for the sign-in form
   and the track record, and its `.btn`, `.lede` and friends must not reach in.

   THE PAGE IS ALWAYS LIGHT, as the design is a white sheet. The sign-in panel and
   the track record are drawn by the shared styles, so the panel that holds them
   restates the light tokens with literal values (a token that refers to another
   is resolved where it is declared, so restating `--paper` alone would not do). */

body.fp {
  --fp-paper: #FFFFFF;
  --fp-sheet: #F3F6F7;
  --fp-ink: #16242F;
  --fp-slate: #3E5865;
  --fp-mist: #93A7B1;
  --fp-origin: #0E7C6B;
  --fp-display: "IBM Plex Serif", Georgia, serif;
  --fp-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  margin: 0; background: var(--fp-paper); color: var(--fp-ink);
  font-family: var(--fp-text); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.fp *, body.fp *::before, body.fp *::after { box-sizing: border-box; }
body.fp [hidden] { display: none !important; }
body.fp ::selection { background: var(--fp-ink); color: var(--fp-paper); }
body.fp a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
body.fp a:focus-visible, body.fp button:focus-visible { outline: 2.5px solid var(--fp-ink); outline-offset: 3px; }
.fp-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fp-inner { max-width: 1320px; margin: 0 auto; }
body.fp h1, body.fp h2 { font-family: var(--fp-display); font-weight: 600; color: inherit; margin: 0; }

/* ---------- masthead ---------- */
.fp-mast { padding-block: max(20px, env(safe-area-inset-top, 0px)) 0; }
.fp-mast .fp-inner { --logo-h: 2rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.fp-mast .fp-lockup { height: var(--logo-h); width: auto; display: block; }
/* the menu sits level with the wordmark, about 37% down the lockup */
.fp-mast nav { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; font-weight: 500; min-height: 24px; margin-top: calc(var(--logo-h) * 0.37 - 12px); }
.fp-mast nav a { text-decoration: none; color: var(--fp-slate); }
.fp-mast nav a:hover { color: var(--fp-ink); }
.fp-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-top: -5px; border-radius: 50%; color: var(--fp-slate); }
.fp-icon-btn:hover { color: var(--fp-ink); background: var(--fp-sheet); }
.fp-icon-btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.fp-hero { padding-block: 8px clamp(40px, 5vw, 72px); }
.fp-hero .fp-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr); gap: 24px 40px; align-items: start; }
.fp-cover { align-self: start; padding-top: 34px; }
.fp-cover-lockup { display: block; height: clamp(74px, 8.6vw, 118px); width: auto; max-width: 100%; margin: 0 0 88px -1.2%; }
body.fp .fp-hero h1 { margin: 0 0 20px; color: var(--fp-origin); font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.fp-lede { margin: 0 0 26px; max-width: 27rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--fp-slate); text-wrap: pretty; }
.fp-ctas { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.fp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; background: var(--fp-ink); color: var(--fp-paper) !important; text-decoration: none; font: 600 1rem/1.2 var(--fp-text); border: 0; cursor: pointer; transition: background .2s ease; }
.fp-btn:hover { background: #2B4250; }
.fp-btn svg { width: 18px; height: 10px; }
.fp-btn-ghost { background: var(--fp-paper); color: var(--fp-ink) !important; box-shadow: inset 0 0 0 2px var(--fp-ink); }
.fp-btn-ghost:hover { background: var(--fp-sheet); }
.fp-quiet-link { font-weight: 600; }
.fp-small { margin: 18px 0 0; font-size: 0.88rem; color: var(--fp-slate); }
.fp-small [data-price] { white-space: nowrap; }

/* the drawing has its own height, set lower than the logo */
.fp-stage { position: relative; align-self: start; margin: 110px 0 0; height: clamp(540px, 70vh, 640px); }
.fp-stage #fp-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fp-stage text { font-family: var(--fp-text); fill: var(--fp-ink); }
.fp-stage .num { font-family: var(--fp-text); font-weight: 600; font-size: 88px; letter-spacing: -0.03em; }
.fp-stage .lbl { font-weight: 600; font-size: 15px; }
.fp-stage .sm { font-size: 13px; fill: #4A6370; }
.fp-stage .qty { font-family: var(--fp-text); font-weight: 600; font-size: 20px; }

/* ---------- how a finding is put together ---------- */
.fp-steps { background: var(--fp-sheet); padding-block: clamp(56px, 6vw, 88px) clamp(72px, 9vw, 128px); }
body.fp .fp-steps h2, body.fp .fp-inventory h2, body.fp .fp-kept h2, body.fp .fp-buy h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.fp-intro { margin: 0 0 52px; color: var(--fp-slate); max-width: 32rem; }
.fp-steplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--fp-ink); }
.fp-step { padding: 22px 26px 8px 0; display: grid; grid-template-rows: auto 170px auto; gap: 14px; }
.fp-step + .fp-step { padding-left: 26px; border-left: 2px solid var(--fp-ink); }
.fp-n { font-family: var(--fp-text); font-weight: 600; font-size: clamp(3.4rem, 5vw, 5rem); line-height: 0.85; }
.fp-step svg { width: 100%; height: 170px; display: block; }
.fp-step p { margin: 0; font-size: 1rem; text-wrap: pretty; }
.fp-step p b { display: block; font-weight: 600; font-size: 1.08rem; margin-bottom: 2px; }

/* ---------- in the box ---------- */
.fp-inventory { padding-block: clamp(72px, 9vw, 128px); }
.fp-inventory .fp-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 32px 64px; align-items: start; }
.fp-sub { margin: 0; color: var(--fp-slate); max-width: 26rem; }
.fp-box { border: 2px solid var(--fp-ink); border-radius: 6px; background: var(--fp-paper); padding: 24px; }
.fp-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 12px; }
.fp-parts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--fp-ink); border-radius: 4px; font-weight: 600; font-size: 0.95rem; line-height: 1.25; min-width: 0; }

/* a small part drawn on each source tile (Tony chose this, 6 Nov) */
.fp-parts svg { width: 30px; height: 30px; flex: none; }
.fp-parts svg * { fill: none; stroke: var(--fp-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- every outcome kept ---------- */
.fp-kept { background: var(--fp-sheet); padding-block: clamp(72px, 9vw, 128px); }
.fp-kept .fp-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 72px; align-items: center; }
.fp-seat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px; background: var(--fp-paper); border: 2px solid var(--fp-ink); border-radius: 6px; margin-bottom: 18px; }
.fp-tick { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--fp-ink); display: grid; place-items: center; }
.fp-tick svg { width: 18px; height: 18px; }
.fp-seat q { display: block; font-size: 1.12rem; font-weight: 500; }
.fp-seat small { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--fp-slate); }
.fp-words { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.fp-words li { padding: 7px 14px; border: 2px solid var(--fp-ink); border-radius: 999px; font-weight: 600; font-size: 0.92rem; background: var(--fp-paper); }
.fp-kept p { margin: 0; color: var(--fp-slate); max-width: 30rem; }

/* ---------- try us ---------- */
.fp-buy { padding-block: clamp(72px, 9vw, 128px); }
.fp-buy .fp-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.fp-buy p { margin: 0 0 20px; color: var(--fp-slate); max-width: 30rem; }
.fp-trial { padding: 30px; border: 2px solid var(--fp-ink); border-radius: 8px; }
.fp-weekly { padding-top: 32px; }
body.fp .fp-weekly h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.fp-paces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.fp-pace { padding: 18px; border: 2px solid var(--fp-ink); border-radius: 6px; }
.fp-pace b { display: block; font-family: var(--fp-display); font-weight: 600; font-size: 1.4rem; }
.fp-pace span { color: var(--fp-slate); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
/* the trial button with its subscription link centred beneath it (Tony, 6 Nov) */
.fp-go { display: inline-flex; flex-direction: column; align-items: center; gap: 20px; max-width: 100%; }
.fp-compare { font-size: 0.92rem; color: var(--fp-slate); text-align: center; }
/* the track record's key carries its ? in the top-right corner; the key's own
   items keep clear of that corner, or whichever wraps there slides under it */
.fp-record .record-legend.has-help { padding-right: 2.2rem; }

/* the sign-in panel: opened by the trial button or Sign in; drawn by the shared
   styles inside a box that restates the light tokens */
.fp-signin, .fp-record {
  --paper: #E9ECEA; --paper-2: #FBFCFB; --raised: #FFFFFF; --ink: #141F27; --ink-2: #33454E;
  --dim: #42545D; --data: #4E626B; --faint: #78909A; --rule: rgba(20, 31, 39, 0.20);
  --rule-hair: rgba(20, 31, 39, 0.11); --rule-bold: rgba(20, 31, 39, 0.50); --accent: #0C7A67;
  --accent-2: #0A6252; --accent-soft: rgba(12, 122, 103, 0.12); --accent-ink: #FFFFFF; --sel: rgba(12, 122, 103, 0.08);
  --bg: #E9ECEA; --text: #141F27; --text-2: #33454E; --text-3: #4E626B; --link: #0C7A67;
  --line: rgba(20, 31, 39, 0.11); --line-strong: rgba(20, 31, 39, 0.20); --panel: #FBFCFB; --panel-strong: #FFFFFF;
  --panel-solid: #FFFFFF; --panel-border: rgba(20, 31, 39, 0.20); --hover: rgba(12, 122, 103, 0.08); --active: rgba(12, 122, 103, 0.08);
  color: #141F27;
}
.fp-signin { grid-column: 1 / -1; max-width: 34rem; padding: 28px; border: 2px solid var(--fp-ink); border-radius: 8px; background: #FFFFFF; scroll-margin-top: 24px; }
.fp-signin:not(.is-open) { display: none; }
/* the sign-in form's own layout, carried from the previous home page and set
   in this page's faces; signin.js and its ids are unchanged */
.fp-signin .eyebrow { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fp-slate); }
body.fp .fp-signin h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 18px; }
.fp-signin .field { margin: 0 0 14px; }
.fp-signin label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--fp-ink); margin-bottom: 6px; }
.fp-signin label .muted { font-weight: 400; color: var(--fp-slate); }
.fp-signin input[type="email"], .fp-signin input[type="text"], .fp-signin select { font: inherit; font-size: 1rem; color: var(--fp-ink); background: #FFFFFF; border: 2px solid var(--fp-ink); border-radius: 10px; padding: 11px 14px; width: 100%; }
.fp-signin input:focus, .fp-signin select:focus { outline: 2.5px solid var(--fp-origin); outline-offset: 1px; }
.fp-signin .btn-primary { width: 100%; justify-content: center; padding: 14px 20px; border-radius: 999px; background: var(--fp-ink); color: #FFFFFF; border: 0; font: 600 1rem/1.2 var(--fp-text); }
.fp-signin .btn-primary:hover { background: #2B4250; }
.fp-signin .signin-note { color: var(--fp-slate); font-size: 0.88rem; line-height: 1.5; margin: 12px 0 0; max-width: 46ch; }
.fp-signin .signin-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fp-signin .signin-choices .btn { flex: 1; justify-content: center; font-size: 0.9rem; border-radius: 999px; }
.fp-signin .signin-said, .fp-signin .signin-message { font-size: 0.9rem; color: var(--fp-slate); margin: 12px 0 0; max-width: 46ch; }
.fp-signin .signin-message:not([hidden]) { border-left: 1px solid var(--fp-slate); padding-left: 12px; }
.fp-record { padding-block: 0 clamp(56px, 7vw, 96px); }
.fp-record .fp-inner > section { margin: 0; }

/* ---------- footer ---------- */

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .fp-steplist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .fp-step:nth-child(n+3) { border-top: 2px solid var(--fp-ink); }
}
@media (max-width: 900px) {
  /* the logo first, then the drawing, then the headline and buttons */
  .fp-hero .fp-inner { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .fp-cover { display: contents; }
  /* sized in the headline's own text units, so a reader's larger text size (the
     phone's or the site's Text size setting) enlarges the logo with the words;
     it stays about the width of "Individually they're" */
  .fp-cover-lockup { order: -2; margin: 4px 0 8px -1.2%; font-size: clamp(2.1rem, 3.5vw, 3.4rem); width: 9.2em; height: auto; }
  .fp-stage { order: -1; margin: 0 0 16px; height: min(100vw, 520px); }
  .fp-inventory .fp-inner, .fp-kept .fp-inner, .fp-buy .fp-inner { grid-template-columns: minmax(0, 1fr); }
  .fp-mast nav a.fp-hide-s { display: none; }
}
@media (max-width: 600px) {
  .fp-mast .fp-inner { --logo-h: 1.65rem; }
  .fp-mast nav { gap: 16px; }
  .fp-stage { height: min(118vw, 500px); }
  .fp-stage .num { font-size: 64px; }
  .fp-steplist { grid-template-columns: minmax(0, 1fr); }
  .fp-step, .fp-step + .fp-step { padding-left: 0; border-left: 0; }
  .fp-step + .fp-step { border-top: 2px solid var(--fp-ink); }
  .fp-step { grid-template-rows: auto 150px auto; }
  .fp-step svg { height: 150px; }
  .fp-paces { grid-template-columns: minmax(0, 1fr); }
  .fp-trial, .fp-signin { padding: 22px; }
}
@media (max-height: 560px) and (min-width: 901px) {
  .fp-stage { height: 460px; margin-top: 40px; }
  .fp-cover-lockup { margin-bottom: 40px; }
  body.fp .fp-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) { .fp-btn { transition: none; } }
