/* CueBlu site styles, rebuilt from the approved reference design (cueblu-redesign-prompt.md).
   No framework, no external files. */

/* Inter (SIL Open Font License, see fonts/OFL.txt), served from this site. Variable font: weights 400-800. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Design tokens ===== */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;          /* page background */
  --bg-alt: #0d0d10;      /* alternating section background */
  --surface: #111114;     /* cards */
  --surface-2: #141418;
  --border: #1f1f25;
  --border-strong: #2a2a32;
  --divider: #17171c;
  --text: #f4f4f5;
  --text-strong: #fafafa;
  --muted: #a1a1aa;       /* body text */
  --subtle: #8b8b94;      /* small print, 5.6:1 on cards */
  --accent: #2563eb;      /* button background (white text 5.2:1) */
  --accent-hover: #1d4ed8;
  --accent-line: #4f86f7;
  --accent-text: #7aa7ff; /* blue text on dark */
  --accent-soft: rgba(79, 134, 247, .12);
  --amber: #f5b454;
  --error: #f87171;
  --radius: 1rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

/* Desktop scale: every size is in rem, so this makes the whole site 17.5% larger from 1024px up
   (like browser zoom at 117.5%). Tablet and phone keep the 16px base. Hairlines stay in px. */
@media (min-width: 1024px) { html { font-size: 117.5%; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #a9c6ff; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* Visible focus on dark */
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 0.1875rem; border-radius: 0.375rem; }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -3.75rem; z-index: 20;
  background: var(--accent); color: #fff; padding: 0.5rem 0.875rem; border-radius: 0.5rem; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Layout ===== */
.wrap { max-width: 75rem; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; border-top: 1px solid var(--divider); }
.section.alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack-tight { gap: 0.5rem; }
.stack-24 { gap: 1.5rem; }
.stack-56 { gap: 3.5rem; }
.intro { max-width: 40rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4.5rem; align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
.split.center { align-items: center; }

/* ===== Type ===== */
.eyebrow { width: 2rem; height: 0.1875rem; border-radius: 2px; background: var(--accent-line); }
h1 { font-size: clamp(2.625rem, 5vw, 4.25rem); line-height: 1.03; font-weight: 800; letter-spacing: -.035em; color: var(--text-strong); }
h1 span { color: #8e8e98; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--text-strong); }
h3 { font-size: 1.125rem; font-weight: 600; color: var(--text-strong); }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 32.5rem; }
.body { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.body.strong { color: var(--text); font-weight: 500; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 11, .78);
  -webkit-backdrop-filter: blur(0.75rem); backdrop-filter: blur(0.75rem);
  border-bottom: 1px solid var(--divider);
}
.header .wrap { height: 4.25rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.logo:hover { color: var(--text); }
.logo span { color: var(--accent-text); }
.pill-link {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem;
  border: 1px solid var(--border-strong); border-radius: 62.4375rem;
  font-size: 0.875rem; font-weight: 600; color: var(--text);
}
.pill-link:hover { color: #fff; border-color: #3a3a46; }
.pill-link:focus-visible { border-radius: 62.4375rem; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#1c1c22 1px, transparent 1px);
  background-size: 1.75rem 1.75rem; opacity: .6;
}
.hero .wrap { position: relative; padding-top: 7rem; padding-bottom: 8rem; }
.hero-copy { display: flex; flex-direction: column; gap: 1.75rem; }
#join { scroll-margin-top: 7.5rem; }

/* Email form */
.waitlist { display: flex; flex-direction: column; gap: 1rem; max-width: 31.25rem; margin-top: 0.5rem; }
.email-unit {
  display: flex; align-items: center; gap: 0.375rem; padding: 0.375rem;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 0.875rem;
  transition: border-color .15s, box-shadow .15s;
}
.email-unit:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 0.25rem rgba(79, 134, 247, .18); }
.email-unit input {
  flex: 1; min-width: 0; height: 3rem; padding: 0 0.875rem;
  background: transparent; border: 0; outline: none;
  color: var(--text); font: 400 1rem var(--font);
}
.email-unit input::placeholder { color: var(--subtle); opacity: 1; }   /* reference #71717a fails AA on this surface */
.waitlist .email-unit:has(input[aria-invalid="true"]) { border-color: var(--error); }
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; padding: 0 1.375rem; border: 0; border-radius: 0.625rem;
  background: var(--accent); color: #fff; font: 600 0.9375rem var(--font);
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:disabled { cursor: progress; }
.btn.is-loading .button-label { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-secondary { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-secondary:hover { background: #1a1a1f; }

.form-message { font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.form-message:empty { display: none; }
.form-message.is-error { color: var(--error); }
.form-message.is-success { color: var(--text); font-weight: 500; }
.waitlist.is-done .email-unit { display: none; }

/* Honeypot: off-screen, never seen by real visitors */
.hp { position: absolute; left: -625rem; width: 1px; height: 1px; overflow: hidden; }

.perk { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.perk svg { flex: none; width: 1.125rem; height: 1.125rem; }
.ghost svg { width: 0.875rem; height: 0.875rem; }
.fine { padding-left: 1.75rem; font-size: 0.8125rem; line-height: 1.6; color: var(--subtle); }

/* ===== Demo card ===== */
.demo { position: relative; display: flex; flex-direction: column; gap: 0.875rem; margin: 0; }
.demo::before {
  content: ""; position: absolute; inset: 10%;
  background: radial-gradient(closest-side, rgba(59, 110, 240, .22), transparent);
  filter: blur(2.5rem);
}
.demo-card {
  position: relative; background: var(--surface); border: 1px solid #26262e;
  border-radius: 1.125rem; box-shadow: 0 1.875rem 5rem rgba(0, 0, 0, .55); overflow: hidden;
}
.demo-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.demo-top .logo { font-size: 0.875rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 1.625rem; padding: 0 0.75rem;
  border-radius: 62.4375rem; background: var(--accent-soft); border: 1px solid rgba(79, 134, 247, .3);
  font-size: 0.75rem; font-weight: 600; color: #a9c6ff;
}
.status i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #5b8ef7; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 142, 247, .5); } 50% { box-shadow: 0 0 0 0.375rem rgba(91, 142, 247, 0); } }
.demo-body { padding: 1.75rem 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 1.375rem; }
.progress { display: flex; gap: 0.375rem; }
.progress span { flex: 1; height: 0.25rem; border-radius: 2px; background: var(--border-strong); transition: background .3s ease; }
.progress span.on { background: var(--accent-line); }

/* Scenes share one grid cell, so the card height never jumps */
.demo-stage { display: grid; min-height: 18.75rem; align-items: start; }
.scene {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 1.125rem;
  opacity: 0; visibility: hidden; transform: translateY(0.375rem);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.scene[data-scene="input"] { align-self: center; }

.idea-unit {
  display: flex; align-items: center; gap: 0.375rem; padding: 0.375rem;
  background: #0d0d10; border: 1px solid var(--border-strong); border-radius: 0.875rem;
}
.idea-text { flex: 1; min-width: 0; display: flex; align-items: center; height: 3rem; padding: 0 0.875rem; font-size: 0.9375rem; color: var(--text); }
.caret { display: inline-block; width: 2px; height: 1.125rem; margin-left: 1px; background: var(--accent-line); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.btn-static { cursor: default; }
.btn-static.is-pressed { background: var(--accent-hover); }

.question { font-size: 1.1875rem; line-height: 1.4; font-weight: 600; color: var(--text-strong); }
.options { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.option {
  display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0 1rem;
  border-radius: 0.75rem; border: 1px solid #26262e; background: #0d0d10;
  font-size: 0.9375rem; color: #d4d4d8; transition: border-color .15s, background .15s;
}
.option::before {           /* radio indicator */
  content: ""; flex: none; width: 1rem; height: 1rem; border-radius: 50%;
  border: 1.5px solid #52525b; transition: border-color .15s, box-shadow .15s;
}
.option.is-picked { border-color: var(--accent-line); background: rgba(79, 134, 247, .08); color: var(--text); }
.option.is-picked::before { border-color: var(--accent-line); box-shadow: inset 0 0 0 0.1875rem #111114, inset 0 0 0 0.5rem var(--accent-line); }
.hint { font-size: 0.8125rem; line-height: 1.6; color: var(--subtle); }

.prompt-preview {
  padding: 1.125rem 1.25rem; border-radius: 0.75rem; border: 1px solid #26262e; background: #0d0d10;
  font-family: var(--mono); font-size: 0.8438rem; line-height: 1.65; color: var(--muted);
}
.prompt-preview p + p, .prompt-preview ul + p { margin-top: 0.625rem; }
.prompt-preview .p-heading { color: var(--text-strong); font-weight: 700; }
.prompt-preview .p-heading + p, .prompt-preview .p-heading + ul { margin-top: 0.25rem; }
.prompt-preview ul { padding-left: 1.125rem; }
.prompt-preview mark { background: none; color: inherit; transition: color .3s ease; }
.prompt-preview .p-check {
  margin-top: 0.875rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid rgba(245, 180, 84, .35); background: rgba(245, 180, 84, .08); color: var(--amber);
  opacity: 0; transition: opacity .35s ease;
}
.prompt-preview.is-checked mark { color: var(--amber); }
.prompt-preview.is-checked .p-check { opacity: 1; }

.demo-foot { display: flex; justify-content: flex-end; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.ghost {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; padding: 0 0.75rem;
  border: 0; border-radius: 0.5rem; background: transparent; color: var(--muted);
  font: 500 0.8125rem var(--font); cursor: pointer;
}
.ghost:hover { background: #1a1a1f; color: var(--text); }
.caption { position: relative; font-size: 0.8125rem; color: var(--subtle); text-align: center; }

/* ===== "One line in" visual ===== */
.fan { display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 1.25rem; }
.fan-input { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.125rem; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 0.75rem; font-size: 0.9375rem; color: var(--text); }
.fan-input::before { content: ""; width: 2px; height: 1.125rem; background: var(--accent-line); }
.fan svg { width: 100%; height: 4rem; }
.qgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.625rem; width: 100%; }
.qgrid span { height: 2.125rem; border-radius: 0.5rem; border: 1px solid #2e2e38; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #c4c4cc; }
.qgrid span:nth-child(odd) { border-color: #3a3a46; color: var(--text); }
.qgrid span.hi { border-color: var(--accent-line); color: #a9c6ff; }
.qgrid span:nth-child(n+9) { border-color: #26262e; color: var(--subtle); }
.qgrid span:nth-child(n+17) { border-color: var(--border); color: #5c5c66; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.step {
  display: flex; flex-direction: column; gap: 0.875rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--accent-line); border-radius: 0.875rem;
}
.step-num { font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); }
.step p, .card p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: 0.875rem; padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card h3 { font-size: 1.25rem; margin-top: 0.375rem; }
.card.lg { grid-column: span 3; }
.card.sm { grid-column: span 2; }
.icon { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 1.375rem; height: 1.375rem; stroke: var(--accent-text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strip { grid-column: span 6; display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; background: rgba(79, 134, 247, .06); border: 1px solid rgba(79, 134, 247, .28); border-radius: var(--radius); }
.strip p { font-size: 1rem; line-height: 1.65; color: #d4d4d8; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.375rem 0.25rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; color: var(--text); cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary svg { flex: none; width: 1.125rem; height: 1.125rem; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0.25rem 1.375rem; font-size: 1rem; line-height: 1.7; color: var(--muted); }

/* ===== Final CTA ===== */
.cta-wrap { padding: 0 0 8rem; }
.cta {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  padding: 6rem 2rem; text-align: center;
  background: #0f1015; border: 1px solid rgba(79, 134, 247, .3); border-radius: 1.75rem;
}
.cta::before {
  content: ""; position: absolute; left: 15%; right: 15%; top: -40%; height: 90%;
  background: radial-gradient(closest-side, rgba(59, 110, 240, .25), transparent); filter: blur(1.875rem);
}
.cta > * { position: relative; }
.cta h2 { max-width: 45rem; font-size: clamp(2.125rem, 4.2vw, 3.5rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; }
.cta > p { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.cta form { width: 100%; max-width: 31.25rem; margin-top: 0.5rem; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--divider); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.footer p { font-size: 0.875rem; color: var(--muted); }
.footer .legal { max-width: 28.75rem; font-size: 0.8125rem; line-height: 1.6; color: var(--subtle); }

/* ===== Other pages: one centered column, at most 40rem ===== */
.page { padding: 8rem 0; }
.page .column { max-width: 40rem; margin: 0 auto; }
.page-simple { text-align: center; }
.page-simple .column { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.page-simple h1, .policy h1 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); }
.page-simple p { font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.page-simple .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; }
.page-simple form { margin: 0; }
.policy .updated { margin-top: 1rem; font-size: 0.8125rem; color: var(--subtle); }
.policy .policy-body { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.policy .policy-body p { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.policy strong { color: var(--text-strong); font-weight: 600; }

/* ===== Scroll-in animation (only when JavaScript runs; off with "reduce motion") ===== */
.js .reveal { opacity: 0; transform: translateY(0.75rem); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .status i { animation: none; }
  .scene, .scene.is-active, .option, .option::before, .progress span, .prompt-preview mark, .prompt-preview .p-check { transition: none !important; transform: none !important; }
  .caret { animation: none; display: none; }
  .btn.is-loading::after { animation-duration: 2.4s; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.lg, .card.sm { grid-column: span 1; }
  .strip { grid-column: span 2; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .section { padding: 5rem 0; }
  .cta-wrap { padding-bottom: 5rem; }
  .hero .wrap { padding-top: 4rem; padding-bottom: 5rem; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .email-unit { flex-direction: column; align-items: stretch; }
  .email-unit input { flex: none; }
  .cta { padding: 4rem 1.25rem; }
  .page { padding: 5rem 0; }
  .idea-unit { flex-direction: column; align-items: stretch; }
  .idea-text { flex: none; }
  .demo-body { padding: 1.5rem 1.125rem 1.125rem; }
  .demo-stage { min-height: 21.25rem; }
}
