/* Sito vetrina di Budgeter: colori allineati a src/theme/tokens.ts (accento blu). */
:root {
  --accent: #0a84ff;
  --accent-deep: #0060df;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --bg: #eef2fa;
  --bg-bottom: #f7f5fb;
  --surface: #ffffff;
  --text: #0b1220;
  --text-muted: #5c6470;
  --divider: rgba(11, 18, 32, 0.08);
  --income: #1f9254;
  --shadow: 0 12px 32px rgba(30, 41, 90, 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --accent-deep: #4da3ff;
    --accent-soft: rgba(10, 132, 255, 0.22);
    --bg: #0b0f16;
    --bg-bottom: #121826;
    --surface: #161c28;
    --text: #f5f7fa;
    --text-muted: #98a2b3;
    --divider: rgba(255, 255, 255, 0.1);
    --income: #3dd68c;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg);
}

a {
  color: var(--accent-deep);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Barra superiore */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.topbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}

.topbar nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 40px;
}

.hero .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: clamp(18px, 3.2vw, 21px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.cta {
  margin-top: 32px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-deep);
}

.cta small {
  color: var(--text-muted);
  font-size: 14px;
}

/* Sezioni */
section {
  padding-top: 32px;
  padding-bottom: 32px;
}

section h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.privacy-box {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.privacy-box ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.privacy-box li {
  margin-bottom: 6px;
}

.disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto;
}

/* Pagina informativa */
.doc {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 28px 24px;
  margin: 16px 0 32px;
  box-shadow: var(--shadow);
}

.doc h1 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.2;
  margin: 0 0 16px;
}

.doc h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.doc h3 {
  font-size: 18px;
  margin: 20px 0 6px;
}

.doc p,
.doc li {
  overflow-wrap: anywhere;
}

.doc .meta {
  color: var(--text-muted);
  margin: 0;
}

/* Piè di pagina */
footer {
  border-top: 1px solid var(--divider);
  margin-top: 24px;
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer a {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .hero {
    padding-top: 24px;
  }

  .doc {
    padding: 22px 16px;
  }
}
