
/* Features */

.feature-grid {
  display: grid;
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--molt-border-subtle);
  border-radius: var(--molt-radius-card);
  background: var(--molt-bg-surface);
  box-shadow: var(--molt-shadow-card);
}

.feature-card h3 {
  font-family: var(--molt-font-sans);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--molt-text-secondary);
}

.feature-card--lead {
  border-color: transparent;
  background: var(--molt-brand-soft);
}

.feature-card--lead h3 {
  font-family: var(--molt-font-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card--lead {
    grid-column: span 2;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Benefits */

.benefits {
  border-block: 1px solid var(--molt-border-subtle);
  background: var(--molt-bg-surface);
}

.stats {
  display: grid;
  gap: 32px 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-top: 20px;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--molt-brand-primary);
  transform-origin: left center;
}

.stat__value {
  color: var(--molt-brand-ink);
  font-family: var(--molt-font-serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.stat__label {
  font-weight: 700;
}

.stat__note {
  margin: 4px 0 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

@media (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hosting {
  display: grid;
  gap: 28px;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--molt-border-subtle);
  border-radius: var(--molt-radius-panel);
  background: var(--molt-bg-canvas);
}

.hosting h3 {
  font-family: var(--molt-type-h3-family);
  font-size: var(--molt-type-h3-size);
  font-weight: var(--molt-type-h3-weight);
  line-height: var(--molt-type-h3-line-height);
}

.hosting > div > p,
.hosting > p {
  margin: 16px 0 0;
  color: var(--molt-text-secondary);
}

.hosting__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.hosting__steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--molt-border-subtle);
  border-radius: var(--molt-radius-md);
  background: var(--molt-bg-surface);
  counter-increment: step;
}

.hosting__steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--molt-radius-round);
  background: var(--molt-brand-primary);
  color: var(--molt-text-on-brand);
  font-family: var(--molt-font-sans);
  font-weight: 800;
}

@media (min-width: 900px) {
  .hosting {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 48px;
  }
}

/* Claude Code plugin: reuses the hosting panel and the install box. */

.plugin__head {
  max-width: 740px;
}

.plugin__panel {
  margin-top: clamp(32px, 5vw, 56px);
}

.plugin__points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.plugin__points li {
  position: relative;
  padding-left: 22px;
  color: var(--molt-text-secondary);
}

.plugin__points li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--molt-brand-primary);
}

.plugin__cta {
  margin-top: 28px;
}

.plugin__step {
  flex: 1;
  min-width: 0;
}

.plugin__step p {
  margin: 4px 0 0;
  color: var(--molt-text-primary);
  font-weight: 600;
}

.plugin__step .install {
  margin-top: 12px;
}

.plugin__step .install__command {
  font-size: 14px;
}

@media (min-width: 900px) {
  .plugin__panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  }
}

.plugin__note {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

/* WebAssembly */

.wasm__head {
  max-width: 740px;
}

.wasm__head .btn {
  margin-top: 28px;
}

.wasm__caption {
  margin: 48px 0 0;
  color: var(--molt-text-muted);
  font-family: var(--molt-type-caption-family);
  font-size: var(--molt-type-caption-size);
  font-weight: var(--molt-type-caption-weight);
}

.wasm__boxes {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.codebox {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-lg);
  background: var(--molt-bg-surface);
  box-shadow: var(--molt-shadow-paper);
}

.codebox--terminal {
  background: var(--molt-bg-canvas);
}

.codebox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--molt-border-subtle);
  background: var(--molt-bg-elevated);
}

.codebox__label {
  color: var(--molt-text-muted);
  font-family: var(--molt-font-mono);
  font-size: 12.5px;
  font-weight: 500;
}

.codebox__code {
  flex: 1;
  margin: 0;
  padding: 18px 0;
  overflow-x: auto;
  color: var(--molt-text-primary);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.75;
  tab-size: 2;
}

.codebox__code code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding-inline: 16px;
}

@media (min-width: 760px) {
  .wasm__boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* Closing call to action */

.cta__inner {
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border-radius: var(--molt-radius-panel);
  background: var(--molt-brand-soft);
  text-align: center;
}

.cta__inner .lead {
  max-width: 620px;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Footer */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--molt-border-subtle);
}

.site-footer__inner {
  display: grid;
  gap: 20px;
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.site-footer__tagline {
  margin: 0;
  max-width: 460px;
  font-family: var(--molt-font-serif);
  font-size: 20px;
  line-height: 1.3;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.site-footer__fine {
  margin: 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

.consent-manage {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--molt-text-primary);
  font-family: var(--molt-font-sans);
  font-size: var(--molt-type-small-size);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}


/* Privacy policy */

.policy {
  padding-block: clamp(40px, 7vw, 88px);
}

.policy__inner {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
}

.policy h1 {
  font-family: var(--molt-type-display-family);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: var(--molt-type-display-weight);
  line-height: var(--molt-type-display-line-height);
}

.policy__updated {
  margin: 16px 0 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

.policy__section {
  margin-top: 40px;
}

.policy__section h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
}

.policy__section p,
.policy__section li {
  margin: 12px 0 0;
  color: var(--molt-text-secondary);
}

.policy__section ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.policy__contact strong {
  color: var(--molt-text-primary);
}

.policy .btn {
  margin-top: 48px;
}


/* Motion: entrance animations triggered by scrolling. Hidden only while `is-pending`, which
   motion.js adds to below-the-fold elements and only when motion is welcome. */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    animation: reveal-up calc(var(--molt-duration-reveal) * 2.2) var(--molt-easing-emphasized) backwards;
  }

  [data-reveal="left"] { animation-name: reveal-left; }
  [data-reveal="right"] { animation-name: reveal-right; }
  [data-reveal="scale"] { animation-name: reveal-scale; }
  [data-reveal="line"] { animation-name: reveal-fade; }

  [data-reveal].is-pending {
    animation: none;
    opacity: 0;
  }

  [data-delay="1"] { animation-delay: 90ms; }
  [data-delay="2"] { animation-delay: 180ms; }
  [data-delay="3"] { animation-delay: 270ms; }
  [data-delay="4"] { animation-delay: 360ms; }
  [data-delay="5"] { animation-delay: 450ms; }
  [data-delay="6"] { animation-delay: 540ms; }

  @keyframes reveal-up {
    from {
      opacity: 0;
      transform: translateY(34px);
    }
  }

  @keyframes reveal-left {
    from {
      opacity: 0;
      transform: translateX(-56px);
    }
  }

  @keyframes reveal-right {
    from {
      opacity: 0;
      transform: translateX(56px);
    }
  }

  @keyframes reveal-scale {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.94);
    }
  }

  @keyframes reveal-fade {
    from {
      opacity: 0;
    }
  }

  /* The line above each number draws itself in. */
  .stat:not(.is-pending)::before {
    animation: draw-line calc(var(--molt-duration-reveal) * 3) var(--molt-easing-emphasized) 120ms backwards;
  }

  .stat.is-pending::before {
    transform: scaleX(0);
  }

  @keyframes draw-line {
    from {
      transform: scaleX(0);
    }
  }

  /* Code lines type in one after another once their box arrives. */
  .codebox:not(.is-pending) .codebox__line {
    animation: line-in var(--molt-duration-reveal) var(--molt-easing-emphasized) backwards;
  }

  .codebox__line:nth-child(1) { animation-delay: 260ms; }
  .codebox__line:nth-child(2) { animation-delay: 320ms; }
  .codebox__line:nth-child(3) { animation-delay: 380ms; }
  .codebox__line:nth-child(4) { animation-delay: 440ms; }
  .codebox__line:nth-child(5) { animation-delay: 500ms; }
  .codebox__line:nth-child(6) { animation-delay: 560ms; }
  .codebox__line:nth-child(7) { animation-delay: 620ms; }
  .codebox__line:nth-child(8) { animation-delay: 680ms; }
  .codebox__line:nth-child(9) { animation-delay: 740ms; }
  .codebox__line:nth-child(n + 10) { animation-delay: 800ms; }

  @keyframes line-in {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }
  }

}


@media print {
  [data-reveal].is-pending {
    opacity: 1;
  }

  .hero__bg,
  .scroll-progress {
    display: none;
  }
}
