/* ==========================================================================
   Leftafy brand system — dark, Netflix-style, gold Lefta currency.
   Shared by the logged-out pages (landing + auth) and the app shell.
   Design source: planning/design/design_handoff_leftafy.
   ========================================================================== */

:root {
  /* Surfaces */
  --lf-bg: #0A0C10;
  --lf-card: #11151C;
  --lf-card-2: #131820;
  --lf-input: #141A23;

  /* Gold (primary / Lefta) */
  --lf-gold: #F6C445;
  --lf-gold-grad: linear-gradient(120deg, #F8CE5A, #E0A82E);
  --lf-gold-ink: #231A04;
  --lf-gold-tint: #FFE9A8;
  --lf-gold-muted: #E8D9A8;
  --lf-coin: radial-gradient(circle at 35% 30%, #FFE9A8, #F6C445 60%, #C89218);

  /* Semantic */
  --lf-success: #2CE3A0;
  --lf-warning: #FF7A2F;
  --lf-warning-text: #FFB38A;
  --lf-danger: #F4483A;
  --lf-danger-text: #FF9C93;

  /* Text */
  --lf-text: #F2F5F9;
  --lf-text-2: #C9D2DE;
  --lf-text-3: #A7B0BF;
  --lf-muted: #8A94A6;
  --lf-faint: #5C6572;

  /* Lines */
  --lf-line: rgba(255, 255, 255, 0.08);
  --lf-line-strong: rgba(255, 255, 255, 0.18);
  --lf-gold-line: rgba(246, 196, 69, 0.14);
  --lf-gold-line-strong: rgba(246, 196, 69, 0.4);

  /* Shape + motion */
  --lf-r-btn: 8px;
  --lf-r-tile: 10px;
  --lf-r-card: 12px;
  --lf-r-modal: 16px;
  --lf-gutter: 4vw;
  --lf-nav-h: 64px;
  --lf-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.55);
  --lf-glow-gold: 0 8px 30px rgba(246, 196, 69, 0.28);

  --lf-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --lf-ui: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--lf-bg);
  color: var(--lf-text);
  font-family: var(--lf-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--lf-gold); text-decoration: none; }
a:hover { color: var(--lf-gold-tint); }

@keyframes lfTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lfFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lfPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* --- Coin dot --------------------------------------------------------------- */
.lf-coin {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lf-coin);
  box-shadow: 0 0 10px rgba(246, 196, 69, 0.55);
  flex: none;
}
.lf-coin.pulse { animation: lfPulse 2.6s ease infinite; }

/* --- Buttons ---------------------------------------------------------------- */
.lf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--lf-r-btn);
  font-family: var(--lf-ui);
  font-weight: 700;
  cursor: pointer;
  transition: filter 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.lf-btn-gold {
  background: var(--lf-gold-grad);
  color: var(--lf-gold-ink);
  box-shadow: 0 6px 22px rgba(246, 196, 69, 0.24);
}
.lf-btn-gold:hover { filter: brightness(1.08); color: var(--lf-gold-ink); }
.lf-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--lf-text);
  border: 1px solid var(--lf-line-strong);
  font-weight: 600;
}
.lf-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--lf-text); }
.lf-btn-lg { padding: 16px 30px; font-size: 16px; }
.lf-btn-md { padding: 12px 22px; font-size: 15px; }
.lf-btn-sm { padding: 9px 16px; font-size: 13px; }
.lf-btn-block { width: 100%; }

/* --- Fixed top nav (marketing + auth) -------------------------------------- */
.lf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--lf-gutter);
  height: var(--lf-nav-h);
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.72) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lf-gold-line);
}
.lf-nav--static { position: static; background: none; backdrop-filter: none; }
.lf-nav-actions { display: flex; gap: 12px; align-items: center; }

.lf-wordmark {
  font-family: var(--lf-display);
  font-size: 25px;
  letter-spacing: 0.14em;
  color: var(--lf-gold);
  line-height: 1;
  text-shadow: 0 0 22px rgba(246, 196, 69, 0.35);
}
.lf-wordmark:hover { color: var(--lf-gold); }

.lf-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lf-text-2);
  padding: 8px 14px;
}
.lf-link:hover { color: var(--lf-text); }
.lf-link--pill {
  border: 1px solid var(--lf-line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
}

/* --- Footer ---------------------------------------------------------------- */
.lf-footer {
  padding: 38px var(--lf-gutter) 56px;
  border-top: 1px solid rgba(246, 196, 69, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lf-footer .lf-wordmark { font-size: 20px; }
.lf-disclosure { font-size: 13px; color: var(--lf-muted); max-width: 62ch; line-height: 1.6; }
.lf-footer-links { display: flex; gap: 18px; font-size: 12.5px; flex-wrap: wrap; }
.lf-footer-fine { font-size: 11.5px; color: var(--lf-faint); }

/* ==========================================================================
   LANDING
   ========================================================================== */
.lf-page { min-height: 100vh; overflow-x: hidden; }

.lf-hero {
  position: relative;
  min-height: max(640px, 88vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.lf-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 620px at 50% 18%, rgba(246, 196, 69, 0.16) 0%, rgba(246, 196, 69, 0) 62%),
    radial-gradient(900px 560px at 12% 90%, rgba(0, 84, 154, 0.32) 0%, transparent 65%),
    radial-gradient(900px 560px at 88% 90%, rgba(110, 66, 255, 0.2) 0%, transparent 65%),
    var(--lf-bg);
}
.lf-hero-ghost {
  position: absolute;
  left: 50%; top: 12%;
  transform: translateX(-50%);
  font-family: var(--lf-display);
  font-size: min(30vw, 480px);
  line-height: 0.8;
  color: rgba(246, 196, 69, 0.07);
  text-shadow: 0 0 120px rgba(246, 196, 69, 0.12);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.lf-hero-fade {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 200px;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0) 0%, var(--lf-bg) 92%);
}
.lf-hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px var(--lf-gutter) 90px;
  max-width: 880px;
  animation: lfFadeUp 480ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lf-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.24em; font-weight: 700;
  color: var(--lf-gold); text-transform: uppercase;
}
.lf-hero h1 {
  margin: 18px 0 0;
  font-family: var(--lf-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: 0.012em;
}
.lf-hero h1 .gold { color: var(--lf-gold); text-shadow: 0 0 52px rgba(246, 196, 69, 0.45); }
.lf-hero-q { margin: 22px 0 0; font-size: 19px; line-height: 1.5; color: var(--lf-text); font-weight: 600; }
.lf-hero-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.62; color: #C6CEDA; max-width: 58ch; }
.lf-hero-lead strong { color: var(--lf-gold); }
.lf-hero-sub { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--lf-muted); max-width: 58ch; }
.lf-hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.lf-hero-actions .lf-btn-gold { box-shadow: var(--lf-glow-gold); }
.lf-hero-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 12.5px; color: var(--lf-muted); flex-wrap: wrap; justify-content: center;
}

/* Tickers */
.lf-tickers { display: flex; flex-direction: column; gap: 14px; padding: 10px 0 26px; }
.lf-ticker-row { overflow: hidden; }
.lf-ticker-row.gold { border-top: 1px solid var(--lf-gold-line); border-bottom: 1px solid var(--lf-gold-line); background: rgba(246, 196, 69, 0.03); }
.lf-ticker-row.neutral { border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.lf-ticker { display: flex; width: max-content; animation: lfTicker 36s linear infinite; }
.lf-ticker.reverse { animation-duration: 44s; animation-direction: reverse; }
.lf-ticker-group { display: flex; }
.lf-ticker span {
  padding: 13px 26px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  color: var(--lf-gold-muted); border-right: 1px solid var(--lf-gold-line);
}
.lf-ticker-row.neutral .lf-ticker span { color: var(--lf-muted); font-weight: 500; border-right-color: rgba(255, 255, 255, 0.07); }

/* Bill-relief KPI rig */
.lf-kpi { padding: 30px var(--lf-gutter) 20px; }
.lf-kpi-inner {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  padding: 46px 6vw 40px;
  text-align: center;
  border: 1px solid rgba(246, 196, 69, 0.3);
  border-radius: 20px;
  background: radial-gradient(720px 340px at 50% -10%, rgba(246, 196, 69, 0.16) 0%, rgba(246, 196, 69, 0) 68%), #11141B;
}
.lf-kpi-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.22em; font-weight: 700;
  color: var(--lf-gold); text-transform: uppercase;
}
.lf-kpi-amount {
  margin: 14px 0 0;
  font-family: var(--lf-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 148px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--lf-gold);
  text-shadow: 0 0 60px rgba(246, 196, 69, 0.45);
  font-variant-numeric: tabular-nums;
}
.lf-kpi-caption {
  margin: 10px 0 0;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  color: var(--lf-text);
}
.lf-kpi-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 30px;
}
.lf-kpi-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
  padding: 0 8px;
}
.lf-kpi-stat + .lf-kpi-stat { border-left: 1px solid var(--lf-gold-line); }
.lf-kpi-num {
  font-family: var(--lf-display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: var(--lf-gold-tint);
  font-variant-numeric: tabular-nums;
}
.lf-kpi-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lf-muted);
  text-transform: uppercase;
}
.lf-kpi-fine {
  margin: 26px auto 0;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lf-faint);
}
@media (max-width: 560px) {
  .lf-kpi-stat + .lf-kpi-stat { border-left: none; }
  .lf-kpi-stats { gap: 18px 26px; }
}

/* Browse directory (SEO) */
.lf-directory { padding: 36px var(--lf-gutter) 16px; max-width: 1240px; margin: 0 auto; }
.lf-directory h2 { margin: 0; font-family: var(--lf-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: 0.02em; line-height: 1.05; }
.lf-directory p.intro { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--lf-muted); max-width: 80ch; }
.lf-dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 24px; margin-top: 26px; }
.lf-dir-col { display: flex; flex-direction: column; gap: 10px; }
.lf-dir-head { font-size: 11.5px; letter-spacing: 0.16em; font-weight: 700; color: var(--lf-gold); }
.lf-dir-col a { font-size: 13.5px; color: var(--lf-text-3); }
.lf-dir-col a:hover { color: #fff; }
.lf-dir-col a.strong { font-weight: 600; }

/* CTA banner */
.lf-cta {
  position: relative; overflow: hidden;
  margin: 40px var(--lf-gutter) 70px;
  border: 1px solid rgba(246, 196, 69, 0.3);
  border-radius: 20px;
  padding: 56px 6vw;
  text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, rgba(246, 196, 69, 0.14) 0%, rgba(246, 196, 69, 0) 70%), #11141B;
}
.lf-cta h2 { margin: 0; font-family: var(--lf-display); font-weight: 400; font-size: clamp(32px, 4vw, 52px); letter-spacing: 0.02em; line-height: 1.04; }
.lf-cta h2 .gold { color: var(--lf-gold); }
.lf-cta .lf-btn { margin-top: 26px; }

/* ==========================================================================
   AUTH
   ========================================================================== */
.lf-auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(246, 196, 69, 0.1) 0%, rgba(246, 196, 69, 0) 60%),
    radial-gradient(800px 500px at 8% 110%, rgba(0, 84, 154, 0.22) 0%, transparent 65%),
    var(--lf-bg);
}
.lf-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px var(--lf-gutter) 80px;
  align-items: start;
}
.lf-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--lf-card);
  padding: 30px 32px;
  animation: lfFadeUp 400ms ease;
}
.lf-panel h1 { margin: 0; font-family: var(--lf-display); font-weight: 400; font-size: 42px; letter-spacing: 0.02em; line-height: 1; }
.lf-panel .sub { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--lf-muted); }

.lf-tabs {
  display: flex; gap: 6px; margin-top: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lf-line);
  border-radius: 10px;
  padding: 5px;
}
.lf-tabs .tab {
  flex: 1; border: none; border-radius: 7px; padding: 10px 8px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
  background: transparent; color: #98A2B3; transition: background 160ms ease, color 160ms ease;
}
.lf-tabs .tab.active { background: var(--lf-gold-grad); color: var(--lf-gold-ink); }

.lf-form { display: none; flex-direction: column; gap: 13px; margin-top: 20px; }
.lf-form.active { display: flex; }
.lf-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--lf-text-2); }
.lf-form label .hint { font-weight: 500; color: var(--lf-faint); }
.lf-form input, .lf-form select {
  background: var(--lf-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14.5px;
  color: var(--lf-text);
  font-family: var(--lf-ui);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.lf-form select { cursor: pointer; }
.lf-form input:focus, .lf-form select:focus {
  border-color: rgba(246, 196, 69, 0.6);
  box-shadow: 0 0 0 3px rgba(246, 196, 69, 0.12);
}
.lf-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lf-code-input { font-size: 19px !important; letter-spacing: 0.4em; color: var(--lf-gold) !important; font-weight: 700; }
.lf-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; color: var(--lf-text-3) !important; font-size: 12.5px !important; }
.lf-check input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--lf-gold); }
.lf-legal { margin: 2px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--lf-faint); }

.lf-msg { margin-top: 16px; border-radius: 10px; padding: 12px 16px; font-size: 13px; }
.lf-msg:empty { display: none; }
.lf-msg.ok { border: 1px solid rgba(44, 227, 160, 0.4); background: rgba(44, 227, 160, 0.07); color: #7FEEC4; }
.lf-msg.err { border: 1px solid rgba(244, 72, 58, 0.4); background: rgba(244, 72, 58, 0.08); color: var(--lf-danger-text); }
.lf-msg.info { border: 1px solid rgba(246, 196, 69, 0.4); background: rgba(246, 196, 69, 0.06); color: var(--lf-gold-muted); }

.lf-trust {
  display: flex; align-items: center; gap: 9px; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px; color: var(--lf-faint);
}
.lf-trust svg { flex: none; }

/* Verification queue (outbox) */
.lf-outbox-panel {
  border: 1px solid rgba(246, 196, 69, 0.22);
  border-radius: 18px;
  background: radial-gradient(500px 200px at 50% 0%, rgba(246, 196, 69, 0.08) 0%, rgba(246, 196, 69, 0) 70%), #10141B;
  padding: 26px;
  animation: lfFadeUp 480ms ease;
}
.lf-outbox-panel h2 { margin: 0; font-size: 15px; font-weight: 700; }
.lf-outbox-panel .head { display: flex; align-items: center; gap: 8px; }
.lf-outbox-panel .sub { margin: 9px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--lf-muted); }
.lf-outbox { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.lf-email-item {
  border: 1px solid rgba(246, 196, 69, 0.3);
  border-radius: 12px;
  background: rgba(246, 196, 69, 0.04);
  padding: 14px 16px;
}
.lf-email-item .to { font-size: 11px; letter-spacing: 0.14em; font-weight: 700; color: var(--lf-muted); }
.lf-email-item .to span { color: var(--lf-text-2); }
.lf-email-item .code-row { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.lf-email-item .code { font-family: var(--lf-display); font-size: 34px; letter-spacing: 0.24em; color: var(--lf-gold); line-height: 1; }
.lf-use-code {
  border: 1px solid rgba(246, 196, 69, 0.45); background: rgba(246, 196, 69, 0.08);
  color: var(--lf-gold); border-radius: 999px; padding: 5px 13px;
  font-size: 11.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background 160ms ease;
}
.lf-use-code:hover { background: rgba(246, 196, 69, 0.18); }
.lf-email-item .meta { font-size: 11px; color: var(--lf-faint); margin-top: 8px; }
.lf-outbox .empty { border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 22px; color: var(--lf-faint); font-size: 12.5px; text-align: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .lf-auth-grid { grid-template-columns: 1fr; padding-top: 28px; }
}
@media (max-width: 760px) {
  .lf-hero-inner { padding: 100px 6vw 70px; }
  .lf-cta { padding: 40px 6vw; margin: 32px 5vw 50px; }
  .lf-nav { gap: 12px; }
  .lf-form .row-2 { grid-template-columns: 1fr; }
}
