/*
  WASPrFlow home page components.
  Loaded after wisprflow-system.css so the shared shell (topbar, buttons,
  cards, grid, footer, reveal) stays the single source of truth.
*/

.hero {
  padding-bottom: 22px;
}

/* Keep content visible even if JavaScript or IntersectionObserver is unavailable. */
.reveal {
  opacity: 1;
  transform: none;
}

.hero-grid {
  margin-top: 10px;
}

.hero h1 {
  max-width: 13ch;
}

.hero-copy {
  margin: 0;
  max-width: 56ch;
}

.availability {
  margin-top: 18px;
}

.demo {
  padding: 20px;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.demo-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wf-accent) 18%, transparent);
  background: var(--wf-accent-soft);
  color: var(--wf-accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.raw-polished {
  display: grid;
  gap: 10px;
}

.message-card {
  padding: 15px 16px;
  border-radius: 18px;
}

.message-label {
  margin-bottom: 8px;
  color: var(--wf-muted-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-body {
  font-size: 0.98rem;
  line-height: 1.65;
}

.message-body.messy {
  color: color-mix(in srgb, var(--wf-text) 68%, #ef4444);
}

.flow-arrow {
  margin: -2px 0;
  color: var(--wf-muted-2);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.demo-stats div {
  padding: 12px;
  border: 1px solid var(--wf-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--wf-panel) 78%, transparent);
}

.demo-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.demo-stats span {
  display: block;
  color: var(--wf-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section-head {
  max-width: 72ch;
  margin-bottom: 26px;
}

.section-kicker {
  margin-bottom: 9px;
  color: var(--wf-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head .lead,
.download-copy .lead {
  margin: 10px 0 0;
}

.steps {
  margin-top: 0;
}

.step-card {
  padding: 22px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--wf-accent-soft);
  color: var(--wf-accent);
  font-size: 0.92rem;
  font-weight: 900;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--wf-accent-soft);
  color: var(--wf-accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--wf-muted);
  line-height: 1.62;
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.02em;
  color: var(--wf-accent);
  font-weight: 900;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.55fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
}

.trust-copy h2 {
  max-width: 22ch;
}

.trust-badge {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--wf-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 164, 0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.16), transparent 55%),
    var(--wf-panel);
  text-align: center;
}

.trust-badge strong {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.trust-badge span {
  margin-top: 6px;
  color: var(--wf-muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-grid {
  align-items: stretch;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
}

.download-note {
  margin: 10px 0 0;
  color: var(--wf-muted-2);
  font-size: 0.94rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.download-actions .cta {
  width: 100%;
}

.text-link {
  color: var(--wf-accent-2);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--wf-text);
}

.ownership-grid {
  align-items: center;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  color: var(--wf-text);
  font-weight: 800;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wf-accent);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--wf-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .trust-band,
  .download-panel,
  .ownership-grid {
    grid-template-columns: 1fr;
  }

  .download-actions {
    align-items: stretch;
  }

  .download-actions .text-link {
    text-align: center;
  }

  .demo-stats {
    grid-template-columns: 1fr;
  }
}


/* ---- Simplified 2026-10-29 homepage ---- */

.header-cta {
  margin-left: 4px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.topbar .cta {
  min-height: 44px;
}

@media (max-width: 1024px) {
  .header-cta {
    display: none !important;
  }
}

section[id] {
  scroll-margin-top: 78px;
}

#how-it-works,
#features,
#use-cases {
  padding: 42px 0;
}

#downloads {
  padding: 44px 0 58px;
}

.compact-head {
  margin-bottom: 20px;
}

.compact-head .lead {
  margin-top: 8px;
}

.trust-strip {
  border-top: 1px solid var(--wf-border);
  border-bottom: 1px solid var(--wf-border);
  background: color-mix(in srgb, var(--wf-panel) 72%, transparent);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  padding: 14px 0;
  color: var(--wf-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wf-muted);
}

.trust-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wf-accent);
  flex: 0 0 auto;
}

a.trust-item {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.trust-item:hover {
  color: var(--wf-text);
}

.compact-steps .step-card {
  padding: 18px;
}

.compact-steps .step-number {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.compact-steps .step-card h3 {
  margin-bottom: 6px;
}

.compact-steps .step-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.feature-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid-compact .card {
  padding: 18px;
}

.feature-grid-compact h3,
.use-case-grid h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-grid-compact p,
.use-case-grid p {
  margin: 0;
  color: var(--wf-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.use-case-grid .card {
  padding: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.download-grid .download-panel {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 26px;
}

.download-grid .download-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.download-grid .download-actions .cta {
  width: auto;
}

.download-grid .faq {
  margin-top: 0;
}

.faq-title {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.faq-compact {
  gap: 8px;
}

.faq-compact .faq-item {
  padding: 0;
}

.faq-compact summary {
  padding: 12px 38px 12px 15px;
  font-size: 0.94rem;
}

.faq-compact p {
  padding: 0 15px 13px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-compact .mini {
  margin: 4px 0 0;
}

@media (max-width: 1024px) {
  .feature-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .use-case-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-grid .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-grid .download-actions .cta {
    width: 100%;
  }

  .download-grid .download-actions .text-link {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .feature-grid-compact {
    grid-template-columns: 1fr;
  }

  .trust-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    justify-items: start;
    padding: 12px 0;
  }

  .trust-item {
    font-size: 0.82rem;
  }

  #how-it-works,
  #features,
  #use-cases {
    padding: 34px 0;
  }

  #downloads {
    padding: 36px 0 48px;
  }

  .compact-steps .step-card,
  .feature-grid-compact .card,
  .use-case-grid .card {
    padding: 16px;
  }
}
