/* Pocket Hypeman website: one stylesheet for every page. No JavaScript, no web fonts, nothing loaded from other sites. */

:root {
  color-scheme: light dark;

  /* Brand: the Aurora icon colors on dark navy. */
  --navy: #070B1C;
  --blue: #2A6BFF;
  --violet: #6A3DE3;
  --teal: #16D3B2;
  --aurora: linear-gradient(90deg, var(--blue), var(--violet) 52%, var(--teal));

  /* Light theme. */
  --bg: #F5F7FC;
  --surface: #FFFFFF;
  --ink: #0B1230;
  --muted: #4A5372;
  --line: #DCE1EE;
  --link: #1D56D8;
  --link-hover: #5A30C9;
  --focus: #16A58C;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 42rem;
  --wide: 66rem;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070B1C;
    --surface: #0E1430;
    --ink: #E7EBF7;
    --muted: #A3ACC6;
    --line: #1F2849;
    --link: #8FB0FF;
    --link-hover: #5FE3CB;
    --focus: #5FE3CB;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* The on-air strip: the one place the full gradient runs edge to edge. */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--aurora);
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Header */

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 0.6rem;
  background:
    radial-gradient(120% 90% at 0% 0%, var(--blue) 0%, transparent 60%),
    radial-gradient(110% 100% at 100% 100%, var(--teal) 0%, transparent 62%),
    var(--violet);
  display: grid;
  place-items: center;
}
.mark svg { width: 58%; height: 58%; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav li + li { margin-top: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.975rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }

/* Shared type */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 6vw, 3rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2.75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1.75rem; }

p, ul, ol, dl { margin: 0.85rem 0 0; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 700; }

/* Legal and support pages */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}

.updated { color: var(--muted); margin-top: 0.6rem; font-size: 0.975rem; }
.lede { font-size: 1.15rem; margin-top: 1.25rem; }

.summary {
  position: relative;
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--violet) 55%, var(--teal));
}
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary ul { margin-top: 0.6rem; }

.toc { margin-top: 2rem; }
.toc h2 { font-size: 1.05rem; margin-top: 0; color: var(--muted); }
.toc ol { margin-top: 0.5rem; padding-left: 1.4rem; }
.toc li + li { margin-top: 0.2rem; }
@media (min-width: 40rem) {
  .toc ol { columns: 2; column-gap: 2.5rem; }
  .toc li { break-inside: avoid; }
}

.facts { margin-top: 1rem; border-top: 1px solid var(--line); }
.facts > div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0.2rem 0 0; color: var(--muted); }
@media (min-width: 40rem) {
  .facts > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.25rem; }
  .facts dd { margin: 0; }
}

.steps li::marker { font-weight: 700; color: var(--violet); }
@media (prefers-color-scheme: dark) { .steps li::marker { color: var(--teal); } }

.contact-card {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-card p:first-child { margin-top: 0; }
.contact-card .email { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 4.6vw, 1.3rem); }

/* FAQ: native disclosure, no script. */
.faq { margin-top: 1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 0.95rem 2rem 0.95rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1.15rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { margin-top: 0; padding-bottom: 1rem; }
.faq details > p + p { margin-top: -0.4rem; }

/* Landing page */

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; padding-top: 4rem; }
}

.hero h1 { font-size: clamp(2.5rem, 8vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero .lede { max-width: 34rem; color: var(--muted); }
.hero .status { margin-top: 1.5rem; font-weight: 700; }

/* The stage: a still of a live, in the app's own colors. */
.stage-figure { margin: 0; justify-self: center; width: min(100%, 19rem); }
.stage {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 2.25rem;
  padding: 1rem;
  color: #FFFFFF;
  background:
    radial-gradient(70% 45% at 15% 12%, rgba(42, 107, 255, 0.85), transparent 70%),
    radial-gradient(60% 40% at 90% 38%, rgba(106, 61, 227, 0.8), transparent 70%),
    radial-gradient(80% 45% at 30% 95%, rgba(22, 211, 178, 0.55), transparent 70%),
    var(--navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 24px 60px -24px rgba(7, 11, 28, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.stage-top { display: flex; align-items: center; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 11, 28, 0.72);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pill .dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--teal); }
.count { padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 600; }

.chat { margin-top: auto; display: grid; gap: 0.45rem; }
.chat p { margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.chat b { font-weight: 700; margin-right: 0.3rem; }
.tip {
  padding: 0.5rem 0.65rem;
  border-radius: 0.8rem;
  background: rgba(7, 11, 28, 0.6);
  border: 1px solid rgba(22, 211, 178, 0.7);
}
.tip .amount { color: #5FE3CB; font-weight: 800; }
.poll { padding: 0.55rem 0.65rem; border-radius: 0.8rem; background: rgba(7, 11, 28, 0.6); }
.poll .q { font-weight: 700; margin-bottom: 0.35rem; }
.bar { position: relative; border-radius: 0.4rem; padding: 0.15rem 0.45rem; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar + .bar { margin-top: 0.3rem; }
.bar span { position: relative; display: flex; justify-content: space-between; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: rgba(42, 107, 255, 0.75); }

.stage-figure figcaption { margin-top: 0.9rem; color: var(--muted); font-size: 0.9rem; text-align: center; }

.truths {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display: grid;
  gap: 1.5rem 2.5rem;
}
@media (min-width: 46rem) { .truths { grid-template-columns: repeat(3, 1fr); } }
.truths div { border-top: 2px solid var(--line); padding-top: 1rem; }
.truths h2 { margin-top: 0; font-size: 1.2rem; }
.truths p { margin-top: 0.4rem; color: var(--muted); }

.read-more {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}
.read-more h2 { margin-top: 0; font-size: 1.2rem; }
.read-more ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.read-more li + li { margin-top: 0; }
.read-more a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.read-more a:hover { border-color: var(--violet); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  color: var(--muted);
  font-size: 0.925rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media print {
  body::before, .site-nav, .skip, .toc { display: none; }
  body { background: #FFFFFF; color: #000000; }
  a { color: #000000; }
}
