/* Same tokens as the desktop app (apps/desktop/src/renderer/src/styles.css), so the site and the app look like one product. */
:root {
  --bg: #f5f4fa; --panel: #ffffff; --text: #191a1f; --muted: #626774; --line: #e6e5e0;
  --accent: #4f46e5; --accent-soft: #eceafd; --accent-text: #fff;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 1px 1px rgba(20, 20, 30, .03);
  --radius: 12px; --glow: .18;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111219; --panel: #1a1c22; --text: #ecedf1; --muted: #9a9fab; --line: #292c33;
    --accent: #8b85ff; --accent-soft: #25233f; --accent-text: #0e0d1f;
    --shadow: none; --glow: .2;
  }
}
/* Anything that sets --hue gets a matching soft tint, readable ink and a solid fill, in both themes. */
[style*="--hue"] { --tint: hsl(var(--hue) 90% 96%); --tint-2: hsl(var(--hue) 85% 91%); --ink: hsl(var(--hue) 62% 36%); --solid: hsl(var(--hue) 78% 60%); --solid-2: hsl(calc(var(--hue) + 28) 82% 66%); }
@media (prefers-color-scheme: dark) {
  [style*="--hue"] { --tint: hsl(var(--hue) 45% 15%); --tint-2: hsl(var(--hue) 45% 21%); --ink: hsl(var(--hue) 90% 78%); --solid: hsl(var(--hue) 80% 64%); --solid-2: hsl(calc(var(--hue) + 28) 85% 70%); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
  /* The app's background glows: two at the top that scroll away, two quieter washes that stay put. */
  background:
    radial-gradient(900px 420px at 12% -8%, hsl(245 90% 68% / var(--glow)), transparent 70%),
    radial-gradient(760px 400px at 92% -12%, hsl(320 90% 70% / var(--glow)), transparent 70%),
    radial-gradient(900px 600px at 100% 100%, hsl(190 85% 60% / calc(var(--glow) * .55)), transparent 70%),
    radial-gradient(800px 560px at 0% 70%, hsl(270 85% 66% / calc(var(--glow) * .45)), transparent 70%),
    var(--bg);
  background-attachment: scroll, scroll, fixed, fixed;
}
h1, h2, h3 { letter-spacing: -0.01em; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---- Header ---- */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; flex: none; background: linear-gradient(135deg, hsl(245 85% 62%), hsl(300 80% 64%)); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -4px hsl(270 80% 55% / .55); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-weight: 650; font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 500; }
header.top nav { display: flex; gap: 4px; }
header.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; transition: background .12s, color .12s; }
header.top nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

/* ---- Hero ---- */
.hero { padding: 64px 0 56px; text-align: center; }
.hero .hero-mark { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 24px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; font-weight: 650; margin: 0 auto 16px; max-width: 16em; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, hsl(245 80% 60%), hsl(300 75% 60%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0 auto 28px; }
.hero .actions { justify-content: center; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* ---- Buttons ---- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .12s, filter .12s, transform .05s; }
.btn:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, hsl(245 80% 60%), hsl(275 75% 60%)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px -6px hsl(255 80% 55% / .7); }
.btn.primary:hover { filter: brightness(1.08); }

/* ---- Sections and cards ---- */
section { padding: 48px 0; }
section h2 { font-size: 28px; font-weight: 650; margin: 0 0 8px; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin: 12px 0 6px; font-size: 16px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.feature { background: linear-gradient(150deg, var(--tint) 0%, var(--panel) 55%); }
.tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--solid), var(--solid-2)); box-shadow: 0 4px 12px -5px var(--solid); }
.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 14px; }
.pill { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }

.privacy-card { padding: 28px; background: linear-gradient(150deg, var(--tint) 0%, var(--panel) 60%); }
.privacy-card h2 { margin-top: 14px; }
.privacy-card p.sub { color: var(--muted); margin: 0 0 18px; }
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--tint-2) center / 14px no-repeat; }
.checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8a58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc38a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E"); }
}

.faq { padding: 4px 20px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

footer { padding: 28px 0 44px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 24px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
footer .brand-text b { font-size: 14px; }
footer a { color: var(--muted); }

/* ---- Privacy policy page ---- */
.doc { max-width: 720px; padding: 24px 16px 64px; margin: 0 auto; }
.doc .back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; }
.doc .back .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.doc .paper { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 28px 28px; margin-top: 20px; }
.doc h1 { font-size: 32px; font-weight: 650; margin: 20px 0 4px; }
.doc h2 { font-size: 19px; font-weight: 600; margin-top: 32px; }
.doc .meta { color: var(--muted); }
.doc .draft { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.doc code { font-size: 14px; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }

@media (max-width: 560px) {
  header.top nav a { padding: 6px 7px; }
  .brand-text small { display: none; }
  .hero { padding-top: 32px; }
  .hero .btn { justify-content: center; flex: 1 1 100%; }
  .doc .paper { padding: 4px 18px 20px; }
}
