/* Landing-page-only styles. Works on top of app.css base tokens. */

body.landing {
  background: radial-gradient(circle at top, #10161f 0%, #0b0d10 40%);
}

.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px); background: rgba(11, 13, 16, 0.72);
}
/* Anchor targets account for the sticky header so headings don't hide under it. */
.section, .hero { scroll-margin-top: 72px; }
.top .brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #5eead4, #818cf8 55%, #6366f1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.kin-link {
  margin-left: 12px; padding: 3px 9px; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #c7d2fe; background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.32);
}
.kin-link:hover { color: #e0e7ff; background: rgba(99, 102, 241, 0.2); }

.btn.btn--sm { padding: 8px 14px; font-size: 0.9rem; min-height: 36px; }
.btn.btn--lg { padding: 16px 24px; font-size: 1.05rem; min-height: 52px; }

.hero {
  position: relative;
  padding: 96px 24px 120px;
  text-align: center;
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-family: var(--mono);
  color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.22);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto 20px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #5eead4, #7dd3fc 50%, #c4b5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #9aa4b2; max-width: 58ch; margin: 0 auto 36px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.badges {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  color: var(--muted); font-size: 0.92rem; margin-top: 8px;
}
.hero-glow {
  position: absolute; inset: auto 0 -10% 0; height: 420px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, 0.14), transparent 60%);
}

.section { padding: 96px 24px; position: relative; z-index: 1; }
.section--alt { background: #0e1217; border-block: 1px solid var(--border); }
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em; max-width: 22ch;
}
.section-lede { max-width: 60ch; margin: 0 0 40px; font-size: 1.05rem; }

.how-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.how-card {
  padding: 28px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; position: relative;
}
.how-card .step {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.how-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.how-card code {
  display: inline-block; margin-top: 16px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--primary); font-size: 0.82rem;
}

.pipeline { max-width: 820px; }
.steps {
  list-style: none; margin: 32px 0 0; padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 20px 24px 20px 68px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 20px; top: 20px;
  font-family: var(--mono); color: var(--primary);
  font-size: 1.15rem;
}

.pricing-grid {
  display: grid; gap: 24px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.price-card {
  padding: 32px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px;
}
.price-card--muted { border-style: dashed; opacity: 0.88; }
.price-card .price { font-size: 2.4rem; font-weight: 700; margin: 12px 0 16px; }
.price-card .price .muted { font-size: 1rem; font-weight: 400; }
.check { list-style: none; padding: 0; margin: 0 0 24px; }
.check li { padding: 6px 0; padding-left: 24px; position: relative; color: #cbd5e1; }
.check li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary);
}
.tiny { font-size: 0.8rem; }

.faq details {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 10px; background: var(--card);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 10px; }
.faq p { margin: 0; color: #cbd5e1; }

.site-footer { padding: 48px 24px 32px; margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.footer-grid a:not(.btn) { display: block; padding: 6px 0; color: var(--muted); font-size: 0.9rem; }
.footer-grid a:not(.btn):hover { color: var(--text); }
.footer-grid h4 { margin: 0 0 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.center { text-align: center; }

/* ---- Mobile / narrow-screen overrides ----------------------------------- */
@media (max-width: 720px) {
  .hero { padding: 48px 16px 64px; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero h1 { max-width: 18ch; }
  .hero .lede { font-size: 1rem; margin-bottom: 28px; }
  .cta-row { flex-direction: column; align-items: stretch; margin-bottom: 20px; }
  .cta-row .btn { width: 100%; }
  .badges { gap: 8px 16px; font-size: 0.85rem; }
  .badges span { white-space: nowrap; }

  .section { padding: 56px 16px; }
  .section-lede { margin-bottom: 28px; }
  .how-card { padding: 22px; }
  .steps li { padding: 16px 16px 16px 56px; }
  .steps li::before { left: 16px; top: 16px; }

  .pricing-grid { gap: 16px; margin-top: 24px; }
  .price-card { padding: 24px; }

  .site-footer { padding: 40px 16px 24px; }
  .footer-grid { gap: 20px; }
}

/* Hide marketing nav links on tiny screens — leave brand + sign-in + Get
   started so the header stays a single tidy row. */
@media (max-width: 520px) {
  .top nav a[href^="#"] { display: none; }
}
