/* Homepage · round 3 (7 Nov). Built on the v3 visual system in site.css.
   Each section has its own visual form drawn from one vocabulary (Attio Architecture):
   the live board, a logo band, a chart, a flow diagram, a sticky index, a ladder, a face cluster.
   Previous rounds: _legacy/home-v1.css, _legacy/home-v2.css. */

/* ---------- HP-1 Hero ----------
   Round 4 (7 Nov, late). Two references, borrowed for behaviour and material, not brand:
   - Attio for the stage and the window anatomy: every window is a translucent frame with a
     title bar and traffic lights, blurred behind, holding one inner card. Side windows use
     small type so they read as miniature apps, not as cards.
   - Linear for the material of the product UI: off-white text (never pure white), 13px UI type,
     solid cards with a 6% hairline and a black ring, pill buttons, a 4% selected-nav fill.
   Previous: _legacy/index-v3g.html, home-v3g.css, home-v3g.js. */
/* --under: the light's run below the screen, and the hero's bottom padding, so the panel ends on the hero edge.
   12 Nov (Avi: "reduce the space under the screens unit by 20%"): on wide screens, where the stage opens and the
   main screen scales to 0.86, the visible gap was 160px (64 + the 96 the scale frees). --under 64 → 32 makes it 128. */
.hero { --under: var(--s9); padding-top: var(--s10); padding-bottom: var(--under); overflow-x: clip; }
@media (min-width: 1400px) { .hero { --under: var(--s6); } }
/* 12 Nov: the copy sits on its own layer above the first-fold light. The stage comes later in the DOM, so once
   the light rose above the screen it painted over the CTAs. Never remove this; guard.py checks it. */
.hero-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-kicker { font-size: var(--fs-small); font-weight: 500; color: var(--ink-60); margin-bottom: var(--s4); }
/* Hero headline: 7 Nov it went ~11% under the shared h1 (64 max) because 72 read too big against the stage.
   12 Nov (Avi) it came back up 10% to 70, then every page's h1 moved to that same size: --fs-h1 is 70 now and
   the homepage takes the token, no local size. */
.hero-head .h1 { max-width: none; }
@media (min-width: 768px) { .hero-head .h1 .dim { display: block; } }
/* 12 Nov (Avi: "tighter as a unit"): kicker → headline 24 → 16, headline → lede 32 → 24. CTAs keep their 40. */
.hero-head .lede { margin-top: var(--s5); max-width: 52ch; }
.hero-head .ctas { margin-top: var(--s7); justify-content: center; }
.hero-stage { position: relative; isolation: isolate; margin-top: var(--hero-screen); } /* was --s9 (64) until 12 Nov */

/* The first-fold gradient (8 Nov, Avi: "like Linear, it separates the first fold and ties to the
   white testimonial band"). Linear's construction, read from linear.app's CSS (WS84WW_background):
   a full-bleed panel behind the product screen only, paper for the top 10% so it starts seamless,
   then rising to light at the bottom; a radial vignette darkens the sides; a shade over the lower
   60% keeps the light band calm. It ends on a hard edge at the hero's bottom, above the logos.
   Kept ours: the end colour is --accent, the brand purple (10 Nov, v4.2: "too dark and muted").
   Was --ink, our off-white, until 10 Nov; restore by swapping --accent back to --ink in both
   gradients below. Linear ends on a blue-grey. 12px inset and 6px corners on wide screens; edge to edge below 1280.
   12 Nov, Avi: "rounder from the centre, a hint of gradient from behind the centre of the hero screen;
   the sides don't get subdued", then "looks disconnected, like 2 shapes; we need a single shape".
   So the flat base is now one elliptical light (--fold-light) rising from the bottom centre: purple
   at the bottom, fading out at its rim. The whole panel runs --rise above the screen's top edge, so the
   crown of that one shape shows from behind the screen. Shade and vignette unchanged, over it.
   Tried first: the flat base plus a separate accent dome sized above it. Pulled: the dome above the
   screen and the band on the sides read as two shapes with a dark gap between them.
   Restore the flat fold: --fold-light back to linear-gradient(180deg, var(--paper) 10%, var(--accent) 100%)
   and --rise to 0. Mirrored in login.css. */
.hero-stage::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  --rise: 72px; /* 12 Nov: was 120px, "a little too high" */
  --fold-light: radial-gradient(ellipse 110% 100% at 50% 100%, var(--accent) 35%, transparent 100%); /* rim is transparent, not paper: the light is never an opaque sheet */
  top: calc(-1 * var(--rise)); bottom: calc(-1 * var(--under));
  left: calc(50% - 50vw + var(--fold-inset)); right: calc(50% - 50vw + var(--fold-inset));
  --fold-inset: 12px; border-radius: var(--r-frame);
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%),
    radial-gradient(52.53% 57.5% at 50% 100%, transparent 0%, color-mix(in srgb, var(--paper) 50%, transparent) 100%),
    var(--fold-light);
}
@media (max-width: 1280px) { .hero-stage::before { --fold-inset: 0px; border-radius: 0; } }
@media (max-width: 768px) {
  .hero-stage::before { --rise: 32px; background:
    linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%),
    radial-gradient(52.53% 57.5% at 50% 100%, transparent 0%, color-mix(in srgb, var(--paper) 50%, transparent) 100%),
    var(--fold-light); }
}

/* Window chrome, shared by the main screen and the three side windows.
   Title bar 30px with three 10px lights; the content sits in an inner card 4px in. */
.win-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-left: 10px; flex: none; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-title { margin-left: 10px; font-size: 11px; color: var(--ui-3); }

/* The main screen: Linear's frame (flat fill, 8% hairline, corner shine) with Attio's title bar. */
.hero-plate { display: flex; flex-direction: column; padding: 0 6px 6px; border-radius: 14px; border-color: var(--ui-line); background: var(--ui-frame); box-shadow: var(--sh-window); }
.hero-plate > .live { flex: 1; min-height: 0; }
.app-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); height: 100%; }
.app-side { padding: 6px 10px 0 4px; font-size: 13px; letter-spacing: -0.01em; color: var(--ui-1); }
.side-ws { display: flex; align-items: center; gap: var(--s2); height: 28px; padding: 0 8px; margin-bottom: var(--s3); color: var(--ui-1); font-weight: 500; }
.ws-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--ui-card); border: 1px solid var(--ui-line); display: inline-flex; align-items: center; justify-content: center; }
.ws-mark img { width: 11px; height: auto; }
.side-group { font-size: var(--fs-cap); font-weight: 500; color: var(--ui-3); margin: var(--s4) 0 2px; padding-left: 8px; }
.side-nav li { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 8px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.side-nav li.on { background: var(--ui-fill); }
.side-nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ui-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.side-nav li.on svg { stroke: var(--ui-1); }
/* One breakpoint for the sidebar (9 Nov, Avi: "ok for the left nav to go away below 960px but then
   it should behave very predictably"). Below 960 the screen is the kanban alone, phone included;
   at 960 and up the sidebar is always there. Was: hidden at 768–899 and on phones, back at 900–959. */
@media (max-width: 959px) { .app-shell { grid-template-columns: 1fr; } .app-side { display: none; } }
/* Phone (9 Nov, Avi: "the kanban should be fully seen on mobile, simply shrink it to fit, and on
   scroll the same elements come in and compose the way it happens on web"). The phone renders the
   desktop stage at its desktop size (1200px screen with sidebar and four columns, plus the three
   side windows) and scales the whole composition to the screen. --k comes from home.js (screen
   width / 1380, the opened composition from Slack's left edge to the brief's right edge); 0.27 is
   the no-JS value for a 375px phone. The head stays centred, as on web, and stays put when the
   stage opens (on a phone the head is still on screen, so fading it read as a glitch).
   Was (8 Nov): left-aligned head, stacked full-width CTAs, and a cropped board bleeding off the
   right edge with the side windows hidden. */
@media (max-width: 767px) {
  .hero { padding-top: var(--s10); }
  .hero-stage { --k: 0.27; height: calc(688px * var(--k)); } /* 80px under the CTAs (9 Nov round 2; was 48), now from --hero-screen */
  .stage { position: absolute; left: 50%; top: 0; width: 1200px; max-width: none; transform: translateX(-50%) scale(var(--k)); transform-origin: 50% 0; }
  /* Phone round 3 (9 Nov, Avi: "no left nav, just the kanban, so some of the content is visible
     on a small screen"). Only the sidebar goes: the four columns take its 208px, so cards are
     wider and fewer titles wrap. The screen, its height, the scale and the three windows are
     the same as web. Tried the same day and reverted ("nothing else should change"): narrowing
     the screen to 960 so the whole composition scaled up ~18%. */
  /* The sidebar rule lives with the 959px breakpoint above. */
  /* Cursors at ~1.6x so "You" and "Twin" still read once the stage is scaled to the phone
     (at 0.27 the desktop 11px label rendered at 3px). .live outranks the base rules below. */
  /* 10 Nov (Avi: "a bit more"): ~2.2x, up from ~1.6x. Was: svg 34px; tag margin 30px, padding 6px 14px, radius 8px, 24px. */
  .live .cursor svg { width: 48px; height: 48px; }
  .live .cursor b { margin: 42px 0 0 -3px; padding: 8px 20px; border-radius: 11px; font-size: 34px; }
}

/* The live board (Linear's board, measured): 13px titles, 12px meta, solid cards. */
.live { position: relative; }
.live-ui { position: relative; padding: 18px 20px; background: rgba(255, 255, 255, 0.01); border-color: rgba(255, 255, 255, 0.05); border-radius: 8px; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2); color: var(--ui-2); font-size: var(--fs-cap); letter-spacing: -0.01em; }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.live-title { display: flex; align-items: baseline; gap: var(--s3); }
.live-title b { font-size: 13px; font-weight: 500; color: var(--ui-1); }
.live-title b { white-space: nowrap; }
.live-title span { color: var(--ui-3); }
/* 9 Nov: the phone hid the board's sub-title here; the phone now shows the scaled desktop board, so it shows. */
.live-who { display: flex; align-items: center; gap: 4px; }
.live-who .av { width: 22px; height: 22px; font-size: 10px; background: var(--ui-card); border-color: var(--ui-line); color: var(--ui-2); }
.live-who .av-twin { background: var(--accent); border-color: transparent; color: #fff; }
.live-pause { height: 26px; padding: 0 12px; margin-left: var(--s2); border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); color: var(--ui-2); font-size: var(--fs-cap); font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.live-pause:hover { background: rgba(255, 255, 255, 0.06); color: var(--ui-1); }
.live-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.lcol-h { display: flex; align-items: center; gap: var(--s2); height: 24px; padding-left: 2px; margin-bottom: 8px; font-size: 13px; }
.lcol-h b { font-weight: 500; color: var(--ui-1); }
.lcol-h span:last-child { color: var(--ui-3); }
/* Cards are spaced by their own margin, not flex gap, so a drop slot can open from zero. */
.lcol-cards { display: flex; flex-direction: column; min-height: 340px; }
.card { position: relative; margin-bottom: 8px; background: var(--ui-card); border: 1px solid var(--ui-card-line); border-radius: 8px; padding: 11px 12px 12px; box-shadow: var(--ui-ring), inset 0 1px 0 rgba(255, 255, 255, 0.025); }
.card-k { display: flex; align-items: center; gap: 6px; color: var(--ui-3); margin-bottom: 6px; }
.card-k .tool { width: 14px; height: 14px; }
.card-k .st { width: 13px; height: 13px; }
.card-t { color: var(--ui-1); font-size: 13px; font-weight: 500; line-height: 1.38; }
.card-m { color: var(--ui-2); margin-top: 5px; }
.card .mini-btn { margin-top: 10px; }
.live .mini-btn { height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-cap); background: var(--ui-1); color: #0b0c0d; }
.live .mini-quiet { background: #1c1c1d; color: var(--ui-1); box-shadow: inset 0 0 0 1px #2a2a2d, 0 1px 1px rgba(0, 0, 0, 0.12); }
.bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--st-progress); width: 0; transition: width 900ms var(--ease); }
.bar-a i { animation: creep 16s ease-in-out infinite alternate; }
.bar-b i { animation: creep-b 13s ease-in-out infinite alternate; }
@keyframes creep { from { width: 46%; } to { width: 82%; } }
@keyframes creep-b { from { width: 18%; } to { width: 58%; } }
.hc.is-new { animation: arrive 700ms var(--ease); }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
/* The approve row opens and closes in place (grid rows 0fr → 1fr) so the cards below slide,
   never jump. It changes only while the card is seated, never mid-carry. */
.hc-act { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 360ms var(--ease), opacity 260ms var(--ease); }
.hc-act > div { min-height: 0; overflow: hidden; }
.hc.has-act .hc-act { grid-template-rows: 1fr; opacity: 1; }
.hc-approve { transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 120ms var(--ease), box-shadow 200ms var(--ease); }
.hc-approve.is-pressed { transform: scale(0.94); }
.live .hc.is-approved .hc-approve { background: transparent; color: var(--st-done); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-done) 45%, transparent); }
.hc.is-done .bar i { background: var(--st-done); }
/* 10 Nov: a queued signal has no progress yet, so no bar until the Twin picks it up. */
.hc.is-queued .bar { display: none; }
/* 10 Nov: verification runs in place in Needs you after approval. The hint is one faint light band
   sweeping across the card, like a scan line, while the step line names the rescan. Kept faint on
   purpose: the moment that matters is the move to Done, not the scan. */
.hc.is-verifying::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent) no-repeat; background-size: 40% 100%; animation: verify-sweep 1300ms var(--ease) infinite; }
@keyframes verify-sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }
.hc.is-done [data-hc-st] { animation: pop 500ms var(--ease); }
@keyframes pop { 40% { transform: scale(1.5); } }

/* Pick up, carry, set down (7 Nov: "show it getting lifted up, and dropped").
   One object moving: the card leaves the flow into a float layer, lifts (scale, a slight tilt,
   a deeper shadow), travels with the cursor on one in-out curve, then settles flat into a slot
   that the destination column has opened for it. The slot it left closes behind it.
   Tried before: a FLIP slide with scale 1.03. It read as the card sliding, not being carried. */
.card.is-float { position: absolute; z-index: 5; margin: 0; translate: 0 0; transition: translate 900ms cubic-bezier(0.65, 0, 0.35, 1), scale 240ms var(--ease), rotate 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease); }
.card.is-float.is-lift { scale: 1.035; rotate: -1.2deg; border-color: rgba(255, 255, 255, 0.11); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3), 0 18px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.card.is-float.is-carry { translate: var(--dx, 0) var(--dy, 0); }
.slot { flex: none; margin-bottom: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.015); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); transition: height 420ms var(--ease), margin-bottom 420ms var(--ease), opacity 420ms var(--ease); }
/* A small, quiet celebration: eight dots leave the check and fade. */
.burst { position: absolute; left: 18px; top: 17px; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--st-done); opacity: 0; }
.burst i:nth-child(odd) { background: var(--ui-2); }
.hc.is-done .burst i { animation: burst 800ms var(--ease) forwards; }
.burst i:nth-child(1) { --a: 0deg; } .burst i:nth-child(2) { --a: 45deg; } .burst i:nth-child(3) { --a: 90deg; } .burst i:nth-child(4) { --a: 135deg; }
.burst i:nth-child(5) { --a: 180deg; } .burst i:nth-child(6) { --a: 225deg; } .burst i:nth-child(7) { --a: 270deg; } .burst i:nth-child(8) { --a: 315deg; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-18px); } }

/* Collaboration cursors: you and your Twin. Figma multiplayer pattern (10 Nov, Avi): the
   tailless rounded arrow, and a solid name tag offset below-right of the tip. Tags are
   deliberately oversized (15px, was 11px) because the collaboration is the point of the hero.
   Was: the classic OS arrow with a tail and a small tag tucked against it. */
.cursor { position: absolute; left: 0; top: 0; z-index: 6; display: flex; align-items: flex-start; pointer-events: none; transform: translate(-60px, 120px); transition: transform 1000ms var(--ease), opacity 400ms var(--ease); opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor svg { width: 22px; height: 22px; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); transition: transform 140ms var(--ease); transform-origin: 2px 2px; }
.cursor svg path { stroke-linejoin: round; }
.cursor.is-click svg, .cursor.is-hold svg { transform: scale(0.86); }
/* 10 Nov (Avi): labels at regular weight; 600 read too thick next to the board's 500 titles. */
.cursor b { margin: 20px 0 0 -2px; padding: 4px 10px; border-radius: 6px; font-size: 15px; font-weight: 400; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.cur-twin svg path { fill: var(--accent); stroke: #fff; stroke-width: 1.6; }
.cur-twin b { background: var(--accent); color: #fff; }
.cur-you svg path { fill: var(--ink); stroke: var(--paper); stroke-width: 1.6; }
.cur-you b { background: var(--ink); color: var(--paper); }
.live.is-paused *, .live.is-paused *::after { animation-play-state: paused !important; }

/* The stage (Attio). Window sizes and offsets are measured from attio.com at 1440px.
   7 Nov, late: the screen is bigger at rest (1200 wide, was 1080) and settles to 86% (1032),
   so the step down reads as a real move, not a nudge. Offsets are kept from the settled screen:
   Slack −174, −22 (behind); brief +941, +43 (in front since 10 Nov); terminal −140, +256 (in front).
   State A (top of page): the screen alone. State B (past 40px): headline fades, screen settles,
   windows come out from behind it with a stagger and start their loops. Back at the top it reverses. */
.stage { position: relative; max-width: 1200px; margin-inline: auto; }
.stage-main { position: relative; z-index: 3; transform-origin: 50% 0; transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1); }
.stage-main .hero-plate { height: 688px; }
.stage-main .live-ui { height: 100%; overflow: hidden; }

.win { position: absolute; display: flex; flex-direction: column; padding: 0 4px 4px; border-radius: 14px; opacity: 0; pointer-events: none; overflow: hidden; background: rgba(22, 23, 25, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sh-window), inset 0 0 0 1px rgba(255, 255, 255, 0.07); font-size: var(--fs-cap); line-height: 1.45; letter-spacing: -0.005em; color: var(--ui-1); transition: opacity 500ms var(--ease), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1); }
.win-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px; border-radius: 10px; overflow: hidden; background: #0f1011; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.w-slack { z-index: 2; left: -90px; top: -22px; width: 255px; height: 224px; transform: translate(80px, 28px) scale(0.9); }
.w-slack .win-body { padding-right: 88px; background: #1a1d21; }
/* 10 Nov: the brief comes in front of the screen (z 4, like the terminal), so the story reads
   as two windows in front, one behind. With nothing covering it, the left padding goes back to
   the default 14px.
   Was (9 Nov): z 1, tucked behind the screen, with .w-brief .win-body { padding-left: 81px; } so
   the screen's edge cut through the ticks and the M of "Morning". Restore both lines to go back. */
.w-brief { z-index: 4; left: 1025px; top: 43px; width: 258px; height: 353px; transform: translate(-80px, 28px) scale(0.9); }
.w-term { z-index: 4; left: -56px; top: 256px; width: 285px; height: 299px; background: rgba(30, 31, 34, 0.82); transform: translate(64px, 44px) scale(0.9); }
.w-term .win-body { background: #0b0b0c; padding: 10px 12px; }
.hero-head { transition: opacity 500ms var(--ease), transform 800ms var(--ease); }
@media (min-width: 1400px) { .hero.is-open .hero-head { opacity: 0; transform: translateY(-20px); } }
/* The stage opens on wide screens and on phones (the phone shows the same composition, scaled). */
@media (min-width: 1400px), (max-width: 767px) {
  .hero.is-open .stage-main { transform: scale(0.86); }
  .hero.is-open .win { opacity: 1; transform: none; pointer-events: auto; }
  .hero.is-open .w-slack { transition-delay: 60ms; }
  .hero.is-open .w-brief { transition-delay: 140ms; }
  .hero.is-open .w-term { transition-delay: 220ms; }
}
@media (min-width: 768px) and (max-width: 1399px) { .win { display: none; } }
@media (min-width: 768px) and (max-width: 1199px) { .stage-main .hero-plate { height: auto; } }

/* Window contents: miniature apps (Attio sets these at 10–11px; ours stay at 11–12px). */
.win-h { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-cap); font-weight: 600; color: var(--ui-1); margin-bottom: 10px; flex: none; }
/* Slack (dark theme, real conventions): rounded-square avatars, a blue mention chip, APP badge.
   Messages sit at the bottom and older ones scroll up, as in a real channel. */
.w-slack .win-h { color: #d1d2d3; font-weight: 700; }
.w-msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18px); mask-image: linear-gradient(transparent, #000 18px); }
.w-msg { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; color: #d1d2d3; flex: none; }
.w-msg b { color: #f8f8f8; font-weight: 700; }
/* .av-sq, .mention and .app-tag moved to site.css (8 Nov): the Product page uses Slack fragments too. */
.w-time { color: #9a9b9e; font-size: 11px; }
.w-typing { display: none; gap: 3px; padding: 6px 0 2px; }
.w-typing i { width: 5px; height: 5px; border-radius: 50%; background: #9a9b9e; animation: typing 1s ease-in-out infinite; }
.w-typing i:nth-child(2) { animation-delay: 0.15s; } .w-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
/* Brief */
.w-brief .win-h { color: var(--ui-3); font-weight: 500; }
.w-big { font-size: 13px; font-weight: 500; color: var(--ui-1); margin-bottom: 4px; }
.w-list li { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; color: var(--ui-2); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.w-list li:first-child { border-top: 0; }
.w-list .st { width: 12px; height: 12px; margin-top: 2px; }
.w-list .st-done::after { width: 3px; height: 5.5px; }
.w-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.w-stats dt { color: var(--ui-3); font-size: 11px; }
.w-stats dd { font-size: 15px; font-weight: 500; color: var(--ui-1); font-variant-numeric: tabular-nums; }
/* Terminal (Attio's: the prompt in a lit block, then the steps) */
.w-term .mono { font-size: 11px; letter-spacing: 0; }
.w-cmd { display: flex; gap: 8px; padding: 7px 8px; margin-bottom: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); color: #f1f2f3; }
.w-prompt { color: var(--ui-3); }
.w-log li { display: flex; gap: 8px; padding: 3px 0; color: var(--ui-2); }
.w-log .lg { width: 12px; flex: none; color: var(--st-done); }
.w-log .lg::before { content: "✓"; }
.w-log li.go { color: var(--ui-1); }
.w-log li.go .lg { color: var(--ui-3); }
.w-log li.go .lg::before { content: "→"; }
.w-log li.is-running .lg::before { content: ""; display: inline-block; width: 8px; height: 8px; border: 1.5px solid var(--ui-3); border-top-color: var(--ui-1); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.w-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--ui-3); font-variant-numeric: tabular-nums; }
/* Animation states, driven by home.js. Without JS everything shows. */
.win.is-playing [data-step] { opacity: 0; transform: translateY(4px); transition: opacity 300ms var(--ease), transform 400ms var(--ease); }
.win.is-playing [data-step].is-in { opacity: 1; transform: none; }
.win.is-playing .w-typing.is-on { display: inline-flex; }
.caret::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* Tablet: all four columns always fit (they share the width via the base minmax(0, 1fr)).
   Was repeat(4, 220px) at 768–899, which cut Done off the right edge (Avi, 9 Nov). */
@media (min-width: 768px) and (max-width: 959px) {
  .lcol-cards { min-height: 240px; }
}

/* ---------- HP-2 Proof band ---------- */
/* v4: no borders of its own. The proof is the end of the opening (hero + logos, as on Linear);
   the first chapter line under it is what closes the opening. */
.proof { padding-block: var(--s8) var(--s10); }
.proof-h { font-size: var(--fs-small); font-weight: 500; color: var(--ink-60); text-align: center; }
.marquee { display: flex; overflow: hidden; margin-top: var(--s9); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-row { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex: none; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
/* 14 Nov: the heading sat 32px above the logos (Avi: "a little tight"); now --s9 (64px, Avi). Each logo carries its own optical
   height (--h, set in the markup) instead of one 22px box; was height 22px, max-width 130px. */
.marquee img { height: var(--h, 22px); width: auto; object-fit: contain; }
.marquee .logo-text { font-size: 26px; }
/* Brand colour (.logos-brand) and the Yext unit (.logo-unit) moved to site.css 14 Nov: the /customers/ wall uses them too. */
/* .logo-text moved to site.css (12 Nov): customers pages use it too. */
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .marquee-row { animation: none; flex-wrap: wrap; justify-content: center; gap: var(--s6) var(--s8); padding: 0 var(--side); flex: 1; }
  .marquee-row[aria-hidden] { display: none; }
}

/* ---------- HP-3 The gap ---------- */
/* v4: the chart and the flow are diagrams, so they sit bare (no .plate). Compare links are
   Linear's open link columns (.linkcols in site.css), not bordered tiles. Previous: _legacy/home-v3i.css. */
.chain { margin: 0; }
.compare-t { color: var(--ink-60); max-width: 60ch; margin-bottom: var(--s5); }

.stack-next { margin-top: var(--s5); }
/* The user quote as a band: centred serif in open space. v4: the dot field behind it is pulled,
   because a dot now means one thing on this site, a unit of work moving (see DESIGN_SYSTEM.md). */
/* Akshay Wattal's quote closes HP-3 as a supporting voice (site.css Voice). It was a centred serif
   band; v7 made every voice one system, and serif is kept for the one anchor per page. */
.wy-voice { margin-top: var(--s10); }
@media (max-width: 767px) { .wy-voice { margin-top: var(--s9); } }

/* Chaos to clarity: scattered work → the Twin → one message */
.flow { margin-top: var(--s11); }
.flow-title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; max-width: 24ch; text-wrap: balance; }
.flow-title .dim { color: var(--ink-60); }
.flow-vis { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); align-items: stretch; }
.flow-label { font-size: var(--fs-cap); font-weight: 500; color: var(--ink-60); margin-bottom: var(--s4); }
.flow-in, .flow-out { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.noise { display: flex; flex-direction: column; gap: 10px; }
.n { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 9px 12px; animation: drift 7s ease-in-out infinite; }
.n b { display: block; color: var(--ink); font-weight: 500; }
.n i { display: block; font-style: normal; color: var(--ink-60); }
.n:nth-child(1) { transform: rotate(-2deg) translateX(10px); }
.n:nth-child(2) { transform: rotate(1.5deg) translateX(56px); animation-delay: -1.2s; opacity: 0.85; }
.n:nth-child(3) { transform: rotate(-1deg); animation-delay: -2.4s; }
.n:nth-child(4) { transform: rotate(2.2deg) translateX(72px); animation-delay: -3.6s; opacity: 0.8; }
.n:nth-child(5) { transform: rotate(-2.6deg) translateX(24px); animation-delay: -4.8s; }
.n:nth-child(6) { transform: rotate(1deg) translateX(60px); animation-delay: -6s; opacity: 0.85; }
@keyframes drift { 50% { translate: 0 -4px; } }
.tool-blank { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--fill-soft); border: 1px solid var(--line); }
.flow-mid { position: relative; min-height: 360px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines path { fill: none; vector-effect: non-scaling-stroke; }
.wires path { stroke: var(--line-strong); stroke-width: 1; }
.pulses path { stroke: var(--ink-80); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 100; stroke-dashoffset: 103; animation: pulse-run 2.8s linear infinite; }
.pulses path:nth-child(2) { animation-delay: -0.5s; } .pulses path:nth-child(3) { animation-delay: -1s; } .pulses path:nth-child(4) { animation-delay: -1.5s; }
.pulses path:nth-child(5) { animation-delay: -2s; } .pulses path:nth-child(6) { animation-delay: -2.4s; }
.pulses path.out { stroke: var(--st-done); animation-duration: 1.4s; }
@keyframes pulse-run { to { stroke-dashoffset: 0; } }
.core { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 var(--highlight); }
.core::before, .core::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.core::before { inset: -14px; } .core::after { inset: -30px; border-style: dashed; }
.brief { padding: var(--s5); }
.brief > .s { color: var(--ink-60); }
.brief .big { font-size: var(--fs-l); font-weight: 500; color: var(--ink); margin: var(--s2) 0 var(--s3); }
.brief .rows li { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.flow-vis.is-armed:not(.in) .brief .rows li { opacity: 0; transform: translateY(4px); }
.brief .rows li:nth-child(2) { transition-delay: 300ms; } .brief .rows li:nth-child(3) { transition-delay: 600ms; } .brief .rows li:nth-child(4) { transition-delay: 900ms; }
.flow-quote { margin-top: var(--s9); max-width: 46ch; }
/* Vertical (9 Nov, Avi: "the notification cards can be cluttered and overlapping as a cluster, then
   multiple lines coming from those chaotic cards to Axari"). The six items pile up as one tilted,
   overlapping cluster; a wire leaves each card from behind it and converges on the core below, and
   one wire carries on down into the morning message. home.js draws the wires from the measured
   cards, top to bottom here and left to right on wide screens. The cluster sits above the wires
   (z-index), so each line seems to come out from under its card.
   Was (6 Nov): a neat vertical stack of straight cards with one dashed line, no wires. */
@media (max-width: 899px) {
  .flow-vis { grid-template-columns: 1fr; padding: 0; }
  .flow-in { position: relative; z-index: 1; }
  .noise { display: block; position: relative; height: 300px; }
  /* Opaque here (the panel fill is translucent): overlapping cards otherwise showed the text beneath. */
  .n { position: absolute; max-width: 80%; opacity: 1 !important; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
  .n:nth-child(1) { left: 0; top: 4px; transform: rotate(-4deg); }
  .n:nth-child(2) { right: 0; top: 34px; transform: rotate(3deg); }
  .n:nth-child(3) { left: 6%; top: 92px; transform: rotate(-1.5deg); z-index: 1; }
  .n:nth-child(4) { right: 2%; top: 138px; transform: rotate(4deg); }
  .n:nth-child(5) { left: 0; top: 190px; transform: rotate(2.5deg); }
  .n:nth-child(6) { right: 0; top: 236px; transform: rotate(-3deg); }
  .flow-mid { min-height: 170px; }
}

/* ---------- HP-4 Use cases (Linear "Faster reviews" pattern) ----------
   One large screen of the main case, a small caption, then quiet cells. Only the H2 is large:
   titles are 16px/500, lines 14px grey, results 14px with the number in ink. */
.split .more { margin-top: var(--s3); }
/* One hairline frame: a wide example, then a 2×2 grid (Linear Build). The visual takes about
   70% of each cell and holds one focal element; the caption is two lines. */
.jgrid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; } /* the container itself is .panel (site.css) */
.jg { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); }
.jg:nth-child(2n+1):not(.jg-wide) { border-left: 1px solid var(--line); }
.jg-wide { grid-column: 1 / -1; border-top: 0; }
.jg-vis { position: relative; height: 360px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.jg-cap { padding: 0 var(--s6) var(--s6); }
/* 14 Nov (Avi: "too tight"): the other cards centre their mock and get ~100px of air above the caption; the issue
   mock is pinned top-left and fades out at the visual's bottom edge, so it ran straight into the title (0px).
   The caption now sits one --s7 below it, the same inset the mock has from the top and left. */
.jg-wide .jg-cap { padding-top: var(--s7); }
.jg-t { font-size: var(--fs-body); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.jg-d { margin-top: 6px; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-60); max-width: 54ch; }
/* The customer result sits on its own line after the sentence that sets it up, regular weight,
   numerals and an arrow (Avi, 7 Nov: bold read as loud; the space does the separating).
   Was: a bold inline <b> inside .jg-d. */
.jg-r { margin-top: var(--s3); font-size: var(--fs-body); line-height: 1.55; color: var(--ink-60); }

/* Wide example: the issue screen bleeds off the right and fades at the bottom and right */
.jv-issue { height: 460px; align-items: flex-start; justify-content: flex-start; padding: var(--s7) 0 0 var(--s7); -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
.jv-issue .issue { width: 1160px; flex: none; }
.issue { display: grid; grid-template-columns: minmax(0, 1fr) 280px; font-size: var(--fs-small); }
.issue-main { min-width: 0; border-right: 1px solid var(--line); }
.issue-bar { display: flex; align-items: center; gap: var(--s2); padding: 12px var(--s5); border-bottom: 1px solid var(--line); color: var(--ink-60); font-size: var(--fs-cap); }
.issue-bar .mono { color: var(--ink-80); }
.issue-bar .sep { color: var(--ink-40); }
.issue-body { padding: var(--s6) var(--s8); }
.issue-t { font-size: var(--fs-l); font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
.issue-d { margin: var(--s2) 0 var(--s5); color: var(--ink-60); max-width: 62ch; }
/* .activity moved to site.css (8 Nov): /customers/ uses it too. */
.issue-props { padding: var(--s5); opacity: 0.6; }
.issue-props > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: var(--s3); padding: 7px 0; }
.issue-props dt { color: var(--ink-60); font-size: var(--fs-cap); }
.issue-props dd { display: flex; align-items: center; gap: var(--s2); color: var(--ink-80); min-width: 0; }

/* Stacked cards: one notification in front, two ghosts behind (Linear's review card) */
.jv-stack { flex-direction: column; }
.stk { width: 66%; height: 20px; margin-bottom: -6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: color-mix(in srgb, var(--ink) 3%, var(--paper)); }
.stk-3 { width: 58%; opacity: 0.5; }
.stk-2 { width: 64%; opacity: 0.8; }
.stk-front { position: relative; display: flex; align-items: center; gap: var(--s4); width: 72%; padding: var(--s4) var(--s5); border: 1px solid var(--line-strong); border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); box-shadow: inset 0 1px 0 var(--highlight), 0 16px 40px rgba(0, 0, 0, 0.45); }
.stk-front .tool { width: 28px; height: 28px; border-radius: 50%; padding: 4px; background: var(--paper); }
.stk-front > div { flex: 1; min-width: 0; }
.stk-front .t { display: flex; align-items: center; gap: var(--s2); color: var(--ink); font-weight: 500; }
.stk-front .s { color: var(--ink-60); font-size: var(--fs-small); margin-top: 2px; }
.stk-front .when { color: var(--ink-40); font-size: var(--fs-small); }

/* Lines: one row lit, neighbours dim, edges fade (Linear's code highlight) */
.jv-lines { -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 45%, transparent 100%); }

/* .lines moved to site.css (8 Nov): /customers/ and /pricing/ use it too. */
.snip { padding: var(--s4); }
.snip-h { display: flex; align-items: center; gap: var(--s2); color: var(--ink-60); padding-bottom: var(--s2); }
.chat p + p { margin-top: 6px; }
.chat b { color: var(--ink); font-weight: 500; }
.chat .t { color: var(--ink-80); }
.chat .s { color: var(--ink-60); }
@media (max-width: 899px) {
  .jgrid { grid-template-columns: 1fr; }
  .jg:nth-child(2n+1):not(.jg-wide) { border-left: 0; }
  .jg-vis { height: 260px; }
  .jv-issue { height: 340px; padding: var(--s5) 0 0 var(--s5); }
  .jv-issue .issue { width: 760px; }
  .issue-props { display: none; }
  .issue { grid-template-columns: 1fr; }
  .lines, .stk-front { width: 90%; }
  .lines li { grid-template-columns: 18px minmax(0, 1fr); row-gap: 2px; }
  .lines .s { grid-column: 2; white-space: normal; }
  .jg-cap { padding: var(--s4) var(--s5) var(--s5); } /* 10 Nov audit: the mock's faded last row touched the caption title */
  .jg-wide .jg-cap { padding-top: var(--s5); } /* matches the mock's phone inset */
}

/* ---------- Endorsement: a centred serif quote that scrolls with the page ----------
   v4: the light chapter means "someone vouching". The dot texture is pulled (dots are work signals now).
   7 Nov: the Attio pin + line-by-line grey-to-ink fill is pulled (read as jittery). Static, all ink.
   Restorable from _legacy/quote-fill-v5.txt. */
/* v7 (7 Nov): one anchor, the rest on a rail. All quote styling is the shared Voice system in
   site.css; this is layout only. Grid version: _legacy/quote-grid-v7.txt. */
.quote-sec { padding-block: var(--section-pad); background-color: var(--paper); overflow-x: clip; }
.quote-sec .voices-rail { margin-top: var(--s10); }
@media (max-width: 767px) { .quote-sec .voices-rail { margin-top: var(--s8); } }
.quote-sec .voices-nav { margin-top: var(--s6); }

/* ---------- HP-5 How it works (v4, 7 Nov late) ----------
   A bare hairline diagram in three tiers: people with their Twins → the one map → the tools.
   The map is an open band between two rails (no box). Stems join each item to the rail next to
   it, and stop at the rail, so no line crosses text. Dots are work signals: they rise from each
   tool into the map, then from the map up to each person's Twin. ~3 dots are visible at a time.
   Sizes: 14 / 12 only, plus the 12px mono tier labels (the record voice).
   Previous framed version (.hmap): _legacy/home-v3i.css. */
.tiers { margin: 0 0 var(--s9); }
.tiers-body { --stem: 48px; --lab: 168px; }
.tier { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; }
.tier-k { font: 400 var(--fs-cap)/1.4 var(--font-mono); color: var(--ink-40); }
.tier-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.tier-row li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; font-size: var(--fs-cap); line-height: 1.4; color: var(--ink-60); }
.tier-row b { font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.t-people .tier-row { --n: 3; }
.t-map .tier-row { --n: 5; }
.t-tools .tier-row { --n: 7; }
.t-map { margin-top: var(--stem); }
.t-tools { margin-top: var(--stem); }
.t-map .tier-row { border-block: 1px solid var(--line-strong); padding: 0 0 var(--s5); }
.t-map li { gap: 2px; }
.t-map .node { position: relative; z-index: 1; width: 7px; height: 7px; margin: -4px 0 var(--s4); background: var(--paper); border: 1px solid var(--ink-40); }  /* z-index: Priya's dot starts under the Processes node and must stay behind it */
/* .av-pair: a person and their Twin, overlapped. Renamed from .pair on 10 Nov: site.css took .pair
   for the 12-column text-beside-fragment layout, which spread the two avatars across the grid. */
.av-pair { display: inline-flex; margin-bottom: var(--s2); }
.av-pair .av + .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--paper); }
.live-who .av-pair { margin: 0; }
.t-tools li { flex-direction: row; justify-content: center; gap: 6px; }
/* 10 Nov (Avi): colour brand marks, same files as /integrations/. Was grayscale(1) at 0.7. */
.t-tools img { width: 16px; height: 16px; object-fit: contain; }
/* Stems: from each person down to the top rail, from each tool up to the bottom rail. */
.t-people li::after, .t-tools li::after { content: ""; position: absolute; left: 50%; height: calc(var(--stem) - 8px); border-left: 1px solid var(--line-strong); }
.t-people li::after { top: calc(100% + 8px); }
.t-tools li::after { bottom: calc(100% + 8px); }
/* Work signals travelling the stems (bottom to top). Measured 8 Nov ("centre the dot on the stroke"):
   the dot sat 0.5px left of the 1px stem, and tool dots stopped 2px above the rail instead of on it.
   Now the dot's centre rides the stem's centre line (stem = 50% + 0.5px, so margin-left is -2px), and
   it runs between the stroke's real ends: tools, stem base to the rail's centre; people, the rail's
   centre to the stem top. --run is that distance: the stem plus half the 1px rail. */
.tiers-body { --run: calc(var(--stem) - 7.5px); }
.t-people li::before, .t-tools li::before { content: ""; position: absolute; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: var(--ink-80); opacity: 0; animation: rise 4.2s var(--ease) infinite; }
.t-tools li::before { bottom: calc(100% + 8px - 2.5px); }
.t-people li::before { top: calc(100% + var(--stem) + 0.5px - 2.5px); }
@keyframes rise { 0% { opacity: 0; transform: translateY(0); } 8% { opacity: 1; } 34% { opacity: 1; transform: translateY(calc(-1 * var(--run))); } 40%, 100% { opacity: 0; transform: translateY(calc(-1 * var(--run))); } }
.t-tools li:nth-child(1)::before { animation-delay: 0s; } .t-tools li:nth-child(4)::before { animation-delay: -0.6s; } .t-tools li:nth-child(6)::before { animation-delay: -1.2s; }
.t-tools li:nth-child(2)::before { animation-delay: -2s; } .t-tools li:nth-child(5)::before { animation-delay: -2.6s; } .t-tools li:nth-child(7)::before { animation-delay: -3.1s; } .t-tools li:nth-child(3)::before { animation-delay: -3.6s; }
.t-people li:nth-child(1)::before { animation-delay: -2.8s; } .t-people li:nth-child(2)::before { animation-delay: -1.4s; } .t-people li:nth-child(3)::before { animation-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .t-people li::before, .t-tools li::before { display: none; } }
@media (max-width: 1199px) {
  .tier { grid-template-columns: 1fr; row-gap: var(--s4); }
  .t-people li::after { top: calc(100% + 8px); }
  .tier-k { display: none; }  /* narrow: the stems carry the tiers and the caption names the figure */
  .tiers-body { --stem: 40px; }
}
/* Phone (9 Nov, Avi: "not working right now, make it work for vertical"). Measured problems at
   390px: the map's nodes sat at the start of each list row and read as unticked checkboxes; the
   tools wrapped 4 + 3, so the second row had no stems and floated loose. Now the diagram reads top
   to bottom in three bands: the three people, stems down into the shared context (a two-column
   list of category and example between the two rails, no nodes), then all seven tools on one row
   of logos, each with its stem and rising dot, as on web. Tool names drop to logos on the phone
   only; the figure's aria-label still names every tool. */
@media (max-width: 767px) {
  /* .tiers keeps 64px on phones too (12 Nov: stacked blocks 64px apart everywhere). Was s8. */
  .t-map .tier-row { grid-template-columns: 1fr; padding: var(--s3) 0; }
  .t-map li { flex-direction: row; align-items: baseline; gap: var(--s3); text-align: left; padding: 6px 0; }
  .t-map .node { display: none; }
  .t-map li span { margin-left: auto; text-align: right; }
  .t-tools li { font-size: 0; }
  .t-tools img { width: 20px; height: 20px; }
}

/* Approval demo: unmounted from the homepage on 7 Nov (markup in _legacy/index-v3h.html).
   Styles and the site.js handler are kept so restoring is a markup paste. */
.approval .app-bar > span:first-child { display: inline-flex; align-items: center; gap: var(--s2); }
.approval .app-body { padding: var(--s5); font-size: var(--fs-small); }
.msg { display: flex; gap: var(--s3); }
.msg + .msg { margin-top: var(--s5); }
.msg > div { flex: 1; min-width: 0; }
.av-lg { width: 32px; height: 32px; border-radius: 8px; font-size: var(--fs-cap); }
.msg .who { color: var(--ink); font-weight: 500; }
.msg .t { color: var(--ink-80); margin-top: 2px; }
.approval-card { margin-top: var(--s4); border: 1px solid var(--line-strong); border-radius: 8px; padding: var(--s4); background: var(--surface-2); box-shadow: inset 0 1px 0 var(--highlight); }
.approval-card > .t { display: flex; align-items: center; gap: var(--s2); color: var(--ink); font-weight: 500; margin: 0; }
.approval-card dl { margin-top: var(--s3); }
.approval-card dl > div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s3); padding: 8px 0; border-top: 1px solid var(--line); }
.approval-card dt { color: var(--ink-60); }
.approval-card dd { color: var(--ink); }
.approval-actions { margin-top: var(--s4); }
.btn-sm { min-height: 44px; font-size: var(--fs-small); }
.approval[data-state="scanning"] [data-show~="scanning"] { animation: blink 1.2s var(--ease) infinite; }
@keyframes blink { 50% { opacity: 0.5; } }
@media (max-width: 479px) { .approval-card dl > div { grid-template-columns: 1fr; gap: 2px; } .approval .app-body { padding: var(--s4); } }

/* ---------- HP-6 Stack ---------- */
.stack .stats { margin-bottom: var(--s8); }
/* v4: a plain list in columns, not tiles. A tool name is content, not interface, so no box. */
.tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4) var(--gutter); }
.tools li { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-small); color: var(--ink-80); min-width: 0; }
/* 10 Nov (Avi): colour logos from assets/logos/brand/, same files as /integrations/. Colour is how people
   spot their own tools. Was greyscale at 0.8 from assets/logos/tools/. Restore: add back
   filter: grayscale(1); opacity: 0.8; and point the markup at tools/. */
.tools img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.stack-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s6); }
@media (max-width: 1199px) { .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 9 Nov (Avi: "show only 5 rows with key products on phone"). Ten tools marked data-key in the
   markup stay: CrowdStrike, Qualys, Wiz, Okta, Splunk, Tenable, Jira, ServiceNow, Slack, Teams.
   The other 14 hide on phones only; "See all 467+ integrations" sits right under the list. */
@media (max-width: 767px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tools li:not([data-key]) { display: none; } }

/* HP-7 gate track: moved to site.css 10 Nov (shared with /security/). */
/* Permissions, Approvals, Oversight. Web: three open columns, as before (each is a <details> held
   open; its summary is the plain heading and isn't interactive). Phone (9 Nov, Avi): FAQ-style rows,
   collapsed by default, same + icon and the same eased open as the FAQ (site.js). Without JS
   they stay open everywhere. */
.oversight summary { list-style: none; }
.oversight summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) { .oversight summary { pointer-events: none; } }
@media (max-width: 767px) {
  /* Round 2 (9 Nov, Avi): no rule above Permissions or below Oversight, only between rows; and the
     group sits closer to the track above and the SOC 2 line below. */
  /* An accordion list on phones, not text blocks: it opts out of the .cells panel frame (10 Nov). */
  .cells.oversight { gap: 0; padding: 0; }
  .cells.oversight > * { box-shadow: none; padding: 0; }
  .oversight details + details { border-top: 1px solid var(--line); }
  /* .gates keeps 64px on phones too (12 Nov). Was s5. */
  .oversight summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s5); min-height: 44px; padding: var(--s4) 0; }
  .oversight summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--ink-60); flex: none; transition: transform var(--t-ui) var(--ease); }
  .oversight details[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
  .oversight .a { padding-bottom: var(--s5); }
  .oversight .ticks { margin-top: 0; }
}
.oversight .ticks { margin-top: var(--s4); }
/* 14 Nov (Xiaoyun): the SOC 2 line was too small to notice. Now a panel: badge · title and line · links.
   Was: one 14px muted line under a border-top rule. */
.control-foot { --pp: var(--s6); display: flex; align-items: center; gap: var(--s5) var(--s6); margin-top: var(--s9); }
.control-foot .soc-badge { flex: none; width: 72px; height: 72px; }
.control-foot .soc-t { flex: 1; min-width: 0; }
.control-foot .soc-t .body { margin-top: var(--s2); }
.control-foot .soc-l { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); } /* 14 Nov (Avi): side by side, as in .hero-links. Was a column. */
@media (max-width: 767px) {
  /* phone: closer to the accordions (9 Nov round 2); badge and title on one line, links below */
  .control-foot { --pp: var(--s5); margin-top: var(--s5); flex-wrap: wrap; align-items: flex-start; }
  .control-foot .soc-badge { width: 56px; height: 56px; }
  .control-foot .soc-t { flex-basis: calc(100% - 56px - var(--s5)); }
  .control-foot .soc-l { flex-basis: 100%; }
}
@media (max-width: 767px) { .ladder { grid-template-columns: 1fr; gap: var(--s5); } .ladder li + li::before { content: "↓"; left: 50%; top: -22px; transform: translateX(-50%); } }

/* .ticks, team, founders, faces and the investor wall moved to site.css (8 Nov) so /company/ reuses them. */

/* ---------- HP-9 Start ---------- */
.path { display: flex; flex-direction: column; gap: var(--s4); }
.path .h3 { max-width: 18ch; }
.path-n { font-size: var(--fs-small); font-weight: 500; color: var(--ink-60); }
.path .ticks { margin-bottom: var(--s5); }
.path .btn { margin-top: auto; align-self: flex-start; }
.closing { margin-top: var(--s9); }

/* ---------- FAQ ---------- */
/* .faq-grid moved to site.css (8 Nov) so /pricing/ shares it. */

/* ---------- Section headers, no eyebrows (7 Nov 2026) ----------
   Pulled on the homepage: the small label above every H2 ("Why Axari", "Use cases"…).
   One above every heading is a template tell, and it added a fourth text style to each header.
   The headline carries the section alone, the nav names the pages. Linear pattern: description
   top-aligned to the headline's first line, so .split goes from end to start here.
   Restore: delete this block. The markup is untouched. The hero kicker stays (it carries the
   category, which the H1 doesn't). Sub-pages keep their eyebrows until this is judged. */
.section .eyebrow { display: none; }
.split { align-items: start; }

/* Start: a line drawing opens each tier in place of the column rule. Strokes are ink at low
   strength, faces are paper so nearer blocks hide the ones behind. No accent: the accent is the
   Twin's cursor and avatar only, and these blocks are a count, not a character. */
/* Each tier is a whole .panel (drawing, copy and CTA), and the panels touch with one hairline per
   joint, only the outer corners round: the .panel stacking rule. Not boxed copy on its own: each
   panel leads with its figure. Below 1200 they stack in one column (the shared stacking rules
   apply as is); a 2 + 1 wrap left the third panel orphaned. Desktop turns the stack sideways. */
.cells.paths { --cols: 1 !important; gap: 0; padding: 0; }
.paths > .path { border: 1px solid var(--line); padding: var(--pp); box-shadow: none; } /* draws its own joined frame (the pattern .cells now follows) */
.paths > .path + .path { border-top: 0; }
@media (min-width: 1200px) {
  .cells.paths { --cols: 3 !important; }
  .paths > .path + .path { border-top: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r-frame) var(--r-frame) 0; }
  .paths > .path:has(+ .path) { border-radius: var(--r-frame) 0 0 var(--r-frame); }
  .paths > .path + .path:has(+ .path) { border-radius: 0; }
}
/* One stroke value for every line. It is opaque (ink mixed into paper, not over transparent) so a
   shared edge drawn by two faces stays one line instead of doubling in brightness. Pulled 7 Nov:
   brighter tops and fainter plates ("same stroke colour and thickness across"), dots on the cube
   tops and the dense 16-cube grid ("overlapping strokes creating visual clutter"). */
/* Phone (9 Nov, Avi: "smaller illustrations, more compact cards, less space above and below the
   illustration"). The drawings run at 60% and each is pulled up by its empty headroom: the three
   share a 172-unit-tall box so their bases line up side by side on web, which left 111, 70 and 31
   units of blank above them once stacked (measured with getBBox). Stacked, there is no row to line up
   with, so the ink starts at the card's padding. Tighter rhythm inside each card. Desktop unchanged. */
@media (max-width: 767px) {
  .path { gap: var(--s3); }
  .path-frame { margin-bottom: var(--s3); }
  .path-art { height: 103px; width: auto; }
  .path:nth-child(1) .path-art { margin-top: -66px; }
  .path:nth-child(2) .path-art { margin-top: -42px; }
  .path:nth-child(3) .path-art { margin-top: -18px; }
  .path .ticks { margin-bottom: var(--s4); }
}

/* Get started, 12 Nov round 3: one joined grid (.cells). The steps list dissolves into it (display: contents,
   so each step is a cell) and the two ways in span half the width each. */
.start-grid { margin-top: var(--s8); }
.start-grid .first-steps { display: contents; counter-reset: fs; list-style: none; }
.first-steps li { counter-increment: fs; }
.start-grid .first-steps > li { min-width: 0; padding: var(--pp); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, var(--paper)); } /* the .cells child rule, one level down */
.first-steps li::before { content: counter(fs); display: block; margin-bottom: var(--s3); font-size: var(--fs-small); color: var(--ink-60); font-variant-numeric: tabular-nums; }
.first-steps b { display: block; font-weight: 500; color: var(--ink); }
.first-steps span { display: block; margin-top: var(--s1); font-size: var(--fs-small); color: var(--ink-60); }
.buy-cell { grid-column: span 2; }
@media (max-width: 1199px) { .start-grid > .buy-cell { grid-column: 1 / -1; } }
@media (max-width: 767px) { .start-grid { --cols: 1 !important; } }
/* The ways in, typed like the pricing plans: name (fs-l, 500) then one grey line, then the button. */
.buy-cell .buy-n { font-size: var(--fs-l); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.buy-cell .buy-for { margin-top: calc(var(--s1) - var(--s4)); font-size: var(--fs-small); color: var(--ink-60); max-width: 44ch; margin-bottom: var(--s5); }
.buy-more { margin-top: var(--s4); }



/* Get started drawings (12 Nov): both share one height, so the plates sit on one line side by side.
   They are drawn tight (no headroom), so the phone offsets the old tiers needed don't apply. */
.buy-cell.path:nth-child(n) .path-art { margin-top: 0; height: auto; }
.buy-cell .path-frame { margin-top: var(--s7); margin-bottom: var(--s3); } /* 12 Nov (Avi): more air above the drawing on web */
@media (max-width: 767px) { .buy-cell .path-frame { margin-top: var(--s3); } } /* the drawing belongs to its name; was s6 + the cell gap, which left it floating */
/* Phones show the drawings at their own size (132 × 94): scaled down, the five credit slabs crowd. */
