/* ==========================================================================
   FieldTruth — Component Styles
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-primary-on);
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.mono,
.mono-truncate,
.burn-chip,
.transcript-label,
.rec-indicator,
.battery-indicator {
  font-family: var(--font-mono);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  color: var(--color-primary-hover);
  display: inline-flex;
}
.brand-dot {
  color: var(--color-signal);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}
.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--color-text);
}
.nav-cta {
  background: var(--color-primary);
  color: var(--color-primary-on) !important;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--color-primary-hover);
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  flex-shrink: 0;
}
.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--color-surface-offset);
}
.menu-toggle {
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-2) var(--space-6) var(--space-4);
  border-top: 1px solid oklch(from var(--color-border) l c h / 0.6);
  gap: var(--space-1);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover {
  background: var(--color-surface-offset);
}
.mobile-nav .nav-cta {
  text-align: center;
  margin-top: var(--space-2);
}

@media (min-width: 860px) {
  .main-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  min-height: 44px;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-on);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}
.btn-block {
  width: 100%;
}

/* ---------------- Section scaffolding ---------------- */
.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}
.section-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  color: var(--color-rust);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.section-kicker--inverse {
  color: var(--color-signal);
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  max-width: 40ch;
  margin-bottom: var(--space-10);
  letter-spacing: -0.01em;
}
.section-title--inverse {
  color: var(--color-text-inverse);
}

/* ---------------- Hero ---------------- */
.hero {
  padding-block: clamp(var(--space-10), 8vw, var(--space-20)) clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-16);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-10);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-rust);
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal);
  flex-shrink: 0;
  animation: pulse-rec 2s ease-in-out infinite;
}
@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.hero-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: 42ch;
}

/* ---------------- Hero visual: capture device mockup ---------------- */
.hero-visual {
  display: flex;
  justify-content: center;
}
.capture-device {
  width: 100%;
  max-width: 420px;
  background: #23241d;
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-lg);
  border: 1px solid oklch(0.3 0.02 95 / 0.6);
}
[data-theme='dark'] .capture-device {
  background: #0f0e09;
  border-color: #383423;
}

.device-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2) var(--space-2);
  color: #ece6d4;
  font-size: var(--text-xs);
  gap: var(--space-2);
}
.rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #f2d15c;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 0;
}
.rec-indicator .rec-dot {
  background: #e0503a;
  animation: pulse-rec 1.4s ease-in-out infinite;
}
.battery-indicator {
  color: #a9a288;
  white-space: nowrap;
  flex-shrink: 0;
}

.capture-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #4a5240 0%, #383d2f 55%, #2a2c22 100%);
  isolation: isolate;
}

.scene-horizon {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6c7a52 0%, #4a5540 38%, #33352a 100%);
}
.scene-figure {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 14%;
  aspect-ratio: 1 / 2.6;
  background: #1c1c16;
  border-radius: 40% 40% 10% 10% / 20% 20% 6% 6%;
  transform: translateX(-50%);
  opacity: 0.75;
}
.scene-figure::before {
  content: '';
  position: absolute;
  top: -22%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  background: #1c1c16;
  border-radius: 50%;
  transform: translateX(-50%);
}
.viewfinder-corners {
  position: absolute;
  inset: 10%;
}
.viewfinder-corners span {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(232, 227, 211, 0.55);
}
.viewfinder-corners span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.viewfinder-corners span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.viewfinder-corners span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.viewfinder-corners span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.burn-in {
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  z-index: 2;
}
.burn-in--top {
  top: var(--space-2);
  justify-content: flex-start;
}
.burn-in--bottom {
  bottom: var(--space-2);
  justify-content: space-between;
}

.burn-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: rgba(10, 10, 6, 0.62);
  color: #f2d15c;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  border: 1px solid rgba(242, 209, 92, 0.35);
}
.burn-chip--mono {
  color: #ece6d4;
  border-color: rgba(236, 230, 212, 0.28);
}
.burn-chip--hash {
  color: #a9a288;
  border-color: rgba(169, 162, 136, 0.3);
}

.transcript-line {
  margin-top: var(--space-3);
  background: #1c1b14;
  border: 1px solid #383423;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  min-height: 68px;
}
.transcript-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: #e0503a;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.transcript-text {
  color: #ece6d4;
  font-size: var(--text-xs);
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: break-word;
}

.storyboard-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-1);
  margin-top: var(--space-3);
}
.storyboard-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: linear-gradient(155deg, #565c3f, #33352a);
  border: 1px solid #423d27;
  overflow: hidden;
}
.storyboard-frame::after {
  content: attr(data-tag);
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  font-size: 0.5rem;
  line-height: 1.2;
  color: #ece6d4;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 3px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.storyboard-frame--active {
  border-color: #e8c33c;
  box-shadow: 0 0 0 1px #e8c33c inset;
}

/* ---------------- Pitch: before/after ---------------- */
.pitch {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.pitch-compare {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .pitch-compare {
    grid-template-columns: 1fr auto 1fr;
  }
}
.pitch-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pitch-label--accent {
  color: var(--color-rust);
}
.tool-pile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.tool-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.tool-chip svg {
  flex-shrink: 0;
  color: var(--color-text-faint);
}
.pitch-fine {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.pitch-arrow {
  display: flex;
  justify-content: center;
  color: var(--color-rust);
  transform: rotate(90deg);
}
@media (min-width: 900px) {
  .pitch-arrow {
    transform: none;
  }
}
.one-app-card {
  background: #23241d;
  color: #ece6d4;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: left;
  box-shadow: var(--shadow-md);
}
.brand-mark--card {
  color: #e8c33c;
  margin-bottom: var(--space-4);
  display: inline-flex;
}
.one-app-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.one-app-sub {
  font-size: var(--text-sm);
  color: #a9a288;
  max-width: 32ch;
}

/* ---------------- Feature grid ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--lg {
    grid-column: span 2;
  }
}
@media (min-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature-card--lg {
    grid-column: span 2;
    grid-row: span 2;
  }
  .feature-grid .feature-card:nth-child(2) { grid-column: span 2; }
  .feature-grid .feature-card:nth-child(3) { grid-column: span 2; }
  .feature-grid .feature-card:nth-child(4) { grid-column: span 3; }
  .feature-grid .feature-card:nth-child(5) { grid-column: span 3; }
}

.feature-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-width: 0;
}
.feature-card--lg {
  background: var(--color-olive);
  color: var(--color-text-inverse);
  border-color: transparent;
}
[data-theme='dark'] .feature-card--lg {
  color: #17160f;
}
.feature-index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.feature-card--lg .feature-index {
  color: color-mix(in oklab, var(--color-text-inverse) 65%, transparent);
}
.feature-icon {
  color: var(--color-rust);
  margin-bottom: var(--space-4);
}
.feature-card--lg .feature-icon {
  color: var(--color-signal);
}
.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.feature-card--lg p {
  color: color-mix(in oklab, var(--color-text-inverse) 85%, transparent);
}

/* ---------------- Chain of custody ---------------- */
.custody {
  background: #1c1b14;
  color: #ece6d4;
}
[data-theme='dark'] .custody {
  background: #100f0a;
}
.custody-grid {
  display: grid;
  gap: var(--space-12);
}
@media (min-width: 960px) {
  .custody-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }
}
.custody-sub {
  color: #a9a288;
  font-size: var(--text-base);
  max-width: 48ch;
  margin-bottom: var(--space-6);
}
.custody-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.custody-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: #ece6d4;
  max-width: 46ch;
}
.check {
  color: #e8c33c;
  font-weight: 700;
  flex-shrink: 0;
}

.custody-card {
  background: #23221a;
  border: 1px solid #3a3623;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.custody-card-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e0503a;
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.custody-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.custody-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid #3a3623;
  min-width: 0;
}
.custody-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.custody-field dt {
  font-size: var(--text-xs);
  color: #a9a288;
  flex-shrink: 0;
}
.custody-field dd {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #ece6d4;
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mono-truncate {
  max-width: 160px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.status-pill--ok {
  background: rgba(143, 174, 108, 0.18);
  color: #a8c286;
}

/* ---------------- Audience ---------------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 780px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.audience-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  min-width: 0;
}
.audience-num {
  font-family: var(--font-mono);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.audience-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.audience-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------------- Waitlist ---------------- */
.waitlist {
  background: var(--color-surface-offset);
}
.waitlist-wrap {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 960px) {
  .waitlist-wrap {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
  }
}
.waitlist-copy p {
  color: var(--color-text-muted);
  max-width: 42ch;
}
.waitlist-panel {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-width: 0;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.form-row label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-row input,
.form-row select {
  width: 100%;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  min-height: 44px;
}
.form-row input:focus,
.form-row select:focus {
  border-color: var(--color-primary-hover);
}
.form-fine {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

.waitlist-success {
  text-align: center;
  padding: var(--space-8) var(--space-2);
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-success-highlight);
  color: var(--color-success);
  margin-bottom: var(--space-4);
}
.success-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.success-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 34ch;
  margin-inline: auto;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #1c1b14;
  color: #a9a288;
  padding-block: var(--space-12);
}
[data-theme='dark'] .site-footer {
  background: #0d0c08;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
@media (min-width: 860px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}
.brand--footer {
  color: #ece6d4;
}
.brand--footer .brand-mark {
  color: #e8c33c;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer-nav a {
  color: #a9a288;
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-nav a:hover {
  color: #ece6d4;
}
.footer-legal {
  font-size: var(--text-xs);
  max-width: 46ch;
  color: #7a7460;
}
