/* VOLTA FAQ chat · stage 6 — the Lifestyle skin: a coastal road, frosted glass, Inter. Stage 6: + the thumbs, the hand-off form and its sent state. */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* primitives */
  --c-ink: #111214; --c-ink-2: #2b2e33; --c-muted: #5b6068; --c-white: #fff; --c-blue: #2f6bff; --c-green: #2fbf71;
  /* semantic (light) */
  --ink: var(--c-ink); --ink-2: var(--c-ink-2); --muted: var(--c-muted); --paper: #fff;
  --glass: rgba(252, 252, 250, .64); --glass-line: rgba(255, 255, 255, .78); --glass-strong: rgba(255, 255, 255, .9);
  --line: rgba(17, 18, 20, .1); --card: #fff; --card-shadow: 0 1px 2px rgba(10, 20, 30, .06), 0 10px 28px -14px rgba(10, 20, 30, .28);
  --user: rgba(64, 67, 72, .92); --user-ink: #fff;
  --chip: rgba(255, 255, 255, .74); --chip-line: rgba(17, 18, 20, .12); --chip-hover: #fff;
  --btn: #0e0f10; --btn-ink: #fff; --photo: #f1f0ec;
  --tab: rgba(255, 255, 255, .52); --tab-line: rgba(17, 18, 20, .16);
  --mark: #ffe07a; --ring: var(--c-blue); --ok: #1f9d5b; --err: #c4262e;
  --track-fill: linear-gradient(90deg, var(--c-green), var(--c-blue)); --track-off: rgba(17, 18, 20, .12);
  --thumb-bg: var(--c-blue); --thumb-border: 3px solid #fff; --thumb-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  --scene-veil: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 34%), linear-gradient(0deg, rgba(20, 30, 40, .14), rgba(20, 30, 40, 0) 30%);
  /* the intro column starts just right of the rider in the photo (the photo is right-aligned, so the rider sits as far left as it can) */
  --photo-w: max(100vw, calc(var(--photo-ar, 1.79) * 100svh));
  --intro-x: max(clamp(20px, 7.4vw, 112px), calc(100vw - (1 - var(--subj-r, .4)) * var(--photo-w) + 36px));
  /* the bike (read by the sprite's gradients, so they live on :root) */
  --bike-frame: #5e6367; --bike-frame-hi: #a4aaaf; --bike-frame-lo: #34373a; --bike-tyre: #18191b; --bike-metal: #b8bdc1;
  --bike-dark: #25272a; --bike-accent: #34d399; --bike-shadow: #1b1e22;
  --radius: 20px;
  color-scheme: light;
}

body { font-family: var(--font); color: var(--ink); background: #b8d3e6; font-size: 16px; line-height: 1.5; min-height: 100svh; }

.scene { position: fixed; inset: 0; z-index: -1; }
.scene img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
@media (max-aspect-ratio: 1/1) { .scene img { object-position: 15% 50%; } }
@media (max-aspect-ratio: 3/5) { .scene img { object-position: 50% 50%; } }
.scene::after { content: ""; position: absolute; inset: 0; background: var(--scene-veil); }

/* ---------- top bar */
.nav { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 84px; display: flex; align-items: center; gap: 28px; padding: 0 clamp(20px, 5.5vw, 96px) 0 clamp(20px, 7.4vw, 112px); }
.logo { font-size: 30px; font-weight: 500; letter-spacing: .14em; text-decoration: none; color: var(--ink); line-height: 1; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links { margin-left: auto; display: flex; gap: 24px; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 0 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a[aria-current=page] { box-shadow: inset 0 -2px 0 currentColor; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color .15s ease; }
.icon-btn:hover { background: rgba(127, 127, 127, .14); }

/* ---------- the stage: intro on the left, the chat panel on the right */
.stage { --panel-w: clamp(370px, 34vw, 520px); --pad-r: clamp(20px, 5.5vw, 96px); --gap: clamp(24px, 3vw, 48px);
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); column-gap: var(--gap);
  /* right of the rider, but never narrower than 290px: on short laptop screens it may reach the handlebar */
  padding: 96px var(--pad-r) 28px max(clamp(20px, 5vw, 112px), min(var(--intro-x), calc(100vw - var(--pad-r) - var(--panel-w) - var(--gap) - 290px)));
  align-items: start; }
.intro { padding-top: clamp(20px, 9vh, 110px); max-width: 520px; }
.intro h1 { font-size: clamp(56px, 6vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: .92; }
.lede { margin: 12px 0 24px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--ink-2); max-width: 26ch; font-weight: 500; text-shadow: 0 1px 12px rgba(255, 255, 255, .5); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { height: 40px; padding: 0 14px; border-radius: 99px; background: var(--tab); border: 1px solid var(--tab-line); font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background-color .15s, border-color .15s; white-space: nowrap; }
.tab:hover { background: var(--glass-strong); }
.tab[aria-selected=true] { background: var(--glass-strong); border: 1.5px solid var(--ink); font-weight: 600; }

.intro .search { margin-top: 18px; width: min(340px, 100%); }
.search { display: flex; align-items: center; height: 48px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 6px 20px -12px rgba(10, 20, 30, .35); }
.search > .i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 8px 0 44px; font-size: 16px; border-radius: inherit; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.search-clear { width: 40px; height: 40px; margin-right: 4px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.results { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(10, 20, 30, .45); backdrop-filter: blur(20px); min-width: min(380px, calc(100vw - 40px)); }
.opt { padding: 10px 12px; border-radius: 10px; min-height: 44px; }
.opt-q { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.opt-t { font-size: 12px; color: var(--muted); flex: none; }
.opt[aria-selected=true], .opt:hover { background: rgba(127, 127, 127, .14); }
.opt--ask { color: var(--muted); }
.opt--ask .opt-q { font-weight: 500; }
.opt-head { font-size: 12px; color: var(--muted); }
mark { background: var(--mark); border-radius: 3px; padding: 0 1px; }

/* ---------- the chat panel (frosted glass) */
.chat { grid-column: 2; grid-row: 1 / span 2; height: calc(100svh - 96px - 28px); min-height: 460px; display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 40px 90px -30px rgba(15, 30, 50, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--line); flex: none; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #0e0f10; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; letter-spacing: -.02em; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.chat-id { min-width: 0; flex: 1; }
.chat-name { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.chat-status { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-status i { flex: none; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-tools { display: flex; gap: 2px; }

.chat-log { --pad-l: 18px; --pad-r: 18px; flex: 1; padding: 18px var(--pad-r) 12px var(--pad-l); scroll-padding: 12px; }
.bubble--user { background: var(--user); color: var(--user-ink); border-radius: 18px 18px 5px 18px; padding: 10px 15px; max-width: 82%; font-size: 15px; font-weight: 500; line-height: 1.4; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .5); }
.msg--bot .bubble { background: var(--card); border-radius: 5px 18px 18px 18px; padding: 14px 16px 14px; max-width: calc(100% - 46px); box-shadow: var(--card-shadow); font-size: 15px; line-height: 1.5; color: var(--ink); }
.msg--bot .bubble--card, .msg--bot .bubble--form { flex: 1; }
.bubble-tag { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px !important; }
.bubble-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 12px !important; }
.typing { padding: 14px 16px !important; color: var(--muted); }

.ans { color: var(--ink-2); }
.ans strong { color: var(--ink); font-weight: 650; }
.ans-link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.ans-bike { background: var(--photo); border-radius: 14px; padding: 12px 18px 6px; }
.ans-bike svg { max-height: 150px; margin: 0 auto; }
.ans-bike figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.range { margin-top: 12px; }
.range .ans-bike { margin-bottom: 10px; }
.range-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.range-pack { font-size: 13px; font-weight: 600; }
.range-ticks { font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.range-line { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; align-items: baseline; gap: 2px 6px; white-space: nowrap; margin-top: 10px !important; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.range-line .dot { color: var(--muted); }
.ans-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ans-btn { height: 48px; width: 100%; border-radius: 11px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px; margin-top: 14px !important; transition: transform .15s ease, opacity .15s; }
.ans-btn:hover { opacity: .9; }
.ans-btn:active { transform: scale(.985); }
.ans-table { font-size: 14px; }
.ans-table th, .ans-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.ans-table thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.ans-table tbody th { font-weight: 600; color: var(--ink); }
.ans-table tbody tr:last-child > * { border-bottom: 0; }
.ans-list li::marker { color: var(--muted); font-weight: 600; }

.fb { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.fb-q { margin-right: auto !important; }
.fb-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--photo); color: var(--ink); transition: background-color .15s, transform .15s; }
.fb-btn:hover { background: var(--chip-hover); transform: translateY(-1px); }
.fb--done { color: var(--ink); font-weight: 500; }
.fb-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fb-ico .i { width: 15px; height: 15px; stroke-width: 3; }
.fb--down p { flex: 1 1 160px; }
.fb-human { height: 40px; padding: 0 14px; border-radius: 11px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 14px; }

.fu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.link-btn .i { width: 18px; height: 18px; }

/* chips */
.chat-dock { flex: none; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.chips-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.chips .chip { flex: none; white-space: nowrap; }
.chips::-webkit-scrollbar { display: none; }
.chip { min-height: 40px; padding: 8px 15px; border-radius: 99px; background: var(--chip); border: 1px solid var(--chip-line); font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); text-align: left; transition: background-color .15s, transform .15s, border-color .15s; }
.chip:hover { background: var(--chip-hover); border-color: rgba(127, 127, 127, .4); }
.chip:active { transform: scale(.97); }
.chip--q { flex: 0 1 auto; max-width: 100%; white-space: normal !important; border-radius: 14px; background: var(--photo); border-color: transparent; }
.chips-empty { font-size: 14px; color: var(--muted); padding: 8px 4px; }
.tabs--dock { display: none; }

.composer { display: flex; align-items: center; gap: 4px; margin-top: 10px; height: 52px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); padding: 0 4px 0 0; }
.composer input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 16px; font-size: 16px; border-radius: inherit; }
.composer input::placeholder { color: var(--muted); }
.composer input:focus-visible { outline: none; }
.composer:focus-within { border-color: var(--ring); box-shadow: 0 0 0 2px var(--ring); }
.send { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color .15s; }
.send:hover { background: rgba(127, 127, 127, .14); }

/* hand-off form */
.form-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.form-title:focus { outline: none; }
.form-sub { font-size: 14px; color: var(--muted); margin-top: 4px !important; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea { border: 1px solid var(--chip-line); background: var(--photo); border-radius: 11px; padding: 11px 13px; font-size: 16px; color: var(--ink); }
.field input { height: 46px; }
.field [aria-invalid=true] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.field-err { font-size: 13px; color: var(--err); font-weight: 500; }
.err-sum { font-size: 13.5px; font-weight: 600; color: var(--err); background: color-mix(in srgb, var(--err) 10%, transparent); border-radius: 10px; padding: 9px 12px; }
.btn-primary { height: 46px; padding: 0 20px; border-radius: 11px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px; }
.btn-ghost { height: 46px; padding: 0 16px; border-radius: 11px; font-weight: 600; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: rgba(127, 127, 127, .12); }
.sent { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.sent-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sent-ico .i { stroke-width: 3; }
.sent-title { font-size: 17px; font-weight: 700; }
.sent p { grid-column: 1 / -1; margin-top: 8px !important; font-size: 14.5px; }
.sent-ref { font-size: 12.5px !important; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- list view / no-JS accordion: the same glass panel */
.faq-list { grid-column: 2; grid-row: 1 / span 2; max-height: calc(100svh - 96px - 28px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 26px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 40px 90px -30px rgba(15, 30, 50, .45); }
.faq-list-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.faq-list-head h2:focus { outline: none; }
.faq-list-sub { font-size: 14px; color: var(--muted); }
.faq-group { margin-top: 20px; }
.faq-group-title { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.faq-item { background: var(--card); border-radius: 14px; box-shadow: var(--card-shadow); }
.faq-item + .faq-item { margin-top: 8px; }
.faq-item summary { min-height: 52px; padding: 12px 14px 12px 16px; font-weight: 600; font-size: 15px; border-radius: 14px; }
.faq-item summary:hover { background: rgba(127, 127, 127, .06); }
.faq-ico { color: var(--muted); }
.faq-a { padding: 0 16px 16px; font-size: 15px; }
.faq-a .ans-btn { max-width: 340px; }
.faq-empty { margin-top: 18px; font-size: 15px; }
.faq-help { margin-top: 24px; padding: 16px; border-radius: 14px; background: var(--card); }
.faq-help h3 { font-size: 16px; font-weight: 700; }
.faq-help p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }

/* ---------- tablet portrait and small laptops: intro on top, the panel below */
@media (max-width: 999px) and (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (max-width: 1199px) and (orientation: portrait) {
  .stage { display: flex; flex-direction: column; height: 100svh; min-height: 0; padding: 92px clamp(20px, 5vw, 48px) 24px; gap: 20px; }
  .intro { padding-top: 0; max-width: none; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 28px; }
  .intro h1 { grid-row: span 2; font-size: 76px; }
  .lede { margin: 0; max-width: 40ch; }
  .intro .tabs { grid-column: 1 / -1; margin-top: 18px; }
  .intro .search { grid-column: 1 / -1; width: 100%; max-width: 460px; }
  .chat, .faq-list { flex: 1; min-height: 0; height: auto; max-height: none; width: 100%; }
}

/* ---------- phones (and phones on their side): the chat is the whole screen, over the photo */
@media (max-width: 700px), (max-height: 500px) {
  .only-wide { display: none !important; }
  .stage { display: block; padding: 0; min-height: 100svh; }
  :root.js .nav,
  :root.js .intro { display: none; }
  .nojs .stage { padding: 84px 20px 28px; }
  .nav { position: absolute; padding: 0 12px 0 20px; gap: 12px; }
  .nav-links { display: none; }
  .intro { padding-top: 24px; }
  .intro h1 { font-size: 64px; }
  .intro { min-width: 0; max-width: 100%; }
  .status-more { display: none; }
  .chat { position: fixed; inset: 0; z-index: 7; height: 100svh; height: 100dvh; min-height: 0; border-radius: 0; border: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
    background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: none; }
  .chat-head { padding: 10px 6px 10px 14px; }
  .chat-log { --pad-l: 12px; --pad-r: 12px; padding: 14px var(--pad-r) 10px var(--pad-l); }
  .msg--bot .bubble { max-width: calc(100% - 44px); }
  .bubble--user { max-width: 86%; }
  .chat-dock { padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
  .chips-label { margin: 0 14px 6px !important; }
  .chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-height: none; padding: 2px 12px; margin: 0; scroll-padding: 12px; }
  .chip { flex: none; white-space: nowrap; min-height: 44px; }
  .tabs--dock { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 2px 12px; margin-top: 8px; scrollbar-width: none; }
  .tabs--dock::-webkit-scrollbar { display: none; }
  .tabs--dock .tab { flex: none; height: 44px; }
  .composer { margin: 10px 12px 0; }
  .faq-list { max-height: none; overflow: visible; margin-top: 24px; padding: 18px 14px; }
  .results { position: absolute; }
  .icon-btn { width: 44px; height: 44px; }
  .tab { height: 44px; }
  .fb-btn { width: 44px; height: 44px; }
  .range-line { font-size: 14.5px; }
}
@media (max-height: 500px) {
  .tabs--dock, .chips-label { display: none !important; }
  .chat-head { padding-top: 4px; padding-bottom: 4px; }
  .chat-status { display: none; }
}
.kw { font-size: .86em; color: var(--muted); font-weight: 500; margin-left: 4px; white-space: nowrap; }

/* touch screens: every control at least 44 px */
@media (pointer: coarse) {
  .icon-btn, .fb-btn { width: 44px; height: 44px; }
  .tab, .chip { min-height: 44px; height: auto; }
}
@media (max-height: 600px) {
  .fu--greet, .bubble-sub { display: none; }
}

/* shorter laptop screens: the showcase card keeps its slider and button in view */
@media (max-height: 860px) and (min-width: 701px) and (min-height: 501px) {
  .range .ans-bike svg { max-height: 104px; }
  .ans-bike { padding: 8px 14px 4px; }
  .msg--bot .bubble { font-size: 14.5px; padding: 12px 14px; }
  .bubble-tag { margin-bottom: 4px !important; }
  .ans-btn { height: 44px; margin-top: 10px !important; }
  .range-line { margin-top: 6px !important; font-size: 15px; }
  .chat-head { padding-top: 10px; padding-bottom: 10px; }
}
