/* Dark theme for the VSL page (10 Nov 2026). Krishna on the first rebuild: "you didnt apply any aesthetic changes, at all".
   Direction, from the pages he was shown: TJR's black, video-first layout; VSLFlow's serif headline with one italic accent
   phrase and its stats strip; PB Trading's glow behind the video. HARKO colours: navy, sky blue, orange for the play button.
   Loaded after brand.css, on vsl/index.html only. To get the light page back, build with theme off in research/build.cjs. */
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

html.theme-dark {
  --ink: #f4f1ea;
  --muted: #9db0bc;
  --hair: rgba(255, 255, 255, 0.16);
  --hair-soft: rgba(255, 255, 255, 0.08);
  --blue: #7cc8f8;
  --sky: #36a9f4;
  --canvas: #091017;
  --panel: #0f1921;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  background: var(--canvas);
  color-scheme: dark;
  font-synthesis: none;
}
html.theme-dark ::selection { background: rgba(54, 169, 244, 0.35); color: #fff; }
html.theme-dark body::before { background: linear-gradient(180deg, #0c161e 0%, #091017 900px, #070c11 100%); }

/* Light behind the hero and the video, plus a faint terminal grid that fades out. Scrolls away with the page. */
html.theme-dark .page { position: relative; }
html.theme-dark .page::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 1180px; pointer-events: none;
  background:
    radial-gradient(52% 34% at 50% 0%, rgba(54, 169, 244, 0.26), transparent 72%),
    radial-gradient(40% 26% at 50% 46%, rgba(54, 169, 244, 0.13), transparent 72%);
}
html.theme-dark .page::after {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 900px; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000 0%, transparent 78%); mask-image: radial-gradient(60% 70% at 50% 20%, #000 0%, transparent 78%);
}

/* Logo: centred on the page, in white. */
html.theme-dark .brandbar { left: 50%; top: clamp(18px, 2.8vw, 30px); transform: translateX(-50%); }
html.theme-dark .brandbar img { height: 46px; filter: brightness(0) invert(1); opacity: 0.96; }

/* Hero */
html.theme-dark .hero { padding-top: clamp(108px, 15vh, 140px); }
html.theme-dark .hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 9px 16px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(255, 255, 255, 0.035); color: #d7e9f5; font-size: 0.7rem; letter-spacing: 0.2em; }
html.theme-dark .hero__eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px var(--sky); }
html.theme-dark .hero__title { max-width: 1060px; margin-inline: auto; font-family: var(--serif); font-weight: 400; font-size: clamp(2.05rem, 4.5vw, 3.75rem); line-height: 1.07; letter-spacing: -0.012em; word-spacing: normal; color: var(--ink); }
html.theme-dark .hero__title mark { background: none; color: var(--blue); font-style: italic; text-decoration: none; }
html.theme-dark .hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); }

/* Video */
html.theme-dark .vid-wrap { max-width: 980px; margin-top: clamp(34px, 6vh, 56px); }
html.theme-dark .vid { border-radius: 22px; border-color: rgba(255, 255, 255, 0.18); background: #05080b; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.035), 0 60px 150px -30px rgba(54, 169, 244, 0.42), 0 40px 90px -20px rgba(0, 0, 0, 0.9); }
html.theme-dark .vid__scrim { background: radial-gradient(120% 120% at 50% 45%, rgba(0, 0, 0, 0.04), rgba(3, 8, 12, 0.55)); }
html.theme-dark .vid__play { width: 98px; height: 98px; border-color: rgba(255, 255, 255, 0.55); }
html.theme-dark .vid__play svg { width: 46px; height: 46px; }

/* Numbers under the video */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; margin: clamp(34px, 5.5vh, 52px) auto 0; padding-inline: var(--gutter); text-align: center; }
.stat { padding: 4px 18px; border-left: 1px solid var(--hair-soft); }
.stat:first-child { border-left: 0; }
.stat__n { font-family: var(--serif, var(--display)); font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1; color: var(--ink); }
.stat__n small { margin-left: 3px; font-size: 0.42em; color: var(--muted); }
.stat__l { margin-top: 10px; color: var(--muted); font-size: 0.93rem; line-height: 1.4; }
.stat__l a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.stat__stars { display: block; margin-top: 6px; color: var(--accent); font-size: 0.78rem; letter-spacing: 3px; }

/* Section headings: a small label, then a serif title with one italic phrase */
.sec-eyebrow { margin: 0 0 14px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); }
html.theme-dark .tf__title, html.theme-dark .vtest__title, html.theme-dark .reviews__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.05rem, 3.9vw, 3.15rem); line-height: 1.08; letter-spacing: -0.01em; word-spacing: normal; color: var(--ink); }
html.theme-dark .tf__title em, html.theme-dark .vtest__title em, html.theme-dark .reviews__title em { font-style: italic; color: var(--blue); }

/* Application */
html.theme-dark .tf { padding-top: clamp(76px, 12vh, 124px); }
html.theme-dark .tf__sub { font-size: 1.08rem; }
html.theme-dark .tf__frame { max-width: 980px; margin-top: 36px; border: 1px solid var(--hair); border-radius: 20px; background: var(--panel); box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.03), 0 60px 130px -40px rgba(0, 0, 0, 0.95); }

/* The Typeform embed (same frame as the old mock form) */
.tf__embed { display: block; width: 100%; max-width: 980px; height: 620px; margin: 36px auto 0; border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; background: #091017; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.03), 0 60px 130px -40px rgba(0, 0, 0, 0.95); }
.tf__embed iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .tf__embed { height: 680px; border-radius: 16px; } }
/* After an approved application (vsl/book.js) the form is taken out of its box and the next step slides in, in the same
   box: the approved message at the top, in the type of the form itself (Lora, cream, left-aligned in a 680px column, the
   width of the calendar card), and the Calendly of Stephen under it, loading by itself. Modelled on the application of
   Funded Trading Blueprint, where "Congrats! You are qualified!" is the title of the calendar step inside the form.
   The box grows to the height the calendar asks for. This page declares a dark colour scheme, and a frame from a
   light-scheme site would get a solid white backdrop in place of a see-through one, so the calendar frame is given a
   light scheme: only the calendar shows, on the navy of the box. */
.tf__embed { scroll-margin-top: 96px; }
.tf__embed.is-approved { height: auto; min-height: 620px; }
.tf__embed.is-approved > :not(.tf__next) { display: none !important; }
.tf__next { opacity: 0; transform: translateY(44px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tf__next.is-in { opacity: 1; transform: none; }
.tf__next-msg { max-width: 680px; margin: 0 auto; padding: 56px 24px 0; text-align: left; font-family: "Lora", var(--serif), Georgia, serif; }
.tf__next-title { margin: 0; font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.32; font-weight: 400; color: #f4ecde; }
.tf__next-sub { margin: 10px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.45; color: rgba(244, 236, 222, 0.7); }
.tf__cal { position: relative; min-width: 320px; height: 700px; }
.tf__cal iframe { color-scheme: light; }
.tf__cal-link { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 300px; color: var(--blue); font-size: 1.1rem; }
@media (max-width: 640px) { .tf__embed.is-approved { min-height: 680px; } .tf__next-msg { padding: 36px 20px 0; } }
@media (prefers-reduced-motion: reduce) { .tf__next { transform: none; transition: none; } }

/* Member videos */
html.theme-dark .vtest { padding-top: clamp(76px, 12vh, 124px); }
html.theme-dark .vtest__grid { max-width: 980px; gap: 20px; margin-top: 38px; }
html.theme-dark .vtest .vid { border-radius: 18px; border-color: var(--hair-soft); background: radial-gradient(120% 120% at 50% 35%, #16242e, #0c151c 78%); box-shadow: none; }
html.theme-dark .vtest .vid__play { width: 62px; height: 62px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.5); animation: none; }
html.theme-dark .vtest .vid__play svg { width: 28px; height: 28px; }

/* Review wall */
html.theme-dark .reviews--wall { margin-top: clamp(76px, 12vh, 124px); padding-top: clamp(64px, 10vh, 104px); border-top: 1px solid var(--hair-soft); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 460px); }
html.theme-dark .reviews__score { font-size: 1.05rem; }
html.theme-dark .chips { margin-bottom: 34px; }
html.theme-dark .chip { background: transparent; border-color: var(--hair); color: #dfe8ee; }
html.theme-dark .chip span { color: var(--muted); }
html.theme-dark .chip:hover { border-color: rgba(255, 255, 255, 0.5); }
html.theme-dark .chip.is-on { background: var(--ink); border-color: var(--ink); color: #0a1117; }
html.theme-dark .chip.is-on span { color: rgba(10, 17, 23, 0.6); }
html.theme-dark .review { border-radius: 16px; border-color: var(--hair-soft); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); color: #e9edf0; box-shadow: none; }
html.theme-dark .review__text { font-size: 0.98rem; line-height: 1.62; color: #dde5ea; }
html.theme-dark .review__who { color: var(--ink); }
html.theme-dark .review__ok { background: rgba(54, 169, 244, 0.15); color: #9ad6fa; }
html.theme-dark .review__stars-off { color: rgba(255, 255, 255, 0.16); }
html.theme-dark .review__more { color: var(--blue); text-decoration-color: rgba(124, 200, 248, 0.5); }
html.theme-dark .wall__more { background: transparent; border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; font-weight: 500; box-shadow: none; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
html.theme-dark .wall__more:hover { background: var(--ink); color: #0a1117; transform: none; }

/* Footer */
html.theme-dark .brandfoot { background: transparent; border-top: 1px solid var(--hair-soft); }

@media (max-width: 640px) {
  html.theme-dark .brandbar img { height: 38px; }
  html.theme-dark .hero { padding-top: 96px; }
  html.theme-dark .hero__eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; padding: 8px 13px; }
  html.theme-dark .vid { border-radius: 16px; }
  html.theme-dark .vid__play { width: 68px; height: 68px; }
  html.theme-dark .vid__play svg { width: 32px; height: 32px; }
  .stat { padding: 2px 8px; }
  .stat__l { font-size: 0.78rem; }
  .stat__stars { font-size: 0.62rem; letter-spacing: 2px; }
}

/* ---- Palette E: navy and brass (Krishna picked it 10 Nov 2026 from 18 palettes). Overrides the blue accent above. ---- */
html.theme-dark { --canvas: #091017; --ink: #f4ecde; --muted: #9db0bc; --blue: #e0c186; --sky: #e0c186; --accent: #e0c186; --panel: #0f1921; --hair: rgba(255,255,255,.18); --hair-soft: rgba(255,255,255,.08); background: #091017; }
html.theme-dark body::before { background: linear-gradient(180deg, #0d1822 0%, #091017 900px, #070c11 100%); }
html.theme-dark .page::before { background: radial-gradient(52% 34% at 50% 0%, rgba(54,169,244, .24), transparent 72%), radial-gradient(40% 26% at 50% 46%, rgba(54,169,244, .11), transparent 72%); }
html.theme-dark .page::after { display: none; }
html.theme-dark .hero__eyebrow { color: #e6dcc6; }
html.theme-dark .hero__title { font-size: clamp(2.1rem, 4.7vw, 3.95rem); }
html.theme-dark .vid { border-color: rgba(255,255,255,.18); box-shadow: 0 0 0 7px rgba(255,255,255,.03), 0 60px 150px -30px rgba(54,169,244, .32), 0 40px 90px -20px rgba(0,0,0,.9); }
html.theme-dark .vid__play { background: rgba(9,12,15,.5); border: 1.5px solid #e0c186; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.theme-dark .vid__play svg { fill: #e0c186; }

html.theme-dark .vtest .vid { background: radial-gradient(120% 120% at 50% 35%, #16242e, #0c151c 78%); }
html.theme-dark .vtest .vid__play { background: rgba(255,255,255,.04); border-color: #e0c186; }
html.theme-dark .vtest .vid__play svg { fill: #e0c186; }
html.theme-dark .review { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); }
html.theme-dark .review__text { color: #dde5ea; }
html.theme-dark .review__ok { background: rgba(54,169,244, .15); color: #9ad6fa; }
html.theme-dark .review__more { text-decoration-color: rgba(255,255,255,.18); }
html.theme-dark .chip { color: #dde5ea; }
html.theme-dark .chip.is-on { background: #f4ecde; border-color: #f4ecde; color: #091017; }
html.theme-dark .wall__more { border-color: #e0c186; color: #e0c186; }

/* (Palette V, video blue, was live for part of 26 Nov 2026 and was taken out the same day: Krishna liked this
   navy and brass look, and the wall in the videos was toned down to sit with it. The block is kept in
   research/qa/theme-options/palette-v-block.css. The --token fallbacks in brand.css and precall.css are from then.) */

/* ---- Compact top of the VSL page (10 Nov 2026). Krishna's rule from the thank-you page: "the video should never be
   that low". A smaller headline and tighter gaps, so the video and its play button are on the first screen of a laptop.
   The sub-headline's two sentences each stay whole (one per line when they don't fit side by side). ---- */
html.theme-dark .hero { padding-top: clamp(92px, 12vh, 108px); }
html.theme-dark .hero__eyebrow { margin-bottom: 18px; }
html.theme-dark .hero__title { font-size: clamp(1.95rem, 3.9vw, 3.3rem); }
html.theme-dark .hero__sub { margin-top: 16px; }
html.theme-dark .vid-wrap { margin-top: clamp(26px, 4vh, 36px); }
.hero__sub-line { display: inline-block; }
