/* ── AIManage — Homepage pubblica ───────────────────────────────────────────
   Stile della landing page pubblica (root "/"), separato da app.css perché
   non condivide il layout autenticato (sidebar/topbar) e usa una palette
   scura fissa indipendente dal tema chiaro/scuro scelto dall'utente.
   Vedi CLAUDE.md: nessun build step, si modifica direttamente e si ricarica.
─────────────────────────────────────────────────────────────────────────── */

html, body.home-body { margin: 0; background: #0f172a; overflow-x: hidden; }
body.home-body { font-family: 'Inter', system-ui, sans-serif; }

.home-page { position: relative; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-40px) scale(1.06); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(1.08); } }
@keyframes cellpulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.anim-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-1 { top: -200px; right: -180px; width: 760px; height: 760px; background: radial-gradient(circle, #4f46e5 0%, transparent 70%); opacity: .3; filter: blur(65px); animation: float1 19s ease-in-out infinite; }
.blob-2 { top: 420px; left: -220px; width: 620px; height: 620px; background: radial-gradient(circle, #06b6d4 0%, transparent 70%); opacity: .2; filter: blur(60px); animation: float2 21s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .anim-blob, .anim-cell { animation: none !important; }
}

/* ── Reveal allo scroll (bidirezionale: si dissolve anche uscendo dalla vista) ── */
/* Solo dissolvenza, niente spostamento (transform): un translateY qui
   sposterebbe la geometria dell'elemento, che è proprio ciò che
   IntersectionObserver misura — muoversi mentre appare/scompare lo fa
   ri-attraversare la propria soglia e genera un loop che oscilla senza
   fermarsi (vedi memoria homepage_pubblica.md). L'opacità da sola non
   altera la bounding box, quindi non può ri-innescare l'observer. */
.reveal { opacity: 0; transition: opacity 1.1s ease; }
.reveal.is-visible { opacity: 1; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.home-logo-wrap { position: relative; z-index: 3; display: flex; justify-content: center; padding-top: 28px; }
.home-logo-card { background: #ffffff; border-radius: 14px; padding: 12px 26px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.home-logo-card img { height: 72px; width: auto; display: block; }

@media (min-width: 768px) {
  .home-logo-wrap { justify-content: flex-start; padding-left: 80px; }
  .home-logo-card img { height: 96px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.home-hero { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px 0; gap: 40px; box-sizing: border-box; }
.home-hero-text { max-width: 520px; }
.home-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #818cf8; }
.home-hero-text h1 { margin: 14px 0 0; font-size: 28px; font-weight: 700; color: #f1f5f9; line-height: 1.22; }
.home-hero-text p { margin: 16px 0 0; font-size: 14.5px; color: #94a3b8; line-height: 1.6; }
.home-btn-primary { margin-top: 26px; background: #4f46e5; color: #fff; border: none; padding: 14px 34px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 14px 32px rgba(79,70,229,.4); }
.home-hero-caption { margin-top: 12px; font-size: 11.5px; color: #64748b; }

.home-hero-visual { display: none; width: 100%; }

/* Il pannello prodotto (carosello) è calibrato a una larghezza INTERNA fissa di
   ~670px (vedi memoria homepage_pubblica.md — griglia, slide statistiche e
   slide formatore/AIManage/staff sono state dimensionate a mano per quello
   spazio *utile*, al netto del padding). .carousel-panel ha 30px di padding
   per lato, quindi il contenitore .home-hero-visual deve essere 670+60=730px,
   non 670px — un errore qui riproduce lo stesso flex-wrap che manda a capo la
   sagoma "Staff". Comprimerlo in modo fluido (flex:1) rompe il layout interno
   allo stesso modo, quindi il layout a due colonne scatta solo quando c'è
   davvero spazio per testo (480px) + gap (60px) + pannello (730px) + padding
   laterale (160px) = 1430px, non prima — sotto quella soglia resta il layout
   centrato senza pannello, esattamente come in mobile, invece di schiacciarlo. */
@media (min-width: 1450px) {
  .home-hero { flex-direction: row; align-items: center; text-align: left; padding: 50px 80px 0; gap: 60px; max-width: 1440px; margin: 0 auto; }
  .home-hero-text { flex: 0 0 480px; max-width: none; }
  .home-hero-text h1 { font-size: 46px; line-height: 1.18; }
  .home-hero-text p { font-size: 15.5px; }
  .home-hero-visual { display: block; flex: 0 0 730px; width: 730px; position: relative; }
}

@media (min-width: 768px) and (max-width: 1449px) {
  .home-hero-text h1 { font-size: 34px; }
}

/* Layout centrato (tutto ciò che è sotto 1450px: telefoni, pieghevoli aperti, tablet, finestre strette).
   La prima schermata è alta quanto la finestra e "Scopri AIManage" resta in fondo (vedi .home-first-screen):
   lo spazio che avanza non resta vuoto in mezzo, ma viene assorbito così:
   - il blocco titolo+pulsante si centra verticalmente tra logo e "Scopri AIManage" (.home-hero cresce);
   - titolo, testo, pulsante e larghezza del testo crescono con la finestra (clamp su vw/vh), restando
     uguali a prima sugli schermi da telefono normali (i minimi coincidono coi vecchi valori). */
@media (max-width: 1449px) {
  .home-first-screen > .home-hero { flex: 1 1 auto; justify-content: center; padding-bottom: 24px; }
  .home-hero-text { max-width: min(100%, clamp(520px, 60vw, 680px)); }
  .home-hero-text h1 { font-size: clamp(28px, calc(1.6vw + 2.4vh), 44px); }
  .home-hero-text p { font-size: clamp(14.5px, calc(.6vw + 1vh), 18px); }
  .home-btn-primary { margin-top: clamp(26px, 4vh, 44px); }
}

/* ── Griglia calendario (solo desktop, slide 1 del carosello) ───────────────── */
.hero-cell { cursor: default; position: relative; background-color: #263248; transition: background-color 1.6s ease; border-radius: 5px; aspect-ratio: 1; }
.hero-cell:hover { background-color: var(--hc, #4f46e5); transition: background-color .15s ease; }
.hero-cell-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; pointer-events: none; color: #fff; line-height: 1.15; }
.hero-cell:hover .hero-cell-label { opacity: 1; }
.hero-cell-label .d { font-size: 9px; font-weight: 700; letter-spacing: .04em; opacity: .9; }
.hero-cell-label .n { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.hero-cell-fixed-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; line-height: 1.15; pointer-events: none; }
.hero-cell-fixed-label .t { font-size: 10px; font-weight: 800; }
.hero-cell-fixed-label .i { font-size: 8px; font-weight: 600; opacity: .85; margin-top: 1px; }

.lez-chip { flex: 1; box-sizing: border-box; background: rgba(255,255,255,.03); border: 1px solid #2d3f5c; border-left: 3px solid var(--lc, #4f46e5); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; cursor: default; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.lez-chip:hover { background: rgba(79,70,229,.14); border-color: #4f46e5; transform: translateY(-3px); }
.lez-chip-top { display: flex; align-items: flex-start; justify-content: space-between; }
.lez-chip-time { display: flex; flex-direction: column; line-height: 1.15; }
.lez-chip-time .t { font-size: 13px; font-weight: 700; color: var(--lc, #818cf8); }
.lez-chip-time .d { font-size: 8.5px; font-weight: 600; color: #64748b; margin-top: 1px; }
.lez-chip-avatar { padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.08); color: #cbd5e1; font-size: 8.5px; font-weight: 700; letter-spacing: .03em; flex-shrink: 0; }
.lez-chip-mod { font-size: 11.5px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 8px; }

/* ── Carosello pannello prodotto (solo desktop) ──────────────────────────────── */
.carousel-panel { position: relative; background: linear-gradient(165deg,#1e293b,#111c34); border: 1px solid #2d3f5c; border-radius: 20px; padding: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.5); box-sizing: border-box; overflow: hidden; }
.carousel-viewport { overflow: hidden; height: 415px; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 68px; border-radius: 13px; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s ease, background .2s ease; z-index: 6; color: #cbd5e1; }
.carousel-panel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: rgba(79,70,229,.4); color: #fff; }
.carousel-arrow-prev { left: 10px; }
.carousel-arrow-next { right: 10px; }
.carousel-track { display: flex; width: 500%; height: 100%; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.carousel-track.no-transition { transition: none; }
.carousel-slide { width: 20%; flex-shrink: 0; box-sizing: border-box; overflow: hidden; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: #334155; border: none; padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.carousel-dot:hover { background: #475569; }
.carousel-dot.active { background: #4f46e5; transform: scale(1.3); }

/* Slide 2 — statistiche, avanzamento moduli, prossime lezioni */
.s2-inner { padding: 0 40px; box-sizing: border-box; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.s2-barchart { display: flex; align-items: flex-end; gap: 28px; padding: 0 20px; box-sizing: border-box; }
.s2-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.s2-bar-num { font-size: 18px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.s2-bar-track { width: 100%; max-width: 54px; height: 82px; display: flex; align-items: flex-end; }
.s2-bar { width: 100%; border-radius: 8px 8px 2px 2px; transform-origin: bottom; transform: scaleY(0); }
.s2-bar.grow { animation: s2BarGrow 1.8s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes s2BarGrow { to { transform: scaleY(1); } }
.s2-bar-lbl { font-size: 11.5px; color: #64748b; margin-top: 10px; }
.s2-prog-row { display: flex; gap: 18px; }
.s2-prog-item { flex: 1; min-width: 0; }
.s2-prog-name { font-size: 12px; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.s2-prog-track { height: 7px; border-radius: 4px; background: #263248; overflow: hidden; }
.s2-prog-fill { height: 100%; border-radius: 4px; background: var(--pc); transform-origin: left; transform: scaleX(0); }
.s2-prog-fill.grow { animation: s2ProgGrow 1.8s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes s2ProgGrow { to { transform: scaleX(1); } }
.s2-next-label { font-size: 11.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.s2-next-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #263248; }
.s2-next-row:first-of-type { border-top: none; padding-top: 0; }
.s2-next-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.s2-next-text { flex: 1; font-size: 14px; color: #e2e8f0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-next-time { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex-shrink: 0; }
.s2-next-time .t { font-size: 13px; font-weight: 700; color: #818cf8; }
.s2-next-time .d { font-size: 9.5px; font-weight: 600; color: #64748b; margin-top: 1px; }

/* Slide 3 — Formatore carica, AIManage archivia, Staff scarica */
.s3-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; height: 100%; gap: 16px; row-gap: 16px; box-sizing: border-box; padding: 0 12px; overflow: hidden; }
.s3-person-col { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; width: 68px; }
.s3-person-col svg { width: 52px; height: auto; }
.s3-person-label { font-size: 12px; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.s3-lane { position: relative; flex: 0 0 112px; width: 112px; height: 92px; }
.s3-card { position: absolute; left: 0; background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; box-sizing: border-box; white-space: nowrap; }
.s3-card-label { font-size: 14px; font-weight: 700; color: #e2e8f0; }
@keyframes s3CardEnter {
  0% { transform: translateX(0); opacity: 1; }
  75% { opacity: .6; }
  100% { transform: translateX(80px) scale(.5); opacity: 0; }
}
.s3-card.anim1 { top: 0; }
.s3-card.anim2 { top: 48px; }
.s3-card.anim1.play { animation: s3CardEnter 2.2s ease-in forwards; animation-delay: .4s; }
.s3-card.anim2.play { animation: s3CardEnter 2.2s ease-in forwards; animation-delay: 1.1s; }
.s3-download { position: absolute; left: 0; top: 22px; background: rgba(16,185,129,.12); border: 1px solid #10b981; border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; box-sizing: border-box; white-space: nowrap; opacity: 0; }
.s3-download-label { font-size: 14px; font-weight: 700; color: #6ee7b7; }
@keyframes s3DownloadGo {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(80px); opacity: 0; }
}
.s3-download.anim3.play { animation: s3DownloadGo 2s ease-out forwards; animation-delay: 3.9s; }
.s3-platform { flex: 0 0 auto; width: 190px; padding: 24px 18px; background: linear-gradient(165deg,#1e293b,#111c34); border: 1.5px solid #4f46e5; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 9px; box-sizing: border-box; position: relative; box-shadow: 0 18px 40px rgba(79,70,229,.2); }
.s3-platform-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(79,70,229,.16); display: flex; align-items: center; justify-content: center; }
.s3-platform-label { font-size: 16px; font-weight: 700; color: #f1f5f9; }
.s3-platform-sub { font-size: 11px; color: #64748b; margin-top: -6px; }
.s3-platform-files { display: flex; gap: 6px; margin-top: 4px; }
.s3-platform-file { width: 20px; height: 26px; border-radius: 3px; background: #263248; border: 1px solid #334155; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.s3-platform-file.fill1.play { animation: s3FileFill1 .4s ease-out forwards; animation-delay: 2.6s; }
.s3-platform-file.fill2.play { animation: s3FileFill2 .4s ease-out forwards; animation-delay: 3.3s; }
@keyframes s3FileFill1 { 0% { background: #263248; border-color: #334155; transform: scale(1); } 50% { transform: scale(1.15); } 100% { background: #818cf8; border-color: #818cf8; transform: scale(1); } }
@keyframes s3FileFill2 { 0% { background: #263248; border-color: #334155; transform: scale(1); } 50% { transform: scale(1.15); } 100% { background: #06b6d4; border-color: #06b6d4; transform: scale(1); } }
.s3-check { position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%; background: #10b981; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); border: 3px solid #111c34; box-sizing: border-box; z-index: 5; }
.s3-check.play { animation: s3CheckPop .5s ease-out forwards; animation-delay: 3.4s; }
.s3-check-static { opacity: 1; transform: scale(1); }
@keyframes s3CheckPop {
  0% { opacity: 0; transform: scale(.4); }
  70% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Prima schermata: logo + hero + eyebrow "Scopri AIManage" ────────────────── */
/* Alta esattamente quanto la finestra (min-height:100vh), qualunque sia lo
   schermo: l'eyebrow viene spinta in fondo con margin-top:auto (assorbe tutto
   lo spazio verticale rimasto sotto logo+hero), così resta sempre l'ultimo
   elemento visibile senza scroll, e il titolo h2 sotto resta sempre fuori
   dalla prima schermata. Se il contenuto di logo+hero fosse più alto di
   100vh su uno schermo molto basso, l'eyebrow scenderebbe naturalmente sotto
   il bordo — inevitabile, non c'è modo di comprimere logo+hero oltre. */
.home-first-screen { min-height: 100vh; display: flex; flex-direction: column; box-sizing: border-box; }
.home-first-screen-eyebrow { margin-top: auto; text-align: center; padding: 40px 24px 32px; animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .home-first-screen-eyebrow { animation: none; }
}

/* ── Sezione "Scopri AIManage" (feature grid) ────────────────────────────────── */
.home-section-heading { position: relative; z-index: 2; padding: 24px 24px 0; text-align: center; box-sizing: border-box; }
.home-section-heading h2 { margin: 12px 0 0; font-size: 24px; font-weight: 700; color: #f1f5f9; line-height: 1.25; }

.feat-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(79,70,229,.16); display: flex; align-items: center; justify-content: center; transition: background .3s ease, transform .3s cubic-bezier(.22,1,.36,1); }
.anim-card { background: #111c34; border: 1px solid #2d3f5c; border-radius: 16px; padding: 22px; box-sizing: border-box; transition: border-color .3s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, background .3s ease; }
.anim-card:hover, .anim-card:active { background: #16213f; border-color: #6366f1; transform: translateY(-8px) scale(1.02); box-shadow: 0 28px 50px rgba(79,70,229,.32); }
.anim-card:hover .feat-icon, .anim-card:active .feat-icon { background: #4f46e5; transform: scale(1.12) rotate(-4deg); }
.anim-card:hover .feat-icon svg, .anim-card:active .feat-icon svg { stroke: #fff; }
.anim-card-title { font-size: 15.5px; font-weight: 700; color: #f1f5f9; margin-top: 14px; }
.anim-card-desc { font-size: 13px; color: #94a3b8; margin-top: 7px; line-height: 1.55; }

.home-cards-row { position: relative; z-index: 2; display: flex; gap: 14px; padding: 32px 65px 6px; box-sizing: border-box; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.home-cards-row::-webkit-scrollbar { display: none; }
.home-cards-row .anim-card { flex: 0 0 260px; scroll-snap-align: center; }

@media (min-width: 768px) {
  .home-section-heading { padding: 40px 80px 0; }
  .home-first-screen-eyebrow { padding: 40px 80px 40px; }
  .home-section-heading h2 { font-size: 32px; }
  .home-cards-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 50px 80px 0; max-width: 1440px; margin: 0 auto; overflow: visible; }
  .home-cards-row .anim-card { flex: initial; scroll-snap-align: none; padding: 26px; }
  .anim-card-title { font-size: 16px; }
  .anim-card-desc { font-size: 13.5px; }
}

/* ── CTA "Porta AIManage nella tua organizzazione" ───────────────────────────── */
.home-cta { position: relative; z-index: 2; text-align: center; padding: 60px 24px 0; box-sizing: border-box; }
.home-cta-inner { border-top: 1px solid #2d3f5c; padding-top: 40px; max-width: 560px; margin: 0 auto; }
.home-cta-inner .title { font-size: 19px; font-weight: 700; color: #f1f5f9; }
.home-cta-inner .sub { margin-top: 10px; font-size: 13.5px; color: #94a3b8; line-height: 1.6; }
.home-btn-ghost { margin-top: 20px; background: transparent; color: #818cf8; border: 1.5px solid #4f46e5; padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }

@media (min-width: 768px) {
  .home-cta { padding: 70px 80px 0; }
  .home-cta-inner .title { font-size: 21px; }
  .home-cta-inner .sub { font-size: 14px; }
}

.home-footer { position: relative; z-index: 2; text-align: center; font-size: 10.5px; color: #475569; padding: 36px 0 26px; }

/* ── Modali (login / contatto) ────────────────────────────────────────────────── */
.home-modal-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.72); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; box-sizing: border-box; }
.home-modal-overlay.is-open { display: flex; }
.home-modal { width: 100%; max-width: 340px; background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.55); position: relative; box-sizing: border-box; }
.home-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #94a3b8; font-size: 18px; cursor: pointer; line-height: 1; }
.home-modal h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #f1f5f9; }
.home-modal p.sub { margin: 0 0 20px; color: #94a3b8; font-size: 12.5px; }
.home-field { margin-bottom: 12px; }
.home-field label { display: block; font-size: 11.5px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.home-field input, .home-field textarea { width: 100%; box-sizing: border-box; background: #0f172a; border: 1px solid #334155; border-radius: 8px; color: #e2e8f0; padding: 9px 12px; font-size: 14px; font-family: inherit; }
.home-field textarea { resize: vertical; }
.home-field-password { position: relative; }
.home-field-password input { padding-right: 40px; }
.home-toggle-password { position: absolute; top: 0; right: 0; height: 100%; width: 38px; background: none; border: none; cursor: pointer; color: #94a3b8; display: flex; align-items: center; justify-content: center; }
.home-toggle-password:hover { color: #cbd5e1; }
.home-field .counter { text-align: right; font-size: 11px; color: #64748b; margin-top: 4px; }
.home-field-error { color: #f87171; font-size: 11.5px; margin-top: 5px; }
.home-form-alert { background: rgba(239,68,68,.12); border: 1px solid #ef4444; color: #fca5a5; font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.home-form-success { background: rgba(16,185,129,.12); border: 1px solid #10b981; color: #6ee7b7; font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.home-btn-submit { width: 100%; box-sizing: border-box; justify-content: center; background: #4f46e5; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; cursor: pointer; margin-top: 6px; }
.home-btn-submit:disabled { opacity: .6; cursor: default; }
.home-modal-value { background: #0f172a; border: 1px solid #334155; border-radius: 8px; color: #64748b; padding: 9px 12px; font-size: 14px; }

@media (min-width: 480px) {
  .home-modal.contact { max-width: 460px; padding: 32px; }
  .home-modal.contact .name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
