/* ==========================================================================
   Rahbar Coin: public landing page
   Same visual system as the dashboard and the inner pages:
   charcoal surfaces, ONE accent (the brand colour set in Admin > Settings,
   hsl(var(--base)), gold today), no gradients, no coloured edge stripes.
   Everything is scoped under .lp so it cannot leak into other pages.
   ========================================================================== */

.lp {
  --lp-bg: #111;
  --lp-bg-alt: #0d0d0f;
  --lp-surface: #1c1c24;
  --lp-surface-2: #22222c;
  --lp-line: rgba(255, 255, 255, 0.12);
  --lp-text: #fff;
  --lp-muted: #b2b2b2;
  --lp-faint: #8a8a92;
  --lp-accent: hsl(var(--base));
  --lp-accent-soft: hsl(var(--base) / 0.12);
  --lp-accent-line: hsl(var(--base) / 0.4);
  --lp-radius: 20px;
  --lp-radius-sm: 12px;
  color: var(--lp-muted);
  font-family: "Roboto", sans-serif;
  background: var(--lp-bg);
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp img { max-width: 100%; height: auto; }

.lp :focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout primitives ---------- */
.lp-section { padding: clamp(56px, 8vw, 96px) 0; background: var(--lp-bg); }
.lp-section--alt { background: var(--lp-bg-alt); }

.lp-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.lp-head--left { margin-left: 0; text-align: left; }

.lp-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--lp-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-h1,
.lp-h2,
.lp-h3 { font-family: "Lora", serif; color: var(--lp-text); line-height: 1.15; margin: 0; }
.lp-h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 700; letter-spacing: -0.01em; }
.lp-h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; }
.lp-h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }

.lp-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.7; color: var(--lp-muted); margin: 18px 0 0; }
.lp-head .lp-lead { margin-left: auto; margin-right: auto; max-width: 60ch; }
.lp-head--left .lp-lead { margin-left: 0; }
.lp-text { color: var(--lp-muted); line-height: 1.7; margin: 10px 0 0; font-size: 0.97rem; }

/* ---------- buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.lp-btn--primary { background: var(--lp-accent); border-color: var(--lp-accent); color: #111; }
.lp-btn--primary:hover { background: hsl(var(--base-h) var(--base-s) calc(var(--base-l) + 7%)); border-color: hsl(var(--base-h) var(--base-s) calc(var(--base-l) + 7%)); color: #111; }
.lp-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: var(--lp-text); }
.lp-btn--ghost:hover { border-color: var(--lp-accent); color: var(--lp-accent); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- cards ---------- */
.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 28px;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.lp-card:hover { border-color: var(--lp-accent-line); transform: translateY(-3px); }
.lp-card .lp-h3 { margin-top: 0; }

.lp-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  font-size: 26px;
}

.lp-grid { display: grid; gap: 20px; }
.lp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- hero ---------- */
.lp-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 96px); background: var(--lp-bg); }
.lp-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.lp-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.lp-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.lp-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-muted); font-size: 0.93rem; }
.lp-trust i { color: var(--lp-accent); font-size: 1.15rem; }

.lp-coin { padding: clamp(24px, 4vw, 40px); background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 28px; text-align: center; }
.lp-coin:hover { transform: none; }
.lp-coin__img { display: block; width: min(100%, 280px); margin: 0 auto 28px; filter: drop-shadow(0 18px 36px hsl(var(--base) / 0.18)); }
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-facts li { padding: 14px 8px; background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); }
.lp-facts span { display: block; color: var(--lp-faint); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lp-facts strong { display: block; margin-top: 4px; color: var(--lp-text); font-size: 0.95rem; word-break: break-word; }

/* ---------- chips ---------- */
.lp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid var(--lp-line); border-radius: 999px; color: var(--lp-muted); font-size: 0.78rem; font-weight: 600; }
.lp-chip--live { background: var(--lp-accent-soft); border-color: var(--lp-accent-line); color: var(--lp-accent); }

/* ---------- steps ---------- */
.lp-step { position: relative; }
.lp-step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--lp-accent-line);
  border-radius: 50%;
  color: var(--lp-accent);
  font-family: "Lora", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- split section + escrow flow ---------- */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.lp-checks { margin: 26px 0 0; padding: 0; list-style: none; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--lp-muted); line-height: 1.6; }
.lp-checks i { margin-top: 3px; color: var(--lp-accent); font-size: 1.1rem; }

.lp-flow { margin: 0; padding: 0; list-style: none; }
.lp-flow li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.lp-flow li:last-child { padding-bottom: 0; }
.lp-flow li:not(:last-child)::before { content: ""; position: absolute; top: 44px; bottom: 2px; left: 21px; width: 1px; background: var(--lp-line); }
.lp-flow .lp-step__num { flex: none; margin: 0; background: var(--lp-surface); }
.lp-flow h3 { margin: 4px 0 0; color: var(--lp-text); font-size: 1.05rem; font-weight: 600; }
.lp-flow p { margin: 6px 0 0; color: var(--lp-muted); font-size: 0.94rem; line-height: 1.6; }

/* ---------- status ---------- */
.lp-status { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-status li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); color: var(--lp-text); font-weight: 500; }
.lp-status small { display: block; margin-top: 2px; color: var(--lp-faint); font-size: 0.82rem; font-weight: 400; }

/* ---------- FAQ ---------- */
.lp-faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.lp-faq { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); transition: border-color 0.2s; }
.lp-faq[open] { border-color: var(--lp-accent-line); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: var(--lp-text); font-size: 1.02rem; font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; color: var(--lp-accent); font-size: 1.6rem; font-weight: 300; line-height: 1; }
.lp-faq[open] summary::after { content: "\2212"; }
.lp-faq p { margin: 0; padding: 0 24px 22px; color: var(--lp-muted); line-height: 1.7; }

/* ---------- closing call to action ---------- */
.lp-cta { padding: clamp(36px, 6vw, 68px) clamp(22px, 5vw, 56px); background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 28px; text-align: center; }
.lp-cta .lp-actions { justify-content: center; }
.lp-note { max-width: 78ch; margin: 28px auto 0; color: var(--lp-faint); font-size: 0.85rem; line-height: 1.7; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .lp-hero__grid,
  .lp-split { grid-template-columns: 1fr; }
  .lp-grid--3,
  .lp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero__art { max-width: 460px; margin: 0 auto; width: 100%; }   /* stays AFTER the headline and buttons */
}

@media (max-width: 575px) {
  .lp-grid--3,
  .lp-grid--4 { grid-template-columns: 1fr; }
  .lp-actions .lp-btn { width: 100%; }
  .lp-coin__img { width: min(100%, 200px); margin-bottom: 20px; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lp-facts li:last-child { grid-column: 1 / -1; }   /* the web address gets a full row: no mid-word wrapping */
  .lp-status li { flex-direction: column; align-items: flex-start; }
  .lp-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { transition: none !important; }
  .lp-card:hover { transform: none; }
}
