/* YNX Deep House Composer Agent — front-of-house styles. © 2026 YNX LLC. */

:root {
  --bg: #06070a;
  --bg-raised: #0b0d12;
  --bg-card: rgba(18, 21, 29, 0.82);
  --bg-card-solid: #12151d;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e7ecf3;
  --text-dim: #9aa7b8;
  --text-faint: #6b7789;
  --primary: #34d3b0;
  --primary-strong: #19b294;
  --primary-ink: #04110d;
  --accent: #8b7cf6;
  --accent-2: #f0a35e;
  --danger: #f87171;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px rgba(2, 4, 8, 0.55);
  --font:
    "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Author display rules must never beat the hidden attribute. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(139, 124, 246, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 8%, rgba(52, 211, 176, 0.13), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
canvas {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem) 4rem;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(var(--bg) 82%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-ink);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 18px rgba(52, 211, 176, 0.35);
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 0.35rem 0.2rem;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg-card);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
}

.status-pill.is-ok .status-dot {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.status-pill.is-bad .status-dot {
  background: var(--danger);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.account-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.account-chip-meta {
  text-align: left;
  line-height: 1.15;
}

.account-chip-meta strong {
  display: block;
  font-size: 0.82rem;
}

.account-chip-meta small {
  color: var(--text-dim);
  font-size: 0.7rem;
}

/* Make the Randomize checkbox more prominent and accessible */
.field .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.03);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.field .checkbox:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2,4,8,0.45);
  border-color: rgba(52,211,176,0.14);
}

.field .checkbox:focus-within {
  box-shadow: 0 0 0 4px rgba(52,211,176,0.12);
}

.field .checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.field .checkbox span {
  font-weight: 600;
  color: var(--text);
}

/* ------------------------------------------------------------------ hero */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #f4f7fb 30%, #9be8d4 75%, #b1a6fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 1.04rem;
  max-width: 56ch;
  margin: 0 0 1.6rem;
}

.hero-subtitle strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.hero-footnote {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin: 0;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  aspect-ratio: 43 / 31;
}

.hero-visual canvas {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------- trust strip */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 0.5rem 0 3rem;
}

.trust-strip strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.trust-strip span {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* -------------------------------------------------------------- sections */

section {
  scroll-margin-top: 90px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.section-note {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

.section-heading--compact {
  margin-bottom: 1rem;
}

.inline-link {
  color: var(--primary);
}

.experience-section {
  padding: 1rem 0 3rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.4rem 1.3rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.value-card:hover {
  border-color: rgba(52, 211, 176, 0.45);
  transform: translateY(-3px);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(52, 211, 176, 0.18), rgba(139, 124, 246, 0.2));
  border: 1px solid var(--line-strong);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ form */

.request-section {
  position: relative;
  padding-bottom: 3rem;
}

.signin-gate {
  position: absolute;
  inset: 6.5rem 0 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4rem;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.25), rgba(6, 7, 10, 0.86) 38%);
  border-radius: var(--radius);
  backdrop-filter: blur(2px);
}

.signin-gate-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 360px;
}

.signin-gate-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.signin-gate-card p {
  margin: 0 0 0.4rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.brief-form {
  display: grid;
  gap: 1.2rem;
}

.brief-form.is-gated {
  filter: saturate(0.7);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.form-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.3rem 1.4rem 1.5rem;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.form-group legend {
  padding: 0 0.55rem;
  margin-left: -0.25rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.req {
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.4rem;
}

.opt {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 0.4rem;
}

.helper {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input:not([type]),
select,
textarea {
  width: 100%;
  background: rgba(5, 7, 10, 0.7);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 211, 176, 0.18);
}

.field-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.char-count {
  color: var(--text-faint);
  font-size: 0.76rem;
  margin-left: auto;
}

.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin: 0;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}

.segment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-body {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  height: 100%;
}

.segment-body strong {
  display: block;
  font-size: 0.9rem;
}

.segment-body small {
  color: var(--text-faint);
  font-size: 0.74rem;
}

.segment-option input:checked + .segment-body {
  border-color: var(--primary);
  background: rgba(52, 211, 176, 0.1);
}

.segment-option input:focus-visible + .segment-body {
  box-shadow: 0 0 0 3px rgba(52, 211, 176, 0.25);
}

.segment-body:hover {
  transform: translateY(-1px);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.range-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.range-control output {
  min-width: 2ch;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.form-actions-note {
  margin-top: -0.4rem;
}

.quota-note {
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.35rem;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: var(--primary-ink);
  box-shadow: 0 10px 26px rgba(52, 211, 176, 0.3);
}

.button--primary:hover {
  box-shadow: 0 14px 32px rgba(52, 211, 176, 0.4);
}

.button--quiet {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(15, 18, 25, 0.6);
}

.button--quiet:hover {
  border-color: var(--primary);
}

.button--small {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(4, 17, 13, 0.35);
  border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------ phase track */

.delivery-section {
  padding-bottom: 3rem;
}

.phase-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 1.2rem;
}

.phase-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0.75rem 0.9rem;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.phase-step strong {
  display: block;
  font-size: 0.85rem;
}

.phase-step small {
  color: var(--text-faint);
  font-size: 0.72rem;
}

.phase-dot {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.phase-step.is-active {
  border-color: var(--primary);
  background: rgba(52, 211, 176, 0.08);
}

.phase-step.is-active .phase-dot {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(52, 211, 176, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

.phase-step.is-done .phase-dot {
  background: var(--ok);
}

.phase-step.is-skipped {
  opacity: 0.55;
}

.phase-track.is-failed .phase-step.is-active {
  border-color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
}

/* ------------------------------------------------------------- result card */

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.result-head-actions {
  display: flex;
  gap: 0.5rem;
}

.result-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.state-text {
  font-size: 1.25rem;
}

.result-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.debug-ref {
  margin-top: 0.5rem !important;
  color: var(--text-faint) !important;
  font-size: 0.75rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.player {
  width: 100%;
  margin: 0.4rem 0 1rem;
  border-radius: var(--radius-sm);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.meta-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0.6rem 0.8rem;
}

.meta-grid span {
  display: block;
  color: var(--text-faint);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meta-grid strong {
  font-size: 0.88rem;
  word-break: break-all;
}

.meta-wide {
  grid-column: 1 / -1;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(52, 211, 176, 0.4);
  background: rgba(52, 211, 176, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
}

.download-row span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.download-actions {
  display: flex;
  gap: 0.5rem;
}

.track-row {
  border-top: 1px dashed var(--line-strong);
  padding-top: 1.2rem;
  margin-top: 0.4rem;
}

.track-controls {
  display: flex;
  gap: 0.6rem;
}

.track-controls input {
  flex: 1;
}

.progress-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.progress-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-left: 2px solid var(--line-strong);
  padding-left: 0.8rem;
}

.progress-list time {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- recent */

.recent-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.7rem;
}

.recent-empty {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.recent-item {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.recent-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.recent-item strong {
  font-size: 0.92rem;
}

.recent-item span {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.recent-item small {
  color: var(--text-faint);
  font-size: 0.72rem;
}

.recent-status {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warn);
}

.recent-status--done {
  color: var(--ok);
}

.recent-status--failed {
  color: var(--danger);
}

.recent-status--agent {
  color: var(--accent);
}

/* --------------------------------------------------------------- pricing */

.pricing-section {
  padding: 1.5rem 0 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.is-featured {
  border-color: rgba(139, 124, 246, 0.65);
  background: linear-gradient(180deg, rgba(139, 124, 246, 0.12), var(--bg-card) 55%);
}

.pricing-card.is-featured::before {
  content: "Most popular";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #14102b;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.75rem;
}

.pricing-card.is-current {
  border-color: var(--primary);
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pricing-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 0.2rem;
}

.pricing-tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  min-height: 2.4em;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.pricing-features li {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding-left: 1.3rem;
  position: relative;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.65em;
  height: 0.35em;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.pricing-license {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-cta {
  width: 100%;
}

.pricing-footnote {
  margin-top: 1.2rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.site-footer strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.site-footer span {
  display: block;
  max-width: 68ch;
}

.footer-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.7rem;
}

.footer-links a {
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-tag {
  white-space: nowrap;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------- modals */

.modal {
  border: none;
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  max-width: min(92vw, 420px);
  width: 100%;
}

.modal::backdrop {
  background: rgba(3, 4, 7, 0.7);
  backdrop-filter: blur(3px);
}

.modal-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem 1.7rem;
  display: grid;
  gap: 0.9rem;
  color: var(--text);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(5, 7, 10, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
}

.modal-tab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0;
  cursor: pointer;
}

.modal-tab.is-active {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: var(--primary-ink);
}

.modal-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.modal-submit {
  width: 100%;
}

.modal-fineprint {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.account-summary {
  display: grid;
  gap: 0.55rem;
}

.account-email {
  margin: 0;
  font-weight: 600;
  word-break: break-all;
}

.account-plan-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-badge {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: var(--primary-ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-license {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.usage-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.usage-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
}

.usage-label,
.usage-period {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.account-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

/* ---------------------------------------------------------------- toasts */

.toast-region {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  display: grid;
  gap: 0.5rem;
  z-index: 90;
  max-width: min(92vw, 360px);
}

.toast {
  background: var(--bg-card-solid);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--primary);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--success {
  border-left-color: var(--ok);
}

.noscript-note {
  background: var(--danger);
  color: #2b0606;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ------------------------------------------------------------ legal pages */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem) 4rem;
}

.legal-page h1 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-dim);
  font-size: 0.94rem;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .phase-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .status-pill {
    display: none;
  }

  .phase-track {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .download-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto;
  }
}


/* ------------------------------------------------------------------ */
/* v10.1 UX polish: listener feedback, detected directives, layout     */
/* ------------------------------------------------------------------ */

.feedback-block {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(52, 211, 176, 0.07), transparent 55%),
    var(--bg-card);
}

.feedback-head { margin-bottom: 12px; }

.feedback-title {
  margin: 0;
  font-weight: 650;
  font-size: 1rem;
}

.feedback-sub {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-thumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card-solid);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.feedback-thumb:hover { border-color: var(--primary); transform: translateY(-1px); }

.feedback-thumb.is-selected {
  border-color: var(--primary);
  background: rgba(52, 211, 176, 0.12);
}

.feedback-tags { margin-top: 14px; }

.feedback-tags-label {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.feedback-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.feedback-chip {
  padding: 7px 14px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.feedback-chip:hover { color: var(--text); border-color: var(--primary); }

.feedback-chip.is-selected {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.feedback-thanks {
  margin: 4px 0 0;
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 550;
}

/* Layout + interaction polish */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 7, 10, 0.78);
  border-bottom: 1px solid var(--line);
}

.result-card { transition: border-color 0.3s ease; }

.player {
  width: 100%;
  margin-top: 16px;
  border-radius: var(--radius);
  accent-color: var(--primary);
}

.pricing-card,
.value-card,
.recent-item {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pricing-card:hover,
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.recent-item:hover { border-color: var(--primary); }

:is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (max-width: 700px) {
  .feedback-actions { flex-direction: column; align-items: stretch; }
  .feedback-thumb { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pricing-card, .value-card, .recent-item, .feedback-thumb { transition: none; }
}


/* ------------------------------------------------------------------ */
/* v10.2 UX pass: member-first layout, mobile header + nav, honest    */
/* pipeline copy hooks, quota banner, download meta, tap targets.     */
/* ------------------------------------------------------------------ */

/* --- Section order: visitors get the pitch first, members get the
   workspace first. Flex + order keeps markup (and anchors) unchanged. --- */
main {
  display: flex;
  flex-direction: column;
}

main > .hero-section { order: 0; }
main > .trust-strip { order: 1; }
main > .experience-section { order: 2; }
main > .request-section { order: 3; }
main > #delivery { order: 4; }
main > #recent { order: 5; }
main > .pricing-section { order: 6; }

body.is-member main > .hero-section { order: 0; }
body.is-member main > .request-section { order: 1; }
body.is-member main > #delivery { order: 2; }
body.is-member main > #recent { order: 3; }
body.is-member main > .pricing-section { order: 4; }
body.is-member main > .trust-strip { order: 5; }
body.is-member main > .experience-section { order: 6; }

/* Members already know the pitch: collapse the hero to a compact header. */
body.is-member .hero-section {
  grid-template-columns: 1fr;
  padding: clamp(1.2rem, 3vw, 2rem) 0 1.4rem;
  gap: 0;
}

body.is-member .hero-visual,
body.is-member .hero-subtitle,
body.is-member .hero-actions,
body.is-member .hero-footnote {
  display: none;
}

body.is-member .hero-copy h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 0.5rem;
}

body.is-member .trust-strip {
  margin-top: 2.5rem;
}

/* Long IDs still wrap, but ordinary phrases break at spaces first. */
.meta-grid strong {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Submit with nothing left to submit: keep it clickable (it points at the
   banner) but stop it shouting. */
.button--primary.is-blocked {
  background: rgba(15, 18, 25, 0.6);
  color: var(--text-dim);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button--primary.is-blocked:hover {
  box-shadow: none;
  border-color: var(--primary);
}

/* --- Quota banner: persistent, next to the submit button. --- */
.quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(240, 163, 94, 0.55);
  background: rgba(240, 163, 94, 0.09);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.quota-banner-copy {
  display: grid;
  gap: 0.15rem;
}

.quota-banner-copy strong {
  font-size: 0.95rem;
}

.quota-banner-copy span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* --- Download row: file name + link expiry stacked. --- */
.download-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.download-meta > span {
  word-break: break-word;
}

.download-expiry {
  color: var(--text-faint);
  font-size: 0.74rem;
}

/* --- Feedback chips: visible count and a clear "full" state. --- */
.feedback-tag-count {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-left: 0.4rem;
}

.feedback-chip.is-maxed {
  opacity: 0.45;
  cursor: not-allowed;
}

.feedback-chip.is-maxed:hover {
  color: var(--text-dim);
  border-color: var(--line-strong);
}

/* --- Account modal note when billing is not open yet. --- */
.account-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.84rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

/* --- Lane picker: five lanes, five columns on wide screens (no empty
   sixth track from auto-fit). --- */
@media (min-width: 900px) {
  .segment-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* --- Touch: comfortable targets everywhere. --- */
@media (pointer: coarse) {
  .button,
  .feedback-thumb,
  .feedback-chip,
  .modal-tab,
  .recent-item,
  .account-chip {
    min-height: 44px;
  }

  .button--small {
    min-height: 40px;
  }
}

/* --- Tablet and below: keep the primary nav as a scrollable row instead
   of dropping it; it is the only way to jump to the form on a phone. --- */
@media (max-width: 960px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.7rem 0 0.55rem;
  }

  .topbar-side {
    margin-left: auto;
  }

  .nav-links {
    display: flex;
    order: 3;
    flex-basis: 100%;
    gap: 0.35rem;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.1rem;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    font-size: 0.8rem;
    background: rgba(15, 18, 25, 0.6);
    white-space: nowrap;
  }

  .nav-links a:first-child {
    border-color: rgba(52, 211, 176, 0.5);
    color: var(--primary);
  }

  section {
    scroll-margin-top: 110px;
  }
}

/* --- Phones. --- */
@media (max-width: 620px) {
  .topbar {
    gap: 0.4rem 0.6rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .brand small {
    display: none;
  }

  /* The health pill only earns its space when something is wrong. */
  .status-pill.is-bad {
    display: inline-flex;
  }

  /* Hero: get the headline and the CTA above the fold. */
  .hero-section {
    padding: 1.4rem 0 1.6rem;
    gap: 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
  }

  .hero-subtitle {
    font-size: 0.97rem;
    margin-bottom: 1.2rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .trust-strip {
    padding: 0.9rem 1rem;
    margin-bottom: 2rem;
    gap: 0.8rem;
  }

  .experience-section {
    padding-bottom: 2rem;
  }

  .form-group {
    padding: 1.1rem 1rem 1.25rem;
  }

  /* 16px inputs stop iOS Safari from zooming the page on focus. */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input:not([type]),
  select,
  textarea {
    font-size: 16px;
  }

  .form-actions .button {
    flex: 1 1 auto;
  }

  .quota-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-card {
    padding: 1.2rem 1.1rem;
  }

  .pricing-price {
    font-size: 1.7rem;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions .button {
    flex: 1 1 auto;
  }

  .toast-region {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}


/* ------------------------------------------------------------------ */
/* v11 landing: brief-to-master hero with a live track card, quiet     */
/* proof row, three-step sequence, value-forward pricing, FAQ.        */
/* Workspace sections (form, console, drafts) keep their v10.2 look.   */
/* ------------------------------------------------------------------ */

:root {
  --font-display:
    "Segoe UI Variable Display", "SF Pro Display", "Avenir Next", "Helvetica Neue",
    "Inter", system-ui, sans-serif;
  --amber: #f0a35e;
  --amber-ink: #2a1703;
  --radius-lg: 22px;
}

/* Section labels: sentence case, no tracking. They say where you are,
   not shout at you. */
.eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.7rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.section-note {
  max-width: 62ch;
}

.button--large {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}

/* --- Hero ------------------------------------------------------------ */

.hero-section {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  padding: clamp(2.2rem, 6vw, 5rem) 0 2.4rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.8vw, 3.75rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 1.2rem;
  max-width: 15ch;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.06rem;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 1.7rem;
}

.hero-actions {
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.hero-footnote {
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* The track card: the product's output, shown instead of described. */
.hero-visual {
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.track-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(240, 163, 94, 0.08), transparent 38%),
    linear-gradient(0deg, rgba(52, 211, 176, 0.06), transparent 55%),
    var(--bg-card-solid);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  padding: 1.25rem 1.3rem 1.2rem;
  display: grid;
  gap: 1rem;
}

.track-card::after {
  /* Warm club light falling across the card. */
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(240, 163, 94, 0.18), transparent 70%);
  pointer-events: none;
}

.track-card-brief {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.track-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
}

.track-card-brief p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 44ch;
}

.track-card-lane {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0c11;
  border: 1px solid var(--line);
  aspect-ratio: 86 / 30;
}

.track-card-lane canvas {
  width: 100%;
  height: 100%;
}

.track-card-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(240, 163, 94, 0.7);
  animation: playhead 9s linear infinite;
}

@keyframes playhead {
  from { left: 0; }
  to { left: calc(100% - 2px); }
}

.track-card-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.track-card-meta strong {
  display: block;
  font-size: 1rem;
}

.track-card-meta span:not(.track-card-badge) {
  display: block;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.track-card-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--amber-ink);
  background: var(--amber);
  white-space: nowrap;
}

/* --- Proof row: four facts, hairline separators, no cards. ---------- */

.trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 1.2rem 0;
  margin: 0.6rem 0 3.2rem;
}

.trust-strip > div {
  padding: 0.2rem 1.4rem 0.2rem 0;
}

.trust-strip > div + div {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.trust-strip strong {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.trust-strip span {
  font-size: 0.84rem;
  line-height: 1.5;
}

/* --- Steps: a real sequence, so the numbers stay. --------------------- */

.experience-section {
  padding: 0.5rem 0 3.4rem;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps-list .value-card {
  border: none;
  border-radius: 0;
  background: none;
  padding: 1.4rem 1.4rem 1.4rem 0;
  transition: none;
}

.steps-list .value-card + .value-card {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.steps-list .value-card:hover {
  transform: none;
  border-color: var(--line);
}

.steps-list .card-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: none;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.steps-list h3 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.use-cases {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.6rem;
}

.use-cases strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.use-cases span {
  display: block;
  color: var(--text-dim);
  font-size: 0.84rem;
}

/* --- Pricing: value first. ------------------------------------------- */

.pricing-section {
  padding: 2.2rem 0 1.5rem;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.pricing-card {
  gap: 0.6rem;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--bg-card-solid);
}

.pricing-card h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 0.2rem;
}

.pricing-per-render {
  margin: -0.2rem 0 0.2rem;
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 600;
}

.pricing-card.is-featured {
  border-color: rgba(240, 163, 94, 0.7);
  background:
    linear-gradient(180deg, rgba(240, 163, 94, 0.1), transparent 42%),
    var(--bg-card-solid);
  box-shadow: 0 30px 60px rgba(2, 4, 8, 0.5);
}

.pricing-card.is-featured::before {
  background: var(--amber);
  color: var(--amber-ink);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.74rem;
  padding: 0.28rem 0.8rem;
}

.pricing-card:hover,
.pricing-card.is-featured:hover {
  transform: none;
}

.pricing-license {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.pricing-footnote {
  margin-top: 1rem;
}

/* Comparison table */

.compare {
  margin-top: 2.6rem;
}

.compare h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

.compare-table thead th {
  border-top: none;
  color: var(--text);
  font-weight: 650;
  padding-top: 0;
}

.compare-table tbody th {
  color: var(--text);
  font-weight: 550;
  width: 24%;
}

.compare-table .is-featured {
  background: rgba(240, 163, 94, 0.07);
  color: var(--text);
}

/* --- FAQ --------------------------------------------------------------- */

.faq-section {
  padding: 1.5rem 0 1rem;
}

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.2rem 1rem 0;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.94rem;
  max-width: 70ch;
}

.faq-item p a {
  color: var(--primary);
}

/* --- Footer ---------------------------------------------------------- */

.site-footer {
  margin-top: 3rem;
}

/* --- Members: the pitch collapses, the workspace leads. --------------- */

main > .faq-section { order: 7; }
body.is-member main > .faq-section { order: 8; }
body.is-member main > .experience-section { order: 7; }

body.is-member .hero-copy h1 {
  max-width: none;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.025em;
}

body.is-member .use-cases {
  display: none;
}

/* --- Responsive ------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0;
  }

  .trust-strip > div:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .trust-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .steps-list .value-card + .value-card {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero-section {
    padding: 1.6rem 0 1.8rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 9.5vw, 2.6rem);
    max-width: none;
  }

  /* Phones see the product too: the card sits under the CTA, compact. */
  .hero-visual {
    display: block;
  }

  .track-card {
    padding: 1rem 1rem 0.95rem;
    gap: 0.8rem;
  }

  .track-card-brief p {
    font-size: 0.9rem;
  }

  .track-card-badge {
    white-space: normal;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.4rem 0;
    margin-bottom: 2.4rem;
  }

  .trust-strip > div {
    padding: 0.8rem 0;
    border-left: none;
  }

  .trust-strip > div + div {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-strip > div:nth-child(n + 3) {
    padding-top: 0.8rem;
  }

  .use-cases {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-price {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-card-playhead {
    animation: none;
    left: 38%;
  }
}
