/* ============================================================
   Accordo — Marketing Site Styles
   Palette: Primario #60B8C4, Accento #F5A623, Sfondo #F7F5F0,
            Inchiostro #2D3A3A, Alert #FF7B7B
   Fonts: Nunito (headings), Lora (body)
   ============================================================ */

:root {
  --primary: #60B8C4;
  --primary-light: #7DCCD6;
  --primary-soft: #E0F0F3;
  --accent: #F5A623;
  --accent-light: #F7BC4D;
  --accent-soft: #FEF3E0;
  --alert: #FF7B7B;
  --alert-light: #FF9B9B;
  --ink: #2D3A3A;
  --ink-light: #5F7072;
  --bg: #F7F5F0;
  --card-bg: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 50px;
  --shadow: 0 4px 24px rgba(45,58,58,0.06);
  --shadow-lg: 0 12px 40px rgba(45,58,58,0.10);
}

/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  line-height: 1.2;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ── Container ───────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 1rem;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: white; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 1.5rem;
  color: var(--primary);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  color: var(--ink); transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-dashboard-link {
  background: var(--primary);
  color: white !important;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-dashboard-link:hover {
  background: var(--primary-light);
  color: white !important;
  transform: translateY(-1px);
}

/* Language switcher */
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s;
}
.lang-btn.active {
  background: var(--primary);
  color: white;
}
.lang-btn:hover:not(.active) { background: var(--primary-soft); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: white;
    flex-direction: column; gap: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    display: block; padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 1rem;
  }
  .nav-links .lang-switch {
    padding: 16px 24px; justify-content: center;
  }
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
  width: 100%;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 0.85rem;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.hero-accent { color: var(--primary); }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ink-light);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
  z-index: -1;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -50px; left: -150px;
}

/* ── Phone Mockup ────────────────────────────────── */
.hero-phone { flex-shrink: 0; }
.phone-frame {
  width: 280px; height: 560px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 3px #333;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  width: 120px; height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #f8f9fa;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.phone-state {
  position: absolute; inset: 0;
  padding: 44px 16px 16px;
  transition: opacity 0.5s;
}
.phone-state.hidden { opacity: 0; pointer-events: none; }
.phone-header {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.phone-app {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.phone-app-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
  flex-shrink: 0;
}
.phone-app-info { flex: 1; min-width: 0; }
.phone-app-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.8rem;
  display: block;
}
.phone-progress {
  height: 6px; background: #e5e7eb;
  border-radius: 3px; margin: 4px 0 2px;
  overflow: hidden;
}
.phone-progress-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.5s;
}
.phone-app-time {
  font-size: 0.65rem; color: var(--ink-light);
  font-family: 'Nunito', sans-serif; font-weight: 700;
}

/* Blocked state */
.phone-blocked {
  background: var(--alert);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: white;
  padding: 40px 24px;
}
.phone-blocked-icon { font-size: 3rem; margin-bottom: 12px; }
.phone-blocked-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 1.3rem;
  margin-bottom: 8px;
}
.phone-blocked-app {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  background: rgba(255,255,255,0.2);
  padding: 4px 16px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.phone-blocked-sub {
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.5;
  white-space: pre-line;
}

/* ── Sections ────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-alt { background: #F0EDE6; }
.section-title {
  text-align: center;
  font-size: 2.2rem; font-weight: 900;
  margin-bottom: 12px;
}
.section-intro {
  text-align: center;
  color: var(--ink-light);
  max-width: 560px; margin: 0 auto 48px;
  font-size: 1.05rem;
}
.privacy-page { padding-top: 120px; }

/* ── Steps Grid ──────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-num {
  position: absolute; top: 16px; right: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.12;
}
.step-card h3 {
  font-size: 1.15rem; font-weight: 800;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--ink-light); font-size: 0.95rem;
}

/* ── Features Grid ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 {
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--ink-light); font-size: 0.9rem;
}

/* ── Permissions ─────────────────────────────────── */
.perm-list {
  max-width: 700px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 48px;
}
.perm-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.perm-card:hover { transform: translateY(-2px); }
.perm-icon { font-size: 1.8rem; flex-shrink: 0; }
.perm-body { flex: 1; }
.perm-body h3 {
  font-size: 1rem; font-weight: 800;
  margin-bottom: 2px;
}
.perm-body p {
  color: var(--ink-light); font-size: 0.85rem;
}
.perm-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  background: #E8FFF5;
  color: #059669;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.7rem;
  white-space: nowrap;
}

/* ── Waitlist CTA ────────────────────────────────── */
.section-cta {
  background: var(--primary-soft);
  text-align: center;
  padding: 80px 24px;
}
.section-cta h2 {
  font-size: 2rem; font-weight: 900;
  margin-bottom: 12px;
}
.section-cta p {
  color: var(--ink-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.waitlist-form {
  display: flex; gap: 12px;
  max-width: 460px; margin: 0 auto;
}
.waitlist-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid #e5e7eb;
  font-family: 'Lora', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input:focus { border-color: var(--primary); }
.waitlist-msg {
  margin-top: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.9rem;
}
.waitlist-msg.success { color: #059669; }
.waitlist-msg.error { color: var(--alert); }

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
}
.footer-brand { margin-bottom: 24px; }
.footer-brand .nav-logo { color: var(--primary); }
.footer-brand p { margin-top: 6px; font-size: 0.9rem; }
.footer-links {
  display: flex; gap: 24px; margin-bottom: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.footer .lang-btn { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.6); }
.footer .lang-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.modal h2 {
  font-size: 1.5rem; font-weight: 900;
  margin-bottom: 8px;
}
.modal p {
  color: var(--ink-light); margin-bottom: 24px;
  font-size: 0.95rem;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.5rem; color: var(--ink-light);
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--ink); }

/* ── Privacy Page ────────────────────────────────── */
.privacy-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.privacy-card h2 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary);
}
.privacy-card p {
  color: var(--ink-light); font-size: 0.95rem;
  line-height: 1.8;
}
.privacy-email {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ── Animations ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding-top: 90px; min-height: auto; }
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .perm-card { flex-wrap: wrap; }
  .perm-badge { width: 100%; text-align: center; }
  .waitlist-form { flex-direction: column; }
  .section-title { font-size: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .phone-frame { width: 240px; height: 480px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .phone-frame { width: 220px; height: 440px; }
}
