/* Volta website: one stylesheet for every page.
   COLORS: change the variables in :root (light) and in the dark block below. Nothing else hard-codes a color.
   FONTS: system font stack, nothing to download. */

:root {
  /* Brand (same values as the app icon) */
  --indigo: #2e2a8a;
  --mid: #4c3bd6;
  --violet: #7a2fc4;
  --cream: #fbf8f1;

  /* Hero gradient stops */
  --g1: #2e2a8a;
  --g2: #4c3bd6;
  --g3: #7a2fc4;

  /* Page */
  --bg: #fbf8f1;
  --text: #1c1b33;
  --muted: #55527a;
  --card: #ffffff;
  --border: #e3dfd2;
  --accent: #4c3bd6;      /* links, buttons on light backgrounds */
  --on-accent: #fbf8f1;
  --placeholder-bg: #efeaff;

  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --g1: #161447;
    --g2: #2a1f82;
    --g3: #43187a;
    --bg: #100f2a;
    --text: #f1eefc;
    --muted: #b4b0d8;
    --card: #1a1840;
    --border: #2c2a5a;
    --accent: #9a8cff;
    --on-accent: #100f2a;
    --placeholder-bg: #231f55;
  }
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  color: var(--cream);
  padding: 72px 0 64px;
}
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: 1.2rem; margin: 0 0 28px; max-width: 34em; opacity: .96; }
.hero .logo { justify-self: center; width: min(260px, 60vw); border-radius: 22%; box-shadow: 0 20px 50px rgba(0,0,0,.35); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--cream); color: var(--indigo);
  padding: 14px 26px; border-radius: 999px;
}
.btn:hover { filter: brightness(.95); }
.btn.secondary { background: transparent; color: var(--cream); border: 2px solid var(--cream); margin-left: 8px; }
.note { font-size: .95rem; opacity: .9; margin-top: 14px; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block + section.block { padding-top: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 42em; margin: 0 0 32px; }

.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Screenshots (placeholders until real ones exist) ---------- */
.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shot figure { margin: 0; }
.shot .frame {
  aspect-ratio: 3 / 4; border-radius: 22px; border: 8px solid #1c1b33; background: var(--placeholder-bg);
  display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-weight: 600;
  overflow: hidden;
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: .98rem; text-align: center; }

/* ---------- FAQ / documents ---------- */
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 4px 18px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

.doc { width: min(720px, 100% - 32px); margin: 0 auto; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 6px; }
.doc p { margin: 0 0 12px; }
.updated { color: var(--muted); font-size: .95rem; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .logo { order: -1; width: 120px; justify-self: start; }
  .btn.secondary { margin: 12px 0 0; }
}
