/* Sono marketing site — brand tokens mirror sono-app/styles.css + tokens.rs.
   Mobile-first; breakpoints at 768px and 1080px. */
:root {
  --c0: #8ee5ee; --c1: #8ad1ab; --c2: #191971;
  --c3: #008b8b; --c4: #1a961a; --c5: #9e91b9;
  --brown: #7e746f;
  --gray: #8e8e93;
  --ink: #1a1a1a;
  --bg: #ffffff;
  --bg-soft: #f6f5f4;
  --radius: 15px;
  --maxw: 1080px;
  --pad: 20px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f2f2; --bg: #121212; --bg-soft: #1c1c1e; --gray: #9b9ba1; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.main { min-height: 60vh; }

/* the 6-tile brand mark */
.mark { display: inline-grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 2px; width: 22px; height: 30px; vertical-align: middle; }
.mark-tile { border-radius: 3px; }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--gray) 30%, transparent);
}
.nav-brand { display: inline-flex; align-items: center; gap: 9px; }
.nav-name { font-weight: 800; font-size: 1.25rem; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--gray); font-weight: 600; font-size: 0.95rem; }
.nav-link:hover { color: var(--ink); }
.lang-toggle {
  border: 1px solid var(--gray); background: none; color: var(--ink);
  border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
@media (max-width: 600px) { .nav-link { display: none; } }

/* --- hero --- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 48px var(--pad) 32px;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}
.hero-title { font-size: 2rem; line-height: 1.15; font-weight: 800; margin: 0 0 14px; }
.hero-sub { font-size: 1.1rem; color: var(--gray); margin: 0 0 22px; max-width: 36ch; }
.btn-primary {
  display: inline-block; background: var(--brown); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; font-size: 1rem;
}
.btn-primary:hover { opacity: 0.92; }
.hero-shot { display: flex; justify-content: center; }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 72px; }
  .hero-title { font-size: 2.8rem; }
}

/* --- phone frame + screenshot slot --- */
.phone {
  position: relative; width: 230px; aspect-ratio: 9 / 19.5;
  background: #0c0c0c; border-radius: 34px; padding: 9px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 16px; background: #0c0c0c; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen {
  position: relative;
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  /* brand-tinted placeholder until a real screenshot is dropped in */
  background: linear-gradient(150deg, var(--c0), var(--c3));
}
/* the real screenshot, layered on top; hidden via onerror when the file is absent */
.phone-screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 12px; text-align: center;
  color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* --- screenshot gallery (up to 12) --- */
.gallery-wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad) 40px; }
.gallery {
  display: grid; gap: 36px 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-items: center;
}
.gcard { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 260px; }
.gcap { text-align: center; }
.gcap h3 { font-size: 1.05rem; margin: 0 0 4px; }
.gcap p { font-size: 0.9rem; color: var(--gray); margin: 0; }

/* --- section heading (shared by the gallery) --- */
.section-title { text-align: center; font-size: 1.8rem; font-weight: 800; margin: 32px 0; }

/* --- download --- */
.download { background: var(--bg-soft); padding: 48px var(--pad); text-align: center; }
.download-note { color: var(--gray); max-width: 44ch; margin: 0 auto 24px; }
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: #000; color: #fff; border-radius: 12px; padding: 8px 18px; min-width: 150px;
}
.badge-soon { opacity: 0.55; }
.badge-top { font-size: 0.7rem; }
.badge-store { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }

/* --- footer --- */
.footer { border-top: 1px solid color-mix(in srgb, var(--gray) 30%, transparent);
  padding: 28px var(--pad); text-align: center; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-link { color: var(--gray); font-weight: 600; font-size: 0.9rem; }
.footer-link:hover { color: var(--ink); }
.footer-copy { color: var(--gray); font-size: 0.85rem; }

/* --- legal pages --- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px var(--pad) 64px; }
.legal h1 { font-size: 2rem; margin: 0 0 8px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 6px; }
.legal p { color: var(--ink); }
.legal-version { color: var(--gray); font-weight: 700; margin-top: 0; }
.legal-todo {
  background: color-mix(in srgb, #ff9500 16%, transparent);
  border: 1px solid color-mix(in srgb, #ff9500 45%, transparent);
  border-radius: var(--radius); padding: 12px 14px; color: var(--ink); font-size: 0.92rem;
}
.legal-back { margin-top: 32px; }
.legal-back a { color: var(--brown); font-weight: 700; }
