/* Marketing landing page (home only). Reuses the theme variables from styles.css;
   linked via layout()'s `wide` option so no other page pays for these styles. */

/* Let the home page go full-bleed — sections paint edge to edge, .mkt-wrap centers
   content. Every other page keeps the 720px `main` from styles.css. */
body.mkt main { max-width: none; padding: 0; }
.mkt-wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.mkt-steps, .mkt-uses, .mkt-faq { padding: 72px 0; }
.mkt-hero { padding: 84px 0 72px; }
.mkt-steps, .mkt-faq { border-top: 1px solid var(--border); }
.mkt-uses { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Accent eyebrow above each section heading — hierarchy + a hit of the brand gradient. */
.mkt-eyebrow {
  display: block;
  text-align: center;
  color: var(--accent);
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ---- Hero ---- */
.mkt-hero { text-align: center; background: radial-gradient(760px 460px at 34% -10%, rgba(139, 92, 246, 0.20), transparent 62%), radial-gradient(760px 460px at 66% -10%, rgba(56, 189, 248, 0.16), transparent 62%); }
.mkt-hero h1 {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.mkt-lede {
  color: #b8c2ce;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.5;
  max-width: 660px;
  margin: 0 auto 28px;
}
.mkt-cta { max-width: 540px; margin: 0 auto; text-align: left; }
.mkt-cta .submit-form button { justify-self: stretch; width: 100%; padding: 15px 20px; font-size: 15px; box-shadow: -9px 16px 34px -14px rgba(139, 92, 246, 0.7), 9px 16px 34px -14px rgba(56, 189, 248, 0.6); }
.mkt-cta .submit-form input:focus { box-shadow: 0 0 0 3px rgba(124, 92, 246, 0.18); }
.mkt-cta .fine { text-align: center; }
.mkt-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.mkt-frameworks { color: var(--muted); font-size: 13px; letter-spacing: 0.3px; margin: 24px 0 0; }
.mkt-frameworks b { color: var(--fg); font-weight: 600; }

/* ---- Hero browser mock: URL transformation + a fake running site ---- */
.mkt-browser {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
}
.mkt-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #0e141c;
}
.mkt-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a333f; flex: none; }
.mkt-browser-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  min-width: 0;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.u-from { color: var(--muted); opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-arrow { color: var(--accent); flex: none; }
.u-to { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
  color: var(--ok);
  border: 1px solid var(--ok);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mkt-live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.mkt-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0.5;
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse { to { transform: scale(2.4); opacity: 0; } }

.mkt-browser-body { background: var(--bg); }
.fake-nav { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.fake-logo { width: 20px; height: 20px; border-radius: 6px; background: var(--brand-grad); flex: none; }
.fake-nav span:not(.fake-logo) { width: 34px; height: 7px; border-radius: 4px; background: #223040; }
.fake-hero { height: 74px; margin: 20px 16px 0; border-radius: 10px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(56, 189, 248, 0.14)); }
.fake-line { height: 8px; border-radius: 4px; background: #1c2530; margin: 14px 16px 0; }
.fake-line.short { width: 55%; }
.fake-btn { width: 96px; height: 26px; border-radius: 7px; background: var(--brand-grad); margin: 18px 16px 22px; }

/* ---- Shared section heading ---- */
.mkt-steps h2, .mkt-uses h2, .mkt-faq h2, .mkt-band h2, body.mkt .pricing h2 {
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: -0.4px;
  text-align: center;
  margin: 0 0 32px;
}

/* ---- Cards (steps + use-cases) ---- */
.mkt-step-grid, .mkt-use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mkt-step, .mkt-use {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%), var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.mkt-step:hover, .mkt-use:hover { transform: translateY(-2px); border-color: #2b3644; }
.mkt-step h3, .mkt-use h3 { margin: 0 0 8px; font-size: 17px; }
.mkt-step p, .mkt-use p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.mkt-step-n, .mkt-use-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(124, 92, 246, 0.14);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.mkt-step-n { width: 30px; height: 30px; }
.mkt-use-ico { width: 34px; height: 34px; }
.mkt-use-ico svg { width: 18px; height: 18px; }

/* ---- Mid-page CTA band ---- */
.mkt-band { padding: 64px 0; text-align: center; background: radial-gradient(560px 300px at 42% 120%, rgba(139, 92, 246, 0.14), transparent 70%), radial-gradient(560px 300px at 58% 120%, rgba(56, 189, 248, 0.12), transparent 70%); border-top: 1px solid var(--border); }
.mkt-band p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.mkt-band-btn { padding: 14px 26px; font-size: 15px; box-shadow: -9px 16px 34px -14px rgba(139, 92, 246, 0.7), 9px 16px 34px -14px rgba(56, 189, 248, 0.6); }

/* ---- Pricing (reuse the .tier cards from styles.css, constrained + emphasized) ---- */
body.mkt .pricing { max-width: 960px; margin: 0 auto; padding: 84px 24px 0; }
body.mkt .pricing > .lede { text-align: center; max-width: 620px; margin: 0 auto 24px; }
body.mkt .tier--featured {
  position: relative;
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -30px rgba(124, 92, 246, 0.55);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 55%), var(--panel);
}
.tier-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

/* ---- FAQ ---- */
.mkt-faq .mkt-wrap { max-width: 760px; }
.mkt-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 18px;
  margin-bottom: 12px;
  background: var(--panel);
}
.mkt-faq-item summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; }
.mkt-faq-item summary::-webkit-details-marker { display: none; }
.mkt-faq-item summary::after { content: "+"; float: right; color: var(--accent); font-weight: 400; font-size: 18px; line-height: 1; }
.mkt-faq-item[open] summary::after { content: "–"; }
.mkt-faq-item[open] summary { color: var(--fg); }
.mkt-faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- Footer ---- */
.mkt-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.mkt-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mkt-foot-nav { display: flex; gap: 16px; margin-left: auto; }
.mkt-foot-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.mkt-foot-nav a:hover { color: var(--fg); }
.mkt-foot-fine { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ---- Sticky mobile CTA (home only, small screens) ---- */
.mkt-sticky { display: none; }

@media (max-width: 720px) {
  .mkt-step-grid, .mkt-use-grid { grid-template-columns: 1fr; }
  .mkt-hero { padding: 56px 0; }
  .mkt-steps, .mkt-uses, .mkt-faq { padding: 56px 0; }
  body.mkt .pricing { padding-top: 56px; }
  .mkt-hero h1 { line-height: 1.15; letter-spacing: -0.5px; }
  .mkt-foot-nav { margin-left: 0; }
  .mkt-sticky {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    text-align: center;
    background: var(--accent);
    color: #06121e;
    font-weight: 700;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: -7px 12px 26px -12px rgba(139, 92, 246, 0.6), 7px 12px 26px -12px rgba(56, 189, 248, 0.55), 0 12px 30px -8px rgba(0, 0, 0, 0.7);
  }
  .mkt-sticky:hover { text-decoration: none; }
}

@media (max-width: 480px) {
  .u-from, .u-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-live-dot::after { animation: none; }
  .mkt-step, .mkt-use { transition: none; }
}
