/* SwagNotes — sito. Nessuna risorsa esterna: font di sistema, nessuno script, nessun cookie. */

:root {
  --paper: #faf6ec;
  --paper-deep: #f3ecdc;
  --desk: #e7e3da;
  --rule: #e2d9c6;
  --ink: #1d1c1a;
  --ink-soft: #4a463f;
  --muted: #736c60;
  --accent: #2c4aa6;
  --accent-ink: #ffffff;
  --accent-soft: #e4e9f7;
  --card: #fffdf8;
  --line: rgba(29, 28, 26, 0.1);
  --shadow: 0 1px 2px rgba(40, 32, 18, 0.06), 0 12px 32px -8px rgba(40, 32, 18, 0.18);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --max: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17171a;
    --paper-deep: #1d1d21;
    --desk: #111113;
    --rule: #26262b;
    --ink: #efebe3;
    --ink-soft: #cfc9be;
    --muted: #9c968b;
    --accent: #8fa6f0;
    --accent-ink: #101320;
    --accent-soft: #232a40;
    --card: #1f1f23;
    --line: rgba(239, 235, 227, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* Navigazione */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
@media (max-width: 560px) { .nav-links .optional { display: none; } .nav-links a { padding: 8px 10px; } }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    linear-gradient(to bottom, transparent, var(--paper) 92%),
    repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
}
.hero::before { /* margine rosso del quaderno */
  content: ""; position: absolute; inset: 0 auto 0 max(20px, calc(50% - 640px));
  width: 1px; background: color-mix(in srgb, #c2463c 45%, transparent); opacity: 0.6;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 22px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 76px); }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); margin: 24px 0 32px; max-width: 34em; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 14px; line-height: 1.15;
  box-shadow: var(--shadow);
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; opacity: 0.75; }
.store strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.note { font-size: 14px; color: var(--muted); }

.devices { position: relative; padding-bottom: 4%; }
.tablet, .phone { filter: drop-shadow(0 2px 4px rgba(20, 16, 10, 0.14)) drop-shadow(0 28px 36px rgba(20, 16, 10, 0.24)); }
.devices .tablet { width: 82%; margin-left: auto; }
.devices .phone { position: absolute; left: 2%; bottom: 0; width: 30%; z-index: 2; }

/* Fascia valori */
.values { padding: 28px 0 8px; }
.values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.values li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; font-weight: 550; font-size: 15px; }
.values svg { width: 22px; height: 22px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sezioni funzione */
section { scroll-margin-top: 80px; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.section-head p { color: var(--ink-soft); font-size: 19px; margin: 18px 0 0; }
.features { padding: 96px 0 40px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px dashed var(--rule); }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-media { position: relative; }
.feature-media .tablet { max-width: 440px; margin-inline: auto; }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 16px; }
.feature .kicker { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.feature p { color: var(--ink-soft); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(0.32em + 4px); width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Griglia "e ancora" */
.more { padding: 56px 0 96px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.tile h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Privacy in evidenza */
.privacy-band { padding: 0 0 96px; }
.privacy-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: 28px; padding: 40px 44px;
}
.privacy-card svg { width: 56px; height: 56px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.privacy-card h2 { font-size: clamp(26px, 3vw, 36px); }
.privacy-card p { margin: 10px 0 0; opacity: 0.8; max-width: 40em; }
.button { display: inline-block; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 12px; background: var(--paper); color: var(--ink); white-space: nowrap; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.legal { flex-basis: 100%; font-size: 12.5px; }

/* Pagine di testo (privacy, supporto) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc header { margin-bottom: 40px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); }
.doc .meta { color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc h3 { font-size: 21px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 8px; }
.summary ul { margin: 10px 0 0; }
.langs { display: inline-flex; gap: 6px; margin-top: 20px; }
.langs a { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.langs a:hover { background: var(--accent-soft); color: var(--ink); }
.doc .second-title { font-size: clamp(32px, 4vw, 44px); margin-top: 56px; }
.summary.spaced { margin-top: 28px; }
.divider { border: 0; border-top: 1px dashed var(--rule); margin: 72px 0 0; }
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--accent-soft); border-radius: var(--radius); padding: 24px 26px; margin: 8px 0 0;
}
.contact p { margin: 0; color: var(--ink); }
.contact a.button { background: var(--accent); color: var(--accent-ink); }
.button-accent { display: inline-block; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 18px; }
details p { margin: 0 0 10px; }
kbd { font-family: var(--sans); font-size: 0.9em; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .devices { min-height: 0; max-width: 560px; margin-inline: auto; width: 100%; }
  .values ul { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media .tablet { max-width: 400px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-card { grid-template-columns: 1fr; padding: 32px 28px; gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .values ul, .grid { grid-template-columns: 1fr; }
  .features { padding-top: 72px; }
  .section-head { margin-bottom: 32px; }
  .hero::before { display: none; }
  .devices .tablet { width: 86%; }
  .devices .phone { width: 34%; left: 0; }
}
