/* ===== NovaPop theme: warm, playful, poppy ===== */
:root {
  color-scheme: light dark;
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;

  --bg: #fffaf6; --card: #ffffff; --soft: #fff1ea; --line: #f3e3da;
  --fg: #2a1530; --fg-soft: #4a3550; --muted: #866f86;
  --accent: #f0367a; --accent-ink: #c8145a; --accent-soft: #ffe3ee; --on-accent: #fff;
  --grad: linear-gradient(120deg, #ff3d7f 0%, #ff7a45 55%, #ffb627 100%);
  --shadow: 0 1px 2px rgba(80, 20, 60, .04), 0 10px 30px -12px rgba(240, 54, 122, .18);
  --btn-shadow: 0 10px 24px -8px rgba(255, 61, 127, .55);
  --hero-bg:
    radial-gradient(600px 340px at 88% 10%, rgba(255, 182, 39, .30), transparent 70%),
    radial-gradient(520px 360px at 70% 85%, rgba(140, 82, 255, .20), transparent 70%),
    radial-gradient(640px 380px at 10% 0%, rgba(255, 61, 127, .22), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(200, 20, 90, .10) 1px, transparent 0) 0 0/22px 22px;

  --band-bg: linear-gradient(120deg, #ff3d7f 0%, #ff6a4d 50%, #ff9a2f 100%);
  --band-fg: #fff;
  --band-deco:
    radial-gradient(260px 200px at 95% 0%, rgba(255, 255, 255, .35), transparent 70%),
    radial-gradient(220px 160px at 0% 100%, rgba(120, 50, 255, .35), transparent 70%);
  --band-btn: #fff; --band-btn-fg: #c8145a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140a17; --card: #1e1022; --soft: #28152c; --line: #36203a;
    --fg: #fff3f8; --fg-soft: #e8d6e6; --muted: #b29ab4;
    --accent: #ff5c94; --accent-ink: #ff8ab3; --accent-soft: #3a1630;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --hero-bg:
      radial-gradient(600px 340px at 88% 10%, rgba(255, 150, 40, .20), transparent 70%),
      radial-gradient(520px 360px at 70% 85%, rgba(140, 82, 255, .22), transparent 70%),
      radial-gradient(640px 380px at 10% 0%, rgba(255, 61, 127, .25), transparent 70%),
      radial-gradient(circle at 1px 1px, rgba(255, 140, 190, .10) 1px, transparent 0) 0 0/22px 22px;
  }
}

/* ===== Shared layout. Colors and fonts come from the theme file prepended at build time. ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16.5px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 650; }
h1, h2, h3 { font-family: var(--font-head); color: var(--fg); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 6px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font: 700 19px/1 var(--font-head); color: var(--fg); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a {
  color: var(--muted); font-size: 15px; font-weight: 550; padding: 8px 14px; border-radius: 999px;
}
.topbar nav a:hover { color: var(--fg); background: var(--soft); text-decoration: none; }
.topbar nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero-bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 16px; max-width: 760px;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero.small { padding: 56px 0 48px; }
.hero.small h1 { font-size: clamp(32px, 5vw, 48px); }
.hero .meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.hero .meta > span {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  font: 650 16px/1 var(--font-body); padding: 14px 22px; border-radius: 999px;
  background: var(--grad); color: var(--on-accent); box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.ghost { background: var(--card); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.button svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
a.card { color: var(--fg); display: block; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.quick { margin-top: -28px; position: relative; z-index: 2; }

section.block { padding: 56px 0 8px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Apps list ---------- */
.apps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.apps a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--fg); font-weight: 600;
}
.apps a::before {
  content: ""; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); flex: none;
}
.apps a:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 24px; grid-template-columns: 240px 1fr; align-items: start; }
.faq-group + .faq-group { margin-top: 28px; }
.faq-group h3 {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; font-family: var(--font-body);
}
.faq aside { position: sticky; top: 88px; }
.faq aside h2 { font-size: clamp(24px, 3vw, 28px); line-height: 1.2; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 10px; transition: border-color .15s ease;
}
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
summary {
  cursor: pointer; font-weight: 650; list-style: none; padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--accent-soft) center/12px no-repeat;
  background-image: linear-gradient(var(--accent-ink), var(--accent-ink)), linear-gradient(var(--accent-ink), var(--accent-ink));
  background-size: 12px 2px, 2px 12px; background-position: center;
  transition: transform .2s ease;
}
details[open] summary::after { background-size: 12px 2px, 0 0; transform: rotate(180deg); }
details > div { padding: 0 18px 16px; color: var(--fg-soft); }
details > div p { margin: 0 0 10px; }
details > div p:last-child { margin-bottom: 0; }

/* ---------- Contact band ---------- */
.contact {
  margin: 64px 0 0; padding: 36px; border-radius: calc(var(--radius) + 6px);
  background: var(--band-bg); color: var(--band-fg);
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  position: relative; overflow: hidden; isolation: isolate;
}
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-deco); }
.contact h2 { color: inherit; margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.contact p { margin: 0; opacity: .85; max-width: 560px; }
.contact a.mail { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact .button { background: var(--band-btn); color: var(--band-btn-fg); box-shadow: none; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 24px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; color: var(--muted); padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
article.doc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); min-width: 0;
}
article.doc h2 {
  font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 10px; scroll-margin-top: 88px;
  display: flex; align-items: center; gap: 10px;
}
article.doc h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--grad); flex: none; }
article.doc h2:first-child { margin-top: 0; }
article.doc p, article.doc li { color: var(--fg-soft); }
article.doc p { margin: 0 0 14px; }
article.doc ul { margin: 0 0 14px; padding-left: 22px; }
article.doc li { margin: 6px 0; }
article.doc li::marker { color: var(--accent); }
.list { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px; margin: 0 0 14px; }
.list ul { margin: 8px 0; }

/* ---------- Footer ---------- */
footer.site { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .faq, .legal { grid-template-columns: 1fr; }
  .faq aside { position: static; }
  .toc { display: none; }
  .legal { padding-top: 8px; }
}
@media (max-width: 560px) {
  .topbar .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .topbar nav { width: 100%; justify-content: space-between; }
  .topbar nav a { padding: 6px 10px; }
  .hero { padding: 48px 0 56px; }
  .contact { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, footer.site, .toc, .contact { display: none; } article.doc { border: 0; box-shadow: none; } }
