/*
 * Lo sapevo — the website (the pages are made by tools/make-site.mjs; this file is copied as it is).
 * The look is the app's (src/theme.ts): dark glass in the colours of the logo — black, the cream
 * of its letters, the magenta of the slash used only as light — and gold for gettoni. No magenta
 * edges anywhere (the user, 2026-11-23: «togli i bordi fucsia»). Quick, plain motion.
 * The fonts are on the site itself: a visitor's browser asks nothing of anyone else.
 */
@font-face { font-family: Cabin; src: url(font/Cabin_500Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Cabin; src: url(font/Cabin_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Cabin; src: url(font/Cabin_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0708;
  --text: #f7f0e6;
  --dim: #cdc4ba;
  --mute: #948b85;
  --cream: #f4eadb;
  --on-cream: #160b10;
  --link: #ff5c97;
  --gold: #f6c651;
  --line: rgba(255, 246, 236, 0.1);
  --line2: rgba(255, 246, 236, 0.18);
  --glass: linear-gradient(160deg, rgba(255, 244, 232, 0.1), rgba(255, 244, 232, 0.03));
  --well: rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 34px rgba(4, 2, 10, 0.46), 0 3px 8px rgba(4, 2, 10, 0.28);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.55 Cabin, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* the two lights of the logo's tile, still behind the glass */
.lights {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70vmax 70vmax at -15% -20%, rgba(196, 15, 82, 0.5), transparent 60%),
    radial-gradient(60vmax 60vmax at 115% 115%, rgba(196, 15, 82, 0.28), transparent 60%),
    var(--bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

/* ── the top row: the name, and two ways in ───────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 6px; }
.brand img { display: block; height: 46px; width: auto; }
.top nav { display: flex; gap: 2px; }
.top nav a { color: var(--dim); font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.top nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }

/* ── the first screen ─────────────────────────────────────────────────────────────────── */
.hero { display: grid; gap: 40px; padding-top: 30px; padding-bottom: 10px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--dim); font-weight: 600; font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2372; box-shadow: 0 0 12px rgba(255, 35, 114, 0.8); flex: none; }
.hero h1 { font-size: clamp(42px, 10vw, 70px); line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
.lead { color: var(--dim); font-size: clamp(17px, 2.4vw, 20px); margin: 18px 0 26px; max-width: 33em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
/* what will be a link to the store: cream, like everything that is pressed in the app */
.pill { display: inline-flex; flex-direction: column; justify-content: center; height: 60px; padding: 0 28px; border-radius: 999px; background: linear-gradient(135deg, #fff9ef, #eaddcb); color: var(--on-cream); font-weight: 700; font-size: 17px; line-height: 1.15; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.5) inset; }
.pill small { font-weight: 600; font-size: 13px; opacity: 0.62; }
.cta .more { color: var(--dim); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 14px; font-weight: 600; color: var(--dim); padding: 6px 13px; border-radius: 999px; background: var(--well); border: 1px solid var(--line); }

/* the app on three phones: the middle one in front */
.phones { display: flex; justify-content: center; align-items: center; }
.phone { flex: none; width: 27vw; max-width: 208px; aspect-ratio: 1206 / 2622; border-radius: clamp(18px, 4.6vw, 34px); overflow: hidden; background: #000; border: 1px solid var(--line2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), var(--edge); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone.side { opacity: 0.92; }
.phone.side:first-child { transform: translateX(14%) scale(0.9) rotate(-4deg); }
.phone.side:last-child { transform: translateX(-14%) scale(0.9) rotate(4deg); }
.phone.main { width: 34vw; max-width: 262px; position: relative; z-index: 1; }

/* ── parts of the page ────────────────────────────────────────────────────────────────── */
.part { padding-top: 70px; }
.part > h2, .part > .wrap > h2 { font-size: clamp(30px, 6vw, 42px); line-height: 1.08; margin: 0 0 10px; }
.part .sub { color: var(--dim); margin: 0 0 26px; max-width: 36em; font-size: 18px; }

.card { position: relative; border-radius: 32px; padding: 24px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow), var(--edge); }
.card h3 { margin: 16px 0 6px; font-size: 21px; line-height: 1.2; }
.card p { margin: 0; color: var(--dim); }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
.icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line2); color: var(--cream); }
.icon svg { width: 24px; height: 24px; }

.shows { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shows li { padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; }
.small { color: var(--mute); font-size: 14px; margin: 14px 0 0; }

.promise { display: grid; gap: 18px; grid-template-columns: 1fr; }
.promise h3 { margin: 0 0 4px; font-size: 19px; }
.promise p { margin: 0; color: var(--dim); }
.promise .row { display: flex; gap: 14px; align-items: flex-start; }
.promise .icon { width: 44px; height: 44px; }
.helpline { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); }
.gold { color: var(--gold); }

.end { text-align: center; padding-top: 80px; padding-bottom: 10px; }
.end h2 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 18px; }
.end .cta { justify-content: center; }

/* ── the bottom ───────────────────────────────────────────────────────────────────────── */
footer.wrap { margin-top: 80px; padding-top: 28px; padding-bottom: calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; }
footer nav a { color: var(--dim); font-weight: 600; }
footer p { margin: 6px 0; }

/* ── the texts: rules, terms, privacy, support ────────────────────────────────────────── */
.doc { max-width: 780px; margin: 0 auto; padding: 26px 20px 0; }
.doc h1 { font-size: clamp(36px, 8vw, 54px); line-height: 1.05; margin: 0; }
.updated { color: var(--mute); font-size: 15px; margin: 12px 0 24px; }
.doc .intro { color: var(--dim); font-size: 18px; margin: 0 0 18px; }
.doc section, .doc details, .box { border-radius: 26px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--edge); margin: 12px 0; }
.doc section, .box { padding: 22px 22px 8px; }
.doc h2 { font-size: 20px; margin: 0 0 8px; line-height: 1.25; }
.doc p, .doc li { color: var(--dim); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.15em; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--mute); }
.doc strong { color: var(--text); }
mark.todo { background: none; color: var(--gold); border-bottom: 1px dashed var(--gold); }

/* the questions of Supporto, one open at a time */
.doc summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 18px; line-height: 1.3; position: relative; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s; }
.doc details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.doc details > div { padding: 0 22px 6px; }

/* steps, numbered in a dark well */
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; margin: 12px 0; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line2); color: var(--cream); font-weight: 700; font-size: 15px; }

.back { display: inline-block; margin: 0 0 18px; color: var(--dim); font-weight: 600; }

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: 64px; }
  .phone { width: 190px; }
  .phone.main { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
