/*
 * TestVibe — componenti condivisi (tutte le pagine)
 * Versione: homepage r8 statica (tv-build 2026-11-11-r8) · valori trascritti dagli stili di TestVibe Home r8.dc.html
 * Richiede design-tokens.css. Gli url() sono relativi a questo file (cartella /assets/).
 *
 * Indice
 *   1 Base            2 Visibilità per larghezza   3 Sfondo illustrato   4 Testo a onde
 *   5 Header e menu   6 Pulsanti                    7 Tipografia          8 Sezioni
 *   9 Card            10 FAQ                        11 Modulo             12 Footer e selettore tema
 */

/* ============ 1 Base ============ */
* { box-sizing: border-box; }
html, body {
  overscroll-behavior-y: none;
  margin: 0;
  padding: 0;
  font-family: var(--tv-font);
  background: var(--tv-bg);
  color: var(--tv-fg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tv-fg-strong); }
input::placeholder { color: var(--tv-placeholder); }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
.tv-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  html, body { transition: none; }
}

/* ============ 2 Visibilità per larghezza ============ */
/* phone < 640px · compact < 1024px (hamburger al posto della nav) */
@media (max-width: 639px) { .tv-hide-phone { display: none !important; } }
@media (min-width: 640px) { .tv-only-phone { display: none !important; } }
@media (max-width: 1023px) { .tv-hide-compact { display: none !important; } }
@media (min-width: 1024px) { .tv-only-compact { display: none !important; } }

/* ============ 3 Sfondo illustrato ============ */
/* Illustrazione a onde fissa allo scroll; .tv-art-front passa davanti ai testi (z-index 2). */
.tv-art {
  background-color: var(--tv-bg);
  background-image: url("bkg-web.svg");
  background-repeat: no-repeat;
  background-size: var(--tv-art-size);
  background-position: var(--tv-bgx) bottom;
  background-attachment: fixed;
}
.tv-art-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: var(--tv-front-l);
  background-image: url("bkg-web-front.svg");
  background-repeat: no-repeat;
  background-size: var(--tv-art-size);
  background-position: var(--tv-bgx) bottom;
  background-attachment: fixed;
}
.tv-art-front--portrait { display: var(--tv-front-p); background-image: url("bkg-web-front-portrait.svg"); }

/* ============ 4 Testo con riempimento a onde ============ */
.tv-wave-text {
  color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}
.tv-wave-1 { background-image: url("wave-label-1.svg"); }
.tv-wave-2 { background-image: url("wave-label-2.svg"); }
.tv-wave-3 { background-image: url("wave-label-3.svg"); }
.tv-wave-full { background-image: url("wave-label-full.svg"); }
[data-theme="dark"] .tv-wave-1 { background-image: url("wave-label-1-dark.svg"); }
[data-theme="dark"] .tv-wave-full { background-image: url("wave-label-full-dark.svg"); }

/* ============ 5 Header e menu ============ */
.tv-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--tv-header);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.tv-header {
  max-width: 1200px;
  height: var(--tv-header-h);
  margin: 0 auto;
  padding: 0 var(--tv-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* logo | nav | azioni */
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}
.tv-header-spacer { height: var(--tv-header-h); }
.tv-logo { grid-column: 1; justify-self: start; display: flex; align-items: center; }
.tv-logo__full { height: clamp(44px, calc(5.2vw + 4px), 54px); width: auto; display: block; }
.tv-logo__icon { height: 40px; width: 40px; display: block; }
.tv-nav {
  grid-column: 2;
  align-self: center;
  display: flex;
  align-items: center;
  height: 33px;
  gap: clamp(22px, 2.6vw, 36px);
  font-size: 16px;
  font-weight: 400;
  color: var(--tv-fg);
  white-space: nowrap;
}
.tv-header__actions { grid-column: 3; justify-self: end; align-self: center; display: flex; align-items: center; gap: 6px; }
/* regola generale (16 nov 2026): quando c'è l'hamburger (sotto 1024px) la top bar è
   logo/icona a sinistra · "Start free" al centro · hamburger (ed eventuali altri elementi) a destra */
@media (max-width: 1023px) {
  .tv-header__actions { display: contents; }
  .tv-header__cta { grid-column: 2; }
  .tv-burger { grid-column: 3; justify-self: end; }
}

/* hamburger: tre linee; con il menu aperto "×" */
.tv-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin: -6px -10px -6px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tv-fg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
@media (max-width: 1023px) { .tv-burger { display: flex; } }
.tv-burger__line { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.tv-burger__close { display: none; font-size: 34px; line-height: 1; font-weight: 300; }
.tv-burger[aria-expanded="true"] .tv-burger__line { display: none; }
.tv-burger[aria-expanded="true"] .tv-burger__close { display: block; }

.tv-mobile-menu {
  border-top: 1px solid var(--tv-line);
  padding: 8px var(--tv-gutter) 24px;
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 500;
  color: var(--tv-fg);
  max-height: calc(100vh - var(--tv-header-h));
  overflow-y: auto;
}
.tv-mobile-menu a { padding: 14px 0; }
/* top bar links (16 nov 2026): hover in the eyebrow purple, underlined; the current page in the same purple,
   medium weight, no underline */
.tv-nav a, .tv-mobile-menu a { text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: color .15s; }
.tv-nav a:hover, .tv-mobile-menu a:hover { color: var(--tv-eyebrow); text-decoration: underline; }
.tv-nav a[aria-current="page"], .tv-mobile-menu a[aria-current="page"] { color: var(--tv-eyebrow); font-weight: 500; text-decoration: none; }
.tv-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: color-mix(in srgb, var(--tv-bg) 55%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .tv-mobile-menu, .tv-menu-overlay { display: none !important; } }

/* ============ 6 Pulsanti ============ */
.tv-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--tv-font);
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
}
.tv-btn--primary { border: 0; background: var(--tv-primary); color: #fff; font-weight: 500; }
.tv-btn--primary:hover { background: var(--tv-primary-hover); color: #fff; }
.tv-btn--outline { border: 1px solid var(--tv-border); background: var(--tv-bg); color: var(--tv-fg); font-weight: 400; }
.tv-btn--outline:hover { border-color: var(--tv-fg); color: var(--tv-fg); }
.tv-btn--ghost { background: rgba(255, 255, 255, 0.15); }   /* outline semitrasparente sopra l'illustrazione */
.tv-btn--sm { height: 33px; padding: 0 22px; font-size: 15px; }                 /* header */
.tv-btn--md { height: 45px; padding: 0 30px; gap: 10px; }                       /* azioni di pagina */
.tv-btn--outline.tv-btn--md { padding: 0 26px; gap: 8px; }
.tv-btn--lg { height: 49px; padding: 0 28px; font-weight: 500; }                /* modulo */
.tv-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--tv-fg);
  white-space: nowrap;
}
.tv-link-cta:hover { color: var(--tv-fg-strong); }
.tv-arrow-down::after { content: '↓'; }   /* freccia decorativa, fuori dal testo del link */

/* ============ 7 Tipografia ============ */
.tv-eyebrow {
  margin-bottom: 22px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  color: var(--tv-eyebrow);
}
.tv-h1 {
  margin: 0;
  font-size: clamp(46px, 9vw, 96px);
  line-height: 0.88em;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--tv-fg);
}
.tv-h2 {
  margin: 0;
  font-size: var(--tv-fs-h2);
  line-height: 0.99em;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--tv-fg);
}
.tv-h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--tv-fg);
}
.tv-lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--tv-muted);
  text-wrap: pretty;
}
.tv-body-lg {
  margin: 0;
  max-width: 680px;
  font-size: var(--tv-fs-body-lg);
  line-height: 1.44;
  color: var(--tv-muted);
  text-wrap: pretty;
}

/* ============ 8 Sezioni a fondo pieno ============ */
.tv-section {
  position: relative;
  z-index: 3;
  scroll-margin-top: var(--tv-header-h);
  background: var(--tv-bg);
  padding: clamp(48px, 7vw, 84px) var(--tv-gutter) clamp(72px, 9vw, 112px);
}
.tv-section__inner { max-width: 1136px; margin: 0 auto; }

/* ============ 9 Card ============ */
.tv-cards {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 24px;
}
.tv-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 12px;
  background: var(--tv-frame);
  border: 1px solid var(--tv-frame-border);
  box-shadow: 0 24px 48px -24px rgba(17, 17, 17, 0.18);
}
.tv-card__title { margin: 0; font-size: clamp(24px, 2.6vw, 28px); line-height: 1.1; font-weight: 700; }
.tv-card__text { margin: 0; flex: 1; font-size: 17px; line-height: 1.55; color: var(--tv-muted); text-wrap: pretty; }
.tv-card__link {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tv-fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.tv-card__link:hover { color: var(--tv-fg-strong); text-decoration-thickness: 2px; }

/* ============ 10 FAQ (details nativi, apribili da tastiera) ============ */
.tv-faq { max-width: 880px; border-bottom: 1px solid var(--tv-line); }
.tv-faq__item { border-top: 1px solid var(--tv-line); }
.tv-faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--tv-fg);
}
.tv-faq__chev {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.tv-faq__item[open] .tv-faq__chev { transform: translateY(2px) rotate(-135deg); }
.tv-faq__a {
  padding: 0 48px 28px 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tv-muted);
  text-wrap: pretty;
}
.tv-faq__a a, .tv-faq__a a:hover { color: var(--tv-fg); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tv-faq__chev { transition: none; } }

/* ============ 11 Modulo "Get product updates" ============ */
.tv-updates {
  width: 100%;
  max-width: 534px;
  margin-top: clamp(72px, 9vw, 104px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--tv-line);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tv-updates__intro { margin: 0 0 28px; font-size: 16px; line-height: 1.5; color: var(--tv-muted); }
.tv-form { position: relative; width: 100%; text-align: left; }
.tv-field { display: flex; flex-direction: column; align-items: stretch; }
.tv-label { margin-bottom: 9px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--tv-fg); }
.tv-label strong { font-weight: 600; }
.tv-form__row { display: flex; gap: 16px 22px; flex-wrap: wrap; }
.tv-form__submit { flex: 1 0 auto; justify-content: center; }   /* testo centrato anche quando il pulsante va a capo a tutta larghezza (telefono) */
.tv-input {
  flex: 999 1 240px;
  min-width: 0;
  height: 49px;
  padding: 0 17px;
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  font: 400 18px var(--tv-font);
  color: var(--tv-fg);
  background: var(--tv-field);
  outline: none;
}
.tv-input:focus { border-color: var(--tv-fg); }
.tv-input--otp { flex-basis: 200px; font-weight: 500; font-size: 20px; letter-spacing: 0.3em; }
.tv-help { margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--tv-muted); }
.tv-form-error {
  width: 100%;
  margin: 10px 0 0;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--tv-error);
}
.tv-text-btn {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tv-fg);
  font: 400 13px var(--tv-font);
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tv-notice {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--tv-border);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tv-fg);
  text-align: left;
}
.tv-status { margin: 0; }
.tv-legal { margin-top: 24px; font-size: 13px; line-height: 22px; color: var(--tv-muted); }
.tv-legal a, .tv-legal a:hover { color: var(--tv-fg); text-decoration: underline; text-underline-offset: 3px; }

/* ============ 12 Footer e selettore tema ============ */
.tv-footer { background: var(--tv-bg); padding: 28px var(--tv-ft-pad) 44px; }
.tv-footer__inner {
  max-width: 1136px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px var(--tv-ft-gap);
}
.tv-footer__brand { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: 14px; flex: 0 0 auto; }
.tv-footer__logo { height: 46px; width: auto;   /* 44 → 46px (16 nov 2026), la larghezza segue */ display: block; margin-left: -1px; }
.tv-footer__tagline { margin: -4px 0 4px; font-size: var(--tv-ft-tag); line-height: var(--tv-ft-tagl); color: var(--tv-fg); }
.tv-footer__maker {
  margin-top: auto;
  display: inline-flex;
  align-items: baseline;
  gap: var(--tv-itg-gap);
  font-size: 14px;
  color: var(--tv-muted);
  white-space: nowrap;
}
.tv-footer__maker:hover { color: var(--tv-muted); opacity: 0.8; }
.tv-footer__maker-logo { height: var(--tv-itg-h); width: auto; position: relative; }
.tv-footer__maker-logo--light { top: var(--tv-itg-top); display: var(--tv-logo-light); }
.tv-footer__maker-logo--dark { top: var(--tv-itg-top2); display: var(--tv-logo-dark); }
.tv-footer__copy { font-size: 14px; line-height: 19px; color: var(--tv-muted); }
.tv-footer__groups {
  display: flex;
  align-items: flex-end;
  gap: 32px var(--tv-ft-gap);
  flex-wrap: wrap;
  flex: 0 1 auto;
  min-width: 0;
}
.tv-footer__col { display: flex; flex-direction: column; gap: 16px; align-self: flex-start; }   /* titoli Product · Resources · Company allineati in alto (16 nov 2026); il selettore tema resta in basso */
.tv-footer__heading { margin-bottom: 6px; font-size: var(--tv-ft-fs); font-weight: 600; color: var(--tv-fg); }
.tv-footer__col a, .tv-footer__col a:hover { font-size: var(--tv-ft-fs); color: var(--tv-muted); }
/* tablet 640–1023px (16 nov 2026), disposizione "a due fasce":
   in alto logo e frase a sinistra, le tre colonne di link affiancate a destra;
   in basso, dopo un filo, selettore del tema · "A product of" Ice Tea Group · copyright.
   I blocchi del marchio e dei link si "aprono" (display: contents) e i loro elementi vanno nella griglia */
@media (min-width: 640px) and (max-width: 1023px) {
  .tv-footer {
    --tv-ft-pad: var(--tv-gutter); --tv-ft-fs: 16px; --tv-ft-tag: 16px; --tv-ft-tagl: 21px;
    --tv-itg-gap: 10px; --tv-itg-h: 24.7px; --tv-itg-top: 4.85px; --tv-itg-top2: 4.94px;
  }
  .tv-footer__inner {
    display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr auto auto; gap: 0 24px; align-items: start;
  }
  .tv-footer__brand, .tv-footer__groups { display: contents; }
  .tv-footer__logo { grid-column: 1; grid-row: 1; }
  .tv-footer__tagline { grid-column: 1; grid-row: 2; margin: 12px 0 0; }
  .tv-footer__groups > .tv-footer__col:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 3; }
  .tv-footer__groups > .tv-footer__col:nth-of-type(3) { grid-column: 3; grid-row: 1 / span 3; }
  .tv-footer__groups > .tv-footer__col:nth-of-type(4) { grid-column: 4; grid-row: 1 / span 3; }
  /* selettore del tema sotto logo e frase, allineato al fondo delle tre colonne */
  .tv-footer__groups > .tv-theme-switch { grid-column: 1; grid-row: 3; order: 0; justify-self: start; align-self: end; margin-top: 24px; }
  /* sotto, semplici e allineati a sinistra: "A product of" Ice Tea Group, poi il copyright */
  .tv-footer__maker { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: 44px; }
  .tv-footer__copy { grid-column: 1 / -1; grid-row: 5; margin-top: 10px; white-space: nowrap; }
}
/* tablet stretti 640–767px: logo e frase su una riga a sé, sotto le tre colonne a tutta larghezza */
@media (min-width: 640px) and (max-width: 767px) {
  .tv-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; }
  .tv-footer__logo, .tv-footer__tagline { grid-column: 1 / -1; }
  .tv-footer__groups > .tv-footer__col:nth-of-type(2) { grid-column: 1; grid-row: 3; margin-top: 40px; }
  .tv-footer__groups > .tv-footer__col:nth-of-type(3) { grid-column: 2; grid-row: 3; margin-top: 40px; }
  .tv-footer__groups > .tv-footer__col:nth-of-type(4) { grid-column: 3; grid-row: 3; margin-top: 40px; }
  .tv-footer__groups > .tv-theme-switch { grid-column: 1; grid-row: 4; align-self: start; margin-top: 32px; }
  .tv-footer__maker { grid-row: 5; }
  .tv-footer__copy { grid-row: 6; }
}
/* telefono (16 nov 2026): una colonna sola, in quest'ordine — logo, frase, colonne di link (2 + 1),
   selettore del tema, "A product of" Ice Tea Group, copyright. Il blocco del marchio si "apre"
   (display: contents) così i suoi elementi si mettono in ordine con il resto */
@media (max-width: 639px) {
  .tv-footer__inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .tv-footer__brand { display: contents; }
  .tv-footer__logo { order: 1; align-self: flex-start; }
  .tv-footer__tagline { order: 2; margin: 12px 0 0; }
  .tv-footer__groups {
    order: 3; margin-top: 40px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-items: start;
  }
  .tv-footer__groups .tv-theme-switch { order: 99; grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
  .tv-footer__maker { order: 4; margin-top: 40px; align-self: flex-start; }
  .tv-footer__copy { order: 5; margin-top: 10px; }
}

.tv-theme-switch {
  order: var(--tv-sw-order);
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--tv-chip);
}
.tv-theme-switch button {
  width: 36px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  color: var(--tv-muted);
  background: transparent;
}
.tv-theme-switch button[aria-pressed="true"] { color: var(--tv-fg); background: var(--tv-chip-on); }

/* ============ 13 Pulsante "torna su" (16 nov 2026) ============ */
/* Fisso in basso a destra; visibile con .is-visible (impostata dallo script quando la pagina è scorsa).
   z-index sotto la top bar (50) e il velo del menu (49). */
.tv-to-top {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--tv-primary); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(137, 41, 144, .55), 0 2px 6px rgba(17, 17, 17, .12);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility 0s .25s, background-color .2s;
}
.tv-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s, background-color .2s; }
.tv-to-top:hover { background: var(--tv-primary-hover); }
.tv-to-top:focus-visible { outline: 2px solid var(--tv-fg); outline-offset: 3px; }
@media (min-width: 1024px) { .tv-to-top { right: 28px; bottom: 28px; width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .tv-to-top, .tv-to-top.is-visible { transition: none; transform: none; } }

/* ============ 14 Q&A cards (16 nov 2026) ============ */
/* Same look as "Questions worth answering first." on the homepage (index.html, .hm-qa): question and answer
   always visible, one pair of wave colours per card (k1…k6), links in the card colour (AA contrast:
   --ink in light, --ink-d in dark). Three columns from 1200px, two down to 640px, one on phones. */
.tv-qa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1199px) { .tv-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tv-qa { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.tv-qa__card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(26px, 2.6vw, 34px) clamp(22px, 2.4vw, 30px) clamp(24px, 2.4vw, 30px); border-radius: 18px;
  background: var(--tv-card); border: 1px solid var(--tv-line);
  box-shadow: 0 24px 48px -30px rgba(17, 17, 17, .25);
  transition: transform .25s, box-shadow .25s;
}
.tv-qa__card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.tv-qa__card:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -28px color-mix(in srgb, var(--c2) 45%, transparent); }
.tv-qa__n {
  align-self: flex-start; display: grid; place-items: center;
  min-width: 52px; height: 36px; padding: 0 14px; border-radius: 999px;
  font: 600 17px var(--tv-mono); letter-spacing: .02em; color: #fff; background: linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 8px 18px -10px var(--c2);
}
.tv-qa__q { margin: 0; font-family: var(--tv-font); font-size: clamp(22px, 1.9vw, 25px); line-height: 1.22; font-weight: 600; letter-spacing: -.01em; color: var(--tv-fg); }
.tv-qa__a { margin: 0; flex: 1; font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.6; color: var(--tv-muted); text-wrap: pretty; }
.tv-qa__a a, .tv-qa__a a:hover { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .tv-qa__a a { color: var(--ink-d); }
.tv-qa__card.k1 { --c1: #fbb040; --c2: #ef4136; --ink: #c2361c; --ink-d: #fbb040; }
.tv-qa__card.k2 { --c1: #ec008c; --c2: #9e1f63; --ink: #b3006b; --ink-d: #ff6ec4; }
.tv-qa__card.k3 { --c1: #c326ea; --c2: #8618fe; --ink: #7614d6; --ink-d: #d49bff; }
.tv-qa__card.k4 { --c1: #662d91; --c2: #2b3990; --ink: #3b2fa0; --ink-d: #a9a0ff; }
.tv-qa__card.k5 { --c1: #00aeef; --c2: #1665c6; --ink: #0a63b5; --ink-d: #4fc8ff; }
.tv-qa__card.k6 { --c1: #08acbb; --c2: #00a35d; --ink: #00804a; --ink-d: #3fd68a; }
@media (prefers-reduced-motion: reduce) {
  .tv-qa__card { transition: none; }
  .tv-qa__card:hover { transform: none; }
}

/* =============================================================================================
   15 Q&A "index and answer" (proposal B, Nov 2026 — first used on Pricing, "A few things to know.")
   Questions as a numbered index on the left, the selected answer large on the right with the number in
   the question's colour and a soft glow; the answer box fits the answer. Optional .tv-qt__side wraps a
   title and the index, so the title's capitals line up with the top of the answer box.
   Under 900px: no tabs, every answer as its own card.
   Behaviour (mouse, arrows, Home/End): /assets/site-chrome.js.
   ============================================================================================= */
.tv-qt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tv-qt__list { display: flex; flex-direction: column; gap: 4px; }
/* title in the side column: cap top of Albert Sans = line-height/2 - 0.357em; with line-height 1.12 that is
   0.203em, pulled up so it meets the top edge of the answer box */
@media (min-width: 900px) { .tv-qt__side > h2:first-child { margin-top: calc(-0.203em); } }
.tv-qt__tab {
  position: relative; width: 100%;
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 18px 16px 22px; border: 0; border-radius: 12px;
  background: transparent; color: var(--tv-muted);
  font: 500 18px/1.35 var(--tv-font); text-align: left; cursor: pointer;
  transition: background .2s, color .2s;
}
.tv-qt__tab::before {   /* coloured bar on the left */
  content: ''; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--c1), var(--c2)); opacity: 0; transform: scaleY(.4); transition: opacity .2s, transform .2s;
}
.tv-qt__tab:hover { background: var(--tv-chip); color: var(--tv-fg); }
.tv-qt__tab[aria-selected="true"] { background: var(--tv-chip); color: var(--tv-fg); font-weight: 600; }
.tv-qt__tab[aria-selected="true"]::before { opacity: 1; transform: none; }
.tv-qt__tab:focus-visible { outline: 2px solid var(--tv-primary); outline-offset: 2px; }
.tv-qt__tab b { flex: 0 0 auto; font: 600 16px var(--tv-mono); color: var(--c2); }
[data-theme="dark"] .tv-qt__tab b { color: var(--c1); }
.tv-qt__panel {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px; overflow: hidden; isolation: isolate;
  background: var(--tv-frame); border: 1px solid var(--tv-frame-border);
  box-shadow: 0 30px 60px -36px rgba(30, 20, 70, .35);
}
.tv-qt__panel::before {   /* glow in the question's colour */
  content: ''; position: absolute; z-index: -1; right: -20%; top: -40%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--c1), transparent); opacity: .22;
}
.tv-qt__big {
  display: block; margin-bottom: 20px;
  font-size: clamp(56px, 7vw, 88px); line-height: .9; font-weight: 700; letter-spacing: -.04em;
  color: transparent; background: linear-gradient(120deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text;
}
.tv-qt__panel h3 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: var(--tv-fg); }
.tv-qt__panel p { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--tv-muted); }
.tv-qt__panel p a { color: var(--ink); font-weight: 500; }
[data-theme="dark"] .tv-qt__panel p a { color: var(--ink-d); }
.tv-qt .k1 { --c1: #fbb040; --c2: #ef4136; --ink: #c2361c; --ink-d: #fbb040; }
.tv-qt .k2 { --c1: #ec008c; --c2: #9e1f63; --ink: #b3006b; --ink-d: #ff6ec4; }
.tv-qt .k3 { --c1: #c326ea; --c2: #8618fe; --ink: #7614d6; --ink-d: #d49bff; }
.tv-qt .k4 { --c1: #662d91; --c2: #2b3990; --ink: #3b2fa0; --ink-d: #a9a0ff; }
.tv-qt .k5 { --c1: #00aeef; --c2: #1665c6; --ink: #0a63b5; --ink-d: #4fc8ff; }
.tv-qt .k6 { --c1: #08acbb; --c2: #00a35d; --ink: #00804a; --ink-d: #3fd68a; }
@media (max-width: 899px) {
  .tv-qt { grid-template-columns: minmax(0, 1fr); }
  .tv-qt__list { display: none; }
  .tv-qt .tv-qt__side > h2 { margin-bottom: 0; }   /* the grid gap alone separates title and cards */
  .tv-qt__panels { display: flex; flex-direction: column; gap: 16px; }
  .tv-qt .tv-qt__panel[hidden] { display: block !important; }   /* beats the global [hidden] rules (section 1, pricing.css) */
  .tv-qt__big { font-size: 44px; margin-bottom: 12px; }
}
