/* ══════════════════════════════════════════════════════════════════
   SonicAura — edenware.app/sonicaura
   Shared stylesheet for the four page families (product, privacy,
   eula, terms) in both languages. Self-contained: no external fonts,
   no CDN, no framework — the site must render offline and in the
   Store certification crawler.
   ══════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Brand */
  --bg: #10121a;
  --bg-soft: #151827;
  --surface: #181c2e;
  --surface-2: #1e2338;
  --border: #2a3050;
  --text: #eef1f8;
  --muted: #9aa4c0;
  --muted-dim: #7b85a3;

  /* Aurora accents (sampled from the app icon) */
  --a1: #2f6bff;
  --a2: #00d3e0;
  --a3: #a02df0;
  --a4: #00c0a0;
  --aura: linear-gradient(115deg, var(--a1) 0%, var(--a2) 42%, var(--a3) 100%);
  --aura-soft: linear-gradient(115deg, rgba(47, 107, 255, .35), rgba(0, 211, 224, .35) 42%, rgba(160, 45, 240, .35));

  --ok: #17d18b;
  --price: #ffd166;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: #8fb4ff; }
a:hover { color: #b9cfff; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono-num { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 18, 26, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.12rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { letter-spacing: -.01em; }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
  padding: 7px 11px; border-radius: 8px;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.lang-switch { display: flex; gap: 2px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a, .lang-switch span {
  font-size: .82rem; padding: 3px 10px; border-radius: 999px; text-decoration: none;
  color: var(--muted);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch .is-current { background: var(--surface-2); color: var(--text); font-weight: 600; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary {
  background: var(--aura); color: #0a0c14;
  box-shadow: 0 10px 26px rgba(47, 107, 255, .3);
}
.btn-primary:hover { color: #0a0c14; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0, 211, 224, .34); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 8px 15px; font-size: .9rem; border-radius: 10px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ── Pills / badges ─────────────────────────────────────────────── */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pill .dot.aura { background: var(--a2); }
.pill .dot.price { background: var(--price); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(47, 107, 255, .22), transparent 70%),
              radial-gradient(50% 50% at 78% 32%, rgba(160, 45, 240, .2), transparent 70%),
              radial-gradient(45% 45% at 55% 10%, rgba(0, 211, 224, .18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; }
.hero h1 { margin: 0 0 12px; }
.hero h1 .glow {
  background: var(--aura); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--muted); max-width: 42ch; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-art img { width: min(360px, 68vw); filter: drop-shadow(0 22px 60px rgba(0, 211, 224, .28)); }
.hero-art .halo {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--aura-soft); filter: blur(56px); z-index: -1; opacity: .85;
}

/* ── Sections ───────────────────────────────────────────────────── */
section { padding: 62px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--a2); font-weight: 700; margin-bottom: 12px;
}

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
}
.ico svg { width: 18px; height: 18px; stroke: var(--a2); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.pro { border-color: rgba(0, 211, 224, .45); box-shadow: 0 0 0 1px rgba(0, 211, 224, .12), var(--shadow); }
.plan h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.plan .price { font-size: 2.1rem; font-weight: 750; margin: 6px 0 2px; }
.plan .price .was { font-size: .95rem; font-weight: 500; color: var(--muted-dim); }
.plan .price-note { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .96rem; color: var(--text); }
.plan li.no { color: var(--muted-dim); }
.plan li .mk { color: var(--ok); font-weight: 700; }
.plan li.no .mk { color: var(--muted-dim); }
.plan .btn-row { margin-top: auto; }
.plan .tag { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a2); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step .n {
  counter-increment: step; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--aura); color: #0a0c14; font-weight: 750; margin-bottom: 12px;
}
.step .n::before { content: counter(step); }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Requirements */
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.reqs li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }
.reqs strong { display: block; color: var(--text); }
.reqs span { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--a2); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: .96rem; }

/* Download */
.download {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
}
.download-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 30px; align-items: center;
}
.file-line { display: flex; gap: 10px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); margin-top: 14px; }
.file-line code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: .88rem; }
.store-note {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--border); color: var(--muted); font-size: .92rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: #0a0c12; border-top: 1px solid var(--border); padding: 34px 0 26px; }
.site-footer .cols { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { font-size: 1rem; }
.site-footer .brand img { width: 24px; height: 24px; }
.copyright { color: var(--muted-dim); font-size: .85rem; margin: 18px 0 0; }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal-head { padding: 44px 0 8px; }
.legal-head h1 { margin-bottom: 6px; }
.legal-head .eff { color: var(--muted); font-size: .95rem; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; padding-bottom: 60px; }
.legal { max-width: 76ch; }
.legal h2 { margin-top: 2.1em; font-size: 1.28rem; }
.legal h3 { margin-top: 1.6em; font-size: 1.03rem; }
.legal p, .legal li { color: #d3d9ea; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: .5rem; }
.legal .callout {
  background: var(--surface); border-left: 3px solid var(--a2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px; margin: 20px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal code {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 6px; font-size: .88em;
}
.legal-toc { position: sticky; top: 84px; align-self: start; font-size: .92rem; }
.legal-toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 10px; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.legal-footer-links {
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px;
  display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 44px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { width: min(220px, 52vw); }
  .download-card { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; order: -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .site-header .bar { flex-wrap: wrap; gap: 10px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; gap: 2px; }
  .main-nav a { padding: 6px 9px; font-size: .9rem; }
  .lang-switch { margin-left: auto; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .btn-sm { width: auto; }
  .file-line code { word-break: break-all; }
}
