/* Shared stylesheet for the static public pages (home, privacy, terms, contact). */
:root {
  --bg: #16142a;
  --surface: #1f1c3a;
  --border: #322e5a;
  --text: #ece9f7;
  --muted: #a7a3c2;
  --accent: #6d28d9;
  --accent-hover: #7c3aed;
  --highlight: #fbbf24;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: var(--highlight); }
a:hover { text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: 2rem; margin-top: 1em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0.6em 0; }
li { margin: 0.25em 0; }
.muted { color: var(--muted); }
img { max-width: 100%; height: auto; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo img { border-radius: 6px; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.site-header nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-header nav a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn-small { padding: 6px 12px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

.hero { text-align: center; padding: 56px 16px 40px; }
.hero h1 { display: inline-flex; align-items: center; gap: 16px; font-size: 3rem; margin: 0 0 0.3em; }
.hero h1 img { border-radius: 12px; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0.5em auto 1.4em; }
.hero .note { font-size: 0.9rem; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1em 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.card h3 { margin: 0 0 0.3em; }
.card p { margin: 0; color: var(--muted); }
.step-num { display: inline-block; width: 2rem; height: 2rem; line-height: 2rem; text-align: center; border-radius: 50%; background: var(--highlight); color: #16142a; font-weight: 700; margin-bottom: 0.4em; }
/* The desktop screenshot with the phone one overlapping its lower right corner. */
.showcase { max-width: 1120px; margin: 8px auto 0; padding: 0 16px 9%; }
.devices { position: relative; margin: 0 7% 0 0; }
.devices::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(109, 40, 217, 0.45), transparent); filter: blur(40px); z-index: -1; }
.shot-desktop { display: block; width: 100%; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.shot-phone { position: absolute; right: -7%; bottom: -14%; width: 21%; border: 4px solid #2a2650; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); }

.doc { padding-bottom: 32px; }
.doc table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.placeholder { color: var(--highlight); }

form.report { display: grid; gap: 14px; max-width: 560px; }
form.report label { display: grid; gap: 4px; font-weight: 600; }
form.report .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}
#report-status { min-height: 1.5em; }
#report-status.ok { color: #86efac; }
#report-status.err { color: #fca5a5; }

.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer nav { display: flex; gap: 16px; }

@media (max-width: 520px) {
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 2.2rem; gap: 12px; }
  .hero h1 img { width: 44px; height: 44px; }
  .shot-phone { width: 30%; border-width: 3px; border-radius: 14px; bottom: -20%; }
  .showcase { padding-bottom: 16%; }
}
