/* Public site — same palette as the app, but built for reading and for
   mobile: most visitors will arrive from a social link on a phone. */

:root {
  --bg: #061420;
  --bg-raised: #0c2233;
  --bg-input: #071a29;
  --line: #16394f;
  --text: #dceaf6;
  --muted: #8aa5ba;
  --accent: #35c8ff;
  --accent-ink: #04202e;
  --good: #5be0a8;
  --warm: #ffc46b;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(130% 80% at 50% 0%, #0a2438 0%, var(--bg) 55%);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.1rem; }
.narrow { max-width: 46rem; }
section, article { margin: 2.6rem auto; }

h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 0 0 0.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 44rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

/* —————————————————————— header / footer —————————————————————— */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 20, 32, 0.82);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #1b6c9a);
  box-shadow: 0 0 12px rgba(53, 200, 255, 0.5);
}
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.site-head nav { display: flex; align-items: center; gap: 0.4rem 1rem; flex-wrap: wrap; justify-content: flex-end; }
.site-head nav a { color: var(--muted); font-size: 0.94rem; }
.site-head nav a:hover { color: var(--text); }
.site-head nav a.btn { color: var(--accent-ink); }

.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 3rem; }
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
.foot-title { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.3rem; font-size: 0.94rem; }

/* —————————————————————— hero & buttons —————————————————————— */

.hero { padding: 3.2rem 0 1rem; margin-top: 0; }
.hero .lede { margin-bottom: 1.6rem; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; border: 1px solid var(--accent); border-radius: 10px;
  padding: 0.66rem 1.15rem; cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--accent); }

.handle-form { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 34rem; }
.handle-form input {
  flex: 1 1 15rem; font: inherit; color: var(--text); background: var(--bg-input);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.66rem 0.8rem;
}
.handle-form input:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* —————————————————————— cards, stats, lists —————————————————————— */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; background: rgba(53, 200, 255, 0.14); color: var(--accent);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem;
}

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.7rem; margin: 1.4rem 0; }
.stat {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.85rem; text-align: center;
}
.stat.accent { border-color: rgba(255, 196, 107, 0.4); }
.stat-value { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { display: block; color: var(--muted); font-size: 0.85rem; }

.profile { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.avatar { border-radius: 50%; border: 1px solid var(--line); }

.score-box {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; margin-top: 1rem;
}
.score-ring {
  --score: 0;
  width: 5.2rem; height: 5.2rem; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), #12324a 0);
  position: relative; flex: none;
}
.score-ring::after {
  content: ''; position: absolute; inset: 0.55rem; border-radius: 50%; background: var(--bg-raised);
}
.score-value { position: relative; z-index: 1; font-size: 1.5rem; font-weight: 700; }
.score-box h2 { margin-bottom: 0.2rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.people { list-style: none; padding: 0; margin: 0; }
.people li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.people a { display: flex; flex-direction: column; color: var(--text); min-width: 0; }
.people a:hover .person-name { text-decoration: underline; }
.person-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-count { white-space: nowrap; font-variant-numeric: tabular-nums; }

.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
}

.notice, .alert {
  border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.94rem;
  border: 1px solid var(--line); background: var(--bg-raised);
}
.alert { border-color: #5a4520; color: var(--warm); }

.cta {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.cta p { color: var(--muted); max-width: 34rem; margin: 0 auto 1rem; }
.cta .btn { margin: 0.2rem; }

/* —————————————————————— prose (guides, legal) —————————————————————— */

.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); }
.prose code {
  background: var(--bg-input); border: 1px solid var(--line); border-radius: 5px;
  padding: 0.05rem 0.35rem; font-size: 0.92em;
}
.prose pre { background: var(--bg-input); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; }
.prose blockquote {
  margin: 1rem 0; padding: 0.4rem 0 0.4rem 1rem; border-left: 3px solid var(--line); color: var(--muted);
}
.prose details { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { margin: 0.6rem 0 0; color: var(--muted); }

/* —————————————————————— ads —————————————————————— */

/* Ads live between content blocks, never inside a list of links or next to
   an action button. The label keeps them honest and is required in some
   jurisdictions. */
.ad-slot {
  max-width: 68rem; margin: 2.2rem auto; padding: 0 1.1rem;
  min-height: 100px; text-align: center;
}
.ad-label {
  display: block; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem;
}

/* —————————————————————— responsive —————————————————————— */

@media (max-width: 780px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .site-head nav a:not(.btn) { display: none; }
  .foot-inner { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
