/* =========================================================
   ONLYBOOST — pezzi condivisi da ObAudioTuner e WinTools
   Video, passi del tutorial, patch notes, galleria.
   ========================================================= */

/* ---------- VIDEO ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-void);
  box-shadow: var(--glow-blue-lg);
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Il video dell'app e 1280x800 (8:5), non 16:9 come quelli di YouTube:
   senza questo verrebbe tagliato o incorniciato di nero.

   L'80% non e un capriccio estetico: il file e largo 1280px e il
   contenitore arriva a 1200px, quindi su schermi grandi il browser lo
   ingrandiva oltre la sua risoluzione reale e sgranava. Tenuto sotto
   la sua larghezza nativa, resta nitido. */
.video-frame.is-app {
  aspect-ratio: 8 / 5;
  background: #05070d;
  max-width: 80%;
  margin-inline: auto;
}
@media (max-width: 700px) {
  /* Su telefono lo schermo e gia stretto: rimpicciolirlo ancora
     lo renderebbe illeggibile. */
  .video-frame.is-app {
    max-width: 100%;
  }
}
.video-frame video {
  object-fit: contain;
}

/* Alone dietro al video: lo stacca dal fondo nero */
.video-halo {
  position: relative;
}
.video-halo::before {
  content: "";
  position: absolute;
  /* Niente sporgenza orizzontale: un -8% qui usciva dallo schermo e
     faceva comparire la barra di scorrimento laterale. La sfocatura
     sborda comunque ai lati, ma il blur e solo visivo e non allarga
     l'area scrollabile. */
  inset: -14% 0;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), transparent 75%);
  filter: blur(38px);
  pointer-events: none;
  z-index: -1;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-cap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}
.video-cap::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bad-400);
  box-shadow: 0 0 8px var(--bad-400);
  flex-shrink: 0;
}

/* ---------- PASSI DEL TUTORIAL ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  counter-reset: passo;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 1.6rem 1.6rem;
  overflow: visible;
}
.step-num {
  position: absolute;
  top: -18px;
  left: 1.6rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #04070f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--glow-blue);
}
.step-card b {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-hi);
}
.step-card span {
  font-size: 0.87rem;
  color: var(--text-low);
}

/* Filo che collega i passi su desktop */
@media (min-width: 780px) {
  .steps-grid.is-linked .step-card:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 0;
    right: -1.25rem;
    width: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, var(--blue-500), transparent);
    z-index: 2;
  }
}

/* ---------- PATCH NOTES ---------- */
.notes {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-left: 2rem;
}
/* Linea verticale della cronologia */
.notes::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue-500), rgba(59, 130, 246, 0.06));
}

.note-item {
  position: relative;
  padding: 1.3rem 1.5rem;
}
/* Pallino sulla linea */
.note-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.7rem;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--blue-500);
  z-index: 1;
}
.note-item.is-latest::before {
  background: var(--blue-400);
  box-shadow: 0 0 12px var(--blue-400);
}

.note-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.note-ver {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}
.note-date {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-low);
}
.note-tag {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-hi);
  color: var(--blue-300);
  background: rgba(59, 130, 246, 0.1);
}
.note-tag.is-new {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--ok-400);
  background: rgba(52, 211, 153, 0.12);
}

.note-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.note-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.55;
}
.note-list li::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--blue-400);
}

/* ---------- GALLERIA / SEGNAPOSTO FOTO ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.shot:hover img {
  transform: scale(1.05);
}
.shot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1rem 0.9rem;
  background: linear-gradient(transparent, var(--footer-fade));
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Segnaposto: da sostituire quando arrivano le foto vere */
.shot.is-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--line-hi);
  background: repeating-linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.03) 0 10px,
    transparent 10px 20px
  );
}
.shot.is-empty span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  text-align: center;
  padding: 1rem;
  line-height: 1.7;
}

/* ---------- CANALI DI CONTATTO ---------- */
.contact-way {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease-out);
}
.contact-way:hover {
  padding-left: 0.4rem;
}
.way-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--line-hi);
  color: var(--blue-300);
  transition: box-shadow 0.3s var(--ease-out);
}
.contact-way:hover .way-icon {
  box-shadow: var(--glow-blue);
}
.way-icon svg {
  width: 18px;
  height: 18px;
}
.way-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.way-body b {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text-hi);
}
.way-body span {
  font-size: 0.79rem;
  color: var(--text-low);
}
.way-go {
  width: 15px;
  height: 15px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-low);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.contact-way:hover .way-go {
  transform: translateX(3px);
  color: var(--blue-300);
}

/* ---------- PAGINE LEGALI ---------- */
.legal {
  max-width: 74ch;
  margin-inline: auto;
}
.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.75rem 0 1rem;
  scroll-margin-top: 6rem;
}
.legal h2:first-of-type {
  margin-top: 0;
}
.legal h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--blue-300);
}
.legal p,
.legal li {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.75;
}
.legal p {
  margin-bottom: 1rem;
}
.legal ul,
.legal ol {
  margin: 0 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal li::marker {
  color: var(--blue-400);
}
.legal a {
  color: var(--blue-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover {
  color: var(--blue-300);
}
.legal strong {
  color: var(--text-hi);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.87rem;
}
.legal-table th,
.legal-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.legal-table td {
  color: var(--text-mid);
}
.legal-table td:first-child {
  color: var(--text-hi);
  font-weight: 500;
  white-space: nowrap;
}
/* Le tabelle su mobile scorrono da sole, la pagina no */
.table-wrap {
  overflow-x: auto;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal-toc a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.79rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}
.legal-toc a:hover {
  border-color: var(--blue-400);
  color: var(--blue-300);
  background: rgba(59, 130, 246, 0.08);
}

/* Riquadro "da completare": va tolto quando i dati sono inseriti */
.legal-todo {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.07);
  margin-bottom: 2rem;
}
.legal-todo svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--warn-400);
}
.legal-todo p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-mid);
}
.legal-todo b {
  color: var(--warn-400);
}

/* ---------- PARTNER ---------- */
/* Flex centrato invece di grid: i creator sono 11 (numero dispari) e
   con la griglia l'ultima riga lasciava una card orfana a sinistra
   ("5-5-1"). Così ogni riga è centrata e l'ultima resta in mezzo. */
.creator-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.creator {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.2rem;
  flex: 1 1 200px;
  max-width: 260px;
}
.creator-av {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-400), var(--blue-600));
  color: #04070f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  transition: box-shadow 0.35s var(--ease-out);
}
/* La foto profilo copre le iniziali quando c'è; se manca, fx.js toglie
   l'<img> e restano le iniziali sul gradiente. */
.creator-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.creator:hover .creator-av {
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.75);
}
.creator-body {
  min-width: 0;
}
.creator-body b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.93rem;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.creator-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.creator-links a {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: var(--text-low);
  transition: color 0.25s;
}
.creator-links a:hover {
  color: var(--blue-300);
}

/* ---------- CONFRONTO PIANI ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.8rem 1.5rem;
}
.plan-term {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.plan-price b {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-hi);
  line-height: 1;
}
.plan-per {
  font-size: 0.78rem;
  color: var(--text-low);
}
.plan-note {
  font-size: 0.84rem;
  color: var(--text-mid);
  min-height: 2.6em;
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.plan li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}
.plan li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--ok-400);
}
.plan .btn {
  width: 100%;
  margin-top: 0.4rem;
}

/* Il piano consigliato */
.plan.is-hero {
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.14), var(--glass) 55%);
  border-color: var(--line-hi);
}
.plan-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #04070f;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--glow-blue);
}
