/* Loopy — scraped from datafruit.dev, pink palette */

@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap");

@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: rgb(251, 251, 248);
  --cream-soft: rgb(249, 249, 247);
  --cream-muted: rgb(239, 239, 234);
  --dark: #0a0a0a;
  --accent: #f0a8c8;
  --accent-hover: #e890b8;
  --accent-dark: #c9789e;
  --accent-soft: #fce8f2;
  --accent-muted: #f5d4e6;
  --text: #0a0a0a;
  --text-secondary: #6b6b6b;
  --text-muted: #9ca3af;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);
  --line-faq: rgb(212, 212, 212);
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1400px;
  --frame: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-pill: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-frame: 0 24px 48px -12px rgba(30, 25, 20, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
code { font-family: var(--mono); font-size: 0.88em; }

.shell { position: relative; z-index: 1; min-height: 100vh; background: var(--cream); }
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--frame); }

/* Page background — solid cream (no fixed dark band) */
.bg-top {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--cream);
}
.bg-bottom { display: none; }

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  overflow-x: clip;
  padding-top: 4px;
}
@media (min-width: 640px) { .site-header { padding-top: 8px; } }

.header-blur {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 160%;
  z-index: -1;
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62.5%, transparent 100%);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
}

.logo {
  display: none;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 50%;
  left: var(--frame);
  transform: translateY(-50%);
}
@media (min-width: 820px) { .logo { display: inline-flex; } }

.logo-mark { width: 28px; height: auto; flex-shrink: 0; }
.logo-word {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.header-end {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
@media (min-width: 820px) { .header-end { display: flex; } }
@media (min-width: 1024px) { .header-end { gap: 16px; } }

.nav-pill,
.cta-pill {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-pill);
}
.nav-pill::before,
.cta-pill::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(4px);
  opacity: 0.7;
}
.nav-pill { gap: 2px; padding: 0 4px; }
.nav-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-pill a:hover { color: #404040; background: rgba(229, 229, 229, 0.9); }
.cta-pill { padding: 0 20px; font-size: 14px; }
.cta-pill a:hover { color: #525252; }

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
}
@media (min-width: 820px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 12px var(--frame) 16px;
  border-top: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.95);
  backdrop-filter: blur(12px);
}
.mobile-nav.hidden { display: none; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.header-spacer { height: 64px; }

/* Hero */
.hero { padding-top: 8px; }
.hero-copy { max-width: 640px; padding: 40px 0 28px; }
@media (min-width: 640px) { .hero-copy { padding-top: 56px; } }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18%);
  transition: opacity 0.75s var(--ease), filter 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.hero-word.is-in { opacity: 1; filter: blur(0); transform: translateY(0); }

.hero-lead {
  margin-top: 16px;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) 0.55s, transform 0.7s var(--ease) 0.55s;
}
.hero-lead.is-in { opacity: 1; transform: translateY(0); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) 0.7s, transform 0.7s var(--ease) 0.7s;
}
.hero-actions.is-in { opacity: 1; transform: translateY(0); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  background: var(--accent);
  border-radius: 0;
  transition: background 0.2s;
}
@media (min-width: 640px) { .btn-accent { font-size: 15px; } }
.btn-accent:hover { background: var(--accent-hover); }

.btn-link {
  margin-left: 4px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgb(212, 212, 212);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
@media (min-width: 640px) { .btn-link { font-size: 15px; } }
.btn-link:hover { color: var(--text); text-decoration-color: var(--text-muted); }

.hero-visual {
  padding: 24px 0 56px;
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 24px, 0);
  transition: opacity 1s var(--ease) 0.85s, transform 1.2s var(--ease) 0.85s;
}
.hero-visual.is-in { opacity: 1; transform: none; }

.hero-frame {
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: rgb(249, 249, 247);
  box-shadow: var(--shadow-frame);
  min-height: 420px;
}

/* Hero prompt mock */
.mock-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px 24px;
  min-height: 400px;
}

.mock-compose-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mock-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.mock-input {
  flex: 1;
  min-height: 44px;
  padding: 11px 14px;
  border: 0.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.mock-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent-dark);
  animation: caret-blink 1s step-end infinite;
}
#hero-mock.is-running .mock-caret,
#hero-mock.is-done .mock-caret { display: none; }

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mock-loop-btn {
  flex-shrink: 0;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  background: var(--accent);
  color: #262626;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.mock-loop-btn:hover { background: var(--accent-hover); }
.mock-loop-btn.is-clicked {
  transform: scale(0.96);
  background: var(--accent-dark);
  color: #fff;
}
.mock-loop-btn:disabled { opacity: 0.85; cursor: default; }

.mock-status {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 1.2em;
}
#hero-mock.is-done .mock-status { color: var(--accent-dark); font-weight: 500; }

.mock-workspace {
  flex: 1;
  padding-top: 4px;
  border-top: 0.5px solid var(--line);
  animation: workspace-in 0.45s var(--ease);
}
@keyframes workspace-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-phase-row {
  display: grid;
  grid-template-columns: 20px 72px 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 0.5px solid transparent;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.45;
  transition: opacity 0.35s, background 0.35s, border-color 0.35s;
}
.mock-phase-row img { display: block; border-radius: 4px; }
.mock-phase-name { font-weight: 600; color: var(--text); }
.mock-phase-detail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-phase-spin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  opacity: 0;
}
.mock-phase-row.is-active {
  opacity: 1;
  background: var(--accent-soft);
  border-color: var(--accent-muted);
}
.mock-phase-row.is-active .mock-phase-spin {
  opacity: 1;
  animation: spin 0.7s linear infinite;
}
.mock-phase-row.is-done {
  opacity: 1;
  color: var(--text-secondary);
}
.mock-phase-row.is-done .mock-phase-spin {
  opacity: 1;
  border: none;
  background: var(--accent);
  animation: none;
  position: relative;
}
.mock-phase-row.is-done .mock-phase-spin::after {
  content: "";
  position: absolute;
  inset: 3px 4px 4px 3px;
  border: solid #fff;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}

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

.logo-img { display: block; object-fit: contain; }

.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--cream-soft);
  font-size: 13px;
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.frame-dots span:nth-child(1) { background: #e8a598; }
.frame-dots span:nth-child(2) { background: #e8d498; }
.frame-dots span:nth-child(3) { background: var(--accent); }
.frame-title { font-weight: 500; }
.frame-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--cream-muted);
  color: var(--text-secondary);
}

.feature-ui--req {
  position: absolute;
  inset: 6% 5% 6%;
  width: auto;
  display: flex;
  flex-direction: column;
}
.req-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.req-scroll-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
}
.req-scroll-track {
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.req-row {
  display: grid;
  grid-template-columns: 52px 56px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.05);
  font-size: 12px;
}
.req-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
.req-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--cream-muted);
  color: var(--text-muted);
  text-align: center;
}
.req-tag.ok {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.req-tag.warn {
  background: #fff3e0;
  color: #c17a2e;
}
.req-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.agent-list li.active,
.ops-list li.active {
  background: var(--accent-soft);
  border-color: var(--accent-muted);
}
.agent-list li.active .ok {
  background: var(--accent);
  color: #262626;
}
.ops-list li.active .ops-dot {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

/* Section labels — opennote-style hierarchy */
.section-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.section-lead {
  max-width: 36rem;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Features */
.features {
  padding: 64px 0 80px;
}
.features-head {
  max-width: 800px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.features-lead {
  margin-top: 12px;
  margin-bottom: 56px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 768px) {
  .features-grid {
    flex-direction: row;
    gap: 12px;
  }
}

.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.feature-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  user-select: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.feature-visual--blue { background: linear-gradient(165deg, #e8eef8 0%, #dbe5f7 100%); }
.feature-visual--pink { background: linear-gradient(165deg, #faf0f4 0%, var(--accent-soft) 100%); }
.feature-visual--warm { background: linear-gradient(165deg, #faf6f1 0%, #f5ebe0 100%); }

/* Cleaner feature mocks */
.feature-mock {
  width: 100%;
  max-width: 280px;
}

.feature-mock--compress .fm-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm-panel {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fm-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.fm-panel-head img {
  flex-shrink: 0;
  opacity: 0.9;
}

.fm-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--cream-muted);
  overflow: hidden;
}

.fm-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #94a3b8;
  transition: width 0.6s var(--ease);
}

.fm-meter-fill--full { width: 100%; }
.fm-meter-fill--saved { width: 26%; background: var(--accent); }

.fm-caption {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.fm-connector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.fm-connector-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.fm-connector-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  white-space: nowrap;
}

.fm-agents {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.fm-agents li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fm-agents li img {
  flex-shrink: 0;
}

.fm-agents li.active {
  border-color: rgba(201, 120, 158, 0.35);
  box-shadow: 0 0 0 3px rgba(201, 120, 158, 0.12);
}

.fm-footnote {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.fm-ops {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.fm-ops li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.fm-ops li:not(.active) {
  opacity: 0.55;
}

.fm-ops li.active {
  border-color: rgba(201, 120, 158, 0.3);
  opacity: 1;
}

.fm-ops li img {
  flex-shrink: 0;
  opacity: 0.85;
}

.feature-ui {
  position: absolute;
  inset: 6% 5% auto;
  width: 108%;
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 24px 56px -20px rgba(30,25,20,0.28);
  overflow: hidden;
}

.feature-ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 20px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  font-size: 12.5px;
  font-weight: 500;
}

.feature-ui-body { padding: 16px 20px 20px; }

.stack-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.stack-list li {
  padding: 10px 12px;
  font-size: 12.5px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  background: var(--cream-soft);
}
.stack-list li.active {
  background: var(--accent-soft);
  border-color: var(--accent-muted);
  color: var(--accent-dark);
  font-weight: 500;
}

.agent-list { list-style: none; display: grid; gap: 10px; }
.agent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12.5px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
}
.agent-list .ok {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.ops-list { list-style: none; display: grid; gap: 8px; }
.ops-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
}
.ops-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.feature-stat {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--accent-dark);
}
.feature-stat span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
}

.feature-copy h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.feature-copy p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Editorial — scroll-driven reveal */
.editorial-scroll {
  height: 220vh;
  position: relative;
  background: #fbf6f0;
  margin-top: 48px;
}
@media (min-width: 640px) { .editorial-scroll { margin-top: 64px; } }

.editorial-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 48px 0;
}

.editorial-inner { max-width: 42rem; }
.editorial-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--text);
}
.editorial-quote .editorial-word {
  margin-right: 0.28em;
  transition: color 0.35s var(--ease);
}
.editorial-quote .editorial-word.dim { color: rgba(10, 10, 10, 0.18); }
.editorial-quote .editorial-word.lit { color: var(--text); }

/* Powered-by tools (replaces customer quotes) */
.powered {
  padding: 80px 0 96px;
  background: #fffdf8;
  border-block: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-marquee {
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 8px 0 32px;
  animation: marquee 38s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; padding-inline: var(--frame); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 0.5px solid var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.logo-chip img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.powered-grid-wrap { margin-top: 8px; }
.powered-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 768px) { .powered-grid { grid-template-columns: repeat(3, 1fr); } }

.powered-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.powered-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--cream-soft);
  border: 0.5px solid var(--line);
}
.powered-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.powered-card strong { display: block; font-size: 14px; }
.powered-card span { font-size: 12px; color: var(--text-secondary); }

/* BuilderShip rubric section */
.buildership {
  padding: 64px 0 72px;
  border-top: 0.5px solid var(--line);
}
.bs-lead {
  margin-bottom: 40px;
}
.bs-rubric {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .bs-rubric { grid-template-columns: repeat(3, 1fr); }
}
.bs-rubric-card {
  padding: 22px 24px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream-soft);
}
.bs-rubric-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.bs-rubric-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.bs-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}
.bs-arr {
  color: var(--accent-dark);
  opacity: 0.7;
}
.bs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.proof-head {
  max-width: 28rem;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.trust {
  padding: 80px 0 96px;
  background: var(--cream);
}
.trust-head {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 32px;
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-card {
  padding: 24px 28px 28px;
  border: 0.5px solid rgb(237, 236, 233);
  border-radius: 4px;
  background: #fff;
}
.trust-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-card h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}
@media (min-width: 640px) { .trust-card h3 { font-size: 17px; } }
.trust-card > p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
@media (min-width: 640px) { .trust-card > p { font-size: 15px; } }

.trust-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.trust-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* Integrations */
.integrations {
  padding: 0 0 80px;
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}
@media (min-width: 640px) { .integrations-grid { grid-template-columns: repeat(4, 1fr); } }

.integration-pill {
  padding: 14px 16px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.integration-pill strong { display: block; font-size: 14px; }
.integration-pill span { font-size: 12px; color: var(--text-secondary); }

/* Quickstart */
.quickstart {
  padding-bottom: 80px;
}
.quickstart-box {
  margin-top: 24px;
  padding: 24px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--cream-soft);
}
.quickstart-box pre {
  margin-top: 16px;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: #e8e8e8;
  background: var(--dark);
  border-radius: 8px;
}
.quickstart-box .kw { color: #c9a0dc; }
.quickstart-box .str { color: #98c379; }
.quickstart-box .cm { color: #6a737d; }

/* FAQ */
.faq {
  padding: 80px 0 96px;
  background: var(--cream);
}
.faq-head {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.faq-list { margin-top: 32px; border-top: 1px solid var(--line-faq); }

.faq-item { border-bottom: 1px solid var(--line-faq); }
.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  text-align: left;
  font-size: 18px;
  line-height: 1.35;
}
@media (min-width: 640px) { .faq-trigger { font-size: 20px; } }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #404040;
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-icon { transform: rotate(180deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel p {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* CTA */
.cta {
  padding: 64px var(--frame) 80px;
}
.cta-box {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
  background: #fbfbf7;
  text-align: center;
}
@media (min-width: 768px) { .cta-box { padding: 80px 32px; } }

.cta-box h2 {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta-box p {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 15px;
  color: var(--text-secondary);
}
@media (min-width: 640px) { .cta-box p { font-size: 16px; } }
.cta-box .btn-accent { margin-top: 40px; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: rgb(229, 229, 229);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--frame) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 64px;
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    gap: 64px;
  }
}

.footer-brand-label {
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
}
.footer-tagline {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #a3a3a3;
}
@media (min-width: 640px) { .footer-tagline { font-size: 16px; } }
.footer-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  color: rgb(229, 229, 229);
  transition: color 0.2s;
}
.footer-email:hover { color: #fff; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}
@media (min-width: 640px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }

.footer-heading {
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
}
.footer-links ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.footer-links a {
  font-size: 15px;
  color: rgb(229, 229, 229);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  padding-top: 24px;
  font-size: 13px;
  color: #737373;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-word, .hero-lead, .hero-actions, .hero-visual, .reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .editorial-word.dim { color: var(--text); }
  .mock-step { opacity: 1 !important; transform: none !important; }
  .mock-caret { display: none; }
  .mock-workspace { display: block !important; }
  .mock-workspace[hidden] { display: block !important; }
  .logo-track { animation: none !important; }
  .editorial-scroll { height: auto; }
  .editorial-sticky { position: relative; min-height: 0; }
}
