/* Social Automations — pagine pubbliche (presentazione, privacy, cancellazione dati). Font di sistema, nessuna risorsa esterna. */
:root {
  --brand: #5B3DF5;
  --brand-ink: #4527d9;
  --brand-soft: #eeeafe;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --line: #e4e3df;
  --ink: #17171a;
  --ink-2: #4b4b52;
  --ink-3: #6e6e76;
  --ok: #1f8a4c;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7b62ff; --brand-ink: #b3a3ff; --brand-soft: #241b4d; --bg: #0f0f11; --surface: #18181b; --line: #2e2e33;
    --ink: #f2f2f3; --ink-2: #c4c4ca; --ink-3: #9a9aa3; --ok: #4cc27f; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--brand-ink); text-underline-offset: 3px; }
img, svg { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* intestazione */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand b { display: block; font-size: 1rem; line-height: 1.2; }
.brand small { display: block; font-size: .8125rem; color: var(--ink-3); line-height: 1.2; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 .9375rem/1 var(--font); text-decoration: none; touch-action: manipulation; white-space: nowrap;
  transition: transform 120ms ease-out, background-color 120ms ease-out; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-ink); }
  .btn-ghost:hover { border-color: var(--ink-3); }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #6a4ff7; }
}

/* apertura */
.hero { padding-top: 56px; padding-bottom: 40px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: .8125rem; font-weight: 600; }
h1 { margin: 0 0 16px; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; text-wrap: balance; }
.lead { margin: 0 0 26px; font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* sezioni */
section { padding: 40px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 8px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; }
.sub { margin: 0 0 26px; color: var(--ink-2); max-width: 62ch; }
h3 { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.3; }
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .975rem; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 8px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; }

/* esempio commento → azioni */
.demo { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.demo li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.demo .k { flex: none; width: 92px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.demo .v { min-width: 0; overflow-wrap: anywhere; }
.demo mark { background: var(--brand-soft); color: var(--brand-ink); border-radius: 4px; padding: 0 4px; }
.ok { color: var(--ok); font-weight: 600; }

/* elenchi */
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--brand); }
.list b { color: var(--ink); }

/* pagine di testo */
.doc { padding-top: 44px; padding-bottom: 56px; max-width: 800px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); max-width: none; }
.doc h2 { font-size: 1.25rem; margin-top: 34px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.meta-line { color: var(--ink-3); font-size: .9375rem; }

/* piede */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { .foot .wrap { grid-template-columns: 1.4fr 1fr; } }
.foot p { margin: 0 0 4px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; }
.foot nav a { min-height: 32px; display: inline-flex; align-items: center; }
