@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/Satoshi-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/Satoshi-Medium.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/Satoshi-Bold.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1fb;
  --band-gray: #f5f7fc;
  --max-width: 920px;
  --border: #dfe3f5;
  --text: #0d1348;
  --text-dim: #5b6088;
  --accent: #265cff;
  --accent-dark: #1a45d1;
  --highlight: #fde99d;
  --highlight-text: #4a3c05;
  --error: #d1453b;
  --radius: 16px;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 18px 20px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.topbar-inner a { display: inline-flex; line-height: 0; }
.brand-logo { height: 28px; width: auto; display: block; }
.header-tag { font-size: 13px; font-weight: 500; color: var(--text-dim); white-space: nowrap; }

.page {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 0 72px;
}

.hero { margin-bottom: 20px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.hero .eyebrow { margin-top: 32px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 700; max-width: 600px; }
.hero-sub { color: var(--text-dim); margin: 0; font-size: 17px; line-height: 1.65; max-width: 600px; }

/* Full-width bands behind the index page's hero + form. Each is a
   full-bleed 100vw section (independent of .page's own max-width and
   padding via the classic centred-container breakout trick); .band-inner
   re-applies the readable max-width on top of that. */
.band {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}
.band-white { background: var(--surface); padding: 32px 0 0; }
/* Hard 50/50 split, not a blend -- with padding matched top and bottom the
   form card centers on the row, so the seam falls through the card's own
   vertical middle rather than above or below it. */
.band-form {
  background: linear-gradient(to bottom, var(--surface) 50%, var(--band-gray) 50%);
  padding: 32px 0;
}
/* Carries the grey straight through to the footer -- no white gap between
   the form row's lower half and the dark footer below it. flow-root stops
   .demo-link's own top margin collapsing through the zero top-padding here;
   padding is 32px (desired visible gap) + 72px (to absorb .page's own
   bottom padding, cancelled by the matching negative margin below) so the
   grey reaches .page's true bottom edge instead of stopping short of it. */
.band-tail {
  background: var(--band-gray);
  padding: 0 0 104px;
  margin-bottom: -72px;
  display: flow-root;
}
.band-inner { max-width: var(--max-width); margin: 0 auto; }
@media (max-width: 960px) {
  .band-inner { padding: 0 20px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* Rides up into the hero's bottom padding so the card reads as floating
   between the white hero band and the grey page canvas below it. */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.field-label .req { color: var(--error); font-weight: 700; margin-left: 1px; }

.field-error {
  display: none;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--error);
}
.field-error.visible { display: block; }
input[type="text"].has-error, textarea.has-error { border-color: var(--error); }
input[type="text"].has-error:focus, textarea.has-error:focus { border-color: var(--error); box-shadow: 0 0 0 3px rgba(209, 69, 59, 0.16); }

.specific-toggle summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
}
.specific-toggle summary::-webkit-details-marker { display: none; }
.specific-toggle summary::before { content: "+ "; }
.specific-toggle[open] summary::before { content: "\2212 "; }
.specific-fields { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }

input[type="text"], textarea {
  background: #f5f7fc;
  border: 1px solid rgba(13, 19, 72, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
input[type="text"]::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; }
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38, 92, 255, 0.14);
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: #6d6f81;
  border: 1px solid #6d6f81;
}
.btn-secondary:hover { color: #265cff; border-color: #265cff; }

.alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error { background: rgba(209, 69, 59, 0.1); border: 1px solid var(--error); color: var(--error); }
.alert-fallback { background: var(--highlight); border: 1px solid #eacb6a; color: var(--highlight-text); }

.demo-link { text-align: center; color: var(--text-dim); font-size: 14px; }
.demo-link a, .snapshot-summary a { color: var(--accent); }

/* Pipeline loading overlay */
.pipeline-overlay {
  position: fixed;
  inset: 0;
  background: var(--band-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
/* [hidden] and .pipeline-overlay have equal specificity, and this
   author-stylesheet class rule would otherwise win the cascade over the
   browser's default `[hidden] { display: none }` UA rule -- keeping the
   overlay visible on load until JS removes the attribute. This rule adds
   the extra attribute selector so `hidden` always wins while present. */
.pipeline-overlay[hidden] {
  display: none;
}
.pipeline-card { max-width: 520px; width: 100%; max-height: 88vh; overflow-y: auto; color: var(--text); }
.pipeline-card h2 { font-size: 19px; margin-bottom: 18px; color: var(--text); }
.pipeline-stages { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 12px; }
.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pipeline-stage.active { border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(253, 233, 157, 0.35); }
.stage-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stage-icon svg { width: 18px; height: 18px; }
.stage-info { flex: 1; min-width: 0; text-align: left; }
.stage-name { font-weight: 700; color: var(--text); font-size: 14px; }
.stage-sub { color: var(--text-dim); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.stage-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
}
.pipeline-stage.active .stage-status { background: var(--highlight); color: var(--highlight-text); }
.pipeline-stage.active .stage-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid rgba(122, 91, 16, 0.25);
  border-top-color: var(--highlight-text);
  border-radius: 50%;
  animation: pipeline-spin 0.7s linear infinite;
}
.pipeline-stage.done .stage-status { background: #e3f5e6; color: #2f9e56; }
.pipeline-stage.done .stage-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
@keyframes pipeline-spin { to { transform: rotate(360deg); } }

/* Snapshot */
.snapshot-fields { display: flex; flex-direction: column; gap: 16px; }
.check-this {
  display: inline-block;
  background: var(--highlight);
  color: var(--highlight-text);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: middle;
}
.snapshot-source { font-size: 13px; color: var(--text-dim); margin: 14px 0 0; }
.snapshot-source a { color: var(--accent); }
.trend-box {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(13, 19, 72, 0.15);
  border-radius: 8px;
}
.section-label { font-size: 13px; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.05em; margin: 0 0 8px; }
.trend-date { text-transform: none; letter-spacing: 0; font-weight: 400; }
.trend-list { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; color: var(--text); }
.trend-list li { margin-bottom: 10px; }
.trend-list li:last-child { margin-bottom: 0; }
.trend-detail { color: var(--text-dim); font-size: 13px; }

.confirm-actions { display: flex; gap: 12px; margin-top: 20px; }
.confirm-actions .btn { flex: 1; }
@media (max-width: 600px) {
  .confirm-actions { flex-direction: column; }
}

/* Carousel -- flexbox, swipeable single-card scroller at every width (each
   slide 88% wide, native scroll-snap). */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0 0 20px 0;
  cursor: grab;
}
/* While a mouse drag is in progress (see results.html script): disable
   snapping for smooth 1:1 tracking and block text/image selection. Touch
   swipe is untouched -- it already works via native scroll-snap. */
.carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.carousel-slide {
  flex: 0 0 88%;
  max-width: 400px;
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  /* Flex column so .post-card can grow to fill the slide (all slides
     stretch to the tallest one's height via the carousel's default flex
     align-items) and pin its action buttons to the bottom regardless of
     how much caption text precedes them. */
  display: flex;
  flex-direction: column;
}
.post-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.post-card { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #6D6F81; font-weight: 700; }
.post-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; }
.post-actions .btn { border-radius: 6px; }
.copy-btn {
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text-dim);
  background: #ffffff;
  border: 1px solid var(--text-dim);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.copy-btn:hover { color: var(--accent); background: #ffffff; border-color: currentColor; }
.copy-btn.copied { color: #1a8f5a; border-color: #1a8f5a; }
/* Full-width, taller tap target -- easier to hit reliably on mobile than a
   small inline button. */
.copy-btn-block { display: block; width: 100%; padding: 12px; }
.post-hook { font-weight: 700; font-size: 20px; line-height: 28px; margin: 8px 0 6px; }
.post-body { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.post-cta { font-weight: 600; margin: 0 0 8px; }
.post-hashtags { color: var(--accent); font-size: 13px; word-break: break-word; margin: 0; }

/* Enrollment */
.enroll-section { margin-top: 32px; }
.enroll-section h2 { font-size: 19px; margin-bottom: 12px; }
.enroll-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.enroll-card { flex: 1 1 240px; text-decoration: none; color: var(--text); display: block; position: relative; transition: border-color .18s ease; }
.enroll-card:hover { border-color: #265cff; }
.enroll-card h3 { margin: 0 0 6px; color: var(--accent); }
.enroll-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Pixel scene + CTA, ported from aiagentbee.com. Full-bleed by default since
   these sit directly in body flow (siblings of .page), not nested inside
   its max-width column. */
.pixel-scene {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--text);
}
.pixel-grid { position: absolute; inset: 0; pointer-events: none; }
.pixel-grid .px { position: absolute; width: 76px; height: 76px; transition: background-color 120ms linear; }

.cta { background: var(--text); padding: 48px 20px 64px; text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 16px;
}
.cta h2 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #ffffff; margin-bottom: 12px; }
.cta-desc { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); margin-bottom: 26px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.cta-btn:hover { background: var(--highlight); color: var(--text); }

/* Footer */
.site-footer {
  background: var(--text);
  padding: 32px 20px;
  margin-top: auto;
}
/* Left/right split on wide screens (brand block left, social + copyright
   right); collapses to a centred stack below 720px, matching the
   reference's own responsive behaviour. */
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: inline-flex; line-height: 0; }
.footer-logo { height: 32px; width: auto; display: block; }
.footer-tagline { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); margin: 10px 0 0; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (max-width: 720px) {
  .site-footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .footer-right { align-items: center; }
}
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color .18s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.16); }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin: 0; }
