/* ===================================================================
   Portalyx — the landing page (/26/ for a signed-out visitor).
   Colours come from the logo: a gold P on black. The header, hero and
   footer stay black in both modes (the wordmark is drawn for black);
   everything between follows the device's light/dark setting.
   =================================================================== */

:root {
  --lp-gold: #D4AF37;
  --lp-gold-hi: #F2D87A;
  --lp-gold-lo: #B8902A;
  --lp-ink: #0A0A0A;
  --lp-ink-2: #141414;

  --lp-bg: #ffffff;
  --lp-bg-alt: #f6f5f1;
  --lp-card: #ffffff;
  --lp-text: #1b1b1b;
  --lp-muted: #5f6368;
  --lp-line: rgba(0, 0, 0, .09);
  --lp-gold-text: #8a6a12;       /* gold that passes contrast on white */
  --lp-gold-soft: rgba(212, 175, 55, .14);
}

:root[data-bs-theme="dark"] {
  --lp-bg: #0f0f10;
  --lp-bg-alt: #161617;
  --lp-card: #1b1b1d;
  --lp-text: #ececec;
  --lp-muted: #a3a3a8;
  --lp-line: rgba(255, 255, 255, .10);
  --lp-gold-text: #E3C766;
  --lp-gold-soft: rgba(212, 175, 55, .16);
}
/* If the inline script never ran, still honour the device. */
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    --lp-bg: #0f0f10; --lp-bg-alt: #161617; --lp-card: #1b1b1d;
    --lp-text: #ececec; --lp-muted: #a3a3a8; --lp-line: rgba(255,255,255,.10);
    --lp-gold-text: #E3C766;
  }
}

html, body { overflow-x: clip; }
body.lp {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  background: var(--lp-bg);
  color: var(--lp-text);
}
.lp img { max-width: 100%; height: auto; }

/* ── buttons ─────────────────────────────────────────────────────── */
.lp-btn-gold {
  background: linear-gradient(135deg, var(--lp-gold-hi), var(--lp-gold) 55%, var(--lp-gold-lo));
  color: var(--lp-ink); font-weight: 700; border: 0;
}
.lp-btn-gold:hover, .lp-btn-gold:focus-visible { color: var(--lp-ink); filter: brightness(1.06); }
.lp-btn-ghost {
  color: #f5f5f5; border: 1px solid rgba(212, 175, 55, .55); background: transparent; font-weight: 600;
}
.lp-btn-ghost:hover, .lp-btn-ghost:focus-visible { color: var(--lp-ink); background: var(--lp-gold); border-color: var(--lp-gold); }
.lp a:focus-visible, .lp summary:focus-visible { outline: 3px solid var(--lp-gold); outline-offset: 2px; }

/* ── header ──────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, .94);
  border-bottom: 1px solid rgba(212, 175, 55, .25);
  backdrop-filter: saturate(140%) blur(6px);
}
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 60px; }
.lp-brand { display: inline-flex; align-items: center; }
.lp-brand img { display: block; width: 147px; height: 32px; }
/* The wordmark is Latin and reads left to right; keep it whole in an RTL row. */
.lp-brand, .lp-foot-in > img { direction: ltr; }
.lp-nav-links { display: flex; gap: .5rem; }

/* ── hero ────────────────────────────────────────────────────────── */
.lp-hero {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(212, 175, 55, .16), transparent 60%),
    linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink));
  color: #f5f5f5;
  padding: 2.5rem 0 3rem;
}
.lp-eyebrow { color: var(--lp-gold-hi); font-weight: 700; margin: 0 0 .5rem; font-size: .95rem; }
.lp-h1 {
  font-size: clamp(1.55rem, 5.2vw, 2.6rem);
  font-weight: 800; line-height: 1.45; margin: 0 0 1.25rem;
}
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.lp-cta .btn { padding-inline: 1.4rem; }
.lp-hero-note { color: #c9c9c9; font-size: .9rem; margin: 1rem 0 0; }
.lp-hero-art { width: 100%; max-width: 480px; aspect-ratio: 2 / 1; }
@media (max-width: 575.98px) {
  .lp-cta .btn { width: 100%; }
  .lp-hero { padding-top: 1.75rem; }
}

/* ── sections ────────────────────────────────────────────────────── */
.lp-sec { padding: 3rem 0; }
.lp-sec-alt { background: var(--lp-bg-alt); }
.lp-h2 { font-size: clamp(1.3rem, 3.6vw, 1.85rem); font-weight: 800; margin: 0 0 1.5rem; }
.lp-h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
.lp-narrow { max-width: 760px; }

.lp-pain, .lp-card {
  height: 100%;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 1.15rem;
}
.lp-pain { display: flex; gap: .85rem; align-items: flex-start; }
.lp-pain i { font-size: 1.4rem; color: var(--lp-gold-text); line-height: 1.4; flex: 0 0 auto; }
.lp-pain p, .lp-card p { margin: 0; color: var(--lp-muted); }
.lp-pain p { color: var(--lp-text); }

.lp-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--lp-ink); color: var(--lp-gold);
  border: 1px solid rgba(212, 175, 55, .5);
  font-size: 1.25rem; margin-bottom: .75rem;
}

/* ── steps ───────────────────────────────────────────────────────── */
.lp-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.lp-steps p { margin: 0; color: var(--lp-muted); }
.lp-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lp-gold); color: var(--lp-ink); font-weight: 800; font-size: 1.1rem;
}

/* ── price ───────────────────────────────────────────────────────── */
.lp-price {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: var(--lp-card);
  border: 2px solid var(--lp-gold);
  border-radius: 18px; padding: 1.75rem 1.25rem;
}
.lp-price p { margin: 0; }
.lp-price-trial {
  display: inline-block; background: var(--lp-gold-soft); color: var(--lp-gold-text);
  font-weight: 700; border-radius: 999px; padding: .15rem .9rem; margin-bottom: .75rem !important;
}
.lp-price-num { font-size: 1.2rem; }
.lp-price-num strong { font-size: 2.6rem; font-weight: 800; }
.lp-price-num span { color: var(--lp-muted); font-size: 1rem; }
.lp-price-sub { color: var(--lp-muted); margin-bottom: 1.25rem !important; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.lp-faq {
  background: var(--lp-card); border: 1px solid var(--lp-line);
  border-radius: 12px; padding: .2rem 1rem; margin-bottom: .6rem;
}
.lp-faq summary {
  cursor: pointer; font-weight: 700; padding: .7rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--lp-gold-text); font-weight: 800; }
.lp-faq[open] summary::after { content: '−'; }
.lp-faq p { margin: 0 0 .85rem; color: var(--lp-muted); }

/* ── footer ──────────────────────────────────────────────────────── */
.lp-foot { background: var(--lp-ink); color: #bdbdbd; padding: 2rem 0; border-top: 1px solid rgba(212, 175, 55, .25); }
.lp-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-foot-in > img { width: 147px; height: 32px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.lp-foot-links a { color: #e6e6e6; text-decoration: none; }
.lp-foot-links a:hover { color: var(--lp-gold-hi); }
.lp-copy { margin: 0; font-size: .85rem; width: 100%; }
