/* Landing di Orbit. I colori sono quelli di web/src/styles/tokens.css: se cambiano
   la', vanno riallineati qui. Il tema scuro segue il sistema, senza JavaScript. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: oklch(0.985 0.005 85);
  --surface: oklch(1 0 0);
  --line: oklch(0.93 0.008 80);
  --ink: oklch(0.23 0.012 60);
  --ink3: oklch(0.52 0.012 60);
  --accent: oklch(0.62 0.13 45);
  --accent-ink: oklch(0.5 0.13 45);
  --btn-bg: oklch(0.23 0.012 60);
  --btn-ink: oklch(0.97 0.006 85);
  --btn-bg-hover: oklch(0.34 0.012 60);
  --shadow: oklch(0.3 0.02 60 / 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.185 0.006 60);
    --surface: oklch(0.235 0.007 60);
    --line: oklch(0.295 0.006 60);
    --ink: oklch(0.95 0.005 85);
    --ink3: oklch(0.72 0.006 85);
    --accent: oklch(0.7 0.13 45);
    --accent-ink: oklch(0.78 0.12 45);
    --btn-bg: oklch(0.9 0.006 85);
    --btn-ink: oklch(0.2 0.008 60);
    --btn-bg-hover: oklch(0.82 0.006 85);
    --shadow: oklch(0.1 0.01 60 / 0.55);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Geist', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-weight: 600; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; max-width: 16ch; margin-inline: auto; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }

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

.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 600; text-decoration: none; }
.header-link { font-weight: 500; text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 20px; }

.hero { padding-block: 56px 72px; text-align: center; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink3); max-width: 38em; margin: 20px auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.note { margin: 14px 0 48px; color: var(--ink3); font: 500 13px/1.4 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.04em; }

.button { display: inline-block; padding: 12px 22px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 500; text-decoration: none; }
.button:hover { background: var(--btn-bg-hover); }
.text-link { font-weight: 500; text-decoration: none; }

.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 12px 40px var(--shadow); }

.features { display: grid; gap: 96px; padding-block: 48px 96px; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature-text p { margin: 0; color: var(--ink3); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 520px; justify-self: center; }
.shot-phone { border-radius: 20px; }

@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 56px; }
  /* Nei blocchi pari il testo passa a destra: le colonne si invertono con lui,
     cosi' lo screenshot resta nella colonna larga. */
  .feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .feature:nth-child(even) .feature-text { order: 2; }
}

.band { padding-block: 64px; border-top: 1px solid var(--line); }

.tiles, .points, .steps { list-style: none; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 24px 0 0; }
.tiles li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 24px 0; color: var(--ink3); }
.points strong { display: block; color: var(--ink); font-weight: 600; }

.steps { counter-reset: step; display: grid; gap: 14px; margin: 28px 0 32px; }
.steps li { counter-increment: step; display: flex; align-items: baseline; gap: 14px; }
.steps li::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-ink);
  font: 500 13px/1 'Geist Mono', ui-monospace, monospace;
}

.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 10px 0 0; color: var(--ink3); max-width: 46em; }

.site-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 32px 48px; border-top: 1px solid var(--line); font-size: 15px; }
.site-footer a { text-decoration: none; }

/* Pagina changelog: stessa colonna della landing, titolo a sinistra. */
.changelog { padding-block: 40px 80px; }
.changelog h1 { margin-inline: 0; }
.changelog .lead { margin: 16px 0 40px; }
.release { padding-block: 32px; border-top: 1px solid var(--line); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 4px; }
.release-head h2 { margin: 0; font: 600 26px/1.2 'Geist Mono', ui-monospace, monospace; letter-spacing: -0.01em; }
.release-head h2 a { color: var(--ink); text-decoration: none; }
.release-head h2 a:hover { color: var(--accent-ink); }
.release-head time, .group { font: 500 12px/1.4 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.release-head time { color: var(--ink3); }
.group { margin: 24px 0 10px; color: var(--accent-ink); }
.entries { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 68ch; }
.entries strong { display: block; font-weight: 600; }
.entries span { color: var(--ink3); }
.week { margin-top: 32px; }
.week h3 { margin: 0; font-size: 19px; font-weight: 600; }
