:root {
  color-scheme: light dark;
  --bg: #fffaf5;
  --text: #2b2420;
  --muted: #74675f;
  --card: #ffffff;
  --line: #f0e3d6;
  --accent: #e2611b;
  --pill: #f7843a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1613;
    --text: #f5ede6;
    --muted: #b2a59b;
    --card: #26201b;
    --line: #3a302a;
    --accent: #ff9a5c;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

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

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

nav {
  display: flex;
  gap: 18px;
}

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

nav a[aria-current="page"] {
  color: var(--text);
}

.lang {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Home */

.hero {
  padding: 40px 0 36px;
  text-align: center;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 14px 32px rgba(226, 97, 27, 0.28);
}

.hero h1 {
  margin: 22px 0 6px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero p {
  max-width: 28em;
  text-wrap: balance;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.pill {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--pill);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

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

.feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.note {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
}

/* Documents (privacy, support) */

.doc h1 {
  margin: 28px 0 4px;
  font-size: 32px;
  line-height: 1.2;
}

.doc h2 {
  margin: 34px 0 6px;
  font-size: 20px;
}

.doc h3 {
  margin: 22px 0 4px;
  font-size: 17px;
}

.updated {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.box {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.box p {
  margin: 0;
}

.box ul {
  margin: 0;
}

hr.sep {
  margin: 56px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Languages: lang.js shows one at a time. Without it both show, English
   first, and the short labels stay in English. */

html.show-en section[lang="it"],
html.show-it section[lang="en"],
html.show-en hr.sep,
html.show-it hr.sep {
  display: none;
}

.t-it {
  display: none;
}

html.show-it .t-it {
  display: inline;
}

html.show-it .t-en {
  display: none;
}

html.show-en .lang a[href="#en"],
html.show-it .lang a[href="#it"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */

footer {
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 420px) {
  .hero h1 {
    font-size: 34px;
  }

  .doc h1 {
    font-size: 28px;
  }

  nav {
    gap: 14px;
  }
}
