/* Shared styles for every page. Fonts are served locally. */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(ibm-plex-mono-400.ttf?v=2) format("truetype");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(ibm-plex-mono-700.ttf?v=2) format("truetype");
}

/* Yuby shared styles */
:root {
  --bg: #020903;
  --phosphor: #33ff66;
  --phosphor-dim: #2dbe52;
  --phosphor-bright: #9dffb0;
  --phosphor-glow: rgba(51, 255, 102, 0.55);
  --phosphor-soft: rgba(51, 255, 102, 0.12);
  --amber: #ffb000;
  --amber-dim: #c48600;
  --amber-bright: #ffd966;
  --amber-glow: rgba(255, 176, 0, 0.55);
  --amber-soft: rgba(255, 176, 0, 0.12);
  --fg: var(--phosphor);
  --fg-dim: var(--phosphor-dim);
  --fg-bright: var(--phosphor-bright);
  --glow: var(--phosphor-glow);
  --soft: var(--phosphor-soft);
  --scanline: rgba(0, 0, 0, 0.28);
  --border: color-mix(in srgb, var(--fg) 45%, transparent);
  --font: "IBM Plex Mono", ui-monospace, monospace;
}

html[data-theme="amber"] {
  --fg: var(--amber);
  --fg-dim: var(--amber-dim);
  --fg-bright: var(--amber-bright);
  --glow: var(--amber-glow);
  --soft: var(--amber-soft);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  min-height: 100%;
  background: #000;
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.65;
}

body {
  overflow-x: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% 40%, #06140a 0%, #020903 55%, #000 100%);
}

html[data-theme="amber"] body {
  background: radial-gradient(ellipse 120% 80% at 50% 40%, #141006 0%, #090602 55%, #000 100%);
}

.crt {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.crt::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    var(--scanline) 3px
  );
  opacity: 0.14;
}

.crt::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.75);
}

.flicker {
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%,
  97%,
  100% {
    opacity: 1;
  }
  98% {
    opacity: 0.92;
  }
  99% {
    opacity: 0.97;
  }
}

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  align-items: start;
  column-gap: 1rem;
  row-gap: 0.65rem;
  margin-bottom: 2rem;
  min-height: 2.75rem;
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-shadow: 0 0 8px var(--glow);
}

.brand {
  color: var(--fg-bright);
  text-decoration: none;
  display: block;
  line-height: 0;
}

.brand:hover {
  filter: brightness(1.08);
}

.brand-ascii {
  margin: 0;
  white-space: pre;
  font-size: clamp(0.42rem, 1.35vw, 0.62rem);
  line-height: 1.12;
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
  user-select: none;
}

.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-height: 2.25rem;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1.2;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg-bright);
  border-bottom-color: var(--fg);
  text-shadow: 0 0 10px var(--glow);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.48rem;
  min-width: 0;
}

.brand-stack #clock {
  font-variant-numeric: tabular-nums;
  min-width: 10ch;
  text-align: left;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  line-height: 1.2;
  font-size: inherit;
  display: block;
}

.topbar-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
  gap: 0.35rem;
}

.topbar-end .nav {
  justify-content: flex-end;
  width: 100%;
}

.topbar .llm-ask {
  margin: 0;
  align-items: flex-end;
  text-align: right;
  max-width: 100%;
}

.topbar .llm-ask-label {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.topbar .llm-ask-row {
  justify-content: flex-end;
}

.nav a.nav-github {
  display: inline-flex;
  align-items: center;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 0;
}
.nav a.nav-github svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.nav a.nav-github:hover,
.nav a.nav-github:focus-visible {
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
}

.cta {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  text-shadow: 0 0 8px var(--glow);
  box-shadow: 0 0 12px var(--soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta:hover {
  background: var(--soft);
  box-shadow: 0 0 18px var(--glow);
}

.header-tools .theme-toggle,
.header-tools .sound-toggle {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent);
  color: var(--fg-dim);
  font: inherit;
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 0;
  box-sizing: border-box;
  text-align: center;
  box-shadow: none;
  text-shadow: none;
}
.header-tools .sound-toggle,
.header-tools .theme-toggle {
  width: 100%;
  min-width: 0;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  justify-self: stretch;
}
.header-tools .sound-toggle {
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}
.header-tools .sound-toggle .snd {
  display: inline-block;
  width: 3.2ch;
  min-width: 3.2ch;
  text-align: left;
}
@keyframes soundPulse {
  0%,
  100% {
    opacity: 0.38;
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 12px var(--glow),
      0 0 26px var(--glow);
  }
}
.header-tools .sound-toggle.is-off {
  animation: soundPulse 0.85s ease-in-out infinite;
}
.header-tools .sound-toggle.is-on {
  animation: none;
  opacity: 1;
  box-shadow: none;
}

.header-tools .theme-toggle:hover,
.header-tools .sound-toggle:hover {
  color: var(--fg);
  background: var(--soft);
  box-shadow: none;
}

.cta-primary {
  background: var(--fg);
  color: #021005;
  border-color: var(--fg-bright);
  font-weight: 700;
  box-shadow: 0 0 22px var(--glow);
}

html[data-theme="amber"] .cta-primary {
  color: #120a00;
}

.cta-primary:hover {
  filter: brightness(1.08);
  background: var(--fg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}
.hero-actions .cta {
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
}

.terminal {
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fg) 15%, transparent),
    0 0 40px var(--soft),
    inset 0 0 60px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, rgba(0, 20, 8, 0.85), rgba(0, 8, 3, 0.95));
  padding: 1.5rem 1.5rem 2rem;
  position: relative;
}

html[data-theme="amber"] .terminal {
  background: linear-gradient(180deg, rgba(20, 12, 0, 0.85), rgba(8, 5, 0, 0.95));
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-dim);
  box-shadow: 0 0 6px var(--glow);
  animation: load-dot 1.05s ease-in-out infinite;
}
.dot:nth-child(2) {
  animation-delay: 0.18s;
}
.dot:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes load-dot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    background: var(--fg-dim);
  }
  40% {
    opacity: 1;
    background: var(--fg-bright);
    box-shadow: 0 0 10px var(--glow);
  }
}

h1 {
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-bright);
  text-shadow:
    0 0 6px var(--glow),
    0 0 24px var(--glow),
    0 0 60px var(--soft);
  margin-bottom: 1.35rem;
  text-wrap: balance;
}

.tagline {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  color: var(--fg);
  text-shadow: 0 0 10px var(--glow);
  max-width: min(68ch, 100%);
  width: 100%;
  line-height: 2;
  letter-spacing: 0.015em;
  margin: 0.25rem 0 0.35rem;
  text-wrap: pretty;
}

.tagline + .tagline {
  margin-bottom: 1.35rem;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.prompt {
  color: var(--fg-dim);
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.prompt span {
  color: var(--fg-bright);
}

.prompt.boot-line {
  margin-bottom: 0.85rem;
}

main.terminal > h1 {
  margin-top: 0.25rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.stat {
  border: 1px dashed color-mix(in srgb, var(--fg) 30%, transparent);
  padding: 0.85rem 1rem;
  background: var(--soft);
}

.stat .label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 0.25rem;
}

.stat .value {
  font-size: 1.05rem;
  color: var(--fg-bright);
  text-shadow: 0 0 12px var(--glow);
  font-weight: 700;
}

.section-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 2.25rem 0 1rem;
}

.pitch {
  margin: 1.75rem 0 2rem;
  color: var(--fg);
  text-shadow: 0 0 8px var(--soft);
  max-width: none;
  width: 100%;
  line-height: 1.9;
  letter-spacing: 0.01em;
  text-align: left;
  text-wrap: pretty;
}

.pitch p {
  margin: 0 0 1rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.pitch p:last-child {
  margin-bottom: 0;
}

.pitch + .pitch {
  margin-top: -0.75rem;
}

.features {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  max-width: 64ch;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  font-size: 0.95rem;
  line-height: 1.65;
}
.features li > div {
  flex: 1;
  min-width: 0;
}

.features li::before {
  content: ">";
  flex: 0 0 1ch;
  color: var(--fg-bright);
  text-shadow: 0 0 8px var(--glow);
  font-weight: 700;
}

.features strong {
  color: var(--fg-bright);
  font-weight: 700;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.25rem;
}

.chip {
  font-size: 0.78rem;
  padding: 0.12rem 0.35rem 0.12rem 0;
  border: none;
  color: var(--fg);
  text-shadow: 0 0 6px var(--soft);
  background: none;
}

.waitlist,
.license-panel {
  margin-top: 2rem;
  border: 1px solid color-mix(in srgb, var(--fg) 70%, transparent);
  padding: 2rem 1.85rem 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 0 30px var(--soft),
    0 0 22px var(--soft);
}

.waitlist h2,
.license-panel h2 {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-bright);
  text-shadow: 0 0 12px var(--glow);
  margin-bottom: 0.5rem;
}

.waitlist p,
.license-panel p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin-bottom: 1.15rem;
  line-height: 1.65;
  max-width: 52ch;
}

.waitlist form,
.license-panel form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.waitlist form > *,
.license-panel form > * {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}
.waitlist-stack,
.license-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.field-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.waitlist-plain,
.license-input {
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  color: var(--fg-bright);
  font: inherit;
  font-size: 1rem;
  padding: 0 1rem;
  line-height: 46px;
  text-shadow: 0 0 8px var(--glow);
  outline: none;
  caret-color: var(--fg);
  overflow-x: auto;
  white-space: nowrap;
}
.waitlist-plain::placeholder,
.waitlist-plain-multi::placeholder,
.license-input::placeholder {
  color: var(--fg-dim);
}

.waitlist-plain-multi {
  width: 100%;
  height: auto;
  min-height: 8rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  color: var(--fg-bright);
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 1rem;
  line-height: 1.45;
  text-shadow: 0 0 8px var(--glow);
  outline: none;
  caret-color: var(--fg);
  white-space: pre-wrap;
  overflow-x: hidden;
  overflow-y: auto;
  resize: vertical;
}

.waitlist-plain-multi:focus,
.waitlist-plain:focus,
.license-input:focus {
  box-shadow:
    0 0 0 1000px var(--bg) inset,
    0 0 0 1px var(--fg),
    0 0 20px var(--glow);
}
.waitlist-tx,
.license-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
}

.waitlist-field {
  position: relative;
  min-width: 0;
  height: 48px;
}
.waitlist-plain::-webkit-contacts-auto-fill-button,
.waitlist-plain::-webkit-credentials-auto-fill-button,
.waitlist-plain::-webkit-caps-lock-indicator,
.license-input::-webkit-contacts-auto-fill-button,
.license-input::-webkit-credentials-auto-fill-button,
.license-input::-webkit-caps-lock-indicator {
  visibility: hidden;
  display: none;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.waitlist-plain:-webkit-autofill,
.waitlist-plain:-webkit-autofill:hover,
.waitlist-plain:-webkit-autofill:focus,
.waitlist-plain:-webkit-autofill:active,
.license-input:-webkit-autofill,
.license-input:-webkit-autofill:hover,
.license-input:-webkit-autofill:focus,
.license-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--fg-bright) !important;
  caret-color: var(--fg);
  border-color: var(--border);
  background-color: var(--bg);
  background-image: none;
  box-shadow: 0 0 0 1000px var(--bg) inset !important;
  transition: background-color 99999s ease-out 0s;
  filter: none;
}
.waitlist-plain:-webkit-autofill:focus,
.license-input:-webkit-autofill:focus {
  box-shadow:
    0 0 0 1000px var(--bg) inset,
    0 0 0 1px var(--fg),
    0 0 20px var(--glow) !important;
}
.waitlist-email {
  caret-color: var(--fg);
}

.waitlist form button[type="submit"],
.license-panel form button[type="submit"] {
  background: var(--fg);
  color: #021005;
  border: 1px solid var(--fg-bright);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  height: 48px;
  min-height: 48px;
  line-height: 46px;
  cursor: pointer;
  box-shadow: 0 0 22px var(--glow);
  white-space: nowrap;
}

html[data-theme="amber"] .waitlist form button[type="submit"],
html[data-theme="amber"] .license-panel form button[type="submit"] {
  color: #120a00;
}

.waitlist form button[type="submit"]:hover,
.license-panel form button[type="submit"]:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 32px var(--glow);
}

.form-note,
.form-msg {
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.form-msg {
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
  min-height: 0;
}
.form-msg:empty,
.waitlist form > .form-msg:empty,
.license-panel form > .form-msg:empty {
  display: none;
}

/* License form at license.yuby.com. */
.license-panel select option {
  background: var(--bg);
  color: var(--fg-bright);
}

.license-panel form[hidden] {
  display: none;
}

.license-result {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.license-result code {
  display: block;
  margin: 1rem 0;
  color: var(--fg-bright);
  font: inherit;
  overflow-wrap: anywhere;
  user-select: all;
}

.license-panel .license-submit {
  grid-template-columns: minmax(0, 1fr);
}

.license-panel button[type="submit"] {
  height: auto;
  white-space: normal;
  line-height: 1.4;
  padding: 0.75rem 1rem;
}

.footer {
  margin-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-shadow: 0 0 8px var(--soft);
}

.footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--fg) 50%, transparent);
}

.footer a:hover {
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
}

.bio {
  display: grid;
  gap: 1.35rem;
  max-width: none;
  width: 100%;
  font-size: 1.05rem;
  color: var(--fg);
  text-shadow: 0 0 8px var(--soft);
  line-height: 1.9;
  text-align: left;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.bio p:first-child {
  text-align: left;
  letter-spacing: 0.02em;
}

.boot-line {
  opacity: 0;
  transform: translateY(4px);
  animation: bootIn 0.45s ease forwards;
  animation-delay: 0.08s;
}

.boot-line:nth-child(1) {
  animation-delay: 0.05s;
}
.boot-line:nth-child(2) {
  animation-delay: 0.12s;
}
.boot-line:nth-child(3) {
  animation-delay: 0.2s;
}
.boot-line:nth-child(4) {
  animation-delay: 0.28s;
}
.boot-line:nth-child(5) {
  animation-delay: 0.36s;
}
.boot-line:nth-child(6) {
  animation-delay: 0.44s;
}
.boot-line:nth-child(7) {
  animation-delay: 0.52s;
}
.boot-line:nth-child(8) {
  animation-delay: 0.6s;
}
.boot-line:nth-child(9) {
  animation-delay: 0.68s;
}
.boot-line:nth-child(10) {
  animation-delay: 0.76s;
}
.boot-line:nth-child(11) {
  animation-delay: 0.84s;
}
.boot-line:nth-child(12) {
  animation-delay: 0.92s;
}
.boot-line:nth-child(13) {
  animation-delay: 1s;
}
.boot-line:nth-child(14) {
  animation-delay: 1.08s;
}
.boot-line:nth-child(n + 15) {
  animation-delay: 1.15s;
}

@keyframes bootIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.product-card {
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.9rem 1rem;
  box-shadow: inset 0 0 18px var(--soft);
  min-height: 7.5rem;
}

.product-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.product-card p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--fg);
  text-shadow: 0 0 6px var(--soft);
}

/* Pain / promise */
.pain-promise {
  margin: 1.5rem 0 0.5rem;
  border: 1px solid var(--border);
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow:
    0 0 22px var(--soft),
    inset 0 0 28px var(--soft);
}

.pain-promise .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 0.55rem;
}

.pain-promise h2 {
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-bright);
  text-shadow: 0 0 12px var(--glow);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.pain-promise p {
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: none;
  width: 100%;
  text-align: left;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.pain-promise p:last-child {
  margin-bottom: 0;
}

.pain-promise .who {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

/* Platform matrix */
.platform-matrix-wrap {
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 24px var(--soft);
  margin-top: 0.5rem;
}

.platform-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.84rem;
}

.platform-matrix th,
.platform-matrix td {
  padding: 0.7rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  line-height: 1.4;
}

.platform-matrix th:first-child,
.platform-matrix td:first-child {
  text-align: left;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 400;
}

.platform-matrix thead th {
  color: var(--fg-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-shadow: 0 0 8px var(--glow);
  border-bottom: 1px solid var(--border);
}

.platform-matrix .ok {
  color: var(--fg-bright);
  text-shadow: 0 0 8px var(--glow);
  font-weight: 700;
}

.platform-matrix .note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* Integration */
.integrate {
  margin-top: 0.5rem;
  border: 1px dashed color-mix(in srgb, var(--fg) 30%, transparent);
  padding: 1.15rem 1.25rem 1.15rem 1.25rem;
  background: var(--soft);
}

.integrate p {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: none;
  margin-bottom: 0.55rem;
}
.integrate p:last-of-type {
  margin-bottom: 0.5rem;
}
.integrate .platforms {
  margin: 0;
  gap: 0.4rem;
}

.integrate code {
  color: var(--fg-bright);
  text-shadow: 0 0 8px var(--glow);
  font-family: var(--font);
  font-size: 0.88em;
}

@media (max-width: 720px) {
  .wrap {
    padding: 1.25rem 0 3rem;
    width: min(920px, calc(100% - 1.25rem));
  }

  .topbar {
    grid-template-columns: 1fr;
    margin-bottom: 1.25rem;
  }

  .brand-ascii {
    font-size: clamp(0.36rem, 3.2vw, 0.52rem);
  }

  .nav {
    justify-content: flex-end;
    gap: 0.55rem 0.7rem;
  }

  .terminal {
    padding: 1.1rem 1rem 1.5rem;
  }

  h1 {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
  }

  .product-card {
    min-height: 0;
  }
  .pain-promise p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flicker,
  .boot-line,
  .sound-toggle {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--fg),
    0 0 16px var(--glow);
}

.waitlist form button[type="submit"]:disabled,
.license-panel form button[type="submit"]:disabled,
.cta-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}
.terminal-header {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--fg-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  flex-wrap: nowrap;
  overflow: visible;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.header-tools {
  display: grid;
  grid-template-columns: 18ch 18ch;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0;
  font-size: 0.7rem;
  overflow: visible;
}

.terminal-header #clock {
  font-variant-numeric: tabular-nums;
  min-width: 0;
  text-align: center;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: visible;
  justify-self: center;
}

.joke-line {
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.prompt.joke-line {
  margin-bottom: 1.25rem;
}

.matrix-panel {
  border: 1px solid color-mix(in srgb, var(--fg) 70%, transparent);
  padding: 1.75rem 1.35rem;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    0 0 22px var(--soft),
    inset 0 0 24px var(--soft);
}

.matrix-panel > .section-title {
  margin-top: 0;
  font-size: 0.95rem;
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
}

.tier-foot {
  font-size: 0.72rem;
  color: var(--fg-dim);
  line-height: 1.45;
  margin-top: auto;
}

/* Feature × tier matrix — panel is the room; wrap only scrolls */
.feature-matrix caption,
.platform-matrix caption {
  caption-side: top;
}
.feature-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-top: 0.1rem;
}

.feature-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.84rem;
}

.feature-matrix th,
.feature-matrix td {
  padding: 0.45rem 0.7rem;
  vertical-align: middle;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  line-height: 1.4;
}

.feature-matrix thead th {
  text-align: center;
  color: var(--fg-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 0 8px var(--glow);
  border-bottom: 1px solid var(--border);
}

.feature-matrix thead th.feat {
  text-align: left;
  width: 42%;
}

.feature-matrix tbody th.feat,
.feature-matrix td.feat {
  text-align: left;
  color: var(--fg-dim);
  font-weight: 400;
  white-space: normal;
  overflow-wrap: break-word;
}

.feature-matrix td.y,
.feature-matrix td.n {
  text-align: center;
  width: 19%;
}

.feature-matrix td.y {
  color: var(--fg-bright);
  text-shadow: 0 0 8px var(--glow);
  font-weight: 700;
}

.feature-matrix td.n {
  color: var(--fg-dim);
}

.feature-matrix tr.feat-cat th,
.feature-matrix tr.feat-cat td {
  text-align: left;
  color: var(--fg-dim);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 28%, transparent);
}

.matrix-panel > .joke-line {
  margin: 0.1rem 0 0.65rem;
  font-size: 0.72rem;
}

.matrix-panel > .tier-foot {
  margin-top: 0.75rem;
}

.matrix-panel > .tier-foot + .tier-foot {
  margin-top: 0.35rem;
}

.cta-primary {
  min-height: 48px;
}

.crt-cursor {
  display: inline-block;
  width: 0.65ch;
  height: 1.05em;
  margin-left: 0.4ch;
  background: var(--fg);
  box-shadow: 0 0 8px var(--glow);
  vertical-align: text-bottom;
  animation: blink 1.05s step-end infinite;
}

.about-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.9fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.ascii-inline {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  font-family: var(--font);
  font-size: clamp(0.32rem, 0.95vw, 0.52rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-shadow: 0 0 8px var(--glow);
  white-space: pre;
  user-select: none;
}

@media (max-width: 720px) {
  .about-flow {
    grid-template-columns: 1fr;
  }
}

.spec-line {
  font-size: 1.05rem;
  color: var(--fg-bright);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

form.is-complete {
  gap: 0;
}
form.is-complete h1 {
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  letter-spacing: 0.08em;
  margin: 1.1rem 0 0.85rem;
}
form.is-complete .tagline {
  max-width: 46ch;
  line-height: 1.75;
  margin: 0.15rem 0 0.5rem;
}
form.is-complete .tagline + .tagline {
  margin-bottom: 0.5rem;
}
form.is-complete #ackAddr {
  margin-top: 1.35rem;
  color: var(--fg-dim);
}
form.is-complete .prompt {
  margin: 0.25rem 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hl {
  color: var(--fg-bright);
}
.mark {
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
}
.prompt-tight {
  margin-top: -0.35rem;
}
.pitch-follow {
  margin-top: 1rem;
}

/* 404 official map — wrap inside the framed room, no shear */
.bio ul,
.bio li,
.bio ul a {
  overflow-wrap: anywhere;
  white-space: normal;
  overflow: visible;
}
.bio ul {
  list-style: none;
}
.bio ul a {
  color: inherit;
}

#faq .bio {
  gap: 0.35rem;
}
#faq .bio h3 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--fg-bright);
  text-shadow: 0 0 10px var(--glow);
  margin: 0.85rem 0 0;
  font-weight: 700;
}
#faq .bio h3:first-child {
  margin-top: 0;
}
#faq .bio p {
  margin: 0 0 0.55rem;
}
@media (max-width: 768px) {
  .terminal-header #clock {
    display: none;
  }
  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .nav a.nav-github {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0.55rem 0.35rem;
  }
  .nav a.nav-github svg {
    width: 1.15rem;
    height: 1.15rem;
  }
  .nav-waitlist {
    border-bottom-color: transparent;
  }
}

@media (max-width: 720px) {
  .header-tools {
    grid-template-columns: auto auto;
    width: auto;
    margin-left: 0;
  }
  .header-tools .sound-toggle,
  .header-tools .theme-toggle {
    overflow: visible;
    white-space: nowrap;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    min-height: 44px;
    width: 100%;
    max-width: none;
  }
  .chip {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .platform-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .platform-matrix-wrap::before {
    content: "← swipe OS × CPU →";
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-dim);
    padding: 0.45rem 0.8rem 0.15rem;
  }
}

.llm-ask {
  margin: 0.35rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 100%;
}
.hero-actions .llm-ask {
  flex: 1 1 100%;
  width: 100%;
}
.llm-ask-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.llm-ask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
}
.llm-ask-row .chip {
  text-decoration: none;
  cursor: pointer;
}
@media (max-width: 480px) {
  .llm-ask,
  .hero-actions .llm-ask {
    width: 100%;
    flex: 1 1 100%;
  }
  .llm-ask-row .chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    justify-content: stretch;
  }
  .hero-actions .cta {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* phone titlebar tools — fit SOUND + PHOSPHOR at 390. Desktop unchanged. */
@media (max-width: 390px) {
  .header-tools {
    grid-template-columns: auto auto;
    gap: 0.28rem;
    width: auto;
  }
  .header-tools .sound-toggle,
  .header-tools .theme-toggle {
    width: auto;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    padding: 0.12rem 0.22rem;
    white-space: nowrap;
    overflow: visible;
  }
}

/* Feature matrix stays one table. Horizontal scroll at phone — do not stack cards. */
@media (max-width: 720px) {
  .feature-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .feature-matrix {
    min-width: 600px;
    display: table;
  }
  .feature-matrix td.feat,
  .feature-matrix th.feat {
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .feature-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .feature-matrix {
    min-width: 560px;
    display: table;
  }
  .feature-matrix td.feat,
  .feature-matrix th.feat {
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
  }
}
