/* ── TheLover.ai — tema pubblico "cinematic dark" ────────────────────────────
   Riprende il mockup Claude Design: fondo scuro con bagliore magenta + grana,
   font Schibsted Grotesk / Instrument Serif, gradiente rosa→magenta, vetro.
   Tutto è scoped sotto body.public per non toccare app/onboarding (style.css). */

.public {
  --pub-bg-0: #060507;
  --pub-bg-1: #0c0a0f;
  --pub-bg-2: #17121b;
  --pub-pink: #f2589a;
  --pub-magenta: #d81e6e;
  --pub-deep: #a60f52;
  --pub-grad: linear-gradient(135deg, #f2589a 0%, #d81e6e 48%, #a60f52 100%);
  --pub-grad-text: linear-gradient(135deg, #f570a6, #d81e6e 60%, #b01259);
  --pub-fg: #fff;
  --pub-muted: rgba(255, 255, 255, .62);
  --pub-faint: rgba(255, 255, 255, .42);
  --pub-line: rgba(255, 255, 255, .09);
  --pub-glass: rgba(255, 255, 255, .045);
  --pub-glass-hi: rgba(255, 255, 255, .07);
  --sans-pub: "Schibsted Grotesk", -apple-system, system-ui, sans-serif;
  --serif-pub: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* ── fondo cinematografico (fisso, dietro a tutto) ── */
body.public {
  background: var(--pub-bg-0);
  color: var(--pub-fg);
  font-family: var(--sans-pub);
}
body.public::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(125% 58% at 50% -6%, rgba(216, 30, 110, .34) 0%, rgba(216, 30, 110, .10) 30%, transparent 60%),
    radial-gradient(100% 44% at 50% 108%, rgba(216, 30, 110, .20) 0%, transparent 60%),
    linear-gradient(180deg, var(--pub-bg-2) 0%, var(--pub-bg-1) 55%, var(--pub-bg-0) 100%);
}
body.public::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("/static/grain.png");
  background-size: 220px 220px;
  opacity: .35; mix-blend-mode: soft-light;
}

/* ── tipografia ── */
.public h1, .public h2, .public h3 {
  font-family: var(--sans-pub);
  color: #fff; font-weight: 600; letter-spacing: -.02em;
}
.public .lead { color: var(--pub-muted); }
.public .hint { color: var(--pub-faint); }
.public a { color: var(--pub-pink); }
/* accento serif corsivo con testo in gradiente (come "adulti" nel mockup) */
.public .ser {
  font-family: var(--serif-pub);
  font-style: italic; font-weight: 400; letter-spacing: 0;
  background: var(--pub-grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; padding: 0 .06em;
}

/* ── header / footer ── */
.public .site-header {
  background: rgba(8, 7, 10, .55);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--pub-line);
}
.public .brand-mark {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; line-height: 1;
}
.public .brand-mark img { width: 26px; height: auto; display: block; }
.public .brand-word { font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; }
.public .brand-word .t { color: #fff; }
.public .brand-word .l {
  background: var(--pub-grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.public .brand-word .ai { color: rgba(255, 255, 255, .55); }
.public .site-nav a { color: rgba(255, 255, 255, .78); opacity: 1; }
.public .site-nav a:hover { color: #fff; }
.public .site-nav a.nav-login {
  color: #fff; background: var(--pub-grad);
  box-shadow: 0 10px 26px -10px rgba(216, 30, 110, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.public .site-nav a.nav-login:hover { color: #fff; filter: brightness(1.06); }

.public .site-footer {
  border-top: 1px solid var(--pub-line);
  color: var(--pub-faint);
}
.public .site-footer a { color: rgba(255, 255, 255, .55); }
.public .site-footer a:hover { color: #fff; }

/* ── kicker ── */
.public .kicker { color: var(--pub-pink); }

/* ── pulsanti / CTA ── */
.public .cta, .public button[type="submit"] {
  position: relative; overflow: hidden;
  background: var(--pub-grad); color: #fff; border: none;
  box-shadow: 0 14px 34px -10px rgba(216, 30, 110, .65), inset 0 1px 0 rgba(255, 255, 255, .26);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.public .cta:hover, .public button[type="submit"]:hover {
  background: var(--pub-grad);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -10px rgba(216, 30, 110, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.public .cta:active, .public button[type="submit"]:active { transform: translateY(0); }
/* shimmer che attraversa i pulsanti pieni */
.public .cta:not(.ghost)::after,
.public button[type="submit"]::after {
  content: ""; position: absolute; top: 0; left: 0; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-130%) skewX(-18deg);
  animation: tlShimmer 5s ease-in-out infinite; pointer-events: none;
}
.public .cta.ghost {
  background: var(--pub-glass); color: #fff;
  border: 1px solid var(--pub-line); box-shadow: none;
}
.public .cta.ghost:hover { background: var(--pub-glass-hi); color: #fff; transform: translateY(-2px); }

/* ── card vetro condivise: steps / rules / stats / card / faq ── */
.public .step, .public .rule, .public .stat, .public .card, .public #faq details {
  background: var(--pub-glass);
  border: 1px solid var(--pub-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.public .step:hover, .public .rule:hover, .public .stat:hover {
  background: var(--pub-glass-hi);
  border-color: rgba(216, 30, 110, .4);
  box-shadow: 0 18px 40px -16px rgba(216, 30, 110, .5);
}

/* steps */
.public .step .n {
  background: var(--pub-grad); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(216, 30, 110, .8);
}
.public .step h3 { color: #fff; }
.public .step p { color: var(--pub-muted); }

/* rules (brivido) */
.public .rule .dot {
  background: var(--pub-grad);
  box-shadow: 0 0 12px rgba(216, 30, 110, .6);
}
.public .rule p strong { color: #fff; }
.public .rule p span { color: var(--pub-muted); }

/* stats (dati) */
.public .stat-num {
  background: var(--pub-grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.public .stat-label { color: rgba(255, 255, 255, .82); }
.public .stat-label strong { color: #fff; }
.public .stat-src { color: var(--pub-faint); }
.public .stats-note { color: var(--pub-faint); }

/* faq */
.public #faq details { border-radius: 16px; padding: .1rem 1.1rem; margin-bottom: .7rem; }
.public #faq summary { color: #fff; }
.public #faq summary::after { color: var(--pub-pink); }
.public #faq details p { color: var(--pub-muted); }

/* form/card iscriviti */
.public .card .hint { color: var(--pub-faint); }

/* alert */
.public .alert {
  background: rgba(216, 30, 110, .12);
  border: 1px solid rgba(216, 30, 110, .4);
  color: #f8b4ce;
}

/* ── il telefono nel hero: bagliore magenta sotto ── */
.public .hero-art { position: relative; }
.public .hero-art::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 360px; height: 360px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 30, 110, .35) 0%, transparent 65%);
  filter: blur(20px); z-index: 0; pointer-events: none;
  animation: tlBreathe 9s ease-in-out infinite;
}
.public .hero-art .phone { position: relative; z-index: 1; }

/* ── keyframes dal mockup ── */
@keyframes tlShimmer { 0% { transform: translateX(-130%) skewX(-18deg); } 60%, 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes tlBreathe { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes tlRing { 0%, 100% { box-shadow: 0 0 26px rgba(216, 30, 110, .35), inset 0 0 12px rgba(216, 30, 110, .25); } 50% { box-shadow: 0 0 46px rgba(216, 30, 110, .6), inset 0 0 18px rgba(216, 30, 110, .4); } }
@keyframes tlHeart { 0%, 100% { filter: drop-shadow(0 8px 22px rgba(216, 30, 110, .45)); } 50% { filter: drop-shadow(0 10px 38px rgba(216, 30, 110, .8)); } }

@media (prefers-reduced-motion: reduce) {
  .public .cta::after, .public button[type="submit"]::after,
  .public .hero-art::before { animation: none; }
}

/* ═══ AGE GATE (/eta) — ricalca il mockup ════════════════════════════════════ */
body.gate-eta {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.gate-eta .gate-stack {
  position: relative; z-index: 1;
  width: 100%; max-width: 392px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.gate-eta .gate-brand {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  margin-bottom: 30px;
}
.gate-eta .gate-brand img { width: 56px; height: auto; animation: tlHeart 4.5s ease-in-out infinite; }
.gate-eta .gate-brand .brand-word { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }

.gate-eta .gate-badge {
  width: 74px; height: 74px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(216, 30, 110, .55);
  background: rgba(216, 30, 110, .08);
  font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: .3px;
  animation: tlRing 4s ease-in-out infinite;
}
.gate-eta h1 {
  margin: 22px 0 0; font-size: clamp(1.9rem, 8vw, 2rem); line-height: 1.02;
}
.gate-eta h1 .ser { font-size: clamp(3rem, 14vw, 3.5rem); line-height: 1.06; padding-bottom: 4px; }
.gate-eta .gate-sub {
  margin: 16px auto 0; max-width: 300px;
  font-size: .95rem; line-height: 1.55; color: var(--pub-muted);
}
.gate-eta .gate-sub strong { color: rgba(255, 255, 255, .85); font-weight: 500; }

/* card di consenso a vetro, cliccabile */
.gate-eta .consent {
  display: flex; align-items: flex-start; gap: 13px; text-align: left;
  width: 100%; margin-top: 30px; padding: 15px 16px; border-radius: 16px;
  background: var(--pub-glass); border: 1px solid var(--pub-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
}
.gate-eta .consent:has(input:checked) {
  border-color: rgba(216, 30, 110, .7);
  box-shadow: 0 0 22px rgba(216, 30, 110, .28);
}
.gate-eta .consent.shake { animation: tlShake .43s ease-in-out; }
.gate-eta .consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.gate-eta .consent .box {
  position: relative; flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .05); transition: all .15s ease;
}
.gate-eta .consent input:checked + .box {
  background: var(--pub-grad); border-color: transparent;
  box-shadow: 0 4px 14px rgba(216, 30, 110, .5);
}
.gate-eta .consent .box svg { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity .15s ease; }
.gate-eta .consent input:checked + .box svg { opacity: 1; }
.gate-eta .consent .txt { font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.gate-eta .consent .txt strong { color: #fff; font-weight: 600; }

.gate-eta .gate-enter {
  width: 100%; height: 56px; margin-top: 14px; border-radius: 16px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.gate-eta .gate-err { margin-top: 12px; font-size: .8rem; color: var(--pub-pink); min-height: 1em; }
.gate-eta .gate-under {
  margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .5);
  text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}
.gate-eta .gate-under:hover { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .3); }
.gate-eta .gate-cookie {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  max-width: 290px; margin-top: 34px;
  font-size: .75rem; line-height: 1.5; color: var(--pub-faint);
}
.gate-eta .gate-cookie svg { flex-shrink: 0; opacity: .7; }
.gate-eta .gate-links { margin-top: 14px; font-size: .75rem; color: rgba(255, 255, 255, .45); }
.gate-eta .gate-links a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.gate-eta .gate-links a:hover { color: #fff; }

@keyframes tlShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-eta .gate-badge, .gate-eta .gate-brand img { animation: none; }
}

/* ═══ PREZZI (/prezzi) ═══════════════════════════════════════════════════════ */
.public .price-hero { text-align: center; padding: 3.4rem 0 1rem; }
.public .price-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.public .price-hero .lead { margin: 1rem auto 0; max-width: 33em; }

/* griglia dei piani */
.public .plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem; align-items: start;
  max-width: 920px; margin: 2.2rem auto .6rem;
}
.public .plan {
  position: relative; display: flex; flex-direction: column;
  border-radius: 22px; padding: 1.7rem 1.5rem;
  background: var(--pub-glass); border: 1px solid var(--pub-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.public .plan:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 30, 110, .4);
  box-shadow: 0 18px 40px -16px rgba(216, 30, 110, .5);
}
.public .plan.featured {
  border-color: rgba(216, 30, 110, .55);
  box-shadow: 0 0 0 1px rgba(216, 30, 110, .25), 0 22px 50px -20px rgba(216, 30, 110, .5);
}
.public .plan-badge {
  position: absolute; top: -.72rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--pub-grad); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .3rem .82rem; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(216, 30, 110, .8);
}
.public .plan-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: #fff; }
.public .plan-tag { margin: .15rem 0 0; color: var(--pub-faint); font-size: .86rem; }
.public .plan-price {
  margin: 1rem 0 0; display: flex; align-items: baseline; gap: .25rem; flex-wrap: wrap;
}
.public .plan-price .amount {
  font-family: var(--serif-pub); font-style: italic; font-weight: 400;
  font-size: 2.7rem; line-height: 1; letter-spacing: 0;
  background: var(--pub-grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.public .plan-price .per { color: var(--pub-muted); font-size: .95rem; }
.public .plan-sub { margin: .35rem 0 0; color: var(--pub-faint); font-size: .84rem; }

.public .plan-feats {
  list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; flex: 1;
  display: flex; flex-direction: column; gap: .6rem;
}
.public .plan-feats li {
  position: relative; padding-left: 1.5rem;
  font-size: .94rem; line-height: 1.4; color: rgba(255, 255, 255, .82);
}
.public .plan-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--pub-pink); font-weight: 700;
}
.public .plan-feats li.lim { color: var(--pub-faint); }
.public .plan-feats li.lim::before { content: "–"; color: var(--pub-faint); font-weight: 400; }
.public .plan .cta { margin-top: auto; text-align: center; }

.public .plans-note {
  text-align: center; color: var(--pub-faint);
  font-size: .84rem; max-width: 38em; margin: .6rem auto 0;
}

/* fascia fondatori (beta) */
.public .founder { max-width: 760px; margin-inline: auto; padding-top: 2.6rem; }
.public .founder-card {
  text-align: center; border-radius: 26px; padding: 2.4rem 1.8rem;
  background: var(--pub-glass); border: 1px solid var(--pub-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.public .founder-card .lead { margin: .8rem auto 0; max-width: 30em; }
.public .founder-perk {
  margin: 1.2rem auto 1.4rem; font-size: 1.02rem; color: rgba(255, 255, 255, .9);
}
.public .founder-perk strong { color: #fff; }

.public .price-cta {
  text-align: center; padding-top: 2.2rem; max-width: 460px; margin-inline: auto;
}
.public .price-cta .actions {
  display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap;
}

@media (max-width: 760px) {
  .public .plans { grid-template-columns: 1fr; max-width: 420px; }
  .public .plan.featured { order: -1; }
}

/* dialog "Entra come fondatore" (richiesta accesso beta chiusa) */
.founder-dialog {
  width: min(92vw, 440px); margin: auto;
  border: 1px solid var(--pub-line); border-radius: 22px;
  padding: 1.9rem 1.6rem 1.7rem;
  background: #15111a; color: var(--pub-fg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(216, 30, 110, .18);
}
.founder-dialog::backdrop {
  background: rgba(6, 5, 7, .72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.founder-dialog .kicker { color: var(--pub-pink); margin: 0 0 .1rem; }
.founder-dialog h3 { font-size: 1.55rem; font-weight: 700; color: #fff; margin: 0 0 .8rem; }
.founder-dialog p { color: var(--pub-muted); font-size: .93rem; line-height: 1.5; margin: 0 0 .7rem; }
.founder-dialog p strong { color: #fff; font-weight: 600; }
.founder-dialog .founder-plan { color: var(--pub-pink); font-size: .9rem; }
.founder-dialog .founder-plan strong { color: #fff; }
.founder-x {
  position: absolute; top: .6rem; right: .7rem;
  background: none; border: 0; color: var(--pub-faint);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  padding: .15rem .45rem; border-radius: 8px;
  transition: color .15s ease;
}
.founder-x:hover { background: none; color: #fff; transform: none; }

.founder-form { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .85rem; }
.founder-form input[type="email"] { margin: 0; }
.founder-consent {
  display: flex; gap: .6rem; align-items: flex-start; margin: 0;
  font-size: .82rem; line-height: 1.45; color: var(--pub-muted); cursor: pointer;
}
.founder-consent input { flex: 0 0 auto; margin-top: .15rem; accent-color: var(--pub-magenta); }
.founder-consent a { color: var(--pub-pink); }
.founder-err { color: #ff8aa8; font-size: .84rem; min-height: 1em; margin: 0; }
.founder-form button[type="submit"] { width: 100%; margin-top: .1rem; }

.founder-done { text-align: center; padding: .4rem 0 .2rem; }
.founder-check {
  width: 58px; height: 58px; margin: .2rem auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--pub-grad); color: #fff; font-size: 1.5rem;
  box-shadow: 0 10px 26px -8px rgba(216, 30, 110, .7);
}
.founder-done .cta { margin-top: 1.1rem; }

@media (prefers-reduced-motion: no-preference) {
  .founder-dialog[open] { animation: founderIn .2s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes founderIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
