/* OPLYO · PIANI "clonati" dalla referenza (20-21/11/2026, staging, scelta utente: anteprima /anteprime/piani-clone/ approvata, poi "mettilo live su staging").
   Sostituisce lo stile delle card Prezzi: capsula Mensile | Annuale con segmento nero che scivola, carta scura = stesso grafite delle bande scure (§36: --bd-top > --bd-base),
   carta bianca TikTok esaurita (senza prezzo), banda "Ultimi N posti disponibili" sul bordo alto della carta scura (scelta E del 19/11), elenco con spunte a cerchio.
   Misure lette dalla referenza (carta 281 px): `Nu` = N * --u, --u = larghezza carta / 281, quindi tutto scala in blocco (sul sito 1u = 1,21 px a 340 px).
   Markup in template/index.html sez. 09 (.pp_*), toggle e posti in oplyo-ai.js (data-period-btn, [data-avail]). Le vecchie regole .plan/.psw/.price di metrik/ai sono codice morto.
   Specificita': ogni regola sotto `html:root body` (0,2,2), come il resto del sito. */
html:root body .pp_wrap { --pw: calc(340px * var(--zk, 1)); --u: calc(var(--pw) / 281); position: relative; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #0b0b0c; text-align: left; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html:root body .pp_wrap *, html:root body .pp_wrap *::before, html:root body .pp_wrap *::after { box-sizing: border-box; }
html:root body :where(.pp_wrap p) { margin: 0; padding: 0; }
html:root body :where(.pp_wrap h3) { margin: 0; padding: 0; }
html:root body :where(.pp_wrap ul) { margin: 0; padding: 0; list-style: none; }
html:root body :where(.pp_wrap li) { margin: 0; padding: 0; }
html:root body :where(.pp_wrap b) { margin: 0; padding: 0; }
html:root body :where(.pp_wrap small) { margin: 0; padding: 0; }
html:root body :where(.pp_wrap svg) { display: block; }

/* interruttore Mensile | Annuale: capsula bianca, segmento nero che scivola */
html:root body .pp_top { display: grid; justify-items: center; margin-bottom: calc(38 * var(--u)); }
html:root body .pp_sw { position: relative; display: inline-flex; padding: calc(3 * var(--u)); border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .045), 0 1px 2px rgba(15, 23, 42, .05), 0 calc(8 * var(--u)) calc(16 * var(--u)) calc(-9 * var(--u)) rgba(15, 23, 42, .16); }
html:root body .pp_ind { position: absolute; left: 0; top: calc(3 * var(--u)); bottom: calc(3 * var(--u)); width: var(--iw, calc(76 * var(--u))); transform: translateX(var(--ix, calc(3 * var(--u)))); border-radius: 999px; background: linear-gradient(180deg, #000 0%, #1d1d1e 55%, #343436 100%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 calc(-3 * var(--u)) calc(5 * var(--u)) calc(-2 * var(--u)) rgba(255, 255, 255, .16), 0 1px 3px rgba(0, 0, 0, .28); transition: transform .4s cubic-bezier(.3, .9, .25, 1), width .4s cubic-bezier(.3, .9, .25, 1); }
html:root body .pp_wrap:not(.is-ready)[data-period="yearly"] .pp_ind { --ix: calc(79 * var(--u)); --iw: calc(149 * var(--u)); }
html:root body .pp_sb { position: relative; z-index: 1; appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: calc(7 * var(--u)); height: calc(27 * var(--u)); padding: 0 calc(17 * var(--u)); margin: 0; border: 0; border-radius: 999px; background: none; font: inherit; font-size: calc(12.5 * var(--u)); font-weight: 500; line-height: 1; letter-spacing: -.005em; color: #15151a; white-space: nowrap; cursor: pointer; transition: color .3s; -webkit-tap-highlight-color: transparent; }
html:root body .pp_sb[aria-pressed="true"] { color: #fff; }
html:root body .pp_sb:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 2px; }
html:root body .pp_sb::after { content: ""; position: absolute; inset: -7px 0; }   /* 24/11: area di tocco 44 px (il bottone e' 32 px a 390, 28 a 320): nessun cambio visivo, non altera il layout */
/* 23/11: chip 'VETRO' (variante A scelta dall'utente, anteprime del 23/11). Sul segmento nero (Annuale attivo): vetro satinato con filo luminoso e testo bianco; sul bianco (Mensile attivo): verde tenue con filo verde. Un po' piu' grande della vecchia chip bianca (16u x padding 7u invece di 15u x 6u). */
html:root body .pp_chip { display: inline-flex; align-items: center; height: calc(16 * var(--u)); padding: 0 calc(7 * var(--u)); border-radius: calc(99 * var(--u)); background: rgba(18, 128, 63, .09); color: #12803f; box-shadow: inset 0 0 0 1px rgba(18, 128, 63, .2); font-size: calc(9.5 * var(--u)); font-weight: 600; letter-spacing: 0; transition: background .3s, color .3s, box-shadow .3s; }
html:root body .pp_sb[aria-pressed="true"] .pp_chip { background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .09)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
html:root body .pp_cap { display: grid; justify-items: center; margin-top: calc(11 * var(--u)); max-width: min(100%, 560px); font-size: calc(12 * var(--u)); line-height: calc(16 * var(--u)); color: #7b7b82; text-align: center; letter-spacing: -.003em; text-wrap: balance; }
html:root body .pp_cap > span { grid-area: 1 / 1; visibility: hidden; }
html:root body .pp_wrap[data-period="monthly"] .pp_cap .pp_cm, html:root body .pp_wrap[data-period="yearly"] .pp_cap .pp_cy { visibility: visible; }

/* carte: colonna con altezza propria (21/11: TikTok senza riga prezzo, quindi piu' corta; le due carte restano allineate in alto) */
html:root body .pp_grid { display: grid; grid-template-columns: repeat(2, var(--pw)); column-gap: calc(22 * var(--u)); justify-content: center; align-items: start; }
html:root body .pp_card { position: relative; display: flex; flex-direction: column; padding: calc(58 * var(--u)) calc(31 * var(--u)) calc(32 * var(--u)); border-radius: calc(28 * var(--u)); background: #fff; color: #0b0b0c; box-shadow: 0 0 0 1px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .04), 0 calc(22 * var(--u)) calc(34 * var(--u)) calc(-22 * var(--u)) rgba(15, 23, 42, .16); }
html:root body .pp_card > * { flex: none; }
html:root body .pp_name { margin-top: 0; font-size: calc(15 * var(--u)); line-height: calc(18 * var(--u)); font-weight: 500; letter-spacing: -.012em; color: #0b0b0c; font-family: inherit; }
html:root body .pp_desc { margin-top: calc(4 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(18 * var(--u)); font-weight: 400; letter-spacing: -.003em; color: #7b7b82; }
html:root body .pp_price { margin-top: calc(27 * var(--u)); display: flex; align-items: baseline; gap: calc(8 * var(--u)); min-height: calc(40 * var(--u)); font-variant-numeric: lining-nums; }
html:root body .pp_price > span { display: inline-flex; align-items: baseline; gap: calc(8 * var(--u)); }
html:root body .pp_wrap[data-period="monthly"] .pp_y, html:root body .pp_wrap[data-period="yearly"] .pp_m { display: none; }
html:root body .pp_price b { font-size: calc(38 * var(--u)); line-height: calc(40 * var(--u)); font-weight: 500; letter-spacing: -.052em; color: #0a0a0a; }
html:root body .pp_price small { font-size: calc(12 * var(--u)); line-height: calc(16 * var(--u)); font-weight: 400; letter-spacing: -.003em; color: #6f6f76; }
html:root body .pp_desc + .pp_cta { margin-top: calc(24 * var(--u)); }
html:root body .pp_cta { margin-top: calc(31 * var(--u)); height: calc(35 * var(--u)); display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid #e4e4e8; background: #fff; font-size: calc(12 * var(--u)); font-weight: 500; letter-spacing: -.003em; color: #1c1c20; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
html:root body .pp_cta:hover { border-color: #cfcfd5; background: #fafafb; }
html:root body .pp_cta:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 2px; }
html:root body .pp_cta.is-disabled { background: #f5f5f6; border-color: #ececef; color: #8d8d94; cursor: not-allowed; }
html:root body .pp_cta.is-disabled:hover { background: #f5f5f6; border-color: #ececef; }
html:root body .pp_hr { margin-top: calc(30 * var(--u)); height: 1px; background: #ececef; }
html:root body .pp_fl { margin-top: calc(31 * var(--u)); font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); font-weight: 500; letter-spacing: -.008em; color: #0b0b0c; }
html:root body .pp_list { margin-top: calc(13 * var(--u)); display: grid; align-content: start; row-gap: calc(13.7 * var(--u)); }
html:root body .pp_list li { display: flex; align-items: flex-start; gap: calc(8 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(16 * var(--u)); letter-spacing: -.003em; color: #1b1b1f; }
html:root body .pp_list svg { flex: none; width: calc(13 * var(--u)); height: calc(13 * var(--u)); margin-top: calc(1.5 * var(--u)); color: #3a3a40; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
html:root body .pp_note { display: block; margin-top: calc(2 * var(--u)); font-size: calc(10.5 * var(--u)); line-height: calc(14 * var(--u)); letter-spacing: 0; color: #8d8d94; }

/* carta scura (Instagram): STESSO colore e gradiente delle bande scure del sito (§36: #303030 > #1b1b1b in 240 px, poi piatto, filo di luce in alto, grana --grain), pulsante bianco con bordo morbido */
html:root body .pp_card--dark { color: #fff; overflow: clip; background: var(--grain, none) 0 0 / 180px 180px, radial-gradient(ellipse 60% 22% at 50% 0, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 100%), linear-gradient(180deg, var(--bd-top, #303030) 0, var(--bd-base, #1b1b1b) 240px, var(--bd-base, #1b1b1b) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .2), 0 calc(30 * var(--u)) calc(52 * var(--u)) calc(-26 * var(--u)) rgba(0, 0, 0, .5); }
html:root body .pp_card--dark .pp_name, html:root body .pp_card--dark .pp_price b, html:root body .pp_card--dark .pp_fl { color: #fff; }
html:root body .pp_card--dark .pp_desc, html:root body .pp_card--dark .pp_price small { color: rgba(255, 255, 255, .6); }
html:root body .pp_card--dark .pp_cta { border: 0; color: #0b0b0c; background: linear-gradient(180deg, #fff 0%, #f4f4f4 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 0 calc(5 * var(--u)) calc(1.5 * var(--u)) rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .16), 0 calc(10 * var(--u)) calc(20 * var(--u)) calc(-10 * var(--u)) rgba(255, 255, 255, .22); }
html:root body .pp_card--dark .pp_cta:hover { background: #fff; box-shadow: inset 0 0 0 1px #fff, inset 0 0 calc(4 * var(--u)) calc(1 * var(--u)) rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .28), 0 calc(12 * var(--u)) calc(24 * var(--u)) calc(-10 * var(--u)) rgba(255, 255, 255, .3); }
html:root body .pp_card--dark .pp_hr { background: rgba(255, 255, 255, .14); }
html:root body .pp_card--dark .pp_list li { color: rgba(255, 255, 255, .88); }
html:root body .pp_card--dark .pp_list svg { color: rgba(255, 255, 255, .78); }
html:root body .pp_card--dark .pp_note { color: rgba(255, 255, 255, .5); }
html:root body .pp_card--dark > * { position: relative; z-index: 1; }

/* "Ultimi N posti disponibili": banda sul bordo superiore. 21/11: VETRO SCURO (variante L dell'anteprima band-posti-2: nero traslucido 66%, riflesso diagonale, filetto di luce in alto; scelta utente dopo aver scelto per un attimo il nero pieno A) al posto del grigio semitrasparente. */
html:root body .pp_card--dark > .pp_band { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc(35 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--u)); border-radius: calc(28 * var(--u)) calc(28 * var(--u)) 0 0; background: linear-gradient(115deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .17) 20%, rgba(255, 255, 255, .03) 36%, rgba(0, 0, 0, .3) 100%), rgba(3, 3, 3, .66); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(255, 255, 255, .09); font-size: calc(11.5 * var(--u)); line-height: 1; font-weight: 600; letter-spacing: .003em; color: #fff; }
html:root body .pp_band .pp_flame { flex: none; width: calc(12 * var(--u)); height: calc(12 * var(--u)); color: #ff8a3d; }
html:root body .pp_band[data-avail-state="out"] .pp_flame { display: none; }
html:root body .pp_band .avail_txt { transition: opacity .22s ease; }
html:root body .pp_band.is-swap .avail_txt { opacity: 0; }
html:root body .pp_band b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }


@media (max-width: 760px) {
  html:root body .pp_wrap { --pw: min(calc(100vw - 32px), 380px); }
  html:root body .pp_grid { grid-template-columns: var(--pw); row-gap: calc(18 * var(--u)); }
  html:root body .pp_top { margin-bottom: calc(28 * var(--u)); }
}
@media (prefers-reduced-motion: reduce) { html:root body .pp_ind, html:root body .pp_sb, html:root body .pp_cta, html:root body .pp_band .avail_txt { transition: none; } }

@media (max-width: 760px) { html:root body .pp_card--tt { padding-top: calc(38 * var(--u)); } }

/* 21/11 (richiesta utente: "troppo spazio" fra sottotitolo e interruttore): il margine standard sotto i titoli (--mk-head, ~48 px a 1440) e' pensato per contenuti grandi; per la capsula Mensile | Annuale si riduce al 60% (~29 px desktop, ~17 px mobile). Solo questa sezione. */
html:root body section.pricing .head { margin-bottom: calc(var(--mk-head, 3.5rem) * .6); }
html:root body .pp_card--dark > .pp_band .avail_txt b { text-shadow: 0 0 calc(12 * var(--u)) rgba(255, 140, 60, .8); }
html:root body .pp_card--dark > .pp_band .pp_flame { filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 120, 40, .8)); }
