/* Pagina prodotto di AI Guard (prodotto_guard.html), sopra landing.css: stessi colori, marchio, bottoni e sezioni della
   pagina di Mandato, con l'impianto di un negozio. Striscia in alto, prezzo nell'apertura, piani a confronto con
   «Acquista», tabella delle funzioni e barra d'acquisto che resta in basso. Nessuno sconto né numero inventato:
   i prezzi arrivano dal listino. */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-ghost-dark { background: transparent; border-color: #334155; color: #e2e8f0; box-shadow: none; }
.btn-ghost-dark:hover { background: var(--night-2); color: #fff; border-color: #475569; }

/* --- Striscia in alto --- */
.ps-strip { background: var(--indigo-600); color: #fff; font-size: .88rem; }
.ps-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding-block: 9px; text-align: center; }
.ps-strip a { color: #fff; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; text-underline-offset: 4px; }
.ps-strip svg { width: 16px; height: 16px; }

/* --- Barra di navigazione: marchio del prodotto --- */
.ps-nav .brand-mark svg { width: 18px; height: 18px; }
.ps-by { font-size: .78rem; color: var(--slate-500); font-weight: 550; margin-left: -2px; }
@media (max-width: 480px) { .ps-by { display: none; } .ps-nav .nav-login { display: none; } }

/* --- Apertura: notte, prezzo e immagine del prodotto --- */
.ps-hero { position: relative; margin-top: -84px; padding-block: calc(84px + clamp(28px, 3.5vw, 48px)) clamp(44px, 5vw, 72px); background: var(--night); color: #e2e8f0; overflow: hidden; }
.ps-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--night-line); }
.ps-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.ps-hero-copy { display: grid; gap: 18px; min-width: 0; }
.ps-hero h1 { color: #fff; font-size: clamp(2rem, 3.5vw, 3rem); }
.ps-hero h1 em { color: #a5b4fc; display: block; }
.ps-hero .lead { color: #cbd5e1; font-size: clamp(1rem, 1.3vw, 1.1rem); }
.ps-hero .textlink { color: #c7d2fe; }
.ps-hero .textlink:hover { color: #fff; }
.ps-tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); color: #c7d2fe; font-size: .82rem; font-weight: 600; }
.ps-tag svg { width: 18px; height: 18px; color: #818cf8; }
.ps-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #e2e8f0; font-size: .95rem; font-weight: 550; }
.ps-bullets li { display: inline-flex; align-items: center; gap: 8px; }
.ps-bullets svg { width: 18px; height: 18px; color: #34d399; flex: none; }

.ps-buybox { display: grid; gap: 8px; padding: 18px 22px; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--night-line); }
.ps-buybox .cta-row { margin-top: 4px; }
.ps-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ps-price b { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ps-hero .ps-price b { color: #fff; }
.ps-from, .ps-per { font-size: .95rem; font-weight: 600; color: var(--slate-500); }
.ps-hero .ps-from, .ps-hero .ps-per { color: #94a3b8; }
.ps-price-note { margin: 0; font-size: .86rem; color: var(--muted); }
.ps-hero .ps-price-note { color: #94a3b8; }

/* immagine del prodotto: finestra del browser con il messaggio prima e dopo, e il riquadro dell'estensione */
.ps-shot { position: relative; min-width: 0; padding: 0 0 28px 0; }
.ps-window { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #334155; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); color: var(--text); }
.ps-win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--slate-100); border-bottom: 1px solid var(--line); font: .74rem/1 var(--mono); color: var(--slate-500); }
.ps-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.ps-win-bar span { margin-left: 10px; }
.ps-win-body { display: grid; gap: 14px; padding: 20px 20px 104px; }
.ps-msg { display: grid; gap: 6px; }
.ps-msg p { margin: 0; font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.ps-who { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); }
.ps-msg mark { background: var(--amber-50); color: var(--amber-800); border-bottom: 2px solid var(--amber-500); padding: 0 2px; border-radius: 2px; }
.ps-sent { padding: 14px; border-radius: 10px; background: var(--slate-50); border: 1px solid var(--line); }
.ps-sent code { font: 600 .84rem var(--mono); color: var(--indigo-700); background: var(--indigo-50); border: 1px solid var(--indigo-200); border-radius: 6px; padding: 1px 5px; }
.ps-popup { position: absolute; right: -14px; bottom: 6px; width: min(270px, 70%); display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); color: #e2e8f0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); font-size: .85rem; }
.ps-pop-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--night-line); }
.ps-pop-head .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.ps-pop-head .brand-mark svg { width: 16px; height: 16px; }
.ps-pop-head b { color: #fff; margin-right: auto; }
.ps-pop-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #94a3b8; }
.ps-pop-row b { color: #fff; font-weight: 650; }
.ps-popup .pill { padding: 4px 9px; font-size: .64rem; }
.ps-popup .pill.allow { background: rgba(16, 185, 129, .16); color: #6ee7b7; border-color: rgba(52, 211, 153, .45); }
.ps-popup .pill.ask { background: rgba(245, 158, 11, .16); color: #fcd34d; border-color: rgba(251, 191, 36, .45); }
.ps-shot-note { position: absolute; left: 0; bottom: 0; margin: 0; font: .72rem/1.4 var(--mono); color: #64748b; }
@media (max-width: 1000px) {
  .ps-hero .wrap { grid-template-columns: 1fr; }
  .ps-popup { right: 8px; }
}
@media (max-width: 560px) {
  .ps-win-body { padding-bottom: 20px; }
  .ps-popup { position: relative; right: auto; bottom: auto; width: auto; margin: -18px 12px 0; }
  .ps-shot { padding-bottom: 26px; }
  .ps-buybox { padding: 18px; }
}

/* --- Compatibilità --- */
.ps-trust { border-bottom: 1px solid var(--line); background: #fff; }
.ps-trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; padding-block: 22px; }
.ps-trust .wrap > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ps-trust-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.ps-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-trust li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 650; font-size: .9rem; color: var(--slate-800); background: var(--slate-50); }

/* --- Funzioni --- */
.ps-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ps-feat { display: grid; align-content: start; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.ps-feat:hover { border-color: var(--slate-300); box-shadow: var(--shadow-hover); }
.ps-feat p { margin: 0; color: var(--muted); font-size: .95rem; }
.ps-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-600); border: 1px solid var(--indigo-100); }
.ps-ico svg { width: 22px; height: 22px; }
@media (max-width: 1060px) { .ps-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ps-features { grid-template-columns: 1fr; } }

/* --- Cosa riconosce --- */
.ps-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ps-split .head { margin-bottom: 0; }
.ps-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ps-chips li { padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--slate-800); }
.ps-chips li.own { background: var(--indigo-600); border-color: var(--indigo-600); color: #fff; }
@media (max-width: 900px) { .ps-split { grid-template-columns: 1fr; } }

/* --- Piani --- */
.ps-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0 18px; align-items: stretch; }
@supports not (grid-template-rows: subgrid) { .ps-plan { grid-row: auto; grid-template-rows: none; } .ps-plan-for { min-height: 4.8em; } .ps-plans { row-gap: 18px; } }
.ps-plan { position: relative; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 12px; gap: 12px; padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-card); }
.ps-plan h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.ps-plan-for { margin: 0; color: var(--muted); font-size: .95rem; }
.ps-plan .ps-price b { color: var(--text); }
.ps-plan .btn { margin: 6px 0 4px; }
.ps-plan.best { border: 2px solid var(--indigo-600); box-shadow: 0 24px 48px -28px rgba(79, 70, 229, .55); }
.ps-ribbon { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--indigo-600); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ps-ask { font-size: 1.6rem !important; }
.ps-incl { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.ps-incl li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .94rem; color: var(--slate-700); }
.ps-incl svg { width: 20px; height: 20px; color: var(--emerald-600); }
.ps-fine { max-width: 820px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* --- Confronto --- */
.ps-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ps-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .95rem; }
.ps-table th, .ps-table td { padding: 14px 18px; border-bottom: 1px solid var(--slate-100); text-align: center; }
.ps-table thead th { background: var(--slate-50); font-size: .95rem; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line); }
.ps-table tbody th, .ps-table tfoot th { text-align: left; font-weight: 550; color: var(--slate-700); }
.ps-table thead th:first-child { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); }
.ps-table .best { background: rgba(238, 242, 255, .55); }
.ps-table thead th.best { background: var(--indigo-50); color: var(--indigo-700); }
.ps-table svg { width: 22px; height: 22px; vertical-align: middle; }
.ps-table svg.yes { color: var(--emerald-600); }
.ps-table svg.no { color: var(--slate-300); }
.ps-table tfoot td, .ps-table tfoot th { border-bottom: 0; }
.ps-table tfoot td b { display: block; font-size: 1.05rem; margin-bottom: 4px; }

/* --- Passi --- */
.ps-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.ps-steps li { display: grid; align-content: start; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ps-steps li > b { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--night); color: #fff; font-weight: 700; }
.ps-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .ps-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ps-steps { grid-template-columns: 1fr; } }

/* --- Chiusura --- */
.ps-final { background: var(--night); color: #cbd5e1; }
.ps-final .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding-block: clamp(56px, 7vw, 88px); }
.ps-final .wrap > div:first-child { max-width: 680px; }
.ps-final h2 { color: #fff; }
.ps-final h2 em { color: #a5b4fc; }
.ps-final p { margin: 12px 0 0; }

/* --- Barra d'acquisto fissa --- */
.ps-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--night); border-top: 1px solid var(--night-line); color: #e2e8f0;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .3s var(--ease); }
.ps-sticky.on { transform: none; }
.ps-sticky[hidden] { display: none; }
.ps-sticky .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ps-sticky-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ps-sticky-name .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.ps-sticky-name .brand-mark svg { width: 16px; height: 16px; }
.ps-sticky-name b { color: #fff; }
.ps-sticky-name span:last-child { color: #94a3b8; font-size: .9rem; white-space: nowrap; }
.ps-sticky .btn { min-height: 42px; }
.shop .site-footer { padding-bottom: 80px; }
@media (max-width: 420px) { .ps-sticky-name span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .ps-sticky { transition: none; } }

/* Confronto sul telefono: la colonna delle funzioni resta ferma, i piani scorrono accanto */
@media (max-width: 760px) {
  .ps-table { min-width: 520px; font-size: .84rem; }
  .ps-table th, .ps-table td { padding: 10px 10px; }
  .ps-table tbody th, .ps-table thead th:first-child, .ps-table tfoot th { position: sticky; left: 0; z-index: 1; background: #fff; width: 44%; box-shadow: 1px 0 0 var(--line); }
  .ps-table thead th:first-child { background: var(--slate-50); }
  .ps-table thead th { font-size: .82rem; }
}
