/* MSV site v6 kit: shared by Investors, Founders and Enablers.
   - .app: the product window. Drawn from the approved app screens (mockups/dist/v5.html), with sample startups and roles only.
   - .tour: today's pain on the left, the part of the app that removes it on the right (sticky, scroll or tap).
   - .chain: one sample startup, followed from its programme to an investor's Deal Room (autoplays once, scrub or tap).
   - .flow: where startups come from, with packets moving into the MSV review. */

/* ── The app window ── */
.app { --acc: var(--sec-sky); --acc-ink: var(--sec-sky-ink); position: relative; border-radius: 18px; background: var(--panel); color: var(--ink); text-align: left; font-size: 14px; line-height: 1.45; overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(10, 20, 45, 0.55), 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.app[data-role='founder'] { --acc: var(--sec-lilac); --acc-ink: var(--sec-lilac-ink); }
.app[data-role='enabler'] { --acc: var(--sec-sand); --acc-ink: var(--sec-sand-ink); }
.app__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.app__dots { display: flex; gap: 6px; } .app__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.app__url { flex: 1; min-width: 0; max-width: 440px; margin: 0 auto; padding: 4px 12px; border-radius: 7px; background: var(--panel); color: var(--ink2); font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); }
.app__nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--acc) 60%, var(--panel)); }
.app__who { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; line-height: 1.2; }
.app__who small { display: block; color: var(--ink2); font-size: 11.5px; font-weight: 500; }
.app__who .a-av { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.app__nav > span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink2); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background 300ms var(--ease-out), color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.app__nav > span b { font-weight: inherit; }
.app__nav > span.on { background: var(--panel); color: var(--ink); font-weight: 650; box-shadow: var(--sh-card); }
.app__nav .i { width: 16px; height: 16px; }
.app--rail .app__body { grid-template-columns: 58px minmax(0, 1fr); }
.app--rail .app__nav > span { justify-content: center; padding: 9px 0; }
.app--rail .app__nav > span b, .app--rail .app__who > span:not(.a-av) { display: none; }
.app--rail .app__who { justify-content: center; padding: 4px 0 12px; }
.app__main { display: grid; min-width: 0; padding: 22px 24px 26px; container-type: inline-size; }
@media (max-width: 760px) { .app__body, .app--rail .app__body { grid-template-columns: minmax(0, 1fr); } .app__nav { display: none; } .app__main { padding: 18px 16px 20px; } }

/* screens: stacked in one cell, the active one shows; its parts rise in turn */
.app .scr { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity 380ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s linear 380ms; }
.app .scr.on { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.app .scr .st { opacity: 0; }
.app .scr.on .st { animation: kit-rise 560ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 140ms); }
@keyframes kit-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* app parts */
.a-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; }
.a-eb { margin: 0 0 4px; color: var(--acc-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.a-h { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.a-sub { margin: 3px 0 0; color: var(--ink2); font-size: 12.5px; }
.a-tabs { display: flex; gap: 18px; margin: 0 0 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; overflow: hidden; }
.a-tabs span { padding: 0 0 9px; color: var(--ink2); white-space: nowrap; }
.a-tabs .on { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--ink); }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--sunken); color: var(--ink2); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.a-chip .i { width: 13px; height: 13px; }
.c-ok { background: var(--mint); color: var(--mint-ink); } .c-sky { background: var(--sky); color: var(--sky-ink); } .c-lil { background: var(--lilac); color: var(--lilac-ink); }
.c-sand { background: var(--sec-sand); color: var(--sec-sand-ink); } .c-but { background: var(--butter); color: var(--butter-ink); } .c-rose { background: var(--rose); color: var(--rose-ink); }
.c-ink { background: var(--ink); color: var(--canvas); }
.a-card { min-width: 0; padding: 16px; border-radius: 14px; background: var(--panel); color: var(--ink); box-shadow: var(--sh-card); }
.a-soft { min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--sunken); }
.a-grid { display: grid; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); gap: 12px; }
.a-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.a-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 700; }
.a-name { margin: 0 0 4px; font-size: 15.5px; font-weight: 650; line-height: 1.2; }
.a-meta { color: var(--ink2); font-size: 12.5px; }
.a-p { margin: 6px 0 8px; font-size: 13.5px; line-height: 1.45; }
.a-kv { display: grid; grid-template-columns: repeat(var(--k, 4), minmax(0, 1fr)); gap: 8px; margin: 10px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.a-kv p { margin: 0; } .a-kv small { display: block; color: var(--ink2); font-size: 11.5px; } .a-kv b { font-size: 15px; font-weight: 650; }
.a-stat { display: grid; gap: 2px; } .a-stat small { color: var(--ink2); font-size: 12px; } .a-stat b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.a-bar { height: 6px; border-radius: 9px; background: var(--sunken); overflow: hidden; }
.a-bar i { display: block; width: var(--v, 50%); height: 100%; border-radius: inherit; background: var(--acc-ink); transform-origin: left; }
.app .scr.on .a-bar i, .dos__lay.on .a-bar i { animation: kit-grow 1000ms var(--ease-out) both 260ms; }
@keyframes kit-grow { from { transform: scaleX(0); } }
.a-btn, .a-btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.a-btn { background: var(--ink); color: var(--canvas); } .a-btn2 { box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); }
.a-btn .i, .a-btn2 .i { width: 14px; height: 14px; }
.a-rows { display: grid; }
.a-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.a-row:last-child { border-bottom: 0; }
.a-row .grow { flex: 1; min-width: 0; }
.a-row .a-name { margin: 0; font-size: 14px; }
.a-k { margin: 0 0 8px; color: var(--ink2); font-size: 12px; font-weight: 650; }
.a-tbl { display: grid; font-size: 13px; }
.a-tbl > div { display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.a-tbl > div:first-child { color: var(--ink2); font-size: 11.5px; font-weight: 650; }
.a-tbl > div:last-child { border-bottom: 0; }
.a-tbl .r { text-align: right; }
.up { color: var(--mint-ink); font-weight: 650; }
.a-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--acc); color: var(--ink); font-size: 13px; }
.a-banner .i { width: 18px; height: 18px; color: var(--acc-ink); }
/* kanban: its own sideways scroll inside the window on small screens */
.a-kb { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(132px, 1fr)); gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.a-col { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 10px; border-radius: 12px; background: var(--sunken); }
.a-col h4 { display: flex; justify-content: space-between; margin: 0 0 2px; font-size: 12px; font-weight: 650; color: var(--ink2); }
.a-mini { padding: 10px; border-radius: 10px; background: var(--panel); box-shadow: var(--sh-card); font-size: 12px; }
.a-mini b { display: block; font-size: 13px; }
.a-mini small { color: var(--ink2); }
.app .scr.on .a-hop { animation: kit-hop 1100ms var(--ease-out) both 1300ms; }
@keyframes kit-hop { 0% { transform: none; } 30% { transform: translateY(-8px) rotate(-2deg); box-shadow: var(--sh-pop); } 100% { transform: translateX(calc(100% + 30px)); box-shadow: var(--sh-card); } }
/* the highlight the tour puts on the part it talks about */
.app .hl { position: relative; z-index: 1; border-radius: 12px; animation: kit-ring 2.2s ease-in-out infinite; }
@keyframes kit-ring { 0%, 100% { box-shadow: 0 0 0 2px var(--acc-ink), 0 0 0 6px color-mix(in srgb, var(--acc-ink) 14%, transparent); } 50% { box-shadow: 0 0 0 2px var(--acc-ink), 0 0 0 11px color-mix(in srgb, var(--acc-ink) 4%, transparent); } }
/* a check list that ticks itself */
.a-tick { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.a-tick li { display: flex; align-items: center; gap: 8px; }
.a-tick li::before { content: ''; display: grid; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--sunken) center / 12px no-repeat; box-shadow: inset 0 0 0 1.5px var(--line2); }
.dos__lay.on .a-tick li::before, .app .scr.on .a-tick li::before { animation: kit-tick 400ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 260ms + 400ms); }
@keyframes kit-tick { to { background-color: var(--mint-ink); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } }
@container (max-width: 560px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); }
  .a-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-hide-sm { display: none !important; }
  .a-row { flex-wrap: wrap; }
  .a-row .grow { flex-basis: 55%; }
}

/* the deal card, as an investor sees it in MSV Deals */
.dc { display: grid; gap: 2px; }
.dc__top { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.dc__raise { display: flex; justify-content: space-between; gap: 8px; margin: 2px 0 6px; font-size: 12.5px; color: var(--ink2); }
.dc__raise b { color: var(--ink); }
.dc__trust { margin-top: 10px; }
.dc__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── The tour ── */
.tour__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.tour__steps { margin: 0; padding: 0; list-style: none; }
.tour__steps li { display: flex; align-items: center; min-height: 64vh; }
.tour__steps li:first-child { min-height: 46vh; align-items: flex-start; }
.tour__steps button { display: grid; gap: 10px; width: 100%; padding: 8px 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; opacity: 0.68; transition: opacity 420ms var(--ease-out); }
.tour__steps li.on button, .tour__steps button:hover, .tour__steps button:focus-visible { opacity: 1; }
.tour__n { color: var(--acc-ink, var(--ink2)); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.tour__pain { display: flex; gap: 8px; align-items: baseline; color: var(--ink2); font-size: 16px; line-height: 1.45; }
.tour__pain::before { content: 'Today'; flex: none; padding: 2px 8px; border-radius: 999px; background: var(--rose); color: var(--rose-ink); font-size: 12px; font-weight: 700; }
.tour__fix { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.tour__more { max-width: 46ch; color: var(--ink2); font-size: 16.5px; line-height: 1.55; }
.tour__stage { position: sticky; top: 92px; display: grid; gap: 14px; }
.tour__stage .app { transform-origin: top center; }
.tour__prog { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tour__prog button { min-height: 34px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: 999px; background: var(--sunken); color: var(--ink2); font: 600 13px/1 var(--sans); cursor: pointer; transition: background var(--d-press) var(--ease-out), color var(--d-press) var(--ease-out); }
.tour__prog button:hover { color: var(--ink); }
.tour__prog button[aria-pressed='true'] { background: var(--ink); color: var(--canvas); }
@media (max-width: 960px) {
  .tour__grid { grid-template-columns: minmax(0, 1fr); }
  .tour__steps { order: 2; }
  .tour__steps li { display: none; min-height: 0; }
  .tour__steps li.on { display: block; }
  .tour__steps li.on button { opacity: 1; cursor: default; }
  .tour__stage { position: static; }
  .tour__prog { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tour__prog button { flex: none; }
}

/* ── The trust chain ── */
.chain__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.chain__steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: ch; }
.chain__steps button { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; width: 100%; padding: 16px 16px 16px 0; border: 0; border-radius: 16px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.chain__steps button::before { counter-increment: ch; content: counter(ch); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sunken); color: var(--ink2); font-weight: 700; transition: background 300ms var(--ease-out), color 300ms var(--ease-out); }
.chain__steps li:not(:last-child) button::after { content: ''; position: absolute; left: 19px; top: 58px; bottom: -10px; width: 2px; border-radius: 2px; background: var(--line); }
.chain__steps b { align-self: center; font-size: 19px; letter-spacing: -0.01em; }
.chain__steps span { color: var(--ink2); font-size: 15px; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 500ms var(--ease-out), opacity 400ms var(--ease-out); }
.chain__steps .on span { max-height: 9em; opacity: 1; }
.chain__steps .on::before, .chain__steps .done::before { background: var(--ch-ink, var(--ink)); color: #fff; }
.chain__steps .done::before { content: '✓'; }
.chain__steps .done::after { background: var(--ch-ink, var(--ink)) !important; }
.chain__ctl { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.chain__ctl button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: var(--canvas); cursor: pointer; }
.chain__ctl button .i { width: 18px; height: 18px; }
.chain__ctl input { flex: 1; accent-color: var(--ink); }
.chain__ctl output { min-width: 6.5em; color: var(--ink2); font-size: 14px; font-weight: 600; text-align: right; }
.chain__ctl [data-play] .i-play { display: none; } .chain__ctl [data-play][aria-pressed='false'] .i-play { display: block; } .chain__ctl [data-play][aria-pressed='false'] .i-pause { display: none; }
/* the dossier that fills as the startup moves */
.dos { --c-ink: var(--ch-ink, var(--sec-sky-ink)); position: relative; padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: var(--panel); box-shadow: var(--sh-pop); }
.dos__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.dos__head .a-av { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.dos__head h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.dos__vouch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 18px 0 6px; }
.dos__vouch span { display: grid; gap: 6px; color: var(--ink3); font-size: 12px; font-weight: 650; transition: color 400ms var(--ease-out); }
.dos__vouch span::before { content: ''; height: 6px; border-radius: 6px; background: var(--sunken); transition: background 500ms var(--ease-out); }
.dos__vouch span.on { color: var(--ink); } .dos__vouch span.on::before { background: var(--c-ink); }
.dos__lay { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.dos__lay:not(.on) { opacity: 0.3; filter: grayscale(1); }
.dos__lay.now { transform: translateX(4px); }
.dos__lay > p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.dos__lay h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); }
.dos__lay h4 .i { width: 15px; height: 15px; color: var(--c-ink); }
.dos__months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; height: 92px; }
.dos__months i { display: grid; align-content: start; justify-items: center; gap: 4px; height: var(--h); padding-top: 6px; border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--c-ink) 18%, var(--panel)); color: var(--ink); font-size: 12.5px; font-style: normal; font-weight: 700; transform-origin: bottom; }
.dos__months i small { color: var(--ink2); font-size: 11px; font-weight: 600; }
.dos__lay.now .dos__months i { animation: kit-bar 600ms var(--ease-out) both; animation-delay: calc(var(--i) * 420ms + 200ms); }
@keyframes kit-bar { from { transform: scaleY(0.05); opacity: 0; } }
.dos__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dos .a-tick { --tick: var(--c-ink); }
.dos__lay:not(.on) .a-tick li::before { animation: none; }
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.dos__lay.now .stamp { animation: kit-stamp 500ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 200ms + 1900ms); }
@keyframes kit-stamp { from { opacity: 0; transform: scale(1.6) rotate(-6deg); } }
@media (max-width: 960px) {
  .chain__grid { grid-template-columns: minmax(0, 1fr); }
  .chain__steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .chain__steps button { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 0; text-align: center; }
  .chain__steps button::before { grid-row: auto; }
  .chain__steps li button::after { display: none; }
  .chain__steps b { font-size: 12.5px; line-height: 1.2; }
  .chain__steps span { display: none; }
  .chain__now { display: block !important; margin: 18px 0 0; font-size: 16px; line-height: 1.5; }
}
.chain__now { display: none; }
@media (max-width: 560px) { .dos__two { grid-template-columns: minmax(0, 1fr); } .dos__vouch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── The sourcing flow ── */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; align-items: center; }
.flow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__p { fill: none; stroke: color-mix(in srgb, var(--ink) 26%, transparent); stroke-width: 1.6; transition: stroke 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.flow__p.own { stroke-dasharray: 5 6; }
.flow[data-hot] .flow__p { opacity: 0.6; } .flow[data-hot] .flow__p.hot { opacity: 1; stroke: var(--fl-ink, var(--ink)); stroke-width: 2.6; }
.flow__mk path { fill: color-mix(in srgb, var(--ink) 30%, transparent); } .flow__mkh path { fill: var(--fl-ink, var(--ink)); }
.flow__dot { fill: var(--fl-ink, var(--ink)); opacity: 0; transition: opacity 300ms var(--ease-out); } .flow__dot.hot { opacity: 1; }
.flow__src, .flow__dst { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.flow__src button { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--panel); box-shadow: var(--sh-card); color: var(--ink); text-align: left; cursor: pointer; transition: transform var(--d-press) var(--ease-out), box-shadow var(--d-press) var(--ease-out); }
.flow__src button:hover, .flow__src button:focus-visible, .flow__src .hot button { transform: translateX(4px); box-shadow: var(--sh-pop); }
.flow__src .ic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--fl-bg, var(--sunken)); color: var(--fl-ink, var(--ink)); }
.flow__src .ic .i { width: 20px; height: 20px; }
.flow__src b { font-size: 16px; } .flow__src small { color: var(--ink2); font-size: 13.5px; line-height: 1.4; }
.flow__hub { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; padding: 28px 18px; border-radius: 50%; aspect-ratio: 1; align-content: center; background: var(--fl-ink, var(--ink)); color: #fff; text-align: center; }
.flow__hub b { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.15; } .flow__hub small { max-width: 14ch; opacity: 0.8; font-size: 13px; line-height: 1.35; }
.flow__hub .i { width: 28px; height: 28px; }
.flow__hub::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--fl-ink, var(--ink)); opacity: 0; animation: kit-pulse 2.8s var(--ease-out) infinite; }
@keyframes kit-pulse { 0% { opacity: 0.5; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.18); } }
.flow__dst li { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: var(--panel); box-shadow: var(--sh-card); }
.flow__dst li:first-child { padding: 28px 24px; background: var(--fl-ink, var(--ink)); color: #fff; box-shadow: none; }
.flow__dst b { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -0.01em; }
.flow__dst small { color: inherit; opacity: 0.75; font-size: 14px; line-height: 1.45; }
@media (max-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .flow__svg { display: none; }
  .flow__hub { width: min(240px, 70%); margin: 0 auto; }
  .flow__src::after, .flow__hub::after { content: ''; justify-self: center; width: 2px; height: 26px; background: var(--line2); }
  .flow__hub::after { position: absolute; bottom: -34px; }
}

@media (prefers-reduced-motion: reduce) {
  .app .scr, .app .scr.on .st, .app .scr .st, .dos__lay, .dos__months i, .stamp { animation: none !important; transition: none !important; opacity: 1; transform: none; }
  .app .scr:not(.on) { opacity: 0; }
  .a-bar i, .a-hop, .app .hl, .flow__hub::before { animation: none !important; }
  .a-tick li::before { animation-duration: 1ms !important; animation-delay: 0s !important; }
  .chain__steps span { transition: none; }
}

/* Product pictures tilt slightly toward the mouse (kit.js). */
.tlt { transition: transform 600ms var(--ease-out); will-change: transform; }
.tlt.tlt-on { transition: transform 140ms linear; }

/* Dark fields with slow light in the three role colours (Home, MSV 2.0): a .fieldbg inside an isolated dark section. */
.fieldbg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aur { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: 0.32; animation: aur 22s ease-in-out infinite alternate; }
.aur.a1 { left: -12vw; top: -14vw; background: #6a52c4; }
.aur.a2 { right: -14vw; top: 6vw; background: #2f6fb5; animation-duration: 26s; animation-delay: -6s; }
.aur.a3 { left: 22vw; bottom: -26vw; background: #8a6a3a; opacity: 0.26; animation-duration: 30s; animation-delay: -12s; }
@keyframes aur { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, 4vw, 0) scale(1.12); } 100% { transform: translate3d(-4vw, 6vw, 0) scale(0.94); } }
.gridlines { position: absolute; inset: 0; 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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%); }
@media (prefers-reduced-motion: reduce) { .aur { animation: none !important; } }

/* YouTube, playing in place */
iframe.yt { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; border: 0; background: #000; }
/* the tour's rail: a line down the steps, the current one lit */
.tour__steps li { position: relative; padding-left: 34px; }
.tour__steps li::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tour__steps li.on::before { background: linear-gradient(transparent, var(--acc-ink, var(--ink)) 25%, var(--acc-ink, var(--ink)) 75%, transparent); }
.tour__steps button { position: relative; }
.tour__steps button::before { content: ''; position: absolute; left: -34px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 2px var(--line2); transition: background 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.tour__steps li.on button::before { background: var(--acc-ink, var(--ink)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc-ink, var(--ink)) 16%, transparent); }
@media (max-width: 960px) { .tour__steps li { padding-left: 0; } .tour__steps li::before, .tour__steps button::before { display: none; } }
/* the flow: a glowing review, glowing packets, and the label on the inbox route */
.flow__hub { box-shadow: 0 0 0 12px color-mix(in srgb, var(--fl-ink, var(--ink)) 10%, transparent), 0 30px 80px -24px var(--fl-ink, var(--ink)); }
.flow__dot { filter: drop-shadow(0 0 5px var(--fl-ink, var(--ink))); }
.flow__lbl { fill: var(--ink2); font: 650 13.5px var(--sans); }
.flow[data-hot] .flow__lbl { opacity: 0.35; }


/* Grain fields (Akshay, 4 Nov, from the ElevenLabs reference): a still gradient with film grain in place of a flat colour.
   Put .grain on the block and set --g; the grain sits over the gradient and under the content. Nothing moves. */
:root {
  --g-inv: radial-gradient(60% 75% at 96% 100%, #b4d4f2 0%, #4a86c8 30%, rgba(47, 111, 181, 0) 72%), linear-gradient(160deg, #07111f 0%, #0f2747 48%, #1a4377 100%);
  --g-fo: radial-gradient(60% 75% at 96% 100%, #e4dafc 0%, #9b85e3 30%, rgba(106, 82, 196, 0) 72%), linear-gradient(160deg, #160f33 0%, #2c1f66 48%, #55418f 100%);
  --g-en: radial-gradient(60% 75% at 96% 100%, #f6f1e8 0%, #c4ad88 30%, rgba(107, 85, 54, 0) 72%), linear-gradient(160deg, #3b2e1d 0%, #554329 48%, #6b5536 100%);
  --g-home: radial-gradient(50% 60% at 100% 100%, rgba(168, 198, 238, 0.3) 0%, rgba(168, 198, 238, 0) 70%), radial-gradient(45% 55% at 0% 0%, rgba(220, 200, 166, 0.16) 0%, rgba(220, 200, 166, 0) 70%), linear-gradient(160deg, #0a0b0e 0%, #161a21 100%);
}
.grain { position: relative; isolation: isolate; background: var(--g); }
.grain::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: var(--grain, 0.55); mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3' intercept='-1'/%3E%3CfeFuncG type='linear' slope='3' intercept='-1'/%3E%3CfeFuncB type='linear' slope='3' intercept='-1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 220px 220px; }

/* The system does the work, people decide (Akshay, 4 Nov): what runs on MSV, what our team does, what you decide.
   Markup: section.wrap.sysw > h2 + p.sysw__lede + ol.sys3 > li x3; the last li is .grain with --g set to the page's field. */
.sysw { padding: clamp(96px, 14vh, 160px) 0 0; }
.sysw h2 { margin: 0 0 16px; max-width: 18ch; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.sysw__lede { max-width: 58ch; margin: 0 0 40px; color: var(--ink2); font-size: 19px; line-height: 1.55; }
.sys3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, auto); gap: 0 16px; margin: 0; padding: 0; list-style: none; }
/* each card spans the four shared rows, so the items line up across the three cards */
.sys3 > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: var(--sunken); }
.sys3 > li.grain { background: var(--g); color: #f6f4f0; }
.sys3 h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink2); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sys3 > li.grain h3 { color: rgba(255, 255, 255, 0.78); }
.sys3 h3 .i { width: 18px; height: 18px; }
.sys3 h3 { padding-bottom: 14px; }
.sys3 ul { display: contents; }
.sys3 ul li { display: grid; align-content: start; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.sys3 > li.grain ul li { border-top-color: rgba(255, 255, 255, 0.16); }
.sys3 ul b { font-size: 17.5px; font-weight: 650; letter-spacing: -0.01em; }
.sys3 ul span { color: var(--ink2); font-size: 15px; line-height: 1.45; } .sys3 > li.grain ul span { color: rgba(255, 255, 255, 0.74); }
@media (max-width: 900px) { .sys3 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 12px; } .sys3 > li { grid-row: auto; grid-template-rows: none; } }

/* FAQ on every page (Akshay, 4 Nov), the same shape as the Events page's: the heading left, questions right. */
.faqx { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding: clamp(96px, 14vh, 160px) 0 0; }
.faqx h2 { margin: 0 0 16px; max-width: 14ch; font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.faqx__more { margin: 0; color: var(--ink2); font-size: 17px; line-height: 1.5; }
.faqx details { border-bottom: 1px solid var(--line); }
.faqx details:first-of-type { border-top: 1px solid var(--line); }
.faqx summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: clamp(17px, 1.4vw, 19px); font-weight: 650; cursor: pointer; list-style: none; }
.faqx summary::-webkit-details-marker { display: none; }
.faqx summary::after { content: '+'; flex: none; color: var(--ink2); font-size: 22px; line-height: 1; transition: transform var(--d-press) var(--ease-out); }
.faqx details[open] summary::after { transform: rotate(45deg); }
.faqx details p { max-width: 64ch; margin: 0 0 22px; color: var(--ink2); font-size: 16.5px; line-height: 1.6; }
@media (max-width: 900px) { .faqx { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* The route panel under the sourcing flow: the kept route, step by step, each step tagged with who does it (Akshay, 4 Nov). */
.flow__src button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--fl-ink, var(--ink)), var(--sh-pop); }
.flow__how { grid-column: 1 / -1; padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: var(--panel); box-shadow: var(--sh-card); }
.flow__how-h { display: grid; gap: 4px; margin: 0 0 20px; } .flow__how-h b { font-size: 20px; letter-spacing: -0.01em; } .flow__how-h span { color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
.flow__how ol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.flow__how li { position: relative; display: grid; align-content: start; gap: 10px; padding: 16px; border-radius: 16px; background: var(--sunken); counter-increment: st; animation: flow-in 360ms var(--ease-out) both; animation-delay: calc(var(--j) * 90ms); }
.flow__how li::before { content: counter(st); position: absolute; top: 14px; right: 16px; color: var(--ink3, var(--ink2)); font-size: 13px; font-weight: 700; }
.flow__how li + li::after { content: ''; position: absolute; left: -12px; top: 50%; width: 12px; height: 2px; background: var(--line2); }
.flow__how p { margin: 0; font-size: 15px; line-height: 1.45; }
.flow__who { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.w-f { background: var(--sec-lilac); color: var(--sec-lilac-ink); } .w-i { background: var(--sec-sky); color: var(--sec-sky-ink); } .w-e { background: var(--sec-sand); color: var(--sec-sand-ink); }
.w-m { background: var(--ink); color: var(--canvas); } .w-s { background: var(--mint); color: var(--mint-ink); } .w-r { background: var(--panel); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
@keyframes flow-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 960px) { .flow__how ol { grid-auto-flow: row; } .flow__how li + li::after { left: 24px; top: -12px; width: 2px; height: 12px; } }
@media (prefers-reduced-motion: reduce) { .flow__how li { animation: none; } }

/* The trust chain on wide screens: the steps scroll down the left, the startup's card stays beside them, compact so it fits (kit.js adds .chain--scroll). */
.chain--scroll .chain__steps { gap: 0; padding: 22vh 0 34vh; }
.chain--scroll .chain__steps li { display: flex; align-items: center; min-height: 42vh; }
.chain--scroll .chain__steps span { max-height: none; opacity: 1; }
.chain--scroll .chain__steps button { opacity: 0.4; transition: opacity 400ms var(--ease-out); }
.chain--scroll .chain__steps button.on { opacity: 1; } .chain--scroll .chain__steps button.done { opacity: 0.7; }
.chain--scroll .chain__steps li:not(:last-child) button::after { display: none; }
.chain--scroll .chain__grid > div:last-child { align-self: stretch; }
.chain--scroll .dos { position: sticky; top: 96px; padding: 22px 26px; transform-origin: top center; }
.chain--scroll .dos__lay { gap: 8px; margin-top: 10px; padding-top: 10px; } .chain--scroll .dos__months { height: 76px; }
.chain--scroll .chain__ctl { display: none; }
/* pages of cards (kit.js data-pager) */
.pager__nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pager__nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--canvas); font: 600 14.5px var(--sans); cursor: pointer; }
.pager__nav [data-prev] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.pager__nav button:disabled { opacity: 0.35; cursor: default; }
.pager__nav span { color: var(--ink2); font-size: 14.5px; font-weight: 600; }

/* the routes diagram, clearer (Akshay, 4 Nov): a smaller review, MSV Deals level with it, the inbox level with "own link" */
.flow__hub { width: min(100%, 230px); justify-self: center; }
.flow__dst { align-self: stretch; grid-template-rows: 1fr auto; } .flow__dst [data-dst='main'] { align-self: center; }

/* Login and signup (Akshay, 4 Nov; after ElevenLabs, Wispr Flow, Linear and Attio): one calm form on the left, one brand panel on the right
   in the role's grain colour. Every field and arrival state of the current app pages is kept. */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; background: var(--canvas); }
.auth__form { display: grid; grid-template-rows: auto 1fr auto; padding: 24px clamp(20px, 5vw, 72px); }
.auth__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth__top img { display: block; height: 30px; width: auto; }
.auth__back { color: var(--ink2); font-size: 14.5px; text-decoration: none; white-space: nowrap; } .auth__back:hover { color: var(--ink); }
.auth__in { width: min(100%, 440px); margin: 0 auto; align-self: center; padding: 40px 0; }
.auth h1 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.auth__sub { margin: 0 0 26px; color: var(--ink2); font-size: 16px; line-height: 1.5; }
.auth__legal { margin: 0; color: var(--ink2); font-size: 13px; text-align: center; } .auth__legal a { color: inherit; }
.fld { display: grid; gap: 6px; margin: 0 0 16px; }
.fld > label, .fld .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 650; }
.fld .lbl a { color: var(--ink2); font-size: 13.5px; font-weight: 500; }
.inp { display: flex; align-items: center; min-height: 48px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow 160ms var(--ease-out); }
.inp:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.inp input, .inp select { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: none; color: var(--ink); font: 500 16px var(--sans); outline: none; }
.inp .pre { padding-left: 14px; color: var(--ink2); font-weight: 650; }
.inp .sm { flex: none; margin-right: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--sunken); color: var(--ink); font: 600 13.5px var(--sans); cursor: pointer; }
.inp .sm:disabled { opacity: 0.4; cursor: default; }
.inp .sm .i { width: 18px; height: 18px; }
.hint { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.45; } .err { margin: 0; color: var(--rose-ink); font-size: 13px; }
.okv { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; color: var(--mint-ink); font-size: 13.5px; font-weight: 700; } .okv .i { width: 16px; height: 16px; }
.auth .wide { width: 100%; justify-content: center; min-height: 50px; font-size: 16px; }
.auth .bp:disabled { opacity: 0.38; cursor: default; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink2); font-size: 13px; } .or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.alt { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.alt:hover { background: var(--hover); } .alt .i { width: 18px; height: 18px; }
.auth__foot { margin: 22px 0 0; color: var(--ink2); font-size: 14.5px; text-align: center; } .auth__foot a { color: var(--ink); font-weight: 650; }
.auth__note { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--butter); color: var(--butter-ink); font-size: 14px; line-height: 1.45; }
.ctx { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--sec-sky); color: var(--ink); font-size: 14.5px; line-height: 1.45; } .ctx .i { flex: none; width: 20px; height: 20px; color: var(--sec-sky-ink); }
.code6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.code6 input { height: 52px; min-width: 0; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font: 700 22px var(--sans); text-align: center; }
.code6 input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.chk { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; font-size: 14.5px; line-height: 1.45; } .chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--ink2); font: 600 14px var(--sans); text-decoration: underline; cursor: pointer; }
.auth__done { display: grid; gap: 14px; }
/* the brand panel: the side's grain colour, one line, the three sides */
.auth__brand { position: sticky; top: 12px; display: grid; align-content: end; gap: 22px; height: calc(100svh - 24px); margin: 12px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; color: #f4f2ee; overflow: hidden; transition: background 500ms var(--ease-out); }
.auth__brand h2 { margin: 0; max-width: 15ch; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -0.035em; }
.auth__brand > p { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, 0.8); font-size: 17px; line-height: 1.55; }
.auth__sides { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.auth__sides li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: background 300ms var(--ease-out); }
.auth__sides li.on { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.auth__sides .i { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.auth__sides b { display: block; font-size: 15.5px; } .auth__sides span span { color: rgba(255, 255, 255, 0.74); font-size: 14px; }
/* signup steps */
.bar4 { display: flex; gap: 6px; margin: 0 0 18px; } .bar4 i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background 300ms var(--ease-out); } .bar4 i.on { background: var(--ink); }
.stepn { margin: 0 0 6px; color: var(--ink2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.roles3 { display: grid; gap: 10px; margin: 0 0 22px; }
.roles3 button { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 16px; border: 0; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow 160ms var(--ease-out); }
.roles3 button:hover { box-shadow: inset 0 0 0 1px var(--ink2); } .roles3 button[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--ink); }
.roles3 .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; } .roles3 .ic .i { width: 22px; height: 22px; }
.roles3 b { display: block; font-size: 16.5px; } .roles3 small { color: var(--ink2); font-size: 14px; }
.roles3 .tick { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); } .roles3 [aria-pressed='true'] .tick { background: var(--ink); box-shadow: inset 0 0 0 5px var(--panel), 0 0 0 1.5px var(--ink); }
.meter { display: flex; gap: 4px; margin: 4px 0 2px; } .meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.meter[data-s='1'] i:nth-child(-n+1) { background: #c0392b; } .meter[data-s='2'] i:nth-child(-n+2) { background: #d98a1c; } .meter[data-s='3'] i:nth-child(-n+3) { background: #c9b037; } .meter[data-s='4'] i:nth-child(-n+4) { background: #2f8a57; } .meter[data-s='5'] i { background: #1f6f45; }
.needs { margin: 4px 0 0; padding-left: 18px; color: var(--ink2); font-size: 13px; line-height: 1.6; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; } .pills button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; } .pills [aria-pressed='true'] { background: var(--ink); color: var(--canvas); box-shadow: none; }
.acts2 { display: flex; gap: 10px; } .acts2 .bs { min-height: 50px; } .acts2 .bp { flex: 1; }
/* side by side down to an iPad in portrait; stacked on phones */
@media (max-width: 767px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__brand { position: relative; top: 0; order: -1; height: auto; margin: 0; padding: 22px 20px 24px; border-radius: 0 0 24px 24px; align-content: start; gap: 8px; }
  .auth__brand h2 { font-size: 24px; max-width: none; } .auth__brand > p, .auth__sides { display: none; }
  .auth__in { padding: 24px 0 32px; }
}

/* ── Blog (Akshay, 5 Nov, after elevenlabs.io/blog): topic tabs, one featured post, a card grid, and the article page.
   Covers are the site's grain fields in the topic's colour, with the post's short title set large (no stock photos). ── */
.blog { padding: clamp(48px, 8vh, 96px) 0 0; }
.blog h1 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.blog__sub { max-width: 52ch; margin: 16px 0 0; color: var(--ink2); font-size: 18px; line-height: 1.5; }
.blog__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 28px; }
.blog__tabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--sunken); color: var(--ink2); font: 600 14.5px/1 var(--sans); cursor: pointer; }
.blog__tabs button:hover { color: var(--ink); }
.blog__tabs button[aria-pressed='true'] { background: var(--ink); color: var(--canvas); }
.bc { display: grid; align-content: space-between; gap: 24px; aspect-ratio: 16 / 10; padding: clamp(18px, 2vw, 28px); border-radius: 18px; overflow: hidden; color: #f4f5f8; }
.bc__cat { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(10, 11, 14, 0.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700; }
.bc__t { max-width: 16ch; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.bc__t--big { font-size: clamp(28px, 3.2vw, 48px); max-width: 15ch; }
.bfeat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; margin: 0 0 40px; border-radius: 22px; overflow: hidden; background: var(--sunken); color: inherit; text-decoration: none; }
.bfeat__txt { display: grid; align-content: space-between; gap: 20px; padding: clamp(24px, 3vw, 40px); }
.bfeat h2 { margin: 0; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.06; letter-spacing: -0.03em; }
.bfeat__hook { margin: 0; color: var(--ink2); font-size: 17px; line-height: 1.55; }
.bfeat .bc { border-radius: 0; aspect-ratio: auto; min-height: 380px; }
.bfeat:hover h2, .bcard:hover .bcard__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; margin: 0; padding: 0; list-style: none; }
.bgrid li[hidden], .bfeat[hidden] { display: none; }
.bcard { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.bcard__t { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.bcard__m { color: var(--ink2); font-size: 14px; }
.bcard__m em, .post__meta em { font-style: normal; font-weight: 700; color: var(--butter-ink); }
/* the article */
.post__head { max-width: 768px; padding: clamp(40px, 7vh, 80px) 24px 28px; }
.post__back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 15px; font-weight: 600; text-decoration: none; }
.post__back .i { width: 16px; height: 16px; }
.post__meta { margin: 22px 0 14px; color: var(--ink2); font-size: 14.5px; } .post__meta span { color: var(--ink); font-weight: 700; }
.post h1 { margin: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.post__hook { margin: 20px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.post__by { margin: 18px 0 0; color: var(--ink2); font-size: 15px; }
.post > .wrap > .bc { aspect-ratio: 21 / 8; max-width: 1060px; margin: 8px auto 0; }
.post__prose { max-width: 768px; padding-top: 40px; font-size: 18px; line-height: 1.7; }
.post__prose h2 { margin: 48px 0 12px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.post__prose h3 { margin: 32px 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.post__prose p { margin: 0 0 18px; } .post__prose ul, .post__prose ol { margin: 0 0 18px; padding-left: 22px; } .post__prose li { margin: 0 0 8px; }
.post__prose a:not(.bp) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.post__prose a:not(.bp):hover { text-decoration-color: var(--ink); }
.post__prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-size: 21px; line-height: 1.45; font-weight: 600; }
.post__keys { margin: 0 0 32px; padding: 22px 24px; border-radius: 16px; background: var(--t, var(--sec-sky)); color: var(--ink); }
.post__keys h2 { margin: 0 0 8px; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ti, var(--sec-sky-ink)); }
.post__keys ul { margin: 0; padding-left: 20px; font-size: 16.5px; line-height: 1.55; }
.post__faq { margin: 48px 0 0; } .post__faq details { border-top: 1px solid var(--line); padding: 14px 0; } .post__faq summary { cursor: pointer; font-weight: 650; }
.post__faq p { margin: 10px 0 0; font-size: 16.5px; }
.post__src { margin: 32px 0 0; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.post__rel { padding: clamp(64px, 10vh, 112px) 24px 0; } .post__rel h2 { margin: 0 0 24px; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; }
.post__end { margin-top: clamp(80px, 12vh, 136px); padding: clamp(64px, 10vh, 112px) 0; color: #f4f5f8; }
.post__end h2 { margin: 0 0 24px; max-width: 18ch; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.035em; }
.post__end .bp { background: #fff; color: #0b0d12; }
@media (max-width: 1000px) { .bgrid { grid-template-columns: 1fr 1fr; } .bfeat { grid-template-columns: 1fr; } .bfeat .bc { min-height: 240px; order: -1; } }
@media (max-width: 640px) { .bgrid { grid-template-columns: 1fr; } .post > .wrap > .bc { aspect-ratio: 16 / 10; } .post__prose { font-size: 17px; } }

/* Hairline grid frame with corner marks (after buildwithfern.com). Markup: .gfx > .gframe > tiles; .gfx--loose frames a gapped grid. */
.gfx { position: relative; }
.gfx::before { content: ''; position: absolute; inset: -7px; z-index: 1; pointer-events: none; opacity: 0.55;
  --m: linear-gradient(var(--ink3), var(--ink3));
  background: var(--m) 6px 0 / 1px 13px no-repeat, var(--m) 0 6px / 13px 1px no-repeat, var(--m) calc(100% - 6px) 0 / 1px 13px no-repeat, var(--m) 100% 6px / 13px 1px no-repeat,
    var(--m) 6px 100% / 1px 13px no-repeat, var(--m) 0 calc(100% - 6px) / 13px 1px no-repeat, var(--m) calc(100% - 6px) 100% / 1px 13px no-repeat, var(--m) 100% calc(100% - 6px) / 13px 1px no-repeat; }
.gframe { display: grid; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.gframe > * { background: var(--canvas); }
.gfx--loose { padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
/* blog covers: a line drawing in the top right (blog-art.mjs) or a photo with a dark fade, the title kept in the bottom left */
.bc { position: relative; }
/* drawings take the top-right 74% of the cover so no title runs over them at any width (CMO, 5 Nov; checked on all covers at 390 to 1440) */
.bc__art { position: absolute; inset: 0 0 auto auto; z-index: 0; width: 74%; height: 74%; color: #fff; opacity: 0.85; pointer-events: none; -webkit-mask-image: linear-gradient(to top right, transparent 18%, #000 55%); mask-image: linear-gradient(to top right, transparent 18%, #000 55%); transition: transform 900ms var(--ease-out); }
.bcard:hover .bc__art, .bfeat:hover .bc__art { transform: translate(-6px, 4px); }
.bc__cat, .bc__t { position: relative; z-index: 1; }
.bc__t { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25); }
.bc--img { overflow: hidden; background: #111318; }
.bc--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.bc--img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 11, 14, 0.15) 0%, rgba(10, 11, 14, 0) 35%, rgba(10, 11, 14, 0.72) 100%); }
.bc--img .bc__cat, .bc--img .bc__t { z-index: 2; }
.bcard:hover .bc--img img, .bfeat:hover .bc--img img { transform: scale(1.04); }
/* two more looks so neighbouring cards differ (Akshay, 5 Nov, after elevenlabs.io/blog); --t/--ti are the topic's pastel and ink (build.mjs tint()) */
.bc--tint { align-content: start; gap: 14px; overflow: hidden; background: var(--t); color: var(--ti); }
.bc--tint .bc__art { inset: auto -8% -14% auto; width: 80%; height: 80%; color: var(--ti); opacity: 1; -webkit-mask-image: linear-gradient(to bottom right, transparent 34%, #000 64%); mask-image: linear-gradient(to bottom right, transparent 34%, #000 64%); }
.bc--tint .bc__cat { background: var(--ti); color: var(--t); }
.bc--type { color: var(--t); --grain: 0.35; }
.bc--type .bc__cat { background: var(--t); color: var(--ti); }
.bc--type .bc__t { max-width: 13ch; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750; }
.bc--type .bc__t--big { max-width: 14ch; font-size: clamp(34px, 4.4vw, 64px); }
.bc--paper { background: var(--sunken); color: var(--ink); }
.bc--paper .bc__art { color: var(--ti); opacity: 1; }
.bc--paper .bc__cat { background: var(--t); color: var(--ti); }
.bc--tint .bc__t, .bc--type .bc__t, .bc--paper .bc__t { text-shadow: none; }
/* links inside a post: other posts in the topic's highlighter, sources with an arrow, both clearly links (Akshay, 5 Nov: "no interlink") */
.post__prose a[href^="blog-"]:not(.bp) { padding: 0 2px; border-radius: 3px; background: linear-gradient(var(--t), var(--t)) 0 100% / 100% 42% no-repeat; color: var(--ti); font-weight: 650; text-decoration: none; }
.post__prose a[href^="blog-"]:not(.bp):hover { background-size: 100% 100%; }
.post__prose a[href^="http"]:not(.bp) { text-decoration-color: var(--ti); text-decoration-thickness: 1.5px; }
.post__prose a[href^="http"]:not(.bp)::after { content: '\2197'; margin-left: 2px; font-size: 0.8em; color: var(--ti); }

/* ── MSV Events template and guide pages (event-pages.mjs): graphite hero, list sections as cards or steps, FAQ, more links ── */
.evp { padding: clamp(56px, 9vh, 104px) 0 clamp(56px, 8vh, 96px); color: #eef0f4; }
.evp__k { margin: 0 0 18px; color: #aab2bf; font-size: 14px; font-weight: 650; letter-spacing: 0.02em; }
.evp h1 { margin: 0; max-width: 18ch; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.evp__sub { max-width: 58ch; margin: 22px 0 30px; color: #c3c9d4; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.evp .bp { background: #fff; color: #0b0d12; }
.evp-sec { padding-top: clamp(80px, 12vh, 136px); }
.evp-sec h2, .evp-more h2 { margin: 0 0 28px; max-width: 22ch; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.03em; }
.evp-sec__lede { max-width: 60ch; margin: -12px 0 28px; color: var(--ink2); font-size: 18px; line-height: 1.55; }
.evp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.evp-cards li { padding: 22px 22px 24px; border-radius: 18px; background: var(--sunken); font-size: 16.5px; line-height: 1.55; }
.evp-cards b { display: block; margin-bottom: 6px; font-size: 18px; letter-spacing: -0.01em; }
.evp-steps { display: grid; gap: 0; max-width: 820px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.evp-steps li { position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--line); counter-increment: s; font-size: 17px; line-height: 1.55; }
.evp-steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--canvas); font-size: 15px; font-weight: 700; }
.evp-steps b { font-weight: 700; }
.evp-more { padding-top: clamp(80px, 12vh, 136px); }
.evp-more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.evp-more a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.evp-more a:hover { text-decoration: underline; text-underline-offset: 4px; } .evp-more .i { width: 18px; height: 18px; flex: none; }
.evp-end { margin-top: clamp(96px, 14vh, 160px); padding: clamp(72px, 11vh, 120px) 0; color: #eef0f4; }
.evp-end h2 { margin: 0 0 24px; font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.evp-end .bp { background: #fff; color: #0b0d12; }

/* ── Policy drafts for review (legal-pages.mjs): a draft banner, readable prose, tables that scroll on phones, highlighted placeholders ── */
.lgd { max-width: 820px; padding-top: clamp(48px, 8vh, 88px); padding-bottom: 72px; font-size: 17px; line-height: 1.65; }
/* Terms, Privacy (copied from the app by tools/app-legal.js) and Contact use the same page */
.lgd__meta { margin: 0 0 28px; color: var(--ink2); font-size: 15px; }
.lgd .note { padding: 16px 18px; border-radius: 14px; background: var(--sunken); font-size: 15px; line-height: 1.6; }
.lgd .evp-cards a { color: var(--ink); font-weight: 600; }
.lg__draft { margin: 0 0 36px; padding: 18px 20px; border-radius: 14px; background: var(--butter); color: var(--butter-ink); font-size: 15px; line-height: 1.55; }
.lg__draft b { display: block; margin-bottom: 6px; font-size: 16px; } .lg__draft p { margin: 6px 0 0; }
.lgd h1 { margin: 0 0 8px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
.lgd h2 { margin: 44px 0 12px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.lgd h3 { margin: 28px 0 8px; font-size: 19px; }
.lgd p { margin: 0 0 14px; } .lgd ul, .lgd ol { margin: 0 0 16px; padding-left: 22px; } .lgd li { margin: 0 0 8px; } .lgd li.sub { margin-left: 22px; list-style: circle; }
.lgd mark { padding: 0 3px; border-radius: 4px; background: var(--butter); color: var(--butter-ink); font-weight: 600; }
.lg-tbl { margin: 0 0 20px; overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.lgd table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.lgd th, .lgd td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .lgd th { background: var(--sunken); font-weight: 650; }
