/*
  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;
}

.capability-section {
  background: color-mix(in srgb, var(--wf-panel) 42%, transparent);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.capability-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--wf-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.capability-topline strong {
  color: var(--wf-accent);
  font-size: 0.78rem;
}

.capability-card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.capability-card > p {
  margin: -4px 0 0;
  color: var(--wf-muted);
  line-height: 1.62;
}

.capability-card .text-link {
  margin-top: auto;
  font-weight: 700;
}

.language-visual,
.hotkey-visual {
  border: 1px solid var(--wf-line);
  background: color-mix(in srgb, var(--wf-bg) 54%, transparent);
}

.language-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 6px;
  font-weight: 800;
}

.language-visual span {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 4px;
  background: var(--wf-panel);
  text-align: center;
}

.language-visual b {
  color: var(--wf-accent);
  font-size: 1.25rem;
}

.language-visual small {
  grid-column: 1 / -1;
  color: var(--wf-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.hotkey-visual {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
}

.hotkey-visual div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-left: 3px solid var(--wf-accent);
  background: var(--wf-panel);
}

.hotkey-visual b {
  font-size: 0.9rem;
}

.hotkey-visual span {
  color: var(--wf-muted);
  font-size: 0.78rem;
  text-align: right;
}

.capability-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  color: var(--wf-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.capability-list li::before {
  content: "+";
  margin-right: 8px;
  color: var(--wf-accent);
  font-weight: 900;
}

@media (max-width: 1024px) {
  .feature-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 0;
  }
}

@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;
  }

  .capability-card {
    padding: 18px;
  }

  .hotkey-visual div {
    align-items: flex-start;
    flex-direction: column;
  }

  .hotkey-visual span {
    text-align: left;
  }

  .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;
  }
}

/* Product-led homepage refresh. */
.product-hero { padding: 72px 0 54px; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy-block h1 { max-width: 12.5ch; font-size: clamp(2.75rem, 3.8vw, 4.45rem) !important; line-height: .98 !important; margin: 14px 0 20px; text-wrap: balance; }
.hero-copy-block .hero-copy { max-width: 48ch; font-size: 1.1rem; }
.hero-text-link { align-self: center; margin-left: 4px; }
.platform-note { margin: 20px 0 0; color: var(--wf-muted); font-size: .88rem; font-weight: 700; }

.workflow-proof { position: relative; padding: 24px; border: 1px solid var(--wf-border); border-radius: 12px; background: #fff; box-shadow: var(--wf-shadow); overflow: hidden; }
.workflow-proof::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--wf-accent), var(--wf-accent-2)); }
.workflow-bar { display: flex; justify-content: space-between; gap: 12px; color: var(--wf-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workflow-status { color: var(--wf-accent-ink, #0f766e); }
.workflow-raw { margin: 14px 0 0; padding: 16px; border-radius: 8px; background: #f5f6f8; color: #7d5360 !important; font-size: .98rem; line-height: 1.65; }
.workflow-line { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--wf-accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.workflow-line span { height: 1px; flex: 1; background: var(--wf-border); }
.workflow-result { padding: 18px; border: 1px solid rgba(14, 165, 164, .28); border-radius: 8px; background: rgba(14, 165, 164, .06); }
.workflow-result p { margin: 0; color: var(--wf-text) !important; font-size: 1rem; line-height: 1.65; }
.workflow-result span { display: block; margin-top: 11px; color: var(--wf-accent); font-size: .8rem; font-weight: 800; }
.floating-bar-shot { width: 78%; margin: 22px auto -12px; border: 1px solid var(--wf-border); border-radius: 8px; box-shadow: var(--wf-shadow-soft); }

.proof-strip { border-top: 1px solid var(--wf-border); border-bottom: 1px solid var(--wf-border); background: rgba(255,255,255,.52); }
.proof-strip-inner { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--wf-muted); font-size: .86rem; font-weight: 800; }
.proof-strip-inner span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--wf-accent); vertical-align: 1px; }
.product-section { padding: 96px 0; }
.soft-section { background: rgba(255,255,255,.46); }
.feature-story { display: grid; grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr); align-items: center; gap: clamp(36px, 7vw, 100px); }
.feature-story-reverse { grid-template-columns: minmax(360px, 1.18fr) minmax(0, .82fr); }
.feature-story-reverse .feature-story-copy { order: 2; }
.feature-story-copy h2 { max-width: 13ch; font-size: clamp(2rem, 3vw, 3.15rem); line-height: 1.04; margin-bottom: 16px; text-wrap: balance; }
.feature-story-copy p:not(.section-kicker) { max-width: 52ch; margin: 0 0 20px; font-size: 1.05rem; }
.product-shot { margin: 0; }
.product-shot img { width: 100%; border: 1px solid var(--wf-border); border-radius: 10px; box-shadow: var(--wf-shadow); }
.product-shot figcaption { margin-top: 12px; color: var(--wf-muted); font-size: .85rem; font-weight: 700; }
.settings-shot img { aspect-ratio: 16 / 9; object-fit: cover; }
.language-panel { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--wf-border); border-radius: 12px; background: #0f172a; box-shadow: var(--wf-shadow); color: #fff; }
.language-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.language-row span { padding: 16px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(255,255,255,.08); font-weight: 800; text-align: center; }
.language-row b { color: #5eead4; font-size: 1.4rem; }
.language-panel p { margin: 22px 0 6px; color: #fff !important; font-size: 1.35rem; font-weight: 800; }
.language-panel small { color: rgba(255,255,255,.68); }

.compact-download { padding: 80px 0; }
.download-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .7fr); gap: 42px; align-items: center; padding: clamp(26px, 5vw, 54px); border-radius: 12px; background: #102a43; color: #fff; }
.download-shell h2 { margin-bottom: 12px; color: #fff !important; font-size: clamp(2rem, 4vw, 3.4rem); }
.download-shell p:not(.section-kicker) { max-width: 54ch; margin: 0; color: rgba(255,255,255,.72) !important; }
.download-shell .section-kicker { color: #5eead4; }
.download-shell .download-actions { align-items: stretch; }
.download-shell .text-link { color: #b7f5ee; }
.short-faq { padding-top: 16px; padding-bottom: 88px; }
.footer-brand { margin-bottom: 10px; }

@media (max-width: 1080px) {
  .product-hero-grid, .feature-story, .feature-story-reverse, .download-shell { grid-template-columns: 1fr; }
  .feature-story-reverse .feature-story-copy { order: initial; }
  .product-hero { padding-top: 52px; }
  .hero-copy-block h1 { max-width: 14ch; }
  .proof-strip-inner { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .product-hero { padding: 34px 0 40px; }
  .hero-copy-block h1 { max-width: 11ch; font-size: clamp(2.3rem, 11vw, 3.15rem) !important; }
  .hero-text-link { margin-left: 0; text-align: center; }
  .workflow-proof { padding: 16px; }
  .floating-bar-shot { width: 100%; }
  .product-section { padding: 62px 0; }
  .language-row { gap: 8px; }
  .language-row span { padding: 12px 6px; font-size: .88rem; }
  .proof-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .download-shell { gap: 28px; }
}
