/* Solwind — tokens follow the app (apps/mobile/src/theme/tokens.ts). No third-party fonts or scripts. */
:root {
  --n950: #02040a;
  --n900: #040815;
  --n800: #081028;
  --n700: #0d1a3e;
  --green: #14f1a0;
  --mint: #bfffe6;
  --cyan: #2ed3e6;
  --violet: #8b5cf6;
  --ink: rgba(255, 255, 255, 0.96);
  --ink2: rgba(232, 240, 255, 0.74);
  --ink3: rgba(222, 232, 255, 0.56);
  --hair: rgba(255, 255, 255, 0.12);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  --edge: rgba(255, 255, 255, 0.1);
  --radius: 24px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.55 var(--font);
  color: var(--ink);
  background: var(--n950) linear-gradient(180deg, var(--n950) 0%, var(--n900) 40%, var(--n800) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Aurora glow behind everything */
.sky {
  position: fixed;
  inset: -20vh -20vw auto;
  height: 90vh;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.55;
}
.sky span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.sky span:nth-child(1) { left: 18%; top: 4%; width: 60vw; height: 22vh; background: radial-gradient(closest-side, rgba(20, 241, 160, 0.55), transparent); transform: rotate(-8deg); }
.sky span:nth-child(2) { left: 42%; top: 14%; width: 46vw; height: 20vh; background: radial-gradient(closest-side, rgba(46, 211, 230, 0.4), transparent); animation-duration: 32s; }
.sky span:nth-child(3) { left: 4%; top: 22%; width: 40vw; height: 18vh; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.35), transparent); animation-duration: 38s; }
@keyframes drift {
  from { translate: -3vw 0; }
  to { translate: 3vw 2vh; }
}
@media (prefers-reduced-motion: reduce) {
  .sky span { animation: none; }
  html { scroll-behavior: auto; }
}

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--ink2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 7.2vw, 78px); font-weight: 650; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 620; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink2); max-width: 36em; margin: 20px 0 0; }
.muted { color: var(--ink3); }
.grad { white-space: nowrap; background: linear-gradient(90deg, #9dffd6, var(--green) 40%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Shared bits used by the landing page and documents */
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; color: #03150d; text-decoration: none;
  background: linear-gradient(180deg, #7dffd0, var(--green));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 30px -10px rgba(20, 241, 160, 0.7);
}
section { padding: 72px 0; }
.card {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65);
}
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #03150d; background: linear-gradient(90deg, var(--green), var(--cyan)); padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: 3px; }
.quote { font-family: var(--display); font-size: clamp(26px, 3.6vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 32px; }
.sources .card { padding: 18px 20px; font-size: 15px; color: var(--ink2); }
.sources b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.more { margin: 28px 0 0; }
.fine { margin-top: 16px; font-size: 15px; }
.doc .card ul.short { margin-top: 10px; }

/* Footer */
footer { border-top: 1px solid var(--hair); margin-top: 48px; padding: 32px 0 48px; color: var(--ink3); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Documents (privacy, terms, support) */
.doc { max-width: 760px; padding: 32px 0 24px; }
.doc h1 { font-size: clamp(36px, 6vw, 54px); }
.doc .updated { color: var(--ink3); margin: 14px 0 0; font-size: 15px; }
.doc h2 { font-size: 26px; margin: 48px 0 12px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink2); }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .card { margin-top: 28px; }
.doc .card ul { margin: 0; padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--hair); color: var(--ink2); }
.doc th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

details { border-bottom: 1px solid var(--hair); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--green); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

/* Form */
form { display: grid; gap: 18px; margin-top: 8px; }
label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
input, select, textarea {
  font: inherit; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 13px 14px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--n800); }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 241, 160, 0.25); }
.hint { font-weight: 400; color: var(--ink3); font-size: 14px; }
button.pill { border: 0; cursor: pointer; justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 16px; padding: 14px 16px; margin-top: 20px; font-weight: 500; }
.notice.ok { background: rgba(20, 241, 160, 0.12); border: 1px solid rgba(20, 241, 160, 0.5); color: var(--mint); }
.notice.err { background: rgba(224, 71, 158, 0.12); border: 1px solid rgba(224, 71, 158, 0.5); color: #ffd1ea; }
.notice[hidden] { display: none; }

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 14px; }
  section { padding: 56px 0; }
}
