:root {
  --bg: #07090b;
  --surface: #0f1317;
  --surface-2: #14191f;
  --text: #f0ece4;
  --text-dim: #9ea6af;
  --text-faint: #69717b;
  --accent: #c99a62;
  --accent-2: #6ea0b8;
  --border: rgba(255, 255, 255, 0.08);
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 154, 98, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(110, 160, 184, 0.11), transparent 22%),
    linear-gradient(180deg, #090b0d 0%, #07090b 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#targetField {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.topbar, main, .footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.brand::before {
  content: "◎ ";
  color: var(--accent);
}

.topnav a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  margin-left: 1.6rem;
  transition: color 0.3s var(--ease);
}

.topnav a:hover { color: var(--text); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(201, 154, 98, 0.85);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 4rem;
}

.hero-copy h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  line-height: 0.93;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 1.8rem;
}

.hero-copy .line { display: block; }
.hero-copy .italic { font-style: italic; color: var(--accent); }

.lede,
.section-lede,
.hero-panel p,
.history-copy p,
.pillar p,
.footer p { color: var(--text-dim); }

.lede {
  max-width: 38rem;
  font-size: 1.12rem;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.92rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

.button.solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.signal {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.signal .prompt,
.signal .arrow { color: var(--accent); }
.signal .cmd { color: var(--text-dim); }
.signal .arg { color: var(--text-faint); }
.signal .signal-text { color: var(--text); margin-left: 0.45em; }
.caret {
  width: 7px;
  height: 1em;
  margin-left: 4px;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { to { opacity: 0; } }

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(15, 19, 23, 0.95);
  border: 1px solid var(--border);
  padding: 1.5rem;
  backdrop-filter: blur(18px);
}

.panel-head,
.panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.status-chip {
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.status-chip.live {
  color: var(--accent);
  border-color: rgba(201, 154, 98, 0.28);
}

.hero-panel h2,
.section-head h2,
.history-copy h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-panel h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  margin: 1rem 0 0.8rem;
}

.hero-panel p {
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.auth-grid {
  display: grid;
  gap: 0.75rem;
}

.founder-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.auth-pill {
  appearance: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  text-decoration: none;
}

.auth-pill span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

.auth-pill small {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.auth-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 154, 98, 0.28);
  background: var(--surface-2);
}

.auth-pill:focus-visible,
.button:focus-visible,
.topnav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid rgba(201, 154, 98, 0.7);
  outline-offset: 3px;
}

.app-shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 154, 98, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(110, 160, 184, 0.11), transparent 22%),
    linear-gradient(180deg, #090b0d 0%, #07090b 100%);
}

.app-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) 5rem;
}

.app-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 4rem;
}

.app-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 1.3rem 0 1.4rem;
}

.workbench-shell {
  display: grid;
  gap: 1.25rem;
  padding: 1rem 0 0;
}

.workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1rem 0 0.5rem;
}

.workbench-head h1,
.tool-panel h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
}

.workbench-head h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  margin-top: 0.7rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.metric-strip div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 0.45rem;
  background: rgba(9, 11, 13, 0.96);
  padding: 1rem;
}

.metric-strip strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tool-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  background: rgba(9, 11, 13, 0.96);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.tool-panel h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
}

.tool-panel p,
.detail-stack {
  color: var(--text-dim);
}

.primary-tool {
  min-height: 540px;
}

.quick-capture {
  display: grid;
  gap: 0.9rem;
}

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

.detail-stack {
  display: grid;
  gap: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
}

.detail-stack span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.72rem 0.8rem;
}

.action-rail,
.session-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.action-rail {
  margin-top: 0.25rem;
}

.session-actions {
  margin-top: 1rem;
}

.app-section-tight {
  padding-top: 3rem;
}

.empty-state {
  grid-column: 1 / -1;
}

.app-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.session-form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(9, 11, 13, 0.88);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  border-radius: 12px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(201, 154, 98, 0.5);
}

.target-workbench,
.shot-timer {
  border: 1px solid var(--border);
  background: rgba(9, 11, 13, 0.88);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.timer-controls,
.timer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.toggle-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timer-stats span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.8rem;
  display: grid;
  gap: 0.2rem;
}

.timer-stats strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  font-size: 1rem;
}

.timer-stats small {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hit-canvas {
  width: 100%;
  aspect-ratio: 19 / 13;
  min-height: 260px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  display: block;
}

.mini-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  cursor: pointer;
}

.hint {
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.session-list,
.history-grid,
.session-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

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

.session-card {
  background: rgba(9, 11, 13, 0.96);
  padding: 1.7rem;
}

.session-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.session-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.session-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-faint);
  text-decoration: none;
}

.mono:hover {
  color: var(--accent);
}

.compact .step {
  background: rgba(9, 11, 13, 0.96);
}

.auth-hero .hero-panel,
.history-hero .hero-panel {
  align-self: stretch;
}

.flash {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: rgba(15, 19, 23, 0.92);
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.flash.error {
  border-color: rgba(201, 92, 92, 0.3);
  color: #f0b9b9;
}

.flash.success {
  border-color: rgba(201, 154, 98, 0.3);
  color: var(--text);
}

@media (max-width: 980px) {
  .app-hero,
  .workbench-head,
  .workbench-grid,
  .metric-strip,
  .quick-grid,
  .session-list,
  .history-grid,
  .session-detail-grid { grid-template-columns: 1fr; }

  .workbench-head {
    flex-direction: column;
    align-items: start;
  }
}

.auth-oauth { box-shadow: inset 0 0 0 1px rgba(110, 160, 184, 0.08); }
.auth-biometric { box-shadow: inset 0 0 0 1px rgba(201, 154, 98, 0.1); }
.auth-fallback { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }

/* New product shell */
:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-2: #f0ebe1;
  --text: #171b20;
  --text-dim: #58616b;
  --text-faint: #7d8790;
  --accent: #7f4f26;
  --accent-2: #2f6f68;
  --border: rgba(23, 27, 32, 0.12);
  --max: 1200px;
}

html {
  background: var(--bg);
}

body,
.app-shell,
.site-shell {
  background:
    radial-gradient(circle at top left, rgba(47, 111, 104, 0.08), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(127, 79, 38, 0.08), transparent 20%),
    linear-gradient(180deg, #faf7f0 0%, #f5f1e8 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 1.75rem);
  backdrop-filter: blur(16px);
}

.topbar,
.page-shell,
.app-main,
main {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(250, 247, 240, 0.8);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand::before {
  content: "BL ";
  color: var(--accent);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.topnav a {
  margin-left: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topnav a:hover {
  color: var(--accent);
}

main,
.app-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.75rem) 4rem;
}

.site-shell {
  min-height: 100vh;
}

.page-shell,
.hero-grid,
.info-grid,
.support-grid,
.workbench-grid,
.history-grid,
.session-detail-grid,
.faq-grid,
.guide-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid,
.page-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
  padding: 2rem 0 1rem;
}

.page-hero {
  display: grid;
  gap: 1rem;
}

.hero-copy,
.page-copy,
.surface,
.surface-card,
.tool-panel,
.session-card,
.pillar,
.step,
.faq-item,
.guide-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(23, 27, 32, 0.05);
}

.hero-copy,
.page-copy,
.surface,
.tool-panel,
.session-card,
.pillar,
.step,
.faq-item,
.guide-step {
  padding: 1.1rem;
}

.hero-copy h1,
.page-title,
.workbench-head h1,
.app-title,
.hero-panel h2,
.section-head h2,
.history-copy h2,
.tool-panel h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero-copy h1,
.page-title,
.app-title,
.workbench-head h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  margin: 0.8rem 0 1rem;
}

.surface-title,
.section-head h2,
.history-copy h2,
.hero-panel h2,
.tool-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0.5rem 0 0.5rem;
}

.surface-lede,
.lede,
.section-lede,
.hero-panel p,
.history-copy p,
.pillar p,
.footer p,
.page-copy p,
.tool-panel p {
  color: var(--text-dim);
  font-size: 1rem;
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.14em;
}

.cta-row,
.app-actions,
.action-rail,
.session-actions,
.pill-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.mini-button,
.chip,
.tab-button,
.option-pill,
.auth-pill {
  border-radius: 14px;
}

.button,
.mini-button,
.chip,
.tab-button,
.option-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.button {
  min-height: 46px;
  padding: 0.9rem 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button.solid {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.button.ghost {
  background: transparent;
}

.button:hover,
.auth-pill:hover,
.mini-button:hover,
.chip:hover,
.tab-button:hover,
.option-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 79, 38, 0.35);
}

.status-chip,
.tag,
.step-index,
.mono {
  font-family: 'JetBrains Mono', monospace;
}

.status-chip {
  background: rgba(47, 111, 104, 0.08);
  border-color: rgba(47, 111, 104, 0.2);
}

.status-chip.live {
  background: rgba(127, 79, 38, 0.09);
  color: var(--accent);
  border-color: rgba(127, 79, 38, 0.24);
}

.flash {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.field,
.choice-group,
.detail-stack,
.metric-strip,
.workflow-grid,
.history-shell,
.faq-grid,
.guide-grid {
  display: grid;
  gap: 0.75rem;
}

.field span {
  color: var(--accent-2);
}

.field input,
.field textarea,
.field select,
.search-field input {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-field input:focus {
  outline: none;
  border-color: rgba(127, 79, 38, 0.45);
  box-shadow: 0 0 0 4px rgba(127, 79, 38, 0.08);
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-strip > div,
.surface-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

a.surface-card {
  color: var(--text);
  text-decoration: none;
}

a.surface-card:hover {
  border-color: rgba(127, 79, 38, 0.45);
  transform: translateY(-1px);
}

.metric-strip strong,
.stat-card strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin-top: 0.35rem;
}

.workbench-shell,
.history-shell {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0 0;
}

.workbench-head,
.history-head,
.guide-head,
.faq-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.workbench-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
}

.tool-panel {
  display: grid;
  gap: 0.9rem;
}

.quick-grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.preset-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.preset-panel.compact {
  padding: 0.85rem;
}

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

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

.preset-row {
  display: grid;
  gap: 0.5rem;
}

.preset-row.compact-presets {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.preset-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  min-height: 38px;
  padding: 0.48rem 0.7rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
}

.detail-stack {
  font-size: 0.76rem;
}

.detail-stack span {
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  background: var(--surface-2);
}

.section {
  padding: 2rem 0 0;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 1rem;
}

.section-head h2,
.history-copy h2 {
  margin-bottom: 0.6rem;
}

.session-list,
.pillar-grid,
.faq-grid,
.guide-grid,
.history-grid,
.session-detail-grid {
  gap: 0.75rem;
  background: transparent;
  border: 0;
}

.session-list,
.pillar-grid,
.faq-grid,
.guide-grid,
.history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.session-card h3,
.pillar h3,
.guide-step h3,
.faq-item h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0.25rem 0 0.5rem;
}

.session-meta,
.pillar-top,
.panel-head,
.panel-foot,
.step {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.session-card p,
.pillar p,
.faq-item p,
.guide-step p {
  color: var(--text-dim);
}

.history {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.history-copy ul,
.checklist {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.history-copy li,
.checklist li {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.timeline,
.summary-stack {
  display: grid;
  gap: 0.75rem;
}

.timeline .step {
  border-radius: 16px;
}

.timeline.compact .step {
  background: var(--surface);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.search-field {
  flex: 1 1 280px;
}

.search-field label {
  display: grid;
  gap: 0.4rem;
}

.search-field input {
  min-height: 48px;
}

.session-card.empty-state {
  grid-column: 1 / -1;
}

.app-section-tight,
.support-band {
  padding-top: 1.5rem;
}

.support-band {
  display: grid;
  gap: 1rem;
}

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

.faq-item {
  display: grid;
  gap: 0.45rem;
}

.guide-step {
  display: grid;
  gap: 0.45rem;
}

.guide-step .tag,
.faq-item .tag,
.session-card .tag {
  color: var(--accent);
}

.guide-step ol {
  margin-left: 1.2rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.2rem 0.1rem;
}

.shot-timer,
.target-workbench {
  background: var(--surface);
  border-color: var(--border);
}

.hit-canvas {
  background: #faf7f0;
  border-radius: 14px;
}

.auth-hero,
.history-hero {
  min-height: auto;
}

.auth-grid {
  display: grid;
  gap: 0.75rem;
}

.auth-pill {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.auth-pill span {
  font-weight: 600;
}

.app-copy {
  display: grid;
  gap: 0.75rem;
}

.app-copy .lede {
  max-width: 42rem;
}

.workbench-shell .field-grid .field,
.quick-grid .field {
  margin: 0;
}

.details-grid {
  display: grid;
  gap: 0.75rem;
}

.details-grid details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 0.85rem 0.95rem;
}

.details-grid summary {
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-2);
}

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

.details-grid summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.details-grid details[open] summary::after {
  content: "–";
}

.details-grid .detail-body {
  margin-top: 0.8rem;
}

footer.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem 2rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero,
  .workbench-grid,
  .history,
  .support-grid,
  .metric-strip,
  .quick-grid,
  .preset-grid,
  .field-grid,
  .session-list,
  .pillar-grid,
  .faq-grid,
  .guide-grid,
  .history-grid,
  .session-detail-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
  }
}

.panel-foot {
  margin-top: 1rem;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.section { padding: 7rem 0 0; }

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2,
.history-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin: 0.9rem 0 1rem;
}

.section-lede { font-size: 1.03rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar {
  background: rgba(9, 11, 13, 0.96);
  padding: 1.8rem;
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.tag,
.step-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 98, 0.55);
  box-shadow: 0 0 16px rgba(201, 154, 98, 0.18);
}

.pillar h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.pillar p { font-size: 0.96rem; }

.history {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.history-copy { max-width: 38rem; }

.checklist {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
  font-size: 0.96rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 154, 98, 0.6);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.step {
  border: 1px solid var(--border);
  background: rgba(15, 19, 23, 0.82);
  padding: 1.2rem 1.25rem;
}

.step-index {
  display: inline-block;
  margin-bottom: 0.55rem;
}

.step p {
  color: var(--text-dim);
  font-size: 0.97rem;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 3vw, 2.5rem) 2.5rem;
}

.footer p {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
}

.armory-list {
  display: grid;
  gap: 0.65rem;
}

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

.armory-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.74);
}

.armory-item.selected,
.chip.selected,
.option-pill:has(input:checked) {
  border-color: rgba(127, 79, 38, 0.45);
  background: rgba(127, 79, 38, 0.12);
  box-shadow: inset 0 0 0 1px rgba(127, 79, 38, 0.12);
}

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

.armory-item span {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.timer-large .timer-stats strong {
  font-size: 1.45rem;
}

@media (max-width: 980px) {
  .hero,
  .history,
  .armory-list.horizontal,
  .pillar-grid { grid-template-columns: 1fr; }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: column;
  }

  .topnav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .section { padding-top: 5rem; }

  .auth-pill {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot,
  .caret { animation: none !important; }

  #targetField { display: none; }
}
