/* GoBolt site v2. index.html only, on top of site.css. Tokens are the kit's --k-*.
   It places kit mocks and components. The pieces the kit has no rule for: the storefront in the hero, the phones
   whose messages arrive at the bottom of a frame that keeps one height, the pinned scroll stage sized to its
   picture, and the close's price. */

/* ── 1. the hero: no card. The storefront stands on the atmosphere ──
   The product page is the kit's 760 px browser and reads as a real one: the photo, the product's type, name and
   price. The chat is open over the rest of the words column, bottom right, where a real widget lives, and it is only
   as tall as its conversation (the question, the answer and its product card), so no empty white panel. The page's
   lines the widget would half cover are left out, so nothing is cut through. Under 720 px the chat stands alone.
   2026-10-29 (owner: "less heavy"): the page is no longer grown past its own size, its thumbnail row is left out,
   its shadow is the kit's quiet one, and nothing stands beside it. */
/* the headline keeps at least the platform pages' air under the header; the room comes out of the gaps below it */
@media (min-width: 720px) { .has-hero .hero { padding-top: clamp(96px, 12vh, 128px); } }
@media (max-width: 719px) { .has-hero .hero { padding-top: 120px; } }   /* the header has a second row of links here */
.hero .two .actions { margin-top: clamp(20px, 2vw, 28px); }
.hero-picture { display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(32px, 4vw, 56px); padding-inline: var(--k-gutter); }
.hero-store { flex: 0 1 auto; min-width: 0; display: flex; justify-content: center; }
.hero-solo { display: none; width: min(384px, 100%); }
.storefront { position: relative; width: fit-content; max-width: 100%; }
.storefront > [data-ui="product"] { width: 760px; max-width: 100%; }
.storefront > .storefront-chat { position: absolute; inset-inline-end: 20px; bottom: 20px; width: 384px; --k-ui-scale: 0.74; }
.storefront .k-browser { box-shadow: 0 1px 3px rgba(30, 29, 26, 0.05), 0 18px 48px rgba(30, 29, 26, 0.09); }
.storefront .k-pp-thumbs { display: none; }
.storefront > .storefront-chat .k-chat { height: auto; box-shadow: 0 2px 6px rgba(30, 29, 26, 0.06), 0 20px 50px rgba(30, 29, 26, 0.16); }
.storefront > .storefront-chat .k-chat-msgs { flex: none; }
.storefront .k-pp-info > :nth-child(n+4) { visibility: hidden; }
@media (min-width: 900px) { .storefront > [data-ui="product"] { --k-ui-scale: 0.96; } .storefront > .storefront-chat { --k-ui-scale: 0.8; } }
@media (min-width: 1200px) { .storefront > [data-ui="product"] { --k-ui-scale: 1; } .storefront > .storefront-chat { --k-ui-scale: 0.82; bottom: 44px; } }
@media (min-width: 1600px) and (min-height: 880px) { .storefront > [data-ui="product"] { --k-ui-scale: 1.16; } .storefront > .storefront-chat { --k-ui-scale: 0.9; } }
@media (max-width: 719px) { .hero-store { display: none; } .hero-solo { display: block; } .hero-solo > .storefront-chat { --k-ui-scale: 1; } .hero-solo .k-chat { height: auto; } .hero-solo .k-chat-msgs { flex: none; } }   /* the solo chat is only as tall as its conversation: no empty white panel */
/* On a tablet (720 to 899 px) the page is not grown, so a chat at 0.74 would be read at 10 px, smaller than the solo
   one on a phone (13.5 px). Here it is drawn at 0.92: the conversation reads at 12 px and more, and the chat reaches
   over the words column, so the product's type, name and price would be cut through ("Wayfar 28", "$16"). There
   the page shows its photo and the open chat, and none of its words. Under 860 px the page is shorter still and the
   chat's top reaches the store's own header, so its links and bag are left out too (the store's name stays). */
@media (min-width: 720px) and (max-width: 899.98px) {
  .storefront > .storefront-chat { --k-ui-scale: 0.92; }
  .storefront .k-pp-info > * { visibility: hidden; }
}
@media (min-width: 720px) and (max-width: 859.98px) { .storefront .k-pp-nav > :not(strong) { visibility: hidden; } }
/* The picture is built by script (kitUI), after the first paint: its box is kept from the start, a little under the
   height it will have (the product page grows 0.615 px per px of width over its fixed rows; without its thumbnail
   row it is about 40 px shorter than before), so nothing under the hero jumps when it arrives. The gutter is 5vw. */
@media (max-width: 719px) { .hero-picture { min-height: 400px; } }
@media (min-width: 720px) { .hero-picture { min-height: calc(min(760px, 90vw) * 0.615 + 50px); } }
@media (min-width: 900px) { .hero-picture { min-height: calc(min(730px, 90vw) * 0.615 + 56px); } }
@media (min-width: 1200px) { .hero-picture { min-height: calc(760px * 0.615 + 60px); } }
@media (min-width: 1600px) and (min-height: 880px) { .hero-picture { min-height: calc(882px * 0.615 + 70px); } }

/* Each line of the title stays one line when it fits. A longer language (Tamil at 900 px) wraps it, balanced,
   instead of running off the screen: site.css holds the lines with nowrap, which only English can promise. */
.hero .hero-title > span { white-space: normal; }

/* The hero chat is mid-conversation: it reads from the top, as the real widget's does (packages/bolt-widget,
   .bw-msgs is a plain scroll box), without the greeting the visitor would have scrolled past. Rows that have not
   arrived keep their place, so nothing moves; Bolt's typing row lays itself over the answer's place. */
.hero-picture .k-chat-msgs > :first-child { margin-top: 0; }
.hero-picture .k-chat-row--ai[data-at="0"], .hero-picture .k-chat-chips { display: none !important; }
.hero-picture .k-ui:not([data-fit]) .k-chat-row[data-at]:not([data-until]):not(.is-on) { display: flex !important; visibility: hidden; }
.hero-picture .k-chat-row[data-until].is-on { margin-bottom: -48px; position: relative; z-index: 1; }

/* a phone beside its words (the briefing, the messages): the words sit level with the finished phone's middle */
@media (min-width: 900px) {
  .scene--phone .split { align-items: center; }
  .scene--phone .split > .two { padding-bottom: 0; }
  /* a 300 px phone at the far edge of its column leaves a hole in the middle of the page: centre it */
  .scene--phone .split > .picture { justify-content: center; }
}

/* ── 3. the pinned stage is as tall as its picture ────────────────
   The kit's stage is one screen tall with its content centred, which leaves a screen's worth of paper around a
   550 px phone. Here it is its content's height, pinned at the screen's middle (home.js sets --stage-top), so the
   gap to the next picture is the scene's own spacing. The scroll it takes is the kit's: one screen plus a step per
   message. */
.scene--phone[data-scrub].is-scrubbing > .scrub-stage { height: auto; top: var(--stage-top, 0px); display: block; }
/* A pinned scene has no padding of its own, so two of them back to back (the briefing, then BOLT, since MKT-036) hand
   one phone straight to the next with no paper between them: they read as one picture stacked on another (owner,
   2026-11-02). The second takes the room "Hear the product" takes after a pinned phone (.scene--hear, below). A margin,
   not padding, so the scroll it pins over stays the kit's. */
.scene--phone[data-scrub].is-scrubbing + .scene--phone[data-scrub].is-scrubbing { margin-top: calc(var(--k-section) * 1.6); }

/* ── 4. a player under the sentence (the briefing) ──
   The phone beside it is the scene's one picture (DESIGN-NOTES rules 1 and 5), so the player is a control in the
   words column, like the hero's button: no sheet, border or shadow of its own, its button lined up with the words. */
.two .actions .player { margin-top: 0; }
.scene--phone .two .actions .player { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
/* Let the text column shrink on narrow screens; long player titles wrap inside it. */
.split > .two, .scrub-stage > .split { min-width: 0; }

/* ── 5. the close: without JavaScript there is no price to read from config.js, so the sentence ends early ── */
html:not(.js) .needs-js { display: none; }

/* room above "Hear the product" after the pinned BOLT phone (owner, 2026-10-29) */
.scene--hear { padding-top: calc(var(--k-section) * 1.6); }
/* the cards on this page keep their lift and halo, and lose the arrow (owner, 2026-10-29) */
.more a.card::after { display: none; }
.more .card-title { padding-right: 0; }
/* the close: a quieter field than the dusk band (owner, 2026-10-29: "looks a little weird") */
.close > .atmo { --atmo-strength: 0.55; }

/* ── 6. hear the product: the highlight card is shared with the features page (highlight-card.css, MKT-039) ── */

/* ── 4b. under the briefing player: the languages it plays in (the one playing in bold) and "Choose a language",
   which takes the visitor to the header's control (home.js, 2d). One quiet line, wrapping as the words need. ── */
.two .actions .brief-langs { display: grid; gap: 6px; margin-top: var(--k-4); max-width: 34rem; text-wrap: pretty; }   /* 2026-10-29: the languages on one line, the link on its own under them */
.brief-langs a { justify-self: start; }
.brief-langs strong { font-weight: 600; color: var(--k-ink-2); }
.brief-langs a { display: inline-block; padding-block: 10px; margin-block: -10px; color: var(--k-ink-2); text-decoration: underline;
  text-decoration-color: var(--k-line); text-underline-offset: 4px; white-space: nowrap; transition: color var(--k-fast) ease, text-decoration-color var(--k-fast) ease; }
.brief-langs a:hover { color: var(--k-ink); text-decoration-color: currentColor; }

/* the hero's one loud thing is the button: it is a size up here, and the chat's ink (the shopper's bubble, the
   avatars, the card's button) steps back to stone so the picture does not out-shout it */
.hero .two .actions .button { min-height: 60px; padding: 18px 36px; font-size: 1.1875rem; font-weight: 600; box-shadow: 0 6px 16px rgba(30, 29, 26, 0.16), 0 18px 40px rgba(30, 29, 26, 0.14); }
.hero-picture .k-chat-me { background: #e9e6df; color: #2a2d31; }
.hero-picture .k-chat-avatar { background: #57544d; }
.hero-picture .k-prod-add { background: transparent; color: #23262b; box-shadow: inset 0 0 0 1.5px rgba(35, 38, 43, 0.22); }

/* ── 7. under a pointer, the hero answers (MKT-024, founder 2026-10-15: "some spiciness when I keep the hover") ──
   home.js writes --tx and --ty (each -1 to 1, where the pointer is across the hero). The storefront tilts a couple of
   degrees towards the pointer and its chat floats a step nearer (MKT-036 dropped the light that followed the hand);
   the atmosphere leans the same way, a beat behind; the two lines
   drift the other way. The ink button is magnetic: it leans towards a pointer that comes
   near and springs back. Only under a fine pointer that can hover, never under ?still or reduced motion, and the
   atmosphere's own drift is untouched (translate composes with its animated transform; atmo-check still passes).
   The media query is live: Reduce Motion switched on after the page loads rests it at once, and home.js stops writing. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js:not(.still) .hero { --tx: 0; --ty: 0; }
  .js:not(.still) .hero-picture { perspective: 1800px; }
  .js:not(.still) .hero .storefront {
    transform: rotateX(calc(var(--ty) * -2.4deg)) rotateY(calc(var(--tx) * 3deg));
    transform-style: preserve-3d; transition: transform 900ms var(--k-ease); will-change: transform;
  }
  .js:not(.still) .hero .storefront > .storefront-chat {
    transform: translate3d(calc(var(--tx) * -8px), calc(var(--ty) * -6px), 30px);
    transition: transform 900ms var(--k-ease);
  }
  .js:not(.still) .hero .atmo > i, .js:not(.still) .hero .atmo > b {
    translate: calc(var(--tx) * 2.4%) calc(var(--ty) * 1.6%);
    transition: translate 1600ms var(--k-ease);
  }
  .js:not(.still) .hero .two { translate: calc(var(--tx) * -4px) calc(var(--ty) * -3px); transition: translate 1100ms var(--k-ease); }
  .js:not(.still) .hero .two .actions .button, .js:not(.still) .close .actions .button {
    translate: var(--mx, 0px) var(--my, 0px); transition: translate 700ms var(--k-ease-spring), transform var(--k-fast) var(--k-ease), box-shadow var(--k-fast) ease;
  }
}

/* ── 8. every language your store sells in (MKT-032; rebuilt 2026-10-29) ──
   The two lines, then the stage: one chat card in the middle (the kit's chat classes, so it is the storefront chat's
   own bubbles) and the eleven flag cards in a ring around it, placed by their turn (--i) on an ellipse (cos and sin
   in calc). The flag on turn is lifted and ringed; the others rest. Under 720 px the ring is a row that scrolls
   under its own hand, the card under it, so nothing is covered and nothing is empty. */
.langs .langs-wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }   /* one column the wrap's width: an implicit column would size to the stage's 880 px and overflow a phone */
.langs .two { position: relative; z-index: 1; max-width: 40rem; }
.langs-stage { position: relative; width: min(880px, 100%); margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 720px) {
  .langs-stage { height: clamp(440px, 46vw, 520px); display: grid; place-items: center; }
  .langs-ring { position: absolute; inset: 0; }
  .flag {
    --a: calc(var(--i) * (360deg / 11) - 90deg);
    position: absolute; left: calc(50% + cos(var(--a)) * 44%); top: calc(50% + sin(var(--a)) * 45%);
    transform: translate(-50%, -50%);
  }
  /* a browser without cos(): the flags take a row above the card instead of a ring */
  @supports not (left: calc(cos(90deg) * 1px)) {
    .langs-ring { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: var(--k-5); }
    .flag { position: static; transform: none; }
    .langs-stage { height: auto; display: grid; }
  }
}
/* the flag card: a flag and the language's name in its own script (MKT-032 round 3, owner: "bring some genuinity"),
   a button the visitor can press */
.flag {
  display: grid; justify-items: center; gap: 6px; width: clamp(66px, 7vw, 92px); padding: 10px 8px 8px;
  border-radius: 14px; background: var(--k-surface); border: 1px solid rgba(30, 29, 26, 0.06); box-shadow: var(--k-shadow-sheet);
  color: var(--k-ink-2); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--k-move) var(--k-ease-spring), box-shadow var(--k-move) ease, border-color var(--k-fast) ease, opacity var(--k-move) ease;
}
.flag-img { width: 64%; aspect-ratio: 3 / 2; height: auto; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(30, 29, 26, 0.08); }
.flag-name { font-size: 11px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.flag:hover { border-color: rgba(30, 29, 26, 0.18); }
.flag:focus-visible { outline: 3px solid var(--k-green); outline-offset: 2px; }
/* the one on turn, quietly (owner, 2026-10-29: "make those selections subtle"): a hairline in ink and a step up */
.flag { --flag-rest: 1; opacity: var(--flag-rest); }
.flag.is-on { border-color: rgba(30, 29, 26, 0.5); color: var(--k-ink); }
@media (min-width: 720px) {
  .flag.is-on { transform: translate(-50%, -50%) scale(1.06); }
  @supports not (left: calc(cos(90deg) * 1px)) { .flag.is-on { transform: scale(1.04); } }
  /* the flags not on turn rest a little back, so the one answering reads first */
  .js:not(.still) .langs-ring .flag:not(.is-on) { --flag-rest: 0.9; }
}
/* the ring arrives flag by flag once the block is in view (kitReveal's .is-in); the arrival ends on the flag's own
   resting opacity, so a flag never vanishes after it has arrived */
.js:not(.still) .langs [data-reveal]:not(.is-in) .flag { opacity: 0; }
.js:not(.still) .langs [data-reveal].is-in .flag { animation: flag-in 700ms var(--k-ease-spring, var(--k-ease)) backwards; animation-delay: calc(var(--i) * 90ms + 260ms); }
@keyframes flag-in { from { opacity: 0; scale: 0.8; } to { opacity: var(--flag-rest, 1); scale: 1; } }

/* the chat: the kit's bubbles in a card the size of the storefront widget, only as tall as the exchange */
.langs-chat {
  position: relative; z-index: 1; width: min(372px, 100%); text-align: start;
  background: #fff; border-radius: 16px; border: 1px solid rgba(30, 29, 26, 0.06); box-shadow: var(--k-shadow-sheet);
  font: 400 14px/1.5 var(--k-font-ui); color: #23262b;
}
.langs-chat .k-chat-head { padding: 12px 14px; border-bottom: 1px solid #f1efeb; display: flex; align-items: center; gap: 10px; }
.langs-rows { position: relative; display: grid; grid-template-rows: auto auto; padding: 10px 16px 14px; }
.langs-rows > .k-chat-row { min-width: 0; }
.langs-rows > .k-chat-row--me { grid-row: 1; }
.langs-rows > .langs-typing, .langs-rows > .langs-answer { grid-row: 2; grid-column: 1; align-self: start; }
.langs-rows .k-chat-me { max-width: 84%; }
.langs-rows .k-chat-ai { max-width: 88%; }
/* the exchange arrives in three beats (home.js): the question, Bolt typing, the answer; each row keeps its place */
.langs-rows > .k-chat-row { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity 320ms ease, transform 420ms var(--k-ease), visibility 0s linear 320ms; }
.langs-chat.is-asking > .langs-rows > .k-chat-row--me,
.langs-chat.is-typing > .langs-rows > .langs-typing,
.langs-chat.is-answered > .langs-rows > .langs-answer { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.langs-chat.is-answered > .langs-rows > .langs-typing { opacity: 0; visibility: hidden; transition: opacity 120ms ease, visibility 0s linear 120ms; }
html:not(.js) .langs-rows > .k-chat-row { opacity: 1; transform: none; visibility: visible; }
html:not(.js) .langs-rows > .langs-typing { display: none; }
/* a phone: the flags are a row that scrolls, with the chat under it */
@media (max-width: 719px) {
  .langs-ring {
    display: flex; gap: 10px; width: calc(100% + var(--k-gutter) * 2); margin-inline: calc(-1 * var(--k-gutter)); padding: 8px var(--k-gutter) 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .langs-ring::-webkit-scrollbar { display: none; }
  .flag { flex: none; scroll-snap-align: center; width: 76px; }
  .flag.is-on { transform: translateY(-3px); }
  .langs-chat { margin: 10px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .langs [data-reveal] .flag { opacity: 1; animation: none !important; }
  .flag, .langs-rows > .k-chat-row { transition: none !important; }
}
