/* Shared site styles: home page and landing pages. Style C (Oct 2026): the app's
   own components kept, website-only ornament removed. */
/* Switzer is the client app's typeface (Mobile-app Figma, node 202-909). */
@font-face { font-family: "Switzer"; src: url("/fonts/Switzer-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  /* App palette (Mobile-app Figma): near-black base, warm off-white ink,
     glassy cards, lime→yellow header wash, multi-colour data accents. */
  --bg: #0c0c0d;
  --bg-raised: #131315;
  --card: rgba(12, 12, 13, 0.6);
  --chip: rgba(39, 39, 40, 0.9);
  --ink: #ffffff;
  --ink-soft: #f0efeb;
  --ink-muted: #d9d9d9;
  /* Supporting copy under a heading: softer so the heading leads (≈7.8:1 on --bg). */
  --ink-body: #a6a5a2;
  --ink-dim: #8a8a8a;
  --lime: #daf78b;
  --yellow: #ffc700;
  --orange: #f88d2d;
  --green: #16bb83;
  --green-deep: #12925f;
  --lilac: #bf9ff2;
  --blue: #6786d7;
  --line: #272728;
  --line-soft: rgba(255, 255, 255, 0.06);
  --gutter: 36px;
  --max: 1280px;
  /* Side padding that centres a --max column on wide screens and falls
     back to the gutter on narrow ones. */
  --side: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --mono: "Switzer", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-muted);
  font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.4; color: var(--ink-soft);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ── */
.label {
  display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 16px;
  background: rgba(255,255,255,.1); color: var(--ink-soft); font-size: 14px; font-weight: 500; line-height: 1.2; margin: 0;
  text-transform: none; letter-spacing: 0;
}
.label.plain { background: var(--chip); }
.label.lime { background: rgba(218,247,139,.14); color: var(--lime); }
h1, h2, h4, .card > p, .hero-bottom p, .join .lede { text-wrap: balance; }
.pair p.body, .steps-3 p, .lrow .s, .section-head .lede { text-wrap: pretty; }
h1, h2 { font-weight: 500; margin: 0; color: var(--ink-soft); line-height: 1.02; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 5.4vw, 76px); }
h2 { font-size: clamp(30px, 2.8vw, 42px); max-width: 16ch; }
p { margin: 0; }

/* ── Buttons (design: 16/8 padding, 14px uppercase, tracking .56px) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; font-family: var(--sans); font-weight: 500; font-size: 15px;
  letter-spacing: 0; text-transform: none; line-height: 1; text-decoration: none; border-radius: 60px;
  border: 1px solid var(--line); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.btn-fill { background: #f5f5f5; color: var(--bg); border-color: #f5f5f5; }
.btn-fill:hover { background: #ffffff; }
.btn-line { background: rgba(12,12,13,.5); color: var(--ink-soft); border-color: rgba(240,239,235,.24); }
.btn-line:hover { background: rgba(255,255,255,.08); border-color: rgba(240,239,235,.4); }
.btn[disabled] { opacity: .6; cursor: progress; }
/* Hover affordance: an icon (arrow by default, --i overrides) slides in after the
   label. Zero width at rest so the button's size is unchanged until hovered. */
.btn::after {
  content: ""; display: block; width: 0; height: 14px; margin-left: 0; opacity: 0; flex: none;
  background: currentColor; -webkit-mask: var(--i, url(/icons/arrow-right.svg)) center / contain no-repeat; mask: var(--i, url(/icons/arrow-right.svg)) center / contain no-repeat;
  transform: translateX(-4px);
}
.btn:hover::after, .btn:focus-visible::after { width: 14px; margin-left: 8px; opacity: 1; transform: translateX(0); }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--side);
  background: linear-gradient(to bottom, rgba(12,12,13,.85), rgba(12,12,13,0));
}
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink-soft); }
.brand img { width: 19px; height: 16px; display: block; }
.brand span { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 12px 8px; }
.nav-link:hover { color: var(--ink); }
.hero .launch { margin-bottom: 28px; }

/* ── FAQ: native <details>, no JS ── */
.qas { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
.qa { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raised); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-size: 17px; font-weight: 500; color: var(--ink-soft); line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--lime); transition: transform .2s; }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 22px 22px; color: var(--ink-muted); font-size: 16px; line-height: 1.5; text-wrap: pretty; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh; padding: 0 var(--side);
  display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-top, .hero-bottom { position: relative; z-index: 1; }
/* The app header's lime→yellow wash, laid OVER the render with screen
   blending so it lights the scene instead of hiding behind it. */
.hero-glow {
  position: absolute; inset: -10% -10% 0; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 46% 60% at 50% 14%, rgba(218,247,139,.62) 0%, rgba(227,235,104,.42) 20%, rgba(246,211,35,.26) 44%, rgba(255,199,0,.12) 60%, rgba(12,12,13,0) 74%),
    radial-gradient(ellipse 32% 42% at 70% 42%, rgba(18,125,82,.45) 0%, rgba(12,12,13,0) 70%),
    radial-gradient(ellipse 28% 36% at 32% 36%, rgba(191,159,242,.22) 0%, rgba(12,12,13,0) 70%);
}
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Atmospheric stand-in for the eye footage: a lime iris glow, right of centre. */
.hero-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 50% at 55% 20%, rgba(60,80,30,.35), rgba(12,12,13,0) 70%); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12,12,13,.7) 0%, rgba(12,12,13,.2) 45%, rgba(12,12,13,.05) 100%),
              linear-gradient(to top, rgba(12,12,13,1) 0%, rgba(12,12,13,0) 38%);
}
/* Slow drifting colour blobs behind everything — the app header's moving gradient. */
.blobs { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.blobs i { position: absolute; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; border-radius: 50%; filter: blur(80px); opacity: .8; mix-blend-mode: screen; }
.blobs i:nth-child(1) { left: 34%; top: -22%; background: radial-gradient(circle, rgba(218,247,139,.55), rgba(218,247,139,0) 65%); animation: drift1 26s var(--ease) infinite alternate; }
.blobs i:nth-child(2) { left: 56%; top: 6%; background: radial-gradient(circle, rgba(18,125,82,.5), rgba(18,125,82,0) 65%); animation: drift2 32s var(--ease) infinite alternate; }
.blobs i:nth-child(3) { left: 22%; top: 8%; background: radial-gradient(circle, rgba(191,159,242,.32), rgba(191,159,242,0) 65%); animation: drift3 38s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(8%, 14%) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12%, -6%) scale(1.08); } }
@keyframes drift3 { to { transform: translate(10%, -10%) scale(0.94); } }
.hero-top { padding-top: 245px; }
.hero h1 { max-width: 12ch; }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 56px;
}
.hero-bottom p { max-width: 420px; color: var(--ink-soft); font-weight: 400; font-size: 18px; line-height: 1.45; }
.hero-cta { display: flex; gap: 12px; position: relative; z-index: 2; }
/* The 3×4 dot grid over the iris in the design. */
.dots {
  position: absolute; top: 370px; left: calc(58.33% + 43px); display: grid;
  grid-template-columns: repeat(3, 27px); gap: 49px calc(8.33vw - 43px + 9px); pointer-events: none;
}
.dots i { width: 27px; height: 27px; border-radius: 50%; background: var(--lime); display: block; opacity: .35; }

/* ── Hero mockup (3D render of the client app) ──
   The render's black ground blends into the page; the left and bottom
   edges are feathered so it reads as part of the hero, not a pasted photo. */
.mockup {
  position: absolute; top: 0; right: calc(var(--side) - 120px); bottom: 0; width: min(68%, 980px); z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%, #000 88%, transparent 100%), linear-gradient(to top, transparent 4%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 32%, #000 88%, transparent 100%), linear-gradient(to top, transparent 4%, #000 34%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.mockup img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 46%; display: block; }
.hero-media::before {
  background:
    radial-gradient(ellipse 30% 40% at 68% 42%, rgba(218,247,139,.28) 0%, rgba(120,170,60,.16) 35%, rgba(12,12,13,0) 70%);
}
/* App list rows (Mobile-app Figma, node 186-164): pill rows, 38px glass
   icon badges, title + subtitle, right-hand meta. Used in the feature cards. */
.vig { display: flex; flex-direction: column; gap: 16px; margin-bottom: auto; }
.list { display: flex; flex-direction: column; gap: 12px; }
.card p.list-label { font-size: 12px; font-weight: 400; color: #d9d9d9; line-height: 1; margin: 0; max-width: none; letter-spacing: 0; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 99px; background: rgba(165,165,166,.1); }
.badge {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 99px; border: 1px solid #666;
  display: grid; place-items: center; background: var(--b, #272728);
  box-shadow: inset 0 -4px 4px rgba(255,255,255,.25), inset 0 4px 4px rgba(0,0,0,.25);
}
.badge i { display: block; width: 16px; height: 16px; background: #0c0c0d; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.badge.dark i { background: #f5f5f5; }
.lrow .txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lrow .t { font-size: 14px; font-weight: 500; color: #d9d9d9; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .s { font-size: 12px; font-weight: 400; color: #d9d9d9; opacity: .7; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; }
.lrow .time { font-size: 12px; color: #d9d9d9; opacity: .7; line-height: 1.3; }
.cnt { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 4px 8px; border-radius: 60px; background: #272728; font-size: 10px; font-weight: 500; color: #f5f5f5; line-height: 1; }
.cnt.new::after { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 5px; border-radius: 50%; background: #16bb83; }
.cnt.ok { color: var(--green); } .cnt.warn { color: var(--orange); } .cnt.lime { color: var(--lime); }
/* Portfolio overview (Home screen, node 202-909) */
.pf-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0 0; text-align: center; }
.card p.pf-value { font-size: 40px; font-weight: 500; color: #f0efeb; line-height: 1; letter-spacing: -0.02em; margin: 0; max-width: none; }
.pf-change { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 16px; background: rgba(7,186,126,.1); color: #16bb83; font-size: 12px; font-weight: 500; line-height: 1; }
.pf-change i { width: 10px; height: 7px; background: #16bb83; -webkit-mask: url(/icons/up.svg) center / contain no-repeat; mask: url(/icons/up.svg) center / contain no-repeat; }
.pf-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(12,12,13,.6); border: 1px solid var(--line-soft); }
.pf-card .hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; row-gap: 8px; font-size: 14px; font-weight: 500; color: #f0efeb; }
.pf-card .hd > span:first-child { white-space: nowrap; }
.pf-card .hd .r { display: flex; align-items: center; gap: 8px; }
.pf-since { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 8px; border-radius: 56px; background: rgba(12,12,13,.9); font-size: 10px; font-weight: 500; color: #f5f5f5; white-space: nowrap; }
.pf-since i, .pf-info { display: inline-block; width: 15px; height: 15px; background: #f5f5f5; -webkit-mask: url(/icons/caret.svg) center / contain no-repeat; mask: url(/icons/caret.svg) center / contain no-repeat; }
.pf-info { width: 20px; height: 20px; -webkit-mask-image: url(/icons/info.svg); mask-image: url(/icons/info.svg); opacity: .8; }
.pf-pie { width: 128px; height: 128px; margin: 0 auto; display: block; }
.pf-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pf-legend span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 60px; background: rgba(39,39,40,.9); font-size: 12px; font-weight: 500; color: #f0f0f0; line-height: 1; }
.pf-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pf-legend b { font-weight: 500; }

/* Segmented control + search (top of the Messages screen) */
.seg-row { display: flex; align-items: flex-start; justify-content: space-between; }
.seg { display: flex; gap: 4px; padding: 4px; height: 34px; border-radius: 99px; background: rgba(165,165,166,.1); }
.seg span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 56px; font-size: 14px; font-weight: 500; color: #f5f5f5; line-height: 1.2; }
.seg span.on { background: rgba(12,12,13,.9); }
.seg span:not(.on) { opacity: .5; }
.seg i, .search i { display: inline-block; width: 16px; height: 16px; background: #f5f5f5; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.search { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: rgba(165,165,166,.1); opacity: .5; }

/* How it works */
.how { padding: 180px var(--side) 0; text-align: center; }
.how h2 { color: var(--ink-muted); margin-top: 32px; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 96px; text-align: left; }
.steps-3 > div { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.steps-3 > div { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
.steps-3 .n { width: 40px; height: 40px; border-radius: 50%; background: #f5f5f5; color: var(--bg); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.steps-3 h4 { margin: 8px 0 0; font-size: 22px; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.02em; }
.steps-3 p { font-size: 16px; color: var(--ink-muted); max-width: 340px; line-height: 1.45; }
.steps-3 .shot { margin: 8px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--card); aspect-ratio: 16 / 10; }
.steps-3 .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Direct-line photo + copy */
.trust { padding: 180px var(--side) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.trust-photo { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 4 / 5; background: var(--card); }
.trust-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
.trust-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 520px; }
.trust-copy .lede { color: var(--ink-muted); font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.trust-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.trust-points li { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 99px; background: rgba(165,165,166,.08); font-size: 15px; line-height: 1.35; color: var(--ink-muted); text-wrap: pretty; }
.trust-points li strong { color: var(--ink-soft); font-weight: 500; }
.trust-points .badge { width: 38px; height: 38px; }
.trust-points .badge i { width: 16px; height: 16px; }

/* Adviser portal */
.portal { padding: 180px var(--side) 0; }
.frame { margin: 64px 0 0; padding: 10px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--card); backdrop-filter: blur(12px); }
.frame-bar { display: flex; gap: 6px; padding: 2px 4px 10px; }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.frame img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-soft); }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.pcard { border-radius: 16px; border: 1px solid var(--line-soft); background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
/* height:auto beats the img's height attribute so the aspect-ratio box wins. */
.pcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line-soft); }
.pcard div { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.pcard h4 { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.01em; }
.pcard p { font-size: 15px; color: var(--ink-muted); line-height: 1.45; text-wrap: pretty; }
.strip { margin-top: 120px; padding: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.strip span { display: inline-flex; padding: 8px 14px; border-radius: 60px; background: var(--chip); font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; text-transform: none; }

/* ── Sections ── */
.section { padding: 160px var(--side) 0; }
.act { padding-top: 220px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: end; }
.split-photo { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 4 / 5; background: var(--card); }
.split-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.wide-photo { margin: 80px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 21 / 9; background: var(--card); }
.wide-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.wide-photo + .proofs { margin-top: 24px; }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 100px; }
.proof { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); }
.proof h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.01em; }
.proof p { margin: 0; color: var(--ink-body); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
#ethos .strip { margin-top: 64px; justify-content: flex-start; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 520px; }
.section-head .lede { color: var(--ink-dim); font-size: 17px; line-height: 1.45; max-width: 460px; }
/* Problem → solution pairs. Subgrid keeps the four problem cards on one row and the
   four answers on the next (so each row's cards share a height) while the DOM order
   stays problem-then-solution per topic — which is exactly the order a phone stacks. */
.pairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 24px; margin-top: 100px; }
.pair { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 10px; }
.pair > .problem, .pair > .solution { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); }
.pair > .solution { background: rgba(218,247,139,.05); border-color: rgba(218,247,139,.14); }
.pair .kicker { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); margin: 0; }
.pair .solution .kicker { color: var(--lime); }
.pair .link { justify-self: center; width: 1px; height: 22px; background: linear-gradient(to bottom, rgba(218,247,139,.15), rgba(218,247,139,.6)); position: relative; }
.pair .link::after { content: ""; position: absolute; left: -3px; bottom: -1px; width: 7px; height: 7px; border-right: 1px solid rgba(218,247,139,.7); border-bottom: 1px solid rgba(218,247,139,.7); transform: rotate(45deg); transform-origin: center; bottom: 2px; }
.pair p.body { color: var(--ink-body); font-size: 17px; font-weight: 400; line-height: 1.45; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head .badge { width: 34px; height: 34px; }
.card-head .badge i { width: 15px; height: 15px; }

/* Staggered "what Stow does" cards */
/* minmax(0, 1fr): a plain 1fr track can't shrink below its content's min-width, so the
   cards whose rows carry nowrap text pinned themselves at 325px and the first card
   was squeezed into the leftover. Equal tracks regardless of content. */
.cards { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 110px; align-items: start; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card:nth-child(2) { margin-top: 126px; } .card:nth-child(3) { margin-top: 268px; } .card:nth-child(4) { margin-top: 522px; }
.card p { color: var(--ink-soft); font-size: 18px; font-weight: 500; max-width: 280px; letter-spacing: -0.01em; }
.card-body {
  min-height: 560px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 16px;
  backdrop-filter: blur(12px);
}
.card-body .label { background: var(--chip); font-size: 13px; }

/* Photo band */
.band { margin: 160px var(--side) 0; border-radius: 16px; }
.band img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }

/* Waitlist */
.join { padding: 200px var(--side) 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.join h2 { color: var(--ink); }
.join .lede { margin-top: 20px; max-width: 440px; color: var(--ink-muted); }
form { display: flex; flex-direction: column; gap: 22px; max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; text-transform: none; padding-left: 6px; }
.field input {
  background: var(--chip); border: 1px solid transparent; border-radius: 60px;
  color: var(--ink-soft); font-family: var(--sans); font-weight: 400; font-size: 16px; padding: 14px 18px;
}
.field input::placeholder { color: var(--ink-dim); }
.field input:focus { outline: none; border-color: rgba(218,247,139,.6); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.hint { font-size: 13px; color: var(--ink-dim); }
.msg { font-size: 16px; color: var(--ink); min-height: 1.4em; }
.msg.err { color: var(--orange); }
.trial { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.trial p { font-size: 15px; color: var(--ink-dim); }


@media (max-width: 1100px) {
  .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-photo { aspect-ratio: 16 / 10; max-width: 640px; }
  .wide-photo { aspect-ratio: 16 / 9; margin-top: 56px; }
  .act { padding-top: 160px; }
  /* Mockup moves inline between the headline and the tagline. */
  .hero { display: flex; flex-direction: column; }
  .hero-top { order: 1; padding-top: 140px; }
  .mockup { order: 2; position: relative; inset: auto; width: calc(100% + 2 * var(--side)); margin: 8px calc(-1 * var(--side)) 0; aspect-ratio: 4 / 3; z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%); }
  .mockup img { object-position: 50% 50%; }
  html.js .hero .mockup { transform: translateY(16px); }
  html.js.loaded .hero .mockup { transform: none; }
  .hero-bottom { order: 3; }
  .steps-3 { grid-template-columns: 1fr; gap: 40px; }
  .pairs, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal { padding-top: 140px; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 140px; }
  .trust-photo { aspect-ratio: 16 / 10; }
  .trust-copy { max-width: 560px; }
  .pairs { row-gap: 40px; }
  .card:nth-child(n) { margin-top: 0; }
  .cards { gap: 40px 24px; align-items: stretch; }
  .card-body { min-height: 0; flex: 1; }
  .dots { display: none; }
}
@media (max-width: 720px) {
  .proofs { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 56px; }
  :root { --gutter: 20px; }
  .hero-top { padding-top: 120px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
  .section { padding-top: 110px; }
  .pairs, .cards, .qas { grid-template-columns: minmax(0, 1fr); }
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .trust { padding-top: 110px; gap: 32px; }
  .trust-photo { aspect-ratio: 4 / 5; }
  .portal { padding-top: 110px; } .frame { margin-top: 40px; padding: 6px; }
  .pairs { margin-top: 64px; row-gap: 40px; }
  .card p { max-width: none; }
  .join { grid-template-columns: 1fr; gap: 40px; padding: 120px var(--side) 100px; }
  .how { padding-top: 110px; } .steps-3 { margin-top: 56px; }
  .nav .btn-line { display: none; }
  .qas { margin-top: 40px; }
}
/* ── Motion ─────────────────────────────────────────────────────────
   One curve everywhere ("easy ease": slow in, slow out), one duration
   scale. Elements start hidden only once JS has loaded (html.js) so the
   page is fully readable without it. */
:root { --ease: cubic-bezier(0.33, 0, 0.2, 1); --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --dur: 900ms; }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
html.js .reveal-line { display: block; overflow: hidden; }
html.js .reveal-line > span { display: block; transform: translateY(110%); }
html.js.loaded .reveal-line > span { transform: none; transition: transform 1100ms var(--ease-out); }
html.js .nav { opacity: 0; transform: translateY(-8px); }
html.js.loaded .nav { opacity: 1; transform: none; transition: opacity 700ms var(--ease) 500ms, transform 700ms var(--ease) 500ms; }
html.js .hero-bottom > * { opacity: 0; transform: translateY(16px); }
html.js.loaded .hero-bottom > * { opacity: 1; transform: none; transition: opacity 800ms var(--ease) 700ms, transform 800ms var(--ease) 700ms; }
html.js.loaded .hero-bottom > *:nth-child(2) { transition-delay: 850ms; }
html.js .hero-glow { opacity: 0; transform: scale(.92); transform-origin: 50% 20%; }
html.js.loaded .hero-glow { opacity: 1; transform: none; transition: opacity 1600ms var(--ease) 200ms, transform 1600ms var(--ease) 200ms; }
html.js .mockup { opacity: 0; transform: translateX(24px) scale(1.02); }
html.js.loaded .mockup { opacity: 1; transform: none; transition: opacity 1400ms var(--ease) 350ms, transform 1600ms var(--ease-out) 350ms; }
html.js .dots i { transform: scale(0); }
html.js.loaded .dots i { transform: none; transition: transform 700ms var(--ease-out); animation: pulse 4s var(--ease) infinite; animation-delay: var(--d, 0ms); }
@keyframes pulse { 0%, 100% { opacity: .85; } 50% { opacity: 1; filter: drop-shadow(0 0 10px rgba(218,247,139,.7)); } }
.btn { transition: background .2s var(--ease), color .2s var(--ease), transform .3s var(--ease); }
.btn::after { transition: width .3s var(--ease), margin-left .3s var(--ease), opacity .25s var(--ease), transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 80ms; }
.field input { transition: border-color 300ms var(--ease), background 300ms var(--ease); }
.field input:focus { background: rgba(39,39,40,1); }
.band { overflow: hidden; }
.band img { transform: scale(1.12) translateY(var(--py, 0)); will-change: transform; transition: transform 120ms linear; }
.card-body, .pair > .problem, .pair > .solution { transition: border-color 400ms var(--ease), transform 600ms var(--ease); }
.pair:hover > .solution { border-color: rgba(218,247,139,.45); }
.card:hover .card-body { border-color: rgba(218,247,139,.45); transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-line > span, html.js .nav, html.js .hero-bottom > *, html.js .hero-glow, html.js .dots i, html.js .mockup {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .band img { transform: none; }
  .blobs i { animation: none !important; }
  .btn, .btn::after, .card-body, .field input { transition: none; }
}

/* Website C (exploration): minimal scaffolding, the app's own components kept.
   Kept from the app: glass badges + their colours, pill rows, rounded screenshot
   cards, pill buttons and inputs. Removed (website-only): glows and blobs,
   parallax, chip labels, boxed text cards, chip strip. */
:root { --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --rule: rgba(240,239,235,.12); }

/* Atmosphere off */
.blobs, .hero-glow { display: none; }
.hero-media::before { opacity: .45; }

/* Section labels: plain lime mono, no chip. Card titles: readable sans. */
.section-head > .label, .trust-copy > .label, .how > .label, .join .label, .hero .launch, .lp-hero > .label, .lp-cta .label {
  background: none; padding: 0; border-radius: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
}
.card-head .label { background: none; padding: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-soft); text-transform: none; }

/* Problem → solution: rules instead of boxes; glass badge stays */
.pair > .problem, .pair > .solution {
  background: none; border: 0; border-top: 1px solid var(--rule);
  border-radius: 0; padding: 20px 0 4px;
}
.pair > .solution { border-top-color: rgba(218,247,139,.35); }
.pair .link { display: none; }
.pairs { row-gap: 16px; }

/* Trust proofs: same treatment */
.proof { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 20px 0 0; }
.proofs { gap: 40px 32px; }
.proof h3 { font-size: 18px; }

/* FAQ: hairline list */
.qa { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
.qas .qa:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
.qa summary { padding: 20px 40px 20px 0; }
.qa summary::after { right: 4px; }
.qa p { padding: 0 0 22px; }

/* Strip: plain text, dot separated */
.strip span { background: none; padding: 0; color: var(--ink-dim); font-size: 14px; }
.strip span + span::before { content: "·"; margin-right: 10px; color: var(--lime); }

/* One photographic tone: dark and warm */
.split-photo img, .wide-photo img { filter: brightness(.82) saturate(.8) contrast(1.04); }

/* Landing pages (scripts/build_landing_pages.py) */
.lp-hero { padding: 168px var(--side) 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.lp-hero h1 { font-size: clamp(40px, 4.6vw, 64px); max-width: 18ch; color: var(--ink); }
.lp-hero .lede { font-size: 19px; line-height: 1.45; color: var(--ink-muted); max-width: 600px; }
.lp-hero .frame { width: 100%; margin-top: 40px; }
.lp-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-dim); }
.lp-crumbs a { color: var(--ink-dim); text-decoration: none; }
.lp-crumbs a:hover { color: var(--ink-soft); }
.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-photo.lp-shot { aspect-ratio: auto; background: var(--card); padding: 10px; }
.trust-photo.lp-shot img { height: auto; border-radius: 10px; object-fit: contain; }
.lp-more { margin-top: 32px; }
.lp-more a { color: var(--lime); text-decoration: none; font-size: 16px; }
.lp-more a:hover { text-decoration: underline; }
.lp-cta { padding: 180px var(--side) 40px; }
.lp-cta > div { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 640px; }
.lp-cta .lede { color: var(--ink-muted); font-size: 18px; line-height: 1.45; }
.lp-related { padding: 100px var(--side) 40px; }
.lp-related .label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); background: none; padding: 0; margin: 0 0 12px; max-width: none; }
.lp-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.lp-related li { border-top: 1px solid var(--rule); }
.lp-related a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: var(--ink-soft); text-decoration: none; font-size: 18px; font-weight: 500; }
.lp-related a i { width: 16px; height: 16px; background: var(--ink-dim); -webkit-mask: url(/icons/arrow-right.svg) center / contain no-repeat; mask: url(/icons/arrow-right.svg) center / contain no-repeat; transition: transform .25s, background .2s; }
.lp-related a:hover i { transform: translateX(4px); background: var(--lime); }
@media (max-width: 720px) {
  .lp-hero { padding-top: 120px; }
  .lp-related ul { grid-template-columns: minmax(0, 1fr); }
  .lp-cta { padding-top: 120px; }
}

/* "See Stow in your colours" (brand-preview.js). Mock-ups read --bp-* set by the script. */
.bp-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; margin-top: 64px; align-items: start; }
.bp-controls { display: flex; flex-direction: column; gap: 20px; }
.bp-label { font-size: 14px; font-weight: 500; color: var(--ink-soft); padding-left: 6px; }
.bp-drop { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px dashed rgba(240,239,235,.22); cursor: pointer; transition: border-color .2s, background .2s; }
.bp-drop:hover { border-color: rgba(218,247,139,.6); background: rgba(218,247,139,.04); }
.bp-drop > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.bp-drop strong { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.bp-drop span span { font-size: 14px; color: var(--ink-dim); }
.bp-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bp-file:focus-visible + * , .bp-drop:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.bp-colours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bp-colour { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 60px; background: var(--chip); cursor: pointer; }
.bp-colour input { width: 34px; height: 34px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; flex: none; }
.bp-colour input::-webkit-color-swatch-wrapper { padding: 0; }
.bp-colour input::-webkit-color-swatch { border: 1px solid #666; border-radius: 50%; }
.bp-colour input::-moz-color-swatch { border: 1px solid #666; border-radius: 50%; }
.bp-colour > span { display: flex; flex-direction: column; gap: 2px; }
.bp-colour strong { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.bp-colour span span { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.bp-msg { margin: 0; font-size: 15px; color: var(--ink-muted); min-height: 1.4em; }
.bp-msg.err { color: #f88d2d; }
.bp-note { margin-top: 28px; font-size: 14px; color: var(--ink-dim); }

.bp-stage {
  --bp-bg: #0c0d0b; --bp-card: #141512; --bp-input: #1b1c19; --bp-primary: #daf78b; --bp-on-primary: #000; --bp-readable: #daf78b;
  --bp-secondary: #12925f; --bp-secondary-readable: #16bb83; --bp-tint: rgba(218,247,139,.16);
  --bp-chip-bg: rgba(218,247,139,.10); --bp-chip-line: rgba(218,247,139,.20);
  --bp-line: rgba(255,255,255,.07); --bp-pill: #272728; --bp-t1: #f0efeb; --bp-t2: #d9d9d9; --bp-t3: #a5a5a6; --bp-t4: #8a8a8a;
  position: relative; padding-bottom: 40px;
}
.bp-stage * { transition: background-color .35s, color .35s, border-color .35s; }
.bp-stage svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Adviser portal: the real Dashboard (Layout.tsx + DashboardPage.tsx) */
.bp-portal {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); width: 80%; border-radius: 14px; overflow: hidden;
  background: var(--bp-bg); border: 1px solid var(--bp-line); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); font-size: 11px;
}
.bp-side { display: flex; flex-direction: column; border-right: 1px solid var(--bp-line); min-height: 100%; background: var(--bp-side); }
.bp-brand { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 16px 12px 14px; border-bottom: 1px solid var(--bp-line); }
.bp-fname { font-size: 13px; font-weight: 500; color: var(--bp-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.bp-logo { flex: none; box-sizing: border-box; width: 24px; height: 24px; border-radius: 7px; background: var(--bp-primary); color: var(--bp-on-primary); display: grid; place-items: center; overflow: hidden; }
.bp-logo.round { width: 30px; height: 30px; border-radius: 50%; }
.bp-logo b { font-size: 9px; font-weight: 600; }
/* An uploaded logo sits on white with breathing room, like an app icon:
   4px inset in the 24px tile, 7px in the 30px circle so corners never clip.
   (Fixed px: percentage padding is measured against the parent's width.) */
.bp-logo img { display: none; width: 100%; height: 100%; object-fit: contain; }
.bp-logo.has-img { display: block; background: #fff; padding: 4px; }
.bp-logo.round.has-img { padding: 7px; }
.bp-logo.has-img img { display: block; }
.bp-logo.has-img b { display: none; }
.bp-nav { list-style: none; margin: 0; padding: 10px 8px 0; display: flex; flex-direction: column; gap: 2px; }
.bp-nav li { margin: 0; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 99px; color: var(--bp-t4); font-weight: 500; }
.bp-nav li svg { opacity: .6; }
.bp-nav li.on { background: var(--bp-pill); color: var(--bp-t1); font-weight: 400; }
.bp-nav li.on svg { opacity: 1; }
.bp-badge { margin-left: auto; min-width: 15px; height: 15px; border-radius: 99px; display: grid; place-items: center; background: #eb4568; color: #fff; font-size: 8px; font-weight: 700; }
.bp-nav-end { margin-top: auto; padding-bottom: 8px; }
.bp-user { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--bp-line); }
.bp-avatar { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--bp-line); background: var(--bp-soft); flex: none; }
.bp-user > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.bp-user b { font-size: 10px; font-weight: 600; color: var(--bp-t1); }
.bp-user span span { font-size: 9px; color: var(--bp-t4); }
.bp-main { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bp-head { display: flex; align-items: flex-start; justify-content: space-between; }
.bp-head > div { display: flex; flex-direction: column; gap: 3px; }
.bp-head b { font-size: 15px; font-weight: 500; color: var(--bp-t1); }
.bp-head span { color: var(--bp-t3); }
.bp-bell { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--bp-line); display: grid; place-items: center; color: var(--bp-t2); }
.bp-bell i { position: absolute; top: -4px; right: -3px; min-width: 12px; height: 12px; border-radius: 99px; background: #eb4568; color: #fff; font-size: 7px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.bp-seg { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 99px; background: var(--bp-soft); }
.bp-seg span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; color: var(--bp-t3); }
.bp-seg span.on { background: var(--bp-pill); color: var(--bp-t1); }
.bp-card { padding: 12px; border-radius: 12px; background: var(--bp-card); border: 1px solid var(--bp-line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-chip { align-self: flex-start; padding: 3px 8px; border-radius: 99px; background: var(--bp-pill); color: var(--bp-t2); font-size: 10px; }
.bp-big { font-size: 24px; font-weight: 500; color: var(--bp-t1); letter-spacing: -0.02em; line-height: 1.1; }
.bp-aum-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bp-up { display: inline-flex; padding: 3px 7px; border-radius: 99px; background: rgba(7,186,126,.12); color: #16bb83; font-size: 9px; font-weight: 500; }
.bp-dim { color: var(--bp-t4); font-size: 9px; }
.bp-stats { display: flex; gap: 5px; }
.bp-stats > span { padding: 4px 8px; border-radius: 99px; background: var(--bp-soft); color: var(--bp-t2); font-size: 10px; white-space: nowrap; }
.bp-stats b { font-weight: 500; }
.bp-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.bp-ct { font-size: 11px; font-weight: 500; color: var(--bp-t1); }
/* Asset allocation: the first class is the brand colour, as in DashboardPage's ASSET_COLOURS */
.bp-donut {
  position: relative; width: 104px; height: 104px; margin: 6px auto 4px; border-radius: 50%;
  background: conic-gradient(var(--bp-c1) 0 31%, transparent 31% 32%, var(--bp-c2) 32% 63%, transparent 63% 64%, var(--bp-c3) 64% 79%, transparent 79% 80%, var(--bp-c4) 80% 86%, transparent 86% 87%, var(--bp-c5) 87% 92%, transparent 92% 93%, var(--bp-c6) 93% 98%, transparent 98% 99%, var(--bp-c7) 99% 100%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 63%, #000 64%); mask: radial-gradient(circle closest-side, transparent 63%, #000 64%);
}
.bp-donut > span { display: none; }
.bp-donut.sm { width: 82px; height: 82px; margin: 2px auto; }
.bp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.bp-legend span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 99px; background: var(--bp-pill); color: var(--bp-t1); font-size: 9px; font-weight: 500; white-space: nowrap; }
.bp-legend i { width: 6px; height: 6px; border-radius: 50%; }
.bp-legend b { font-weight: 500; }
.bp-bars { display: flex; align-items: flex-end; gap: 7px; height: 104px; margin-top: 10px; padding: 0 2px; border-bottom: 1px dashed var(--bp-line); }
.bp-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--bp-c1), var(--bp-c3)); }
.bp-axis { display: flex; justify-content: space-between; color: var(--bp-t4); font-size: 9px; }

/* Client app: the real Home screen (Figma 202-909) */
.bp-phone .bp-legend span:nth-child(n+4) { display: none; }
.bp-phone {
  position: absolute; right: 0; bottom: 0; width: 232px; height: 476px; padding: 34px 12px 12px; border-radius: 40px;
  background: var(--bp-bg); border: 7px solid #1d1d1f; box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.bp-island { position: absolute; top: 9px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 99px; background: #000; }
.bp-ph-top { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
/* Account switcher chip: brand tint, as in the app's MainTabs header */
.bp-acct { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 10px; border-radius: 99px; background: var(--bp-chip-bg); border: 1px solid var(--bp-chip-line); color: var(--bp-readable); font-size: 11px; font-weight: 500; }
.bp-acct svg { width: 12px; height: 12px; }
.bp-pf { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 2px; }
.bp-pf-value { font-size: 27px; font-weight: 500; color: var(--bp-t1); letter-spacing: -0.02em; line-height: 1; }
.bp-pf .bp-up { font-size: 10px; padding: 4px 7px; }
.bp-pf-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--bp-card); border: 1px solid var(--bp-line); }
.bp-pf-hd { display: flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--bp-t1); }
.bp-since { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 7px; border-radius: 56px; background: var(--bp-pill); border: 1px solid var(--bp-line); font-size: 8px; color: var(--bp-t1); }
.bp-since svg { width: 10px; height: 10px; }
.bp-tabbar { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 5px; border-radius: 99px; background: var(--bp-pill); border: 1px solid var(--bp-line); }
.bp-tabbar span { display: grid; place-items: center; width: 44px; height: 32px; border-radius: 99px; color: var(--bp-t4); }
.bp-tabbar span.on { background: var(--bp-active); color: var(--bp-t1); }
.bp-tabbar svg { width: 16px; height: 16px; }

/* Chart tones (chartTones in brand-preview.js): fills and AA text per class */
.bp-stage .c1 { --c: var(--bp-c1); --ct: var(--bp-c1-text); } .bp-stage .c2 { --c: var(--bp-c2); --ct: var(--bp-c2-text); }
.bp-stage .c3 { --c: var(--bp-c3); --ct: var(--bp-c3-text); } .bp-stage .c4 { --c: var(--bp-c4); --ct: var(--bp-c4-text); }
.bp-stage i.c1, .bp-stage i.c2, .bp-stage i.c3, .bp-stage i.c4 { background: var(--c); }
.bp-stage b.c1, .bp-stage b.c2, .bp-stage b.c3, .bp-stage b.c4 { color: var(--ct); }
.bp-stage[data-mode="light"] .bp-phone { border-color: #d4d4d6; box-shadow: 0 40px 90px -40px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); }
.bp-stage[data-mode="light"] .bp-portal { box-shadow: 0 40px 90px -40px rgba(0,0,0,.5); }
.bp-stage[data-mode="light"] .bp-up { background: rgba(7,150,100,.1); color: #0b7a54; }

/* Controls added with the website preview and light mode */
.bp-url-row { display: flex; gap: 8px; }
.bp-url-row input { flex: 1; min-width: 0; }
.bp-url-row .btn { flex: none; }
.bp-mode { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 99px; background: var(--chip); }
.bp-mode button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 99px; border: 0; cursor: pointer; background: none; color: var(--ink-dim); }
.bp-mode button[aria-pressed="true"] { background: #f5f5f5; color: #0c0c0d; }
.bp-mode button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

@media (max-width: 1100px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-portal { width: 100%; }
  .bp-stage { padding-bottom: 300px; }
}
@media (max-width: 720px) {
  .bp-portal { grid-template-columns: minmax(0, 1fr); }
  .bp-side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--bp-line); }
  .bp-brand { border-bottom: 0; flex: 1; }
  .bp-nav, .bp-user { display: none; }
  .bp-two { grid-template-columns: minmax(0, 1fr); }
  .bp-stats { display: none; }
  .bp-stage { padding-bottom: 0; display: flex; flex-direction: column; gap: 24px; }
  .bp-phone { position: relative; align-self: center; }
  .bp-colours { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bp-stage * { transition: none; } }

/* Animated message thread (scripts/message_thread.html + thread.js): the
   adviser portal's conversation view, playing out as it scrolls into view. */
.mt { width: 100%; }
.mt-win { padding: 14px; border-radius: 28px; border: 1px solid rgba(255,255,255,.1); background: #0c0c0d; }
.mt-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 16px 16px 0 0; background: #141416; border-bottom: 1px solid rgba(255,255,255,.06); }
.mt-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #3a1400;
  background: #ed5a04; border: 1px solid #666; box-shadow: inset 0 -4px 4px rgba(255,255,255,.25), inset 0 4px 4px rgba(0,0,0,.25); }
.mt-who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mt-who b { font-size: 15px; font-weight: 500; color: #f0efeb; }
.mt-who span { font-size: 12px; color: #8a8a8a; }
.mt-bell { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; color: #d9d9d9; }
.mt-bell svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mt-bell i { position: absolute; top: -5px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #e15e42; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.mt-body { display: flex; flex-direction: column; gap: 14px; height: 470px; padding: 22px clamp(16px, 9%, 120px); overflow: hidden; }
.mt-day { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.mt-day::before, .mt-day::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.07); }
.mt-msg { display: flex; flex-direction: column; gap: 6px; max-width: 72%; align-self: flex-start; }
.mt-msg.out { align-self: flex-end; align-items: flex-end; }
.mt-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d9d9d9; padding: 0 4px; }
.mt-ent { padding: 3px 7px; border-radius: 5px; background: rgba(218,247,139,.12); color: #daf78b; font-size: 11px; }
.mt-bubble { display: flex; flex-direction: column; gap: 4px; padding: 11px 15px; border-radius: 16px; background: #161618; border: 1px solid rgba(255,255,255,.1); font-size: 14px; line-height: 1.4; color: #e8e8e8; }
.mt-bubble b { font-size: 14px; font-weight: 600; color: #f5f5f5; }
.mt-msg.out .mt-bubble { background: #daf78b; border-color: #daf78b; color: #1b1f12; }
.mt-msg.out .mt-bubble b { color: #0c0c0d; }
.mt-msg time { font-size: 11px; color: #8a8a8a; padding: 0 4px; }
.mt-typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #161618; border: 1px solid rgba(255,255,255,.1); }
.mt-typing.out { align-self: flex-end; background: rgba(218,247,139,.16); border-color: rgba(218,247,139,.3); }
.mt-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a5a5a6; animation: mt-dot 1.1s infinite ease-in-out; }
.mt-typing.out i { background: #daf78b; }
.mt-typing i:nth-child(2) { animation-delay: .15s; } .mt-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mt-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Steps are hidden only while the script runs them; each arrives with a rise */
.mt-live [data-step] { display: none; }
.mt-live [data-step].on { display: flex; animation: mt-in .45s cubic-bezier(.16, 1, .3, 1) both; }
.mt-live .mt-msg.out.on { animation-name: mt-in-out; }
.mt-live [data-step].gone { display: none; }
@keyframes mt-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes mt-in-out { from { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: right bottom; } }
.mt:not(.mt-live) .mt-typing { display: none; }

@media (max-width: 720px) {
  .mt-win { padding: 8px; border-radius: 22px; }
  .mt-body { height: 540px; padding: 18px 12px; }
  .mt-msg { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { .mt-typing i { animation: none; } }
.lp-thread { width: 100%; max-width: 1040px; margin-top: 40px; }
.lp-how-thread { min-width: 0; }
.lp-how-thread .mt-body { height: 500px; padding-inline: 16px; }
/* Home "How it works" step 3: the thread scaled down to fit the step's card */
.steps-3 .shot.shot-thread { aspect-ratio: auto; padding: 0; border: 0; background: none; overflow: hidden; }
.shot-thread .mt { zoom: .62; }
.shot-thread .mt-body { height: 520px; padding-inline: 14px; }
.shot-thread .mt-msg { max-width: 84%; }
