/* VOLTA FAQ chat · stage 1 — the Lifestyle skin: a coastal road, frosted glass, Inter. Stage 1: the photo, the top bar and the accordion in a frosted-glass panel. */
: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; }

/* ---------- 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); }

/* ---------- the chat panel (frosted glass) */

.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; }

/* ---------- 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; }
  .faq-list { flex: 1; min-height: 0; height: auto; max-height: none; width: 100%; }
}

/* ---------- phones (and phones on their side) */
@media (max-width: 700px), (max-height: 500px) {
  .stage { display: block; padding: 0; min-height: 100svh; }
  .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%; }
  .faq-list { max-height: none; overflow: visible; margin-top: 24px; padding: 18px 14px; }
  .range-line { font-size: 14.5px; }
}

/* 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; }
  .ans-btn { height: 44px; margin-top: 10px !important; }
  .range-line { margin-top: 6px !important; font-size: 15px; }
}
