/* The AI Review Show: public tool pages (mockup).
   Palette from the reels. Coral is for warnings only and never sits on off-white. */
:root {
  --ink: #14162B;
  --ink-2: #1B1E38;
  --ink-3: #242847;
  --paper: #F4F1E8;
  --paper-dim: rgba(244, 241, 232, 0.7);
  --paper-faint: rgba(244, 241, 232, 0.14);
  --yellow: #FFD21F;
  --mint: #2EE6A6;
  --coral: #FF5A4F;

  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --radius-screen: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--paper);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint measuring grid, like a scope screen, fading out down the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- top bar ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: block;
  flex: none;
  border-radius: 50%;
}
.brand img {
  width: 60px;
  height: 60px;
}
.handle {
  font: 500 12.5px/1 var(--mono);
  font-stretch: 87.5%;
  color: var(--paper-dim);
  text-decoration: none;
  padding: 8px 0;
}
.handle:hover { color: var(--paper); }

/* ---------- terminal line ---------- */
.prompt {
  font: 500 12px/1.5 var(--mono);
  font-stretch: 87.5%;
  color: var(--mint);
  margin: 0;
}
.prompt .dim { color: var(--paper-dim); }
.prompt .gt { color: var(--yellow); }
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.18em;
  background: var(--mint);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* the one load moment: the prompt types itself */
.typed {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  max-width: 0;
  animation: type 1s steps(var(--chars)) 0.2s forwards;
}
@keyframes type { to { max-width: calc(var(--chars) * 1ch + 1px); } }

/* ---------- the screens (clips) ---------- */
.screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-screen);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--paper-faint);
}
.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* scanlines, very light */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { filter: brightness(1.06); }

/* ---------- follow bar ---------- */
.follow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-2);
  border: 1px solid var(--paper-faint);
  border-radius: 14px;
  padding: 10px 10px 10px 12px;
}
.follow-mark {
  flex: none;
  width: 48px;
  height: 48px;
}
.follow-text { flex: 1; min-width: 0; }
.follow-handle {
  display: block;
  font: 600 13px/1.3 var(--mono);
  font-stretch: 87.5%;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-line {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
}
.follow .btn { flex: none; min-height: 40px; padding: 0 16px; font-size: 15px; }

/* home: the bar stays docked at the bottom of the phone */
.follow-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 18px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ink) 60%, rgba(20, 22, 43, 0));
}
.follow-dock .follow {
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- footer ---------- */
.foot {
  font: 400 15px/1.6 var(--sans);
  color: var(--paper-dim);
  padding-top: 32px;
  padding-bottom: 32px;
}
.foot p { margin: 0 0 10px; max-width: 62ch; }

/* ---------- share and copy ---------- */
.btn-ghost {
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid rgba(244, 241, 232, 0.28);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--paper); }
.btn-ghost svg { flex: none; width: 18px; height: 18px; }
.btn-ghost.is-done { border-color: var(--mint); color: var(--mint); }
button.btn { font-family: var(--sans); -webkit-appearance: none; appearance: none; }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .typed { animation: none; max-width: none; }
  .btn { transition: none; }
}

/* ---------- site footer links (every page) ---------- */
.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--paper-faint);
  list-style: none;
}
.site-links a {
  display: inline-block;
  padding: 6px 0;
  font: 500 15px/1.3 var(--sans);
  color: var(--paper);
  text-underline-offset: 4px;
}

/* ---------- plain text pages: privacy, data deletion ---------- */
.doc { max-width: 680px; padding-top: 10px; padding-bottom: 8px; }
.doc .post-meta {
  display: block;
  margin: 0 0 8px;
  font: 500 12.5px/1.3 var(--mono);
  font-stretch: 80%;
  color: var(--mint);
}
.doc h1 {
  margin: 0 0 16px;
  font: 700 30px/1.12 var(--mono);
  font-stretch: 78%;
  letter-spacing: -0.02em;
}
.doc h2 {
  margin: 36px 0 10px;
  font: 600 13.5px/1.4 var(--mono);
  font-stretch: 80%;
  color: var(--mint);
}
.doc h2 .gt { color: var(--yellow); }
.doc p, .doc li { font-size: 18px; line-height: 1.6; color: var(--paper); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; padding-left: 4px; }
.doc li::marker { color: var(--mint); }
.doc strong { font-weight: 650; }
.doc a { text-underline-offset: 3px; }
.doc .lead { font-size: 19px; }
.doc .callout {
  margin: 8px 0 18px;
  padding: 16px;
  border: 1px solid var(--paper-faint);
  border-left: 4px solid var(--mint);
  border-radius: 10px;
  background: var(--ink-2);
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc code {
  font: 600 15px/1 var(--mono);
  font-stretch: 80%;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .doc { padding-top: 28px; }
  .doc h1 { font-size: 44px; }
  .brand img { width: 72px; height: 72px; }
}

.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;
}
