/* Lo stesso linguaggio grafico dell'app (ui/src/app.css): stessi colori, raggi, sfondo con aloni, bottoni a gradiente. */
@font-face { font-family: 'Inter Variable'; src: url(inter.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light dark;
  --accent: #6366f1; --accent-text: #373a8a; --accent-ring: #4f46e5;
  --fill-1: #4f46e5; --fill-2: #9333ea;
  --grad-a: #4f46e5; --grad-b: #c026d3;
  --bg: #f4f5fb; --surface: #ffffff; --surface-2: #f0f2f9; --border: #e3e6f0; --text: #0e1120; --muted: #5a6479;
  --shadow-sm: 0 1px 2px rgb(16 20 45 / .06), 0 1px 3px rgb(16 20 45 / .05);
  --shadow-md: 0 4px 14px -2px rgb(16 20 45 / .1), 0 2px 6px -2px rgb(16 20 45 / .06);
  --radius: 16px; --radius-sm: 11px; --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-optical-sizing: auto; letter-spacing: -.006em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent-text: #b4b8ff; --accent-ring: #a5b4fc; --grad-a: #a5b4fc; --grad-b: #f0abfc;
    --bg: #090a11; --surface: #121420; --surface-2: #1a1d2c; --border: #252a3d; --text: #eceef8; --muted: #8f96ae;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow-md: 0 6px 18px -4px rgb(0 0 0 / .5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 560px at 88% -12%, color-mix(in oklab, var(--accent) 15%, transparent), transparent 62%),
    radial-gradient(900px 520px at -8% 112%, color-mix(in oklab, #d946ef 11%, transparent), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
header.bar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; padding-top: .35rem; padding-bottom: .35rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand svg { filter: drop-shadow(0 1px 2px rgb(16 20 45 / .25)); }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
nav a { display: inline-block; padding: .35rem .7rem; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color .2s var(--ease), color .2s var(--ease); }
nav a:hover, nav a[aria-current='page'] { color: var(--text); background: color-mix(in oklab, var(--accent) 10%, transparent); }

main { flex: 1; width: 100%; max-width: 62rem; margin: 0 auto; padding: 2.25rem 1.25rem 3rem; animation: rise .35s var(--ease) both; }
main.prose { max-width: 48rem; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 2.4rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 0 0 .35rem; letter-spacing: -.01em; }
.grad { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.18rem; max-width: 42rem; margin: 0 0 1.5rem; }
.hero { padding: 1.5rem 0 .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .6rem; }
.small { color: var(--muted); font-size: .9rem; }

.btn-primary, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.25rem; border-radius: var(--radius-sm); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--fill-1), var(--fill-2)); border: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 16px -6px color-mix(in oklab, var(--accent) 75%, transparent); }
.btn-primary:hover { filter: brightness(1.08) saturate(1.05); transform: translateY(-1px); }
.btn { color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--border)); background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.btn-primary:active, .btn:active { transform: translateY(0) scale(.975); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.15rem 1.25rem; }
.panel p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
.panel.wide { margin-top: 1rem; }
.chip { display: inline-block; padding: .1rem .6rem; margin-left: .4rem; border-radius: 999px; background: color-mix(in oklab, var(--accent) 13%, transparent); color: var(--accent-text); font-size: .75rem; font-weight: 600; vertical-align: middle; letter-spacing: 0; }

.prose p, .prose li { max-width: 44rem; }
.prose ul { padding-left: 1.25rem; } .prose li { margin: .3rem 0; }
.prose h1 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
code { background: color-mix(in oklab, var(--text) 8%, transparent); padding: .08rem .35rem; border-radius: 6px; font-size: .92em; }

.pay { max-width: 34rem; margin: 2rem auto 0; text-align: center; padding: 2rem 1.5rem; box-shadow: var(--shadow-md); }
.pay .brand-mark { display: inline-block; margin-bottom: .75rem; }
.pay h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.pay #state { color: var(--text); font-size: 1.1rem; font-weight: 500; margin: 0 0 1rem; }
.pay p { color: var(--muted); }
.pay p + p { margin-top: .75rem; }

footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
footer .wrap { padding-top: 1.1rem; padding-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; }
footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
footer a { color: var(--muted); } footer a:hover { color: var(--text); }

@media (max-width: 30rem) { header.bar .wrap { justify-content: center; } main { padding-top: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } html { scroll-behavior: auto; } .btn-primary, .btn, nav a { transition: none; } .btn-primary:hover { transform: none; } }
