/* ============================================================
   Workflow Canvas — Landing Page Styles (css/page-canvas.css)
   Tokens-only design system implementation
   ============================================================ */

.canvas-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 64px;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.ac-text {
  color: var(--ac);
}

.trust-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--t3);
  font-family: var(--font-mono, monospace);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-visual.win {
  border: 1px solid var(--ln);
  border-radius: var(--radius-lg, 12px);
  background: var(--s1);
  box-shadow: 0 40px 90px -40px var(--glow), 0 0 0 1px var(--ln) inset;
  overflow: hidden;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--s2);
  border-bottom: 1px solid var(--ln);
}

.win-dots {
  display: flex;
  gap: 6px;
}

.win-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ln2);
  display: inline-block;
}

.win-title {
  font-size: 12px;
  color: var(--t2);
  font-family: var(--font-mono, monospace);
}

.win-body {
  padding: 20px;
  background: var(--s0);
}

.win-body svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Modes Bento */
.canvas-modes-section,
.canvas-features-section,
.canvas-steps-section,
.canvas-library-section,
.canvas-faq-section,
.canvas-cta-band {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-head h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 8px 0;
  letter-spacing: -0.01em;
}

.section-head .sub {
  color: var(--t2);
  font-size: 16px;
  margin: 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mode-card {
  padding: 24px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-md, 8px);
  background: var(--s1);
  display: flex;
  flex-direction: column;
}

.mode-indicator {
  height: 70px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-indicator svg {
  width: 100%;
  max-width: 120px;
  height: auto;
}

.mode-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.mode-card p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.features-grid .card {
  padding: 24px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-md, 8px);
  background: var(--s1);
}

.features-grid .ico {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px solid var(--ln);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac);
  margin-bottom: 16px;
}

.features-grid h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.features-grid p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 24px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-md, 8px);
  background: var(--s1);
}

.step-num {
  display: block;
  font-size: 13px;
  color: var(--ac);
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.step-card p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Library Integration Grid */
.library-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lib-sim-card {
  padding: 24px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-md, 8px);
  background: var(--s1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast, 150ms) var(--ease, ease), border-color var(--dur-fast, 150ms) var(--ease, ease);
}

.lib-sim-card:hover {
  transform: translateY(-2px);
  border-color: var(--ac);
}

.lib-sim-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.lib-sim-card p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.sim-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--ac);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq {
  border: 1px solid var(--ln);
  border-radius: var(--radius-md, 8px);
  background: var(--s1);
  padding: 16px 20px;
  transition: border-color var(--dur-fast, 150ms) var(--ease, ease);
}

details.faq[open] {
  border-color: var(--ln2);
}

details.faq summary {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--tx);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  font-size: 18px;
  color: var(--t2);
  margin-left: 12px;
  transition: transform var(--dur-fast, 150ms) var(--ease, ease);
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--t2);
}

details.faq p a {
  color: var(--ac);
  text-decoration: underline;
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}

/* CTA Band */
.cta-box {
  padding: 48px 32px;
  text-align: center;
  background: var(--s1);
  border: 1px solid var(--ln);
  border-radius: var(--radius-lg, 12px);
}

.cta-box h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 12px;
}

.cta-box .lead {
  color: var(--t2);
  margin: 0 auto 24px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Motion Kill Switch */
html[data-motion="off"] .canvas-animated-dots,
@media (prefers-reduced-motion: reduce) {
  .canvas-animated-dots {
    display: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .canvas-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .modes-grid,
  .features-grid,
  .steps-grid,
  .library-links-grid {
    grid-template-columns: 1fr;
  }
}
