/* ============================================================
   Pyrority — design tokens + shared layout
   Ported from designer-supplied static HTML.
   Page-specific rules currently live alongside shared ones; will
   be split out as the manifesto / how-it-works / early-access
   pages come online.
   ============================================================ */

:root {
  --base: #1a1a1a;
  --base-deeper: #161616;
  --base-deepest: #141414;
  --proof-bg: #1c1c1c;
  --surface: #212121;
  --surface-2: #1e1e1e;
  --pill: #2a2a2a;
  --border: #2a2a2a;
  --border-soft: #232323;

  --amber: #EF9F27;
  --amber-deep: #c87f15;
  --amber-dim: #5a3f10;
  --red: #E24B4A;
  --red-dim: #4a1f1e;
  --blue: #3498BF;
  --white-hot: #F8F4ED;
  --gray-heat: #555;

  --text: #fafafa;
  --text-muted: #a8a8a8;
  --text-dim: #6e6e6e;
  --text-dimmer: #484848;
}

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

html, body {
  background: var(--base);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Neutralise WordPress template-part wrapper divs so designer markup
   sits flush in document flow. */
.wp-site-blocks > .wp-block-template-part,
.wp-block-template-part { display: contents; }

.amber-period { color: var(--amber); }

/* ============================================================
   Pyrority mark — amber rounded square + dark inset
   ============================================================ */
.mark {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.mark.size-sm { width: 28px; height: 28px; }
.mark.size-md { width: 32px; height: 32px; }

.mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  border-radius: 25%;
}

.mark::after {
  content: '';
  position: absolute;
  inset: 30%;
  background: var(--base);
  border-radius: 25%;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid var(--border-soft);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  line-height: 0; /* eliminate inline-image baseline gap */
}

/* Image-based wordmark lockup, used in header + footer. The asset
   includes the mark + wordmark; we size by height and let width
   scale to preserve aspect ratio. */
.wordmark-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 220px;
}

footer .wordmark-img { height: 28px; max-width: 200px; }

@media (max-width: 768px) {
  .wordmark-img { height: 26px; }
  footer .wordmark-img { height: 24px; }
}

/* Fallback typographic wordmark for any context still emitting it. */
.wordmark-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
}

/* Inline brand icon (replaces the old CSS .mark placeholder inside
   the Kindling Box demo + Early Access form header). */
.brand-icon {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.brand-icon-sm { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.nav-cta {
  color: var(--amber) !important;
  font-weight: 500;
}

.nav-cta:hover { color: #ffb544 !important; }

.nav-current {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 71px);
  max-width: 1700px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeIn 600ms ease-out 200ms forwards;
}

.ember {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff5e0 0%, var(--amber) 40%, var(--amber-deep) 100%);
  box-shadow:
    0 0 6px var(--amber),
    0 0 14px rgba(239, 159, 39, 0.6),
    0 0 28px rgba(239, 159, 39, 0.3);
  animation: emberPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes emberPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px var(--amber), 0 0 14px rgba(239, 159, 39, 0.6), 0 0 28px rgba(239, 159, 39, 0.3);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
    box-shadow: 0 0 8px var(--amber), 0 0 20px rgba(239, 159, 39, 0.75), 0 0 40px rgba(239, 159, 39, 0.4);
  }
}

.headline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 7.6vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 350ms forwards;
}

.subhead {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeIn 600ms ease-out 700ms forwards;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 600ms ease-out 900ms forwards;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: #0f0f0f;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta-primary:hover {
  background: #ffb544;
  transform: translateY(-1px);
}

.cta-primary svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.cta-primary:hover svg { transform: translateX(3px); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cta-secondary:hover { color: var(--text); border-color: var(--amber); }

/* Hero product surface */
.product-stage {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: 100%;
}

.product-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.card-back {
  position: absolute;
  top: -34px;
  left: 14%;
  right: -8%;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 18px 20px 18px 24px;
  border-left: 3px solid var(--amber-deep);
  transform: rotate(7deg) translateY(0);
  opacity: 0.55;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5), 0 8px 20px -10px rgba(0, 0, 0, 0.4);
  animation: cardBackEnter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 600ms backwards;
}

.card-title-back {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.card-back .pills { margin-top: 10px; }

.card-front {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 24px 22px 28px;
  border-left: 3px solid var(--white-hot);
  transform: rotate(-3.5deg);
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.55), 0 18px 36px -18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: cardFrontEnter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 800ms backwards;
}

@keyframes cardFrontEnter {
  from { opacity: 0; transform: rotate(-3.5deg) translateY(20px); }
  to { opacity: 1; transform: rotate(-3.5deg) translateY(0); }
}

@keyframes cardBackEnter {
  from { opacity: 0; transform: rotate(7deg) translateY(20px); }
  to { opacity: 0.55; transform: rotate(7deg) translateY(0); }
}

.card-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: flex-start;
}

.card-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--white-hot);
  margin-top: 2px;
}

.card-body { min-width: 0; }

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}

.pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: var(--pill);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 400;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.005em;
}

/* Station pills — amber-text variant of the project pill. The pill
   shape and background stay the same; only the text color changes
   so a Station reads as a station against project pills next to it. */
.pill.station { color: var(--amber); font-weight: 500; }

.pill-date {
  color: var(--amber);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  padding: 5px 4px;
  margin-left: 2px;
}

.intensity { display: flex; gap: 4px; margin-top: 6px; }

.intensity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white-hot);
}

.intensity-dot.dim { background: rgba(248, 244, 237, 0.18); }

.spotter {
  margin-top: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  transform: rotate(-3.5deg);
  transform-origin: 0% 0%;
  opacity: 0;
  animation: fadeIn 600ms ease-out 1100ms forwards;
}

.spotter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(239, 159, 39, 0.5);
  flex-shrink: 0;
}

.spotter-name { color: var(--amber); font-weight: 500; }
.spotter-msg { color: var(--text-muted); font-weight: 300; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 320ms; }

/* ============================================================
   Common section utilities
   ============================================================ */
.container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 940px;
  margin-bottom: 32px;
}

.section-body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 80px;
}

.eyebrow-deep {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 28px;
}

/* ============================================================
   Section: System at a glance (home)
   ============================================================ */
#system {
  background: var(--base);
  padding: 140px 0 120px;
  border-top: 1px solid var(--border-soft);
}

.state-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.state-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.state-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.state-label.ember-l { color: var(--amber-deep); }
.state-label.smoldering-l { color: var(--amber); }
.state-label.burning-l { color: var(--red); }
.state-label.whitehot-l { color: var(--white-hot); }
.state-label.flickering-l { color: var(--gray-heat); }

.mini-card {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 16px 14px 18px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.mini-card.smoldering { border-left: 3px solid var(--amber); padding-left: 16px; }
.mini-card.burning { border-left: 3px solid var(--red); padding-left: 16px; }
.mini-card.whitehot { border-left: 3px solid var(--white-hot); padding-left: 16px; }
.mini-card.flickering { border-left: 3px solid var(--gray-heat); padding-left: 16px; }

.mini-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
}

.mini-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dimmer);
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
}
.mini-checkbox.smoldering-c { border-color: var(--amber); }
.mini-checkbox.burning-c { border-color: var(--red); }
.mini-checkbox.whitehot-c { border-color: var(--white-hot); }
.mini-checkbox.flickering-c { border-color: var(--gray-heat); }

.mini-content { min-width: 0; }

.mini-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.mini-meta {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
}

.mini-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.mini-pill {
  background: var(--pill);
  color: var(--text-dim);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
}
.mini-pill.station { color: var(--amber); font-weight: 500; }

.mini-pill-date {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 4px;
}
.mini-pill-date.amber { color: var(--amber); }
.mini-pill-date.red { color: var(--red); }

.mini-intensity { display: flex; gap: 3px; }

.mini-intensity-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.mini-intensity-dot.dim { background: var(--amber-dim); }

/* State-specific intensity dot colors — heat owns the signal */
.mini-card.burning .mini-intensity-dot { background: var(--red); }
.mini-card.burning .mini-intensity-dot.dim { background: var(--red-dim); }

.mini-card.whitehot .mini-intensity-dot { background: var(--white-hot); }
.mini-card.whitehot .mini-intensity-dot.dim { background: rgba(248, 244, 237, 0.18); }

.mini-card.flickering .mini-intensity-dot:not(.dim) {
  animation: flicker 2.6s ease-in-out infinite;
}
.mini-card.flickering .mini-intensity-dot { background: var(--gray-heat); }
.mini-card.flickering .mini-intensity-dot.dim { background: rgba(85, 85, 85, 0.4); }
.mini-card.flickering .mini-intensity-dot:nth-child(2) { animation-delay: 0.4s; }
.mini-card.flickering .mini-intensity-dot:nth-child(3) { animation-delay: 0.9s; }
.mini-card.flickering .mini-intensity-dot:nth-child(4) { animation-delay: 1.5s; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  18% { opacity: 0.85; }
  34% { opacity: 1; }
  52% { opacity: 0.6; }
  68% { opacity: 1; }
  82% { opacity: 0.9; }
}

.state-description {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}

.system-spotter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0 4px;
  border-top: 1px solid var(--border-soft);
  font-size: 16px;
}

.system-spotter .spotter-name { color: var(--amber); font-weight: 500; }
.system-spotter .spotter-msg { color: var(--text-muted); font-weight: 300; }

/* ============================================================
   Section: Social proof (home)
   ============================================================ */
#proof {
  background: var(--proof-bg);
  padding: 180px 0;
}

.proof-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 40px;
}

.proof-eyebrow {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 56px;
  text-align: center;
}

.proof-quote-wrap {
  position: relative;
  padding-left: 80px;
}

.quote-glyph {
  position: absolute;
  top: -24px;
  left: 0;
  font-family: 'Syne', sans-serif;
  font-size: 120px;
  line-height: 0.9;
  color: var(--amber);
  font-weight: 700;
}

.proof-quote {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 48px;
}

.proof-rule {
  width: 60px;
  height: 1px;
  background: var(--amber-deep);
  margin-bottom: 22px;
}

.proof-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.proof-context {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}

.proof-spotter-line {
  margin-top: 120px;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  color: var(--text-muted);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* ============================================================
   Section: Manifesto teaser (home)
   ============================================================ */
#manifesto-teaser {
  background: var(--base-deeper);
  padding: 140px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 96px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
}

.manifesto-quote {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text);
  padding-left: 64px;
}

.manifesto-quote::before {
  content: '"';
  position: absolute;
  top: -24px;
  left: 0;
  font-family: 'Syne', sans-serif;
  font-size: 96px;
  color: var(--amber);
  line-height: 1;
  font-weight: 700;
}

.manifesto-side .eyebrow-deep { margin-bottom: 24px; }

.manifesto-body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.manifesto-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--amber-deep);
  padding-bottom: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.manifesto-cta:hover { color: #ffb544; border-color: var(--amber); }

/* ============================================================
   Section: Final CTA / Early Access (home)
   ============================================================ */
#early-access {
  background: var(--base);
  padding: 160px 0;
  border-top: 1px solid var(--border-soft);
}

.cta-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}

.cta-eyebrow .ember { width: 6px; height: 6px; }

.cta-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.cta-body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* The capture form, styled as the app's "Toss an ember" interaction */
.capture-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-align: left;
  padding-left: 18px;
}

.capture-form {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.capture-form:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(239, 159, 39, 0.12);
}

.capture-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 400;
  padding: 16px 0;
}

.capture-input::placeholder { color: var(--text-dim); }

/* Override Chrome / Safari autofill styling so the dark theme survives
   when the browser auto-completes a saved email. The 1000px inset shadow
   paints over the browser's hard-coded yellow background. */
.capture-input:-webkit-autofill,
.capture-input:-webkit-autofill:hover,
.capture-input:-webkit-autofill:focus,
.capture-input:-webkit-autofill:active,
.capture-form-shell .ff-el-form-control:-webkit-autofill,
.capture-form-shell .ff-el-form-control:-webkit-autofill:hover,
.capture-form-shell .ff-el-form-control:-webkit-autofill:focus,
.capture-form-shell .ff-el-form-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--text);
  transition: background-color 5000s ease-in-out 0s;
}

/* ============================================================
   Fluent Forms — re-skin the email-capture form (form id 3)
   so its output matches the design's `.capture-form` look:
   surface-colored bordered shell with transparent input and
   amber arrow submit button.
   ============================================================ */

/* The shell wraps the FF shortcode and gets the bordered surface look. */
.capture-form-shell .fluentform {
  margin: 0;
}

.capture-form-shell .frm-fluent-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.capture-form-shell .frm-fluent-form:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(239, 159, 39, 0.12);
}

/* FF wraps fields in a fieldset with inline reset; force layout to row. */
.capture-form-shell .frm-fluent-form fieldset {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide FF's screen-reader legend and the explicit field label — the
   design has its own .capture-label outside the form. */
.capture-form-shell .ff_screen_reader_title,
.capture-form-shell .ff-el-input--label {
  display: none !important;
}

/* The input's .ff-el-group grows to fill the row; the submit wrapper
   (which also carries .ff-el-group) stays auto-sized so the button
   hugs the right edge of the shell. */
.capture-form-shell .ff-el-group {
  margin: 0 !important;
  padding: 0;
}

.capture-form-shell .ff-el-group:not(.ff_submit_btn_wrapper) {
  flex: 1 1 auto;
  min-width: 0;
}

.capture-form-shell .ff_submit_btn_wrapper {
  flex: 0 0 auto;
}

.capture-form-shell .ff-el-input--content {
  margin: 0;
}

/* Input — transparent, no border (the form wrapper carries it). */
.capture-form-shell .ff-el-form-control {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 400;
  padding: 16px 0;
  width: 100%;
  height: auto;
  line-height: 1.4;
}

.capture-form-shell .ff-el-form-control::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

/* Submit button — replace FF's text label with the amber arrow square. */
.capture-form-shell .ff_submit_btn_wrapper {
  padding: 0;
}

.capture-form-shell button.ff-btn-submit,
.capture-form-shell button.ff-btn-submit:hover,
.capture-form-shell button.ff-btn-submit:focus,
.capture-form-shell button.ff-btn-submit:active {
  background-color: var(--amber) !important;
  background-image: none !important;
  border: none !important;
  width: 44px !important;
  min-width: 44px;
  height: 44px !important;
  min-height: 44px;
  padding: 0 !important;
  border-radius: 8px !important;
  cursor: pointer;
  position: relative;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.capture-form-shell button.ff-btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M7 13V1M7 1L1 7M7 1L13 7' stroke='%230f0f0f' stroke-width='2' stroke-linecap='square'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.capture-form-shell button.ff-btn-submit:hover {
  background-color: #ffb544 !important;
  transform: translateY(-1px);
}

/* Inline validation errors — amber/red on dark, no FF default boxing. */
.capture-form-shell .error-text,
.capture-form-shell .text-danger,
#fluentform_3_errors {
  color: var(--red);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  margin-top: 8px;
  padding-left: 18px;
}

/* FF's default success message — hide it; we render our own
   .capture-confirmation block via the JS event listener. */
.capture-form-shell + .ff-message-success,
.capture-form-shell .ff-message-success,
.fluentform .ff-message-success {
  display: none !important;
}

.capture-submit {
  background: var(--amber);
  border: none;
  color: #0f0f0f;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.capture-submit:hover { background: #ffb544; transform: translateY(-1px); }
.capture-submit svg { width: 16px; height: 16px; }

.capture-confirmation {
  display: none;
  background: rgba(239, 159, 39, 0.08);
  border: 1px solid var(--amber-deep);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  align-items: center;
  gap: 14px;
  animation: confirmFade 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.capture-confirmation.shown { display: flex; }

@keyframes confirmFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.capture-confirm-tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  position: relative;
}
.capture-confirm-tick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 11px;
  height: 5px;
  border-bottom: 1.8px solid #0f0f0f;
  border-left: 1.8px solid #0f0f0f;
  transform: rotate(-45deg);
}

.capture-confirm-text {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--amber);
  line-height: 1.4;
}

.capture-confirm-text strong { color: var(--text); font-weight: 500; }

.capture-fineprint {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 18px;
}

/* ============================================================
   Footer
   ============================================================ */
body footer {
  background: var(--base-deepest);
  padding: 120px 0 56px;
  border-top: 1px solid var(--border-soft);
}

footer .footer-inner {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-soft);
}

.footer-brand .wordmark { margin-bottom: 16px; }

.footer-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-link-col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-link-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-link-col a:hover { color: var(--amber); }

.footer-launch h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  transition: border-color 0.15s ease;
}

.appstore-badge:hover { border-color: var(--amber-deep); }

.appstore-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.appstore-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.appstore-badge-text strong { color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================================
   Prose pages — Privacy, Terms, generic /page.html template
   Minimal long-form styling so the content reads on the dark
   theme without competing with the marketing pages above.
   ============================================================ */
.prose-page {
  max-width: 720px !important;
  margin: 0 auto;
  padding: 96px 24px 120px;
  font-family: 'Outfit', sans-serif;
}

.prose-page .prose-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
}

/* Small dim line for things like "Last updated: …" right under a
   prose page title. Keeps the metadata visually subordinate to the
   title without competing with the first body paragraph. */
.prose-page .prose-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 40px;
}

.prose-page p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.prose-page p strong { color: var(--text); font-weight: 500; }

.prose-page a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-deep);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.prose-page a:hover { color: #ffb544; border-color: var(--amber); }

.prose-page ul, .prose-page ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.prose-page li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.prose-page h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  color: var(--text);
  margin: 56px 0 16px;
}

.prose-page h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 40px 0 12px;
}

@media (max-width: 768px) {
  .prose-page { padding: 56px 20px 80px; }
  .prose-page p, .prose-page li { font-size: 17px; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .headline, .subhead, .cta-row,
  .card-front, .card-back, .spotter,
  .reveal, .reveal-stagger > * {
    opacity: 1;
    animation: none;
    transition: none;
  }
  .card-front { transform: rotate(-3.5deg); opacity: 1; }
  .card-back { transform: rotate(7deg); opacity: 0.55; }
  .spotter { transform: rotate(-3.5deg); opacity: 1; }
  .ember { animation: none; }
  .headline { transform: none; }
  .reveal, .reveal-stagger > * { transform: none; }
  .mini-card.flickering .mini-intensity-dot { animation: none; opacity: 1; }
}

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 60px 32px 100px;
  }

  .product-stage {
    height: 400px;
    order: 2;
    justify-content: center;
    justify-self: stretch;
  }

  .product-stack { max-width: 460px; }

  .container { padding: 0 32px; }

  .state-row {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .state-card { scroll-snap-align: start; }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 18px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .wordmark-text { font-size: 19px; }

  .hero {
    padding: 48px 20px 80px;
    gap: 48px;
  }
  .eyebrow { margin-bottom: 24px; font-size: 11px; letter-spacing: 0.16em; }
  .headline { margin-bottom: 22px; }
  .subhead { margin-bottom: 36px; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 20px; }

  .product-stage { height: 340px; }
  .card-front { padding: 18px 20px 18px 22px; }
  .card-title { font-size: 16px; margin-bottom: 12px; }
  .pill { font-size: 11px; padding: 4px 10px; }
  .pill-date { font-size: 12px; }

  .container { padding: 0 20px; }

  #system { padding: 80px 0 80px; }
  .section-headline { font-size: 32px; }
  .section-body { margin-bottom: 48px; font-size: 16px; }

  .state-row {
    grid-template-columns: repeat(5, 78%);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 14px;
  }

  .system-spotter { font-size: 14px; flex-wrap: wrap; }

  #proof { padding: 100px 0; }
  .proof-inner { padding: 0 24px; }
  .proof-quote-wrap { padding-left: 0; padding-top: 60px; }
  .quote-glyph { font-size: 84px; top: -8px; }
  .proof-spotter-line { margin-top: 64px; }

  #manifesto-teaser { padding: 100px 0; }
  .manifesto-grid { padding: 0 24px; gap: 48px; }
  .manifesto-quote { padding-left: 0; padding-top: 56px; font-size: 28px; }
  .manifesto-quote::before { font-size: 72px; }

  #early-access { padding: 100px 0; }
  .cta-inner { padding: 0 24px; }
  .cta-headline { font-size: 44px; }

  body footer { padding: 88px 0 40px; }
  footer .footer-inner { padding: 0 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
