/* =========================================================
   JointTracker · landing.css (2026 redesign)
   Stesso linguaggio visivo dell'app: Sora, verde 4caf50→2e7d32,
   superfici a bassa elevazione, glow morbidi, motion jtRise.
   Segue il tema di sistema con light-dark().
   ========================================================= */

:root { color-scheme: light dark; }

.jt-page {
  --jt-bg:        light-dark(#f4f7f6, #0c120c);
  --jt-surface:   light-dark(#ffffff, rgba(24,32,24,.92));
  --jt-ink:       light-dark(#1c1c1e, #eef2ee);
  --jt-ink-2:     light-dark(#5c6660, #b7c3b7);
  --jt-ink-3:     light-dark(#666f6a, #8a978a); /* light nudged 6b7570->666f6a per contrasto AA 4.5:1 su testo 13px (.jt-note/.jt-footer) */
  --jt-line:      light-dark(rgba(0,0,0,.08), rgba(255,255,255,.08));
  --jt-accent:    light-dark(#1b5e20, #6fcf72);
  --jt-grad:      linear-gradient(135deg, #4caf50, #2e7d32);
  --jt-tile:      linear-gradient(135deg, #57bd5b, #20612a 62%, #17471f);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--jt-bg);
  color: var(--jt-ink);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.jt-page a { color: var(--jt-accent); text-decoration: none; }
.jt-page a:hover { color: #4caf50; }
.jt-defs { position: absolute; pointer-events: none; }

/* --- fondali --- */
.jt-glow { position: fixed; border-radius: 50%; filter: blur(50px); pointer-events: none; z-index: 0; }
.jt-glow--a { top: -180px; left: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, light-dark(rgba(46,125,50,.16), rgba(46,125,50,.8)), transparent 70%);
  animation: jtDrift 20s ease-in-out infinite; }
.jt-glow--b { bottom: -220px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, light-dark(rgba(76,175,80,.12), rgba(76,175,80,.55)), transparent 70%);
  animation: jtDrift 15s ease-in-out infinite reverse; }
.jt-page > *:not(.jt-glow) { position: relative; z-index: 1; }

/* --- nav --- */
.jt-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px);
  background: light-dark(rgba(255,255,255,.82), rgba(16,22,16,.82)); border-bottom: 1px solid var(--jt-line); }
.jt-nav__in { max-width: 1040px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jt-nav__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.jt-nav__links > a { font-size: 14px; font-weight: 600; color: var(--jt-ink-2); }
.jt-nav__links > a.jt-btn,
.jt-page a.jt-btn:not(.jt-btn--ghost) { color: #fff; } /* .jt-page a (0,1,1) batterebbe .jt-btn: testo verde su verde */
.jt-brand { display: flex; align-items: center; gap: 10px; }
.jt-brand__text { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--jt-ink); }
.jt-tile { display: block; background: var(--jt-tile); flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(46,125,50,.32), inset 0 1px 0 rgba(255,255,255,.3); }
.jt-tile--32 { width: 32px; height: 32px; border-radius: 8.5px; }
.jt-mark { display: block; width: 100%; height: 100%; }

/* --- bottoni --- */
.jt-btn { display: inline-block; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--jt-grad); padding: 16px 30px; border-radius: 18px;
  box-shadow: 0 14px 34px rgba(46,125,50,.35); transition: transform .18s, box-shadow .18s; }
.jt-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 18px 40px rgba(46,125,50,.42); }
.jt-btn--sm { font-size: 14px; padding: 10px 18px; border-radius: 12px; box-shadow: 0 8px 22px rgba(46,125,50,.3); }
.jt-btn--ghost { color: var(--jt-accent); background: none; box-shadow: none;
  border: 1.5px solid rgba(76,175,80,.5); }
.jt-btn--ghost:hover { color: var(--jt-accent); background: light-dark(rgba(76,175,80,.08), rgba(76,175,80,.14)); box-shadow: none; }

/* --- hero --- */
.jt-hero { max-width: 1040px; margin: 0 auto; padding: 76px 22px 40px; text-align: center; }
.jt-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px; padding: 7px 14px;
  border-radius: 999px; background: light-dark(rgba(76,175,80,.14), rgba(76,175,80,.18));
  border: 1px solid rgba(76,175,80,.3); font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--jt-accent); }
.jt-h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04;
  margin: 0 auto 20px; max-width: 760px; text-wrap: pretty; }
.jt-lead { font-size: 17px; line-height: 1.6; color: var(--jt-ink-2); max-width: 620px;
  margin: 0 auto 30px; text-wrap: pretty; }
.jt-lead--sm { font-size: 15px; margin-bottom: 26px; }
.jt-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.jt-note { font-size: 13px; line-height: 1.6; color: var(--jt-ink-3); max-width: 560px; margin: 22px auto 0; }

/* --- screenshot --- */
.jt-shots { max-width: 1040px; margin: 0 auto; padding: 20px 22px 70px;
  display: flex; gap: 26px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.jt-phone { margin: 0; flex: 0 0 auto; box-sizing: border-box;
  background: light-dark(#dfe5e0, #1c241c); border: 1px solid var(--jt-line); overflow: hidden; }
.jt-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.jt-phone--side { width: 236px; padding: 9px; border-radius: 38px; box-shadow: 0 26px 60px rgba(0,0,0,.22); }
.jt-phone--side img { border-radius: 30px; }
.jt-phone--center { width: 268px; padding: 10px; border-radius: 42px; box-shadow: 0 34px 74px rgba(0,0,0,.28); }
.jt-phone--center img { border-radius: 33px; }

/* --- sezioni --- */
.jt-section { max-width: 1040px; margin: 0 auto; padding: 24px 22px 60px; }
.jt-section--narrow { max-width: 760px; }
.jt-h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.03em;
  margin: 0 0 28px; text-wrap: pretty; }
.jt-body { font-size: 16px; line-height: 1.7; color: var(--jt-ink-2); margin: 0 0 16px; text-wrap: pretty; }
.jt-body:last-child { margin-bottom: 0; }
.jt-body strong { color: var(--jt-ink); }

/* --- card --- */
.jt-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.jt-card { background: var(--jt-surface); border: 1px solid var(--jt-line); border-radius: 22px; padding: 22px; }
.jt-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--jt-ink); }
.jt-card p { font-size: 14px; line-height: 1.6; color: var(--jt-ink-2); margin: 0; }
.jt-ico { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; }
.jt-ico svg { width: 21px; height: 21px; }
.jt-ico--green   { background: light-dark(rgba(76,175,80,.14), rgba(76,175,80,.18)); color: var(--jt-accent); }
.jt-ico--purple  { background: light-dark(rgba(156,39,176,.09), rgba(156,39,176,.14)); color: light-dark(#7b1fa2, #c266d6); }
.jt-ico--amber   { background: light-dark(rgba(255,152,0,.12), rgba(255,152,0,.16)); color: light-dark(#b35309, #ffb74d); }
.jt-ico--neutral { background: light-dark(rgba(0,0,0,.05), rgba(255,255,255,.06)); color: var(--jt-ink); }

/* --- lingua (nav) --- */
.jt-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--jt-ink-3); }
.jt-lang a { color: var(--jt-ink-2); }
.jt-lang a[aria-current="page"] { color: var(--jt-ink); }

/* --- social --- */
.jt-h2--tight { margin-bottom: 12px; }
.jt-social__intro { max-width: 620px; margin-bottom: 28px; }
.jt-social { display: grid; gap: 28px; align-items: start; }
.jt-social__cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.jt-social__shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
/* Gli screenshot sono in tema scuro: la cornice (stesso trattamento di .jt-phone)
   evita l'effetto "blocco nero incollato" quando la landing è in tema chiaro. */
.jt-frame { margin: 0; flex: 1 1 0; min-width: 0; max-width: 280px; box-sizing: border-box; padding: 8px;
  border-radius: 30px; background: light-dark(#dfe5e0, #1c241c); border: 1px solid var(--jt-line);
  box-shadow: 0 24px 56px rgba(0,0,0,.22); }
.jt-frame img { display: block; width: 100%; height: auto; border-radius: 22px; }
.jt-social__meta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; text-align: center; }
.jt-counter { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px;
  border-radius: 999px; background: light-dark(rgba(76,175,80,.14), rgba(76,175,80,.18));
  border: 1px solid rgba(76,175,80,.3); font-size: 15px; font-weight: 700; color: var(--jt-accent);
  font-variant-numeric: tabular-nums; visibility: hidden; opacity: 0; transition: opacity .4s; }
.jt-counter.is-ready { visibility: visible; opacity: 1; }
.jt-counter__dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50;
  box-shadow: 0 0 0 4px rgba(76,175,80,.22); }
.jt-tiktok { font-size: 14px; font-weight: 600; }

@media (min-width: 880px) {
  .jt-social { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

/* --- chiusura --- */
.jt-final { background: linear-gradient(150deg, light-dark(rgba(76,175,80,.16), rgba(76,175,80,.2)), var(--jt-surface) 70%);
  border: 1px solid var(--jt-line); border-radius: 28px; padding: 46px 26px; text-align: center; }
.jt-footer { border-top: 1px solid var(--jt-line); padding: 34px 22px 46px; text-align: center; }
.jt-footer__links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.jt-footer__links a { font-size: 13px; font-weight: 600; color: var(--jt-ink-2); }
.jt-footer p { font-size: 13px; color: var(--jt-ink-3); margin: 0; }

/* --- motion (identica all'app) --- */
@keyframes jtRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes jtDrift { 0% { transform: translate(0,0); } 50% { transform: translate(4%,-3%); } 100% { transform: translate(0,0); } }
.jt-rise { animation: jtRise .6s cubic-bezier(.2,.7,.3,1) both; }
.jt-rise--d2 { animation-delay: .16s; }
.jt-grid > .jt-rise:nth-child(1) { animation-delay: .05s; }
.jt-grid > .jt-rise:nth-child(2) { animation-delay: .10s; }
.jt-grid > .jt-rise:nth-child(3) { animation-delay: .15s; }
.jt-grid > .jt-rise:nth-child(4) { animation-delay: .20s; }
.jt-grid > .jt-rise:nth-child(5) { animation-delay: .25s; }
.jt-grid > .jt-rise:nth-child(6) { animation-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  .jt-page *, .jt-page *::before, .jt-page *::after {
    animation-duration: .001s !important; animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
}

@media (max-width: 560px) {
  .jt-hero { padding-top: 52px; }
  .jt-shots { gap: 16px; }
  .jt-phone--side { display: none; }
  .jt-nav__links { gap: 14px; }
  .jt-social__shots { flex-direction: column; align-items: center; }
  .jt-frame { flex: 0 0 auto; width: 100%; max-width: 340px; }
}
