/* Luna landing system — ported from the approved Portrait mockup
   (design/mockups/landing.src.html). Light mode only. */

/* Proper Geist family (static weights). The legacy remapped names in
   styles.css stay for older templates; new templates use 'Geist'. */
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/Geist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/Geist-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/Geist-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.luna {
  --bg: #F8F7F4;
  --card: #FFFFFF;
  --text: #1E1D1B;
  --text2: #8A877F;
  --accent: #4A5D4E;
  --bad: #9C5A50;
  --line: rgba(30, 29, 27, 0.12);
  --line-strong: rgba(30, 29, 27, 0.24);
  --accent-line: rgba(74, 93, 78, 0.4);
  --wash: rgba(30, 29, 27, 0.05);
  --frame: #1E1D1B;
  --accent-contrast: #F8F7F4;

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.luna a { text-decoration: none; }
.luna :where(a) { color: inherit; }
.luna button { font: inherit; }

.lp-shell { max-width: 1188px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.lp-nav { display: flex; align-items: center; gap: 26px; padding: 18px 24px; max-width: 1188px; margin: 0 auto; }
.lp-brand { display: inline-flex; align-items: center; gap: 12px; }
.lp-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--accent-line); background: var(--card); flex: none;
}
.lp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-wordmark { font-size: 14px; letter-spacing: 0.22em; font-weight: 500; }
.lp-nav a.nl {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text2); font-weight: 500;
}
.lp-nav a.nl:hover { color: var(--text); }
.lp-cta {
  margin-left: auto; border: 1px solid var(--accent-line); color: var(--accent);
  border-radius: 999px; padding: 8px 16px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  white-space: nowrap;
}

/* ---------- Type + shared ---------- */
.lp-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.lp-h1 {
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 600; text-wrap: balance; margin: 14px 0 0;
}
.lp-sub { color: var(--text2); font-size: 16.5px; line-height: 1.6; max-width: 46ch; margin: 18px 0 0; }
.lp-note { color: var(--text2); font-size: 12px; margin: 14px 0 0; }
.lp-kicker {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin: 0;
}
.lp-section { border-top: 1px solid var(--line); padding: 44px 0; }

/* ---------- Store badges ---------- */
.lp-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.lp-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: var(--text); color: var(--bg);
  border-radius: 12px; padding: 9px 18px 10px; min-width: 148px;
}
.lp-badge .b-top { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; font-weight: 400; }
.lp-badge .b-name { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; margin-top: 2px; }
.lp-badges.small .lp-badge { min-width: 124px; padding: 7px 14px 8px; border-radius: 10px; }
.lp-badges.small .b-name { font-size: 13.5px; }
.lp-badges.center { justify-content: center; }

/* ---------- Plates (bordered art) ---------- */
.plate { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.plate .art { overflow: hidden; }
.plate .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text2); padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap;
}
.plate-caption .cap-accent { color: var(--accent); }

/* ---------- Hero ---------- */
.lp-hero {
  display: grid; grid-template-columns: 1.05fr 0.9fr; gap: 56px; align-items: center;
  padding: 36px 0 52px;
}
.hero-plate .art { aspect-ratio: 1 / 1; }
.phase-rail { display: flex; justify-content: center; gap: 16px; margin-top: 18px; }
.phase-rail .ph { position: relative; display: inline-flex; padding-bottom: 9px; }
.phase-rail .ph svg circle { stroke: var(--text2); }
.phase-rail .ph svg path { fill: var(--text2); }
.phase-rail .ph.today svg circle { stroke: var(--accent); }
.phase-rail .ph.today svg path { fill: var(--accent); }
.phase-rail .ph.today::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}

/* ---------- Screenshot bands ---------- */
.shot-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center; padding: 36px 0;
}
.shot-band + .shot-band { border-top: 1px solid var(--line); }
.shot-band .lp-kicker { margin-bottom: 10px; }
.shot-band .f-title { font-size: 23px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; margin: 0; }
.shot-band .f-text { color: var(--text2); font-size: 14.5px; line-height: 1.65; margin: 12px 0 0; max-width: 44ch; }
.shot-band.flip .shot-copy { order: 2; }
.shot-band.flip .shot-plate { order: 1; }
.shot-plate {
  background: var(--wash); border: 1px solid var(--line); border-radius: 12px;
  height: 500px; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start; padding-top: 40px;
}
.dev {
  width: 312px; flex: none; background: var(--frame); border-radius: 44px; padding: 9px;
  box-shadow: 0 24px 48px rgba(30, 29, 27, 0.18);
}
.dev .scr { border-radius: 36px; overflow: hidden; background: var(--bg); }
.dev img { width: 100%; display: block; }

/* ---------- Quiz promo card ---------- */
.lp-quiz-card {
  display: flex; align-items: center; gap: 28px;
  border: 1px solid var(--accent-line); border-radius: 10px; background: var(--card); padding: 24px 28px;
}
.lp-quiz-card .q-main { flex: 1; }
.lp-quiz-card .q-title { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin: 8px 0 0; }
.lp-quiz-card .q-text { color: var(--text2); font-size: 13.5px; line-height: 1.6; margin: 6px 0 0; max-width: 56ch; }
.lp-quiz-link {
  display: inline-block; margin-top: 12px; color: var(--accent);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.lp-quiz-card .plate { width: 108px; flex: none; }
.lp-quiz-card .plate .art { height: 108px; }

/* ---------- Brand close ---------- */
.lp-closing { border-top: 1px solid var(--line); padding: 72px 0 64px; text-align: center; }
.closing-medallion {
  width: 116px; height: 116px; border-radius: 50%; border: 1px solid var(--line-strong);
  overflow: hidden; margin: 0 auto;
}
.closing-medallion img { width: 100%; height: 100%; object-fit: cover; display: block; }
.closing-h {
  font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; text-wrap: balance; margin: 26px auto 0; max-width: 18ch;
}
.brand-rule { width: 40px; height: 1px; background: var(--line-strong); margin: 24px auto; }
.closing-micro {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text2); font-weight: 500; margin: 20px 0 0;
}

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid var(--line); }
.lp-footer-in {
  max-width: 1188px; margin: 0 auto; padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  color: var(--text2); font-size: 12px;
}
.lp-footer a { color: var(--text2); }
.lp-footer a:hover { color: var(--text); }
.lp-footer .links { display: flex; gap: 22px; }

/* ---------- Inner pages (quiz result, invite) + secondary scaffold ---------- */
.pg-narrow { max-width: 560px; margin: 0 auto; padding: 28px 24px 72px; }
.pg-mid { max-width: 880px; margin: 0 auto; padding: 28px 24px 72px; }
.pg-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.pg-title { font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; margin: 12px 0 0; text-wrap: balance; }
.pg-text { color: var(--text2); font-size: 14px; line-height: 1.62; margin: 12px 0 0; }
.pg-text b { color: var(--text); font-weight: 500; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  color: var(--text2); font-size: 10.5px; letter-spacing: 0.08em; font-weight: 500; white-space: nowrap;
}
.share-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn-quiet {
  display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px;
  background: transparent; color: var(--text); cursor: pointer;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}
.btn-accent {
  display: inline-block; background: var(--accent); color: var(--accent-contrast);
  border: 0; border-radius: 999px; padding: 14px 30px; cursor: pointer;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.btn-accent:hover { opacity: 0.92; }
.inner-close { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.inner-close .close-line { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.text-link {
  display: inline-block; margin-top: 16px; color: var(--accent);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.medallion {
  width: 128px; height: 128px; border-radius: 50%; border: 1px solid var(--line-strong);
  overflow: hidden; margin: 6px auto 22px;
}
.medallion img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Prose pages (privacy policy) */
.pg-prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 12px; }
.pg-prose p { color: var(--text2); font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.pg-prose ul { color: var(--text2); font-size: 14px; line-height: 1.7; margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 8px; }
.pg-prose strong, .pg-prose b { color: var(--text); font-weight: 500; }
.pg-prose a { color: var(--accent); }

.invite-url { margin-top: 22px; color: var(--text2); font-size: 11.5px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* Form fields (quiz email gate, contact) */
.field {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 14px;
}
.field:focus { outline: none; border-color: var(--accent); }
.field::placeholder { color: var(--text2); }
.field-label {
  display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text2); font-weight: 500; margin: 16px 0 6px;
}
.field-error { color: var(--bad); font-size: 12px; margin-top: 6px; }

/* Quiz flow */
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.quiz-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.quiz-card .art { height: 200px; overflow: hidden; }
.quiz-card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-card .quiz-card-body { padding: 20px 22px 22px; }
.quiz-card .q-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.quiz-card .q-text { color: var(--text2); font-size: 13.5px; line-height: 1.6; margin: 8px 0 0; }

.progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.progress-track { height: 2px; background: var(--line); border-radius: 999px; margin-top: 10px; }
.progress-fill { height: 2px; background: var(--accent); border-radius: 999px; }

.answers { display: grid; gap: 10px; margin-top: 26px; }
.answer {
  display: block; position: relative; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); padding: 16px 46px 16px 18px; cursor: pointer; font-size: 14.5px; line-height: 1.5;
}
.answer input { position: absolute; opacity: 0; pointer-events: none; }
.answer .dot {
  position: absolute; top: 18px; right: 16px; width: 14px; height: 14px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card);
}
.answer:hover { border-color: var(--line-strong); }
.answer.selected { border-color: var(--accent); background: rgba(74, 93, 78, 0.05); }
.answer.selected .dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--card); }

/* Flash toasts */
.toasts { position: fixed; top: 20px; right: 20px; z-index: 50; display: grid; gap: 10px; }
.toast {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 16px; font-size: 13px; box-shadow: 0 8px 24px rgba(30, 29, 27, 0.12);
  display: flex; align-items: center; gap: 14px;
}
.toast.success { border-color: var(--accent-line); color: var(--accent); }
.toast.error { border-color: var(--bad); color: var(--bad); }
.toast button { background: none; border: 0; color: var(--text2); cursor: pointer; font-size: 15px; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .lp-hero { grid-template-columns: 1fr; gap: 36px; }
  .shot-band { grid-template-columns: 1fr; gap: 28px; }
  .shot-band.flip .shot-copy { order: 1; }
  .shot-band.flip .shot-plate { order: 2; }
  .shot-plate { height: 420px; }
  .lp-quiz-card { flex-direction: column; align-items: flex-start; }
  .lp-footer-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .lp-nav { gap: 16px; }
  .lp-wordmark { display: none; }
}
