/* Name Pending — site theme.
   Tokens mirror app/src/client/styles.css so the site and app read as one brand. */

:root {
  color-scheme: dark;
  --bg: #10110f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: #181a17;
  --line: rgba(246, 240, 232, 0.14);
  --text: #fbf7ef;
  --muted: #aaa49a;
  --muted-strong: #c7c0b6;
  --muted-soft: #817b72;
  --pink: #f064b4;
  --violet: #9287ff;
  --blue: #39bdf4;
  --gold: #f0c35b;
  --cream: #f8f2e8;
  --focus: #8fb4ff;
  --brand-gradient: linear-gradient(135deg, var(--pink), var(--violet) 52%, var(--blue));
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* The app's signature corner glows, fixed so they hold on long pages. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 100, 180, 0.16), transparent 34%),
    radial-gradient(circle at 88% 2%, rgba(57, 189, 244, 0.16), transparent 34%),
    linear-gradient(135deg, #10110f 0%, #151914 56%, #111012 100%);
}

::selection {
  background: rgba(240, 100, 180, 0.32);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 30px rgba(57, 189, 244, 0.15);
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}

/* ---------- Main ---------- */

main {
  flex: 1;
  padding-block: 28px 64px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Landing ---------- */

.hero {
  text-align: center;
  padding-block: clamp(34px, 8vw, 84px) clamp(28px, 5vw, 48px);
}

.hero .eyebrow {
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 auto;
  max-width: 15ch;
  font-size: clamp(2.15rem, 6.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.dots {
  display: inline-block;
  white-space: nowrap;
}

.dots i {
  display: inline-block;
  width: 0.135em;
  height: 0.135em;
  margin-left: 0.1em;
  border-radius: 50%;
  animation: dot-pulse 2.6s ease-in-out infinite;
}

.dots i:nth-child(1) {
  background: var(--pink);
}

.dots i:nth-child(2) {
  background: var(--violet);
  animation-delay: 0.35s;
}

.dots i:nth-child(3) {
  background: var(--blue);
  animation-delay: 0.7s;
}

@keyframes dot-pulse {
  0%, 60%, 100% {
    transform: none;
    opacity: 1;
  }
  30% {
    transform: translateY(-0.12em);
    opacity: 0.72;
  }
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 36em;
  color: var(--muted-strong);
  font-size: 1.06rem;
}

.store-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.store-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.9rem;
  color: var(--muted);
}

.store-pill strong {
  color: var(--text);
  font-weight: 750;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(20px, 4vw, 36px);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 22px;
}

.card .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(57, 189, 244, 0.15);
  margin-bottom: 14px;
}

.card h2,
.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.fineprint {
  margin-top: clamp(26px, 5vw, 40px);
  text-align: center;
  color: var(--muted-soft);
  font-size: 0.8rem;
}

/* ---------- Document pages (legal, support) ---------- */

.doc {
  max-width: 70ch;
  margin-inline: auto;
}

.doc-header {
  margin-bottom: 30px;
}

.doc-header h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 4.5vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.doc-meta {
  color: var(--muted-soft);
  font-size: 0.88rem;
  margin: 0;
}

.doc h2 {
  margin: 2.1em 0 0.5em;
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}

.doc p,
.doc li {
  color: var(--muted-strong);
  font-size: 0.97rem;
}

.doc strong {
  color: var(--text);
  font-weight: 700;
}

.doc a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(57, 189, 244, 0.4);
  text-underline-offset: 3px;
}

.doc a:hover {
  text-decoration-color: var(--blue);
}

.doc ul {
  padding-left: 1.25em;
  margin: 0.6em 0 1em;
}

.doc li {
  margin-block: 0.4em;
}

.doc li::marker {
  color: var(--muted-soft);
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 58%),
    var(--panel);
  padding: 18px 20px;
  margin: 26px 0 6px;
}

.summary-card .eyebrow {
  margin-bottom: 8px;
}

.summary-card ul {
  margin: 0;
}

.summary-card p:last-child,
.summary-card ul:last-child {
  margin-bottom: 0;
}

.contact-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.contact-pill:hover {
  border-color: rgba(246, 240, 232, 0.3);
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding-block: clamp(50px, 12vw, 120px);
}

.notfound h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.notfound p {
  color: var(--muted);
  margin: 0 0 26px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 24px 42px;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Responsive & motion ---------- */

@media (max-width: 760px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots i {
    animation: none;
  }

  .site-nav a {
    transition: none;
  }
}
