/* Public home page. Everything is prefixed .lp- so it never touches the app screens.
   Concept: a gym's paper register. The hero is a ruled page with a red margin line,
   and the example list uses the same green / red status bars as the real app. */

.lp { min-height: 100vh; }
.lp-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ── Top bar ─────────────────────────────────────────── */
.lp-top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.lp-mark { font: 600 30px/1 var(--font-display); letter-spacing: 0.01em; }
.lp-link { font-weight: 700; text-decoration: none; padding: 10px 4px; border-bottom: 2px solid transparent; }
.lp-link:hover { border-bottom-color: var(--neem); }

/* ── Buttons ─────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-md);
  font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent;
}
.lp-btn-main { background: var(--neem); color: #fff; }
.lp-btn-main:hover { background: var(--neem-2); }
.lp-btn-ghost { border-color: var(--neem); color: var(--neem); }
.lp-btn-ghost:hover { background: var(--neem-bg); }
.lp .lp-btn-warm { background: #e3a21a; color: var(--neem); }
.lp .lp-btn-warm:hover { background: #efb43a; }

/* ── Hero: the ruled register page ───────────────────── */
.lp-page {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, transparent 30px, rgba(184, 69, 46, 0.45) 30px, rgba(184, 69, 46, 0.45) 32px, transparent 32px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(29, 58, 43, 0.1) 31px, rgba(29, 58, 43, 0.1) 32px);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 16px 32px 50px;
}
.lp-hero { display: grid; gap: 32px; }
.lp-hero h1 { font: 600 clamp(48px, 13vw, 84px) / 0.95 var(--font-display); letter-spacing: 0.005em; max-width: 12ch; }
.lp-lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin-top: 16px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lp-fine { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* ── Example list in a phone frame ───────────────────── */
.lp-phone { margin: 0; justify-self: start; }
.lp-phone figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.lp-screen {
  width: min(300px, 100%); background: var(--chuna);
  border: 8px solid var(--neem); border-radius: 30px; padding: 16px 14px 10px;
  box-shadow: 0 1px 0 rgba(29, 58, 43, 0.15);
}
.lp-screen-top strong { font: 600 28px/1 var(--font-display); }
.lp-bar { display: flex; height: 8px; margin: 12px 0 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.lp-bar span { display: block; height: 100%; transform-origin: left; animation: lp-fill 700ms ease-out both; }
.lp-bar .is-active { flex: 3; background: var(--bar-active); }
.lp-bar .is-expired { flex: 1; background: var(--bar-expired); animation-delay: 300ms; }
@keyframes lp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-rows { list-style: none; }
.lp-row { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 9px 0 9px 10px; border-left: 4px solid var(--bar-active); border-bottom: 1px solid var(--line); }
.lp-row.is-expired { border-left-color: var(--bar-expired); }
.lp-avatar { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--neem-bg); font-size: 22px; }
.lp-who { display: grid; line-height: 1.2; min-width: 0; }
.lp-who strong { font-size: 15px; }
.lp-who span { font-size: 13px; color: var(--ink-2); }
.lp-days { grid-column: 2; font-size: 13px; font-weight: 700; color: var(--tone-active); }
.lp-row.is-expired .lp-days { color: var(--tone-expired); }

/* ── Sections ────────────────────────────────────────── */
.lp-section { padding-top: 64px; }
.lp-section h2, .lp-final h2 { font: 600 clamp(34px, 8vw, 48px) / 1 var(--font-display); margin-bottom: 20px; }

.lp-why { display: grid; gap: 18px; }
.lp-why p { font-size: clamp(20px, 4.6vw, 26px); line-height: 1.35; font-weight: 500; max-width: 34ch; }

/* Features read like register rows: a ruled line between each */
.lp-ledger { list-style: none; border-top: 2px solid var(--neem); }
.lp-ledger li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lp-ledger strong { font-size: 18px; }
.lp-ledger span { color: var(--ink-2); max-width: 60ch; }

/* ── Price band ──────────────────────────────────────── */
.lp-price { margin-top: 72px; background: var(--neem); color: #fff; padding: 48px 0; }
.lp-price-in { display: grid; gap: 24px; align-items: center; }
.lp-price h2 { font: 600 clamp(38px, 9vw, 56px) / 1 var(--font-display); max-width: 14ch; margin: 0; }
.lp-price .lp-lead { color: #cfdccf; margin-top: 10px; }
.lp-price ul { list-style: none; display: grid; gap: 10px; }
.lp-price li { padding-left: 22px; position: relative; font-size: 17px; }
.lp-price li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: #e3a21a; }
.lp-price .lp-btn { justify-self: start; }

/* ── Customers ───────────────────────────────────────── */
.lp-customers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-customers li { padding: 10px 16px; border: 1px solid var(--neem); border-radius: 999px; font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────── */
.lp-faq { border-top: 2px solid var(--neem); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 500; }
.lp-faq details[open] summary::after { content: '\2212'; }
.lp-faq details p { padding: 0 0 16px; color: var(--ink-2); max-width: 60ch; }

/* ── Final call and footer ───────────────────────────── */
.lp-final { padding-top: 72px; padding-bottom: 8px; }
.lp-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; color: var(--ink-2); }
.lp-foot span { font: 600 22px/1 var(--font-display); color: var(--neem); }

/* ── Wider screens ───────────────────────────────────── */
@media (min-width: 760px) {
  .lp-wrap { padding-left: 24px; padding-right: 24px; }
  .lp-page {
    background-image:
      linear-gradient(to right, transparent 62px, rgba(184, 69, 46, 0.45) 62px, rgba(184, 69, 46, 0.45) 64px, transparent 64px),
      repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(29, 58, 43, 0.1) 31px, rgba(29, 58, 43, 0.1) 32px);
    padding: 64px 48px 56px 96px;
  }
  .lp-hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
  .lp-phone { justify-self: end; }
  .lp-ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .lp-price-in { grid-template-columns: 1.1fr 1fr auto; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-bar span { animation: none; }
}
