/* LogoMarket · pages.css
 * Shared shell + subtle animation system for About / Contact / FAQ / How /
 * 404 / Login / Register / Dashboard.  Modern · clean · corporate · light.
 * SPEC.md §13.0. Fable extends per §13.1–13.8. */

/* ── Section rhythm & heads ─────────────────────────────── */
.lm-page { padding-block: 24px 96px; }
.lm-page section { padding-block: 48px; }
@media (max-width: 720px) { .lm-page section { padding-block: 32px; } }

.lm-page-hero {
  text-align: center; padding: 88px 24px 56px;
  background: linear-gradient(180deg, var(--lm-primary-50), transparent);
  border-radius: var(--lm-radius-lg);
}
.lm-page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; color: var(--lm-ink); margin: 12px 0 16px; }
.lm-page-hero p { max-width: 60ch; margin-inline: auto; color: var(--lm-ink-500); font-size: 18px; line-height: 1.6; }

.lm-cta-band {
  text-align: center; padding: 56px 24px; border-radius: var(--lm-radius-lg);
  background: linear-gradient(135deg, var(--lm-primary-50), #fff 60%, var(--lm-secondary-50));
  border: 1px solid var(--lm-border);
}

/* ── Generic card / grid ────────────────────────────────── */
.lm-grid { display: grid; gap: 24px; }
.lm-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lm-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .lm-grid.cols-3, .lm-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lm-grid.cols-3, .lm-grid.cols-4 { grid-template-columns: 1fr; } }

.lm-tile {
  background: var(--lm-surface); border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-lg); padding: 28px;
  transition: transform .25s var(--lm-ease), box-shadow .25s var(--lm-ease);
}
.lm-tile:hover { transform: translateY(-6px); box-shadow: var(--lm-shadow); }
.lm-tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lm-primary-50); color: var(--lm-primary-500); margin-bottom: 16px; }
.lm-tile__icon svg { width: 22px; height: 22px; }

/* Stat counters */
.lm-stat { text-align: center; }
.lm-stat b { display: block; font-family: var(--lm-font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 46px); color: var(--lm-ink); }
.lm-stat span { color: var(--lm-ink-400); font-size: 14px; }

/* ── Forms (Contact / Login / Register) ─────────────────── */
.lm-field { display: grid; gap: 6px; margin-bottom: 16px; }
.lm-field label { font-size: 13px; font-weight: 600; color: var(--lm-ink-600); }
.lm-field input, .lm-field textarea, .lm-field select {
  height: 52px; border-radius: 12px; border: 1px solid var(--lm-border);
  padding: 0 16px; font: inherit; color: var(--lm-ink); background: #fff;
  transition: border-color .2s var(--lm-ease), box-shadow .2s var(--lm-ease);
}
.lm-field textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; }
.lm-field input:focus, .lm-field textarea:focus, .lm-field select:focus {
  outline: none; border-color: var(--lm-primary-300); box-shadow: 0 0 0 4px var(--lm-primary-50);
}
.lm-field.has-error input, .lm-field.has-error textarea { border-color: var(--lm-secondary-500); }
.lm-field__err { font-size: 12px; color: var(--lm-secondary-600); min-height: 1em; }
.lm-hp { position: absolute; left: -9999px; }               /* honeypot */

.lm-form-status { border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.lm-form-status.is-ok { background: var(--lm-success-50); color: var(--lm-success-600); }
.lm-form-status.is-err { background: var(--lm-secondary-50); color: var(--lm-secondary-700); }

/* Auth card shell (Login / Register) */
.lm-auth { min-height: 70vh; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--lm-primary-50), transparent); padding: 48px 20px; }
.lm-auth__card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-lg); padding: 32px; box-shadow: var(--lm-shadow-sm); }
.lm-auth__card h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.lm-strength { height: 6px; border-radius: 999px; background: var(--lm-primary-50); overflow: hidden; }
.lm-strength > i { display: block; height: 100%; width: 0; background: var(--lm-secondary-500);
  transition: width .3s var(--lm-ease); }

/* ── FAQ accordion ──────────────────────────────────────── */
.lm-acc { border: 1px solid var(--lm-border); border-radius: var(--lm-radius); background: #fff; }
.lm-acc details { border-bottom: 1px solid var(--lm-border); }
.lm-acc details:last-child { border-bottom: 0; }
.lm-acc summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600;
  color: var(--lm-ink); display: flex; justify-content: space-between; gap: 16px; }
.lm-acc summary::after { content: "+"; color: var(--lm-primary-500); font-size: 22px; line-height: 1;
  transition: transform .25s var(--lm-ease); }
.lm-acc details[open] summary::after { transform: rotate(45deg); }
.lm-acc__body { padding: 0 24px 20px; color: var(--lm-ink-500); line-height: 1.6; }

/* ── Dashboard ──────────────────────────────────────────── */
.lm-dash { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-block: 40px; }
@media (max-width: 820px) { .lm-dash { grid-template-columns: 1fr; } }
.lm-dash__nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; }
.lm-dash__nav a { padding: 12px 16px; border-radius: 12px; color: var(--lm-ink-600); font-weight: 600;
  transition: background .2s var(--lm-ease), color .2s var(--lm-ease); cursor: pointer; }
.lm-dash__nav a:hover { background: var(--lm-primary-50); color: var(--lm-primary-600); }
.lm-dash__nav a[aria-selected="true"] { background: var(--lm-primary-500); color: #fff; }
.lm-dash__panel { display: none; }
.lm-dash__panel.is-active { display: block; }

/* ── 404 ────────────────────────────────────────────────── */
.lm-404 { text-align: center; padding: 96px 24px; }
.lm-404__code { font-family: var(--lm-font-display); font-weight: 800; font-size: clamp(88px, 18vw, 180px);
  line-height: .9; background: linear-gradient(135deg, var(--lm-primary-500), var(--lm-secondary-500));
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: lm-float 5s ease-in-out infinite; }
.lm-404 h1 { font-size: clamp(22px, 3vw, 30px); color: var(--lm-ink); margin: 8px 0 12px; }
.lm-404 p { color: var(--lm-ink-500); max-width: 46ch; margin: 0 auto 24px; }
.lm-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@keyframes lm-float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

/* ── Reveal-on-scroll (progressive enhancement) ─────────── */
.lm-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--lm-ease), transform .5s var(--lm-ease); }
.lm-reveal.is-in { opacity: 1; transform: none; }
.lm-reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--lm-ease), transform .5s var(--lm-ease); }
.lm-reveal-stagger.is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lm-reveal, .lm-reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none; }
  .lm-404__code { animation: none; }
}
/* No-JS safety: if the observer never runs, content still shows. */
.no-js .lm-reveal, .no-js .lm-reveal-stagger > * { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   Page-specific sections (§13.1–13.8) — built on the shell above
   ═══════════════════════════════════════════════════════════ */

/* Section head (shared) */
.lm-section-head { max-width: 640px; margin-bottom: 32px; }
.lm-section-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--lm-ink); margin: 8px 0 0; }

/* How It Works — stepper (§13.4) */
.lm-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
@media (max-width: 780px) { .lm-stepper { grid-template-columns: 1fr; } }
.lm-step-card { position: relative; background: #fff; border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-lg); padding: 28px; }
.lm-step-card__num { position: absolute; top: 22px; right: 24px; font-family: var(--lm-font-display);
  font-weight: 800; font-size: 30px; color: var(--lm-primary-100); }
.lm-step-card h2 { font-size: 19px; font-weight: 700; color: var(--lm-ink); margin: 4px 0 8px; }
.lm-step-card p { color: var(--lm-ink-500); font-size: 14px; line-height: 1.6; margin: 0; }

/* Compare cards (§13.4) */
.lm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .lm-compare { grid-template-columns: 1fr; } }
.lm-compare__card { border-radius: var(--lm-radius-lg); padding: 28px; border: 1px solid var(--lm-border); background: #fff; }
.lm-compare__card.is-muted { opacity: .8; }
.lm-compare__card.is-hero { background: linear-gradient(135deg, var(--lm-primary-50), #fff 60%, var(--lm-secondary-50));
  border-color: transparent; box-shadow: var(--lm-shadow); }
.lm-compare__card h3 { font-size: 17px; font-weight: 700; color: var(--lm-ink); margin: 0 0 14px; }
.lm-compare__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lm-compare__card li { position: relative; padding-left: 22px; font-size: 14px; color: var(--lm-ink-500); }
.lm-compare__card li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px;
  border-radius: 999px; background: currentColor; opacity: .3; }
.lm-compare__card.is-hero li::before { background: var(--lm-success-500); opacity: 1; }

/* What you receive (§13.4) */
.lm-receive { background: #fff; border: 1px solid var(--lm-border); border-radius: var(--lm-radius-lg); padding: 32px; }
.lm-receive h2 { font-size: 22px; font-weight: 800; color: var(--lm-ink); margin: 0 0 18px; }
.lm-receive__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lm-receive__list li { position: relative; padding-left: 28px; color: var(--lm-ink-600); font-size: 15px; }
.lm-receive__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 999px;
  background: var(--lm-success-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }

/* About (§13.1) */
.lm-manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 780px) { .lm-manifesto { grid-template-columns: 1fr; } }
.lm-manifesto h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; color: var(--lm-ink); margin: 0; }
.lm-manifesto p { color: var(--lm-ink-500); line-height: 1.7; margin: 0 0 16px; }
.lm-stats-strip { background: linear-gradient(135deg, var(--lm-primary-50), #fff 60%, var(--lm-secondary-50));
  border: 1px solid var(--lm-border); border-radius: var(--lm-radius-lg); padding: 32px; }
.lm-team-card { text-align: center; }
.lm-team-card__avatar { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 999px; background: var(--lm-primary-500); color: #fff;
  font-family: var(--lm-font-display); font-weight: 800; font-size: 20px; }
.lm-team-card h3 { font-size: 15px; font-weight: 700; color: var(--lm-ink); margin: 0 0 2px; }
.lm-team-card p { font-size: 13px; color: var(--lm-ink-400); margin: 0; }

/* Contact (§13.2) */
.lm-contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .lm-contact { grid-template-columns: 1fr; } }
.lm-contact__info { display: grid; gap: 22px; }
.lm-contact__row { display: flex; gap: 16px; align-items: flex-start; }
.lm-contact__row .lm-tile__icon { margin-bottom: 0; flex: none; }
.lm-contact__row h3 { font-size: 15px; font-weight: 700; color: var(--lm-ink); margin: 2px 0 2px; }
.lm-contact__row p { font-size: 14px; color: var(--lm-ink-500); margin: 0; }
.lm-contact__card { background: #fff; border: 1px solid var(--lm-border); border-radius: var(--lm-radius-lg);
  padding: 32px; box-shadow: var(--lm-shadow-sm); }
.lm-contact__submit { width: 100%; margin-top: 8px; }

/* FAQ page (§13.3) */
.lm-faqpage { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .lm-faqpage { grid-template-columns: 1fr; } }
.lm-faqpage__rail { position: sticky; top: 96px; display: grid; gap: 4px; }
@media (max-width: 820px) { .lm-faqpage__rail { position: static; grid-auto-flow: column; overflow-x: auto; } }
.lm-faqpage__rail a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--lm-ink-600); white-space: nowrap; }
.lm-faqpage__rail a:hover { background: var(--lm-primary-50); color: var(--lm-primary-600); }
.lm-faqpage__group { margin-bottom: 36px; }
.lm-faqpage__group h2 { font-size: 20px; font-weight: 800; color: var(--lm-ink); margin: 0 0 14px; }

/* Auth extras (§13.6–13.7) */
.lm-auth__sub { font-size: 14px; color: var(--lm-ink-500); margin: 4px 0 20px; }
.lm-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; margin: 4px 0 18px; }
.lm-auth__row a { color: var(--lm-primary-600); font-weight: 600; }
.lm-auth__remember { display: inline-flex; align-items: center; gap: 8px; color: var(--lm-ink-600); cursor: pointer; }
.lm-auth__remember input { width: 16px; height: 16px; accent-color: var(--lm-primary-500); }
.lm-auth__terms { font-size: 13px; margin: 4px 0 18px; }
.lm-auth__submit { width: 100%; }
.lm-auth__alt { text-align: center; font-size: 14px; color: var(--lm-ink-500); margin: 18px 0 0; }
.lm-auth__alt a { color: var(--lm-primary-600); font-weight: 700; }
.lm-auth .lm-form-status { margin-bottom: 16px; }
.lm-strength { display: block; margin-top: 8px; }

/* Dashboard extras (§13.8) */
.lm-dash__greeting { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--lm-ink); margin: 0 0 22px; }
.lm-dash__content h2 { font-size: 20px; font-weight: 800; color: var(--lm-ink); margin: 0 0 18px; }
.lm-dash__logout { color: var(--lm-secondary-600) !important; }
.lm-dash__logo-img img { width: 100%; height: auto; border-radius: var(--lm-radius);
  background: linear-gradient(135deg, var(--lm-primary-50), #fff); }
.lm-dash__logo h3 { font-size: 15px; font-weight: 700; color: var(--lm-ink); margin: 12px 0 10px; }
.lm-dash__logo-actions { display: grid; gap: 8px; }
.lm-dash__cert-link { font-size: 13px; font-weight: 600; color: var(--lm-primary-600); }
.lm-dash__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius); overflow: hidden; }
.lm-dash__table th, .lm-dash__table td { text-align: left; padding: 14px 16px; font-size: 14px;
  border-bottom: 1px solid var(--lm-border); color: var(--lm-ink-600); }
.lm-dash__table th { font-family: var(--lm-font-display); font-weight: 700; color: var(--lm-ink); font-size: 13px; }
.lm-dash__table tr:last-child td { border-bottom: 0; }
.lm-dash__dl { padding: 8px 16px; font-size: 13px; }
.lm-dash__certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lm-dash__certs li { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 16px 20px;
  font-size: 14px; color: var(--lm-ink-600); }
.lm-dash__empty { color: var(--lm-ink-400); }
.lm-dash__empty a { color: var(--lm-primary-600); font-weight: 600; }
.lm-dash__account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ── About dummy imagery (§13.1) ────────────────────────── */
.lm-manifesto { grid-template-columns: 1fr 1fr; }
.lm-about-figure { grid-column: 1 / -1; margin: 12px 0 0; border-radius: var(--lm-radius-lg);
  overflow: hidden; border: 1px solid var(--lm-border); box-shadow: var(--lm-shadow-sm); }
.lm-about-figure img { width: 100%; height: auto; display: block; }
.lm-team-card__photo { display: block; width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 999px;
  overflow: hidden; border: 3px solid #fff; box-shadow: var(--lm-shadow-sm); }
.lm-team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
