/* Landing only. Tokens come from app.css. */
.lp { overflow-x: hidden; }
.lp-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.lp-mark { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; }
.lp-mark b { color: var(--accent); }
.lp-nav .btn { width: auto; min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 999px; }

.lp-sec { max-width: 1040px; margin: 0 auto; padding: 56px 16px; }
.lp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin: 0 0 10px; }
.lp-h2 { font-size: clamp(26px, 6.4vw, 40px); line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 12px; }
.lp-lead { font-size: 17px; color: var(--muted); max-width: 560px; }

/* hero */
.lp-hero { display: grid; gap: 40px; align-items: center; padding-top: 40px; }
.lp-hero h1 { font-size: clamp(38px, 11vw, 64px); line-height: 1.08; letter-spacing: -0.045em; margin: 0 0 18px; }
.lp-hero h1 span { display: block; }
.lp-hero h1 .hl { color: var(--accent); }
.lp-hero .lp-lead { font-size: 18px; margin-bottom: 26px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-ctas .btn { width: auto; flex: 1 1 180px; border-radius: 999px; min-height: 56px; font-size: 17px; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.lp-ctas .btn.line { box-shadow: none; }
.lp-join { margin-top: 16px; }
.lp-join label { display: block; font-size: 15px; margin-bottom: 8px; }
.lp-join-row { display: flex; gap: 8px; }
.lp-join-row input { flex: 1 1 auto; min-width: 0; min-height: 48px; margin: 0; font-size: 17px; text-transform: uppercase; letter-spacing: 2px; }
.lp-join-row input::placeholder { letter-spacing: 0; }
.lp-join-row .btn { width: auto; flex: 0 0 auto; min-height: 48px; padding: 8px 20px; }
.lp-join-err { margin: 6px 0 0; font-size: 14px; color: var(--accent); }
.lp-join-err:empty { display: none; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.lp-chips li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lp-chips li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* phone mock */
.lp-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.lp-blob { position: absolute; inset: 6% 4% 0; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 30% 30%, #ffd9c9, transparent 60%), radial-gradient(circle at 75% 70%, #ffe7a8, transparent 55%), var(--accent-soft);
  filter: blur(2px); animation: lp-morph 14s ease-in-out infinite; }
@keyframes lp-morph { 50% { border-radius: 58% 42% 52% 48% / 45% 58% 42% 55%; transform: rotate(6deg) scale(1.03); } }
.lp-phone { position: relative; width: 270px; border-radius: 38px; padding: 12px; background: #1f1b16;
  box-shadow: 0 30px 60px rgba(31, 27, 22, 0.28), inset 0 0 0 2px #3a332b; transform: rotate(-3deg); }
.lp-screen { --accent: #e8573c; --accent-soft: #fde8e2; --text: #1f1b16; border-radius: 28px; background: #fbf8f3; color: #1f1b16; padding: 20px 16px 22px; min-height: 440px; }
.lp-screen .phase-chip { font-size: 12px; }
.lp-q { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 16px; }
.lp-opt { position: relative; overflow: hidden; border: 2px solid #e6dfd4; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; font-weight: 700; font-size: 15px; background: #fff; }
.lp-opt.on { border-color: #e8573c; }
.lp-opt i { position: absolute; inset: 0 auto 0 0; background: #fde8e2; z-index: 0; width: 0; animation: lp-fill 2.4s 0.6s cubic-bezier(.2,.8,.2,1) forwards; }
.lp-opt:nth-of-type(2) i { animation-delay: 0.9s; }
.lp-opt span, .lp-opt b { position: relative; z-index: 1; }
.lp-opt b { float: right; color: #e8573c; opacity: 0; animation: lp-in 0.4s 2.6s forwards; }
@keyframes lp-fill { to { width: var(--w); } }
@keyframes lp-in { to { opacity: 1; } }
.lp-note { font-size: 13px; color: #6f665b; margin: 6px 0 16px; }
.lp-people { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-people span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #f3eee6;
  opacity: 0; transform: translateY(8px); animation: lp-pop 0.45s forwards; }
@keyframes lp-pop { to { opacity: 1; transform: none; } }
.lp-float { position: absolute; font-size: 30px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); animation: lp-bob 5s ease-in-out infinite; }
.lp-float.f1 { top: 8%; left: 6%; } .lp-float.f2 { top: 22%; right: 4%; animation-delay: -1.6s; } .lp-float.f3 { bottom: 10%; left: 10%; animation-delay: -3s; }
@keyframes lp-bob { 50% { transform: translateY(-10px) rotate(6deg); } }

/* kits */
.lp-kits { display: grid; gap: 14px; margin-top: 28px; }
.lp-kit { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; border-radius: 22px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, var(--k1), var(--k2)); border: 1px solid color-mix(in srgb, var(--k2) 60%, var(--line)); transition: transform .18s, box-shadow .18s; }
a.lp-kit:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 27, 22, 0.12); }
.lp-kit .em { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.lp-kit h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-kit p { margin: 0; color: #4d443a; }
.lp-kit .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lp-kit .meta span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.7); color: #4d443a; }
.lp-kit .go { margin-top: 12px; font-weight: 800; color: #1f1b16; }
.lp-kit .go::after { content: " →"; }
.lp-kit.soon { filter: saturate(.35); opacity: .7; }
.lp-kit .tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(31,27,22,.08); }

/* how */
.lp-steps { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; }
.lp-steps li { position: relative; padding: 22px 20px 20px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-steps li .e { font-size: 34px; }
.lp-steps li h3 { font-size: 19px; margin: 8px 0 6px; }
.lp-steps li h3::before { counter-increment: s; content: counter(s, decimal-leading-zero) "  "; color: var(--accent); font-size: 14px; letter-spacing: .05em; }

/* promises */
.lp-dark { background: #1f1b16; color: #f3ede4; }
.lp-dark .lp-lead, .lp-dark p { color: #bfb5a8; }
.lp-dark .lp-eyebrow { color: #ff9a80; }
.lp-promises { display: grid; gap: 12px; margin-top: 26px; }
.lp-promises > div { padding: 20px; border-radius: 20px; background: #2a251f; border: 1px solid #3a332b; }
.lp-promises .e { font-size: 30px; }
.lp-promises h3 { margin: 8px 0 4px; font-size: 18px; color: #fff; }

/* faq */
.lp-faq details { border-bottom: 1px solid var(--line); padding: 16px 2px; }
.lp-faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 10px 0 0; color: var(--muted); }

/* final cta */
.lp-final { text-align: center; border-radius: 28px; padding: 44px 22px; margin: 0 16px;
  background: linear-gradient(135deg, #e8573c, #f08a4b); color: #fff; }
.lp-final h2 { font-size: clamp(24px, 6vw, 36px); letter-spacing: -0.03em; margin: 0 0 8px; }
.lp-final p { color: rgba(255,255,255,.88); margin-bottom: 22px; }
.lp-final .btn { width: auto; min-width: 200px; border-radius: 999px; background: #fff; color: #e8573c; }
.lp-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 16px 56px; }
.lp-foot.q-links { padding-bottom: 0; line-height: 1.9; }

@media (min-width: 760px) {
  .lp-hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 72px; }
  .lp-kits { grid-template-columns: repeat(3, 1fr); }
  .lp-steps, .lp-promises { grid-template-columns: repeat(3, 1fr); }
  .lp-final { max-width: 1008px; margin: 0 auto; }
}
@media (prefers-color-scheme: dark) {
  .lp-kit p, .lp-kit .meta span { color: #3b332b; }
  .lp-kit { color: #1f1b16; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-blob, .lp-float { animation: none; }
  .lp-opt i { animation: none; width: var(--w); }
  .lp-opt b, .lp-people span { animation: none; opacity: 1; transform: none; }
}
.lp-faq p { white-space: pre-line; }
.lp-kit-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-kit-actions .go { text-decoration: none; }
.lp-kit-actions .demo { color: #4d443a; font-weight: 700; }
.lp-kit.focus { outline: 3px solid var(--accent); outline-offset: 4px; }

/* /k/<kit>: the kit's guide, rendered on the server (server.js kitDetailHtml) */
#kit-detail .lp-guide-steps { margin: 16px 0; padding-left: 22px; }
#kit-detail .lp-guide-steps li { margin: 10px 0; }
#kit-detail .btn { display: inline-block; width: auto; margin-top: 8px; }
