/* GoBolt site v2. The features page, on top of the kit and site.css. Tokens are the kit's --k-*.
   Seven groups, each a scene: a serif headline, one sentence, a calm list of plain lines, and one
   living picture from the kit. Nothing here restyles a kit component; the close-up window is
   the site's own (site.css), re-aimed for this page. */

/* ── the opening: two lines, then the dawn field rising from the bottom edge of the screen ──
   The hero is one screen tall, so the field (the bottom 46%, data-edge="soft") meets the screen's lower edge and
   never floats as a band over paper. The bottom padding keeps the two lines in the paper above it, never in the colour. */
/* MKT-013: no longer a full screen of colour under two lines. The opener is the three jobs; the field rises behind them
   at reduced strength, so the words stay on light colour, never on the full field. */
.hero--jobs { padding-bottom: clamp(56px, 7vw, 96px); }
.hero--jobs > .atmo { --atmo-strength: 0.55; }
.jobs { display: grid; gap: var(--k-5); margin-top: clamp(56px, 7vw, 96px); text-align: start; }   /* MKT-030: room under the hero's words */
.job {
  display: grid; align-content: start; gap: var(--k-2); height: 100%;
  padding-top: var(--k-5); border-top: 1px solid var(--k-ink-3);
  color: inherit; text-decoration: none;
}
.job-label { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--k-ink-3); font-variant-numeric: tabular-nums; }
.job-title { margin-top: var(--k-2); font-size: var(--k-title); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--k-ink); text-wrap: balance; }
.job-text { color: var(--k-ink-2); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.job-go { margin-top: var(--k-2); font-size: var(--k-small); font-weight: 500; color: var(--k-green); }
.job-go::after { content: " \2193"; }
.job:hover .job-go { text-decoration: underline; text-underline-offset: 4px; }
.job:hover { border-top-color: var(--k-ink); }
@media (min-width: 900px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--k-7); } }
/* a job's link lands its scene under the header, not behind it */
#shoppers, #briefing, #messages { scroll-margin-top: 24px; }

/* ── the list: one plain line per row, hairlines between, nothing else ── */
.rows { margin-top: clamp(28px, 3.5vw, 40px); max-width: 32rem; color: var(--k-ink-2); font-size: 1.0625rem; line-height: 1.5; }
.rows > li { padding-block: 13px; border-top: 1px solid var(--k-line); text-wrap: pretty; }
.rows > li:last-child { border-bottom: 1px solid var(--k-line); }
.two .rows + .body { margin-top: clamp(28px, 3.5vw, 40px); }

/* words and list sit level with the centre of the picture, even when the picture is a phone */
.features .wrap.split:has(> .picture [data-ui="phone"]) { align-items: center; }
.features .wrap.split:has(> .picture [data-ui="phone"]) > .two { padding-bottom: 0; }

/* ── hear the product: the home page's highlight card (highlight-card.css, MKT-039), no longer a window onto the
   product page, whose colour row and photo took the eye from the product ── */

/* ── languages: one clip, the briefing with its Weekly / Daily switch, standing in for a picture.
   The header's language control drives it; the scene has no control of its own. ── */
/* grid items default to min-width: auto, so a long title or the switch would push the page sideways (Tamil at 360) */
.split > .two, .split > .picture, .scrub-stage > .split { min-width: 0; }
.listen { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; row-gap: var(--k-5); width: min(34rem, 100%); min-width: 0; }
.listen > .player { width: 100%; min-width: 0; }
/* a long title (Tamil, Spanish) and the Weekly / Daily switch share one row only while they fit; when they
   do not, the switch drops to its own row instead of pushing the page sideways */
.listen .player-head { flex-wrap: wrap; row-gap: 6px; }
/* the way back to the page's one language control, which sits a long way up on a phone: a quiet link, not a second
   control (features.js focuses the header's select and brings the player back once a language is chosen) */
/* one quiet line under the player, as on the home page: the six languages the clip plays in (features.js writes them
   from the audio manifest, each in its own script, the one playing in bold), then the link. Without JavaScript the
   names are empty and the link stands alone. */
.listen-langs { font-size: 0.9375rem; line-height: 1.6; color: var(--k-ink-3); text-wrap: pretty; }
.listen-langs strong { font-weight: 600; color: var(--k-ink-2); }
/* 44 px to tap without breaking the line: the padding reaches past the text, the negative margin gives it back */
.listen-change { display: inline-block; padding-block: 11px; margin-block: -11px; color: var(--k-ink-2); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--k-line); text-underline-offset: 4px; transition: color var(--k-fast) ease, text-decoration-color var(--k-fast) ease; }
.listen-change:hover { color: var(--k-ink); text-decoration-color: currentColor; }

/* ── what Bolt never does: no picture, so the scene is centred like the opening and the close, and the ruled rows
   sit at one calm measure under the two lines ── */
.never .rows { max-width: 40rem; margin-inline: auto; }


/* a line with a limit from config.js (features.js writes it); with JavaScript off it would show its token */
html:not(.js) [data-fill] { display: none; }

/* ── the three phones: the kit's standard 300 × 572 frame, tied to the
   scroll by kitScrub. While scrubbing, the stage is one screen tall with the words and the phone level. ── */
.features [data-scrub].is-scrubbing .wrap.split { align-items: center; }

/* ── the shopper chat: mid-conversation and only as tall as its conversation ──
   It opens on the first question already answered, with its product card (step 4 of the kit's answer scenario), and
   the scroll brings the second question and the answer where Bolt says it will not guess (kitScrub, data-from="4").
   The greeting and the quick replies have scrolled away, as they would have in a real chat. The AI disclosure stays
   (DESIGN-NOTES, settled): it is the first line, pinned at the top, and the conversation glides up under it (the rise
   below; features.js crops the thread to the conversation it opens on). Bolt's typing dots take no height of their
   own and show in the answer's place, which is still empty while they do. */
.features .shopper-chat .k-chat { height: auto; }
.features .shopper-chat .k-chat-msgs { flex: none; padding-top: 0; -webkit-mask-image: none; mask-image: none; }
.features .shopper-chat .k-chat-msgs > :first-child { margin-top: 0; }
.features .shopper-chat .k-chat-row[data-at="0"],
.features .shopper-chat .k-chat-chips { display: none; }
.features .shopper-chat .k-chat-row:has(> .k-typing) { height: 0; padding-block: 0; overflow: visible; transform: translateY(5px); }

/* ── every scroll-tied picture keeps one height, and its messages arrive at the bottom (features.js, "rise") ──
   As on the home page (home.css, section 2): the frame keeps one height from the first frame (the conversation it
   opens on plus --rise-room, below), and the rows rest on the composer. features.js sets --drop, the room the rows
   still to come will take, and every row is lifted down by it, so a new message comes in at the bottom and the ones
   before it glide up.
   `translate` is its own property, so it adds to the kit's own arrival (its transform) instead of replacing it. */
.k-ui[data-rise] .k-chat-msgs { position: relative; max-height: none; scroll-behavior: auto; }
.k-ui[data-rise] .k-chat-msgs > * { translate: 0 var(--drop, 0px);
  transition: opacity 420ms var(--k-ease), transform 560ms var(--k-ease), translate 640ms var(--k-ease), visibility 0s linear 0s; }
.k-ui[data-rise] .k-chat-msgs > [data-at]:not(.is-on) {
  transition: opacity 240ms ease, transform 240ms ease, translate 640ms var(--k-ease), visibility 0s linear 240ms; }
.k-ui[data-rise][data-instant] .k-chat-msgs > *, .k-ui[data-rise][data-settle] .k-chat-msgs > * { transition: none; }
@media (prefers-reduced-motion: reduce) { .k-ui[data-rise] .k-chat-msgs > * { transition: none !important; } }
/* the chat's disclosure holds its place over the rows that glide up under it, which fade in its shadow */
.k-ui[data-rise] .k-chat-msgs > .k-chat-note { translate: none; position: relative; z-index: 1; background: #fff; }
.k-ui[data-rise] .k-chat-msgs > .k-chat-note::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 6px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); pointer-events: none; }
/* The storefront chat opens full under its disclosure. */
.features [data-ui="chat"][data-rise] { --rise-room: 0px; }

/* ── between briefings (MKT-019): no picture, so the scene is centred like "What Bolt never does" ── */
.watching .rows { max-width: 40rem; margin-inline: auto; }
#watching { scroll-margin-top: 24px; }

/* ── MKT-032: two chapters, each opened by a grid of cards ──
   The hero's two jobs (one per chapter) and, at the head of each chapter, "at a glance": one card per feature, an
   icon, a title, one line and, where it is true today, a small tag (New, Coming soon, Max plans). Each card links to
   the scene that shows it working. The cards are the kit's surface on paper; the scenes under them are unchanged. */
/* the two chapters: two tinted tiles (dawn's pearl and sage), a headline, one sentence and the way down. No numbers,
   no hairlines (owner, 2026-10-22: the numbered version read as generated). */
.chapters { display: grid; gap: var(--k-4); max-width: 60rem; margin: clamp(48px, 6vw, 80px) auto 0; text-align: start; }
@media (min-width: 720px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-5); } }
.chapter {
  position: relative; display: grid; align-content: start; gap: var(--k-3); min-height: 240px; padding: clamp(24px, 3vw, 36px); overflow: hidden;
  border-radius: var(--k-r-stage); color: inherit; text-decoration: none; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--chapter, var(--k-pearl)) 70%, var(--k-surface)), var(--k-surface) 80%);
  border: 1px solid rgba(30, 29, 26, 0.06); box-shadow: var(--k-shadow-quiet);
  transition: transform var(--k-move) var(--k-ease), box-shadow var(--k-move) ease;
}
.chapter:hover { transform: translateY(-3px); box-shadow: var(--k-shadow-sheet); }
.chapter--you { --chapter: var(--k-sage); }
.chapter::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--chapter, var(--k-pearl)) 85%, white), transparent 68%); opacity: 0.9;
}
.chapter-title { font-family: var(--k-serif); font-weight: var(--k-weight-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--k-ink); text-wrap: balance; }
.chapter-text { color: var(--k-ink-2); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; max-width: 26rem; }
.chapter-go { margin-top: auto; padding-top: var(--k-3); display: inline-flex; align-items: center; gap: 8px; font-size: var(--k-small); font-weight: 600; color: var(--k-ink); }
.chapter-go::after { content: "\2193"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--k-ink); color: var(--k-surface); font-size: 14px; transition: transform var(--k-fast) var(--k-ease); }
.chapter:hover .chapter-go::after { transform: translateY(3px); }
.glance { padding-top: clamp(40px, 5vw, 72px); }
/* one line under the glance headline (owner: "don't break the line") */
.glance .two .body { max-width: none; text-wrap: nowrap; }
@media (max-width: 899px) { .glance .two .body { text-wrap: pretty; } }
#shoppers-glance, #you-glance, #documents, #change, #hear, #languages, #never, #intelligence { scroll-margin-top: 24px; }

/* ── reads your PDFs: the Sources row above the shopper chat that answers from it ── */
.docs { display: grid; gap: var(--k-3); width: min(400px, 100%); justify-items: stretch; }
.docs-source {
  display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--k-r-card); background: var(--k-surface);
  border: 1px solid rgba(30, 29, 26, 0.08); box-shadow: var(--k-shadow-quiet); font-family: var(--k-font-ui); font-size: 13px; line-height: 1.4; color: var(--k-ink-2);
}
.docs-head { display: flex; align-items: baseline; gap: 8px; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--k-ink-3); }
.docs-head b { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--k-ink-2); }
.docs-file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.docs-file > svg { width: 22px; height: 22px; color: var(--k-ink-2); }
.docs-name { display: grid; min-width: 0; }
.docs-name strong { font-weight: 600; color: var(--k-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-name span { font-size: 12px; color: var(--k-ink-3); }
.docs-source .tag { margin: 0; }
.docs-chat { --k-ui-scale: 0.9; }
.docs-chat .k-chat { height: auto; }
.docs-chat .k-chat-msgs { flex: none; padding-top: 0; -webkit-mask-image: none; mask-image: none; }
.docs-chat .k-chat-row--ai[data-at="0"], .docs-chat .k-chat-chips { display: none; }
@media (min-width: 900px) { .docs { --k-ui-scale: 1; } }

/* ── between briefings: the store's state, as Bolt keeps it ── */
.state { display: grid; gap: var(--k-4); width: min(380px, 100%); padding: 18px 20px 20px; border-radius: var(--k-r-sheet); background: var(--k-surface); border: 1px solid rgba(30, 29, 26, 0.08); box-shadow: var(--k-shadow-sheet); font-family: var(--k-font-ui); font-size: 14px; line-height: 1.4; color: var(--k-ink-2); text-align: start; }
.state-head { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--k-ink-3); }
.state-rows { display: grid; }
.state-rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-block: 9px; border-top: 1px solid var(--k-line); color: var(--k-ink); }
.state-rows li:first-child { border-top: 0; }
.state-rows i { width: 8px; height: 8px; border-radius: 50%; background: var(--k-green-bright); box-shadow: 0 0 0 3px var(--k-green-tint); }
.state-rows b { font-weight: 500; font-size: 12px; color: var(--k-ink-3); }
.state-change { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; border-radius: var(--k-r-card); background: var(--k-paper); }
.state-change .tag { grid-column: auto; justify-self: start; }
.state-label { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--k-ink-3); }
.state-change strong { color: var(--k-ink); font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.state-change .tag { margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* MKT-042: the "Bolt plans your stock" scene. The runway card reuses the Between-briefings state card; an amber dot marks a
   row that drives the warning. */
.planning .state { width: min(420px, 100%); }
.planning .state-rows i.is-warn { background: var(--k-honey); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-honey) 22%, transparent); }
.planning .state-rows li span { min-width: 0; }
.planning .state-change span:not(.state-label):not(.tag) { font-size: 13px; color: var(--k-ink-2); }
