/* ============================================================
   Sidequest Journey — Landing page styles
   Requires tokens.css to be loaded first.
   ============================================================ */

.lp-page { position: relative; z-index: 1; }

/* ── HERO — split layout ── */
.lp-hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}
.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  align-items: start;
}
.hero-glow-a {
  position: absolute;
  top: -80px; left: 30%;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, var(--acc-dim) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── LEFT: pitch ── */
.lp-pitch {
  padding: 1.5rem clamp(1.5rem,3vw,3rem) 4rem 0;
  position: relative; z-index: 1;
}
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  gap: 12px;
  flex-wrap: wrap;
}
.lp-nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  color: var(--text);
}
.lp-nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-nav-link {
  font-size: 13px; color: var(--dim);
  padding: 4px 8px; border-radius: 6px;
  transition: color .15s;
  min-height: 36px; display: flex; align-items: center;
}
.lp-nav-link:hover { color: var(--text); }

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-dim);
  border: 1px solid var(--acc-border);
  border-radius: 20px; padding: 4px 14px; margin-bottom: 1.25rem;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); display: inline-block; flex-shrink: 0; }

.lp-title {
  font-size: clamp(2.2rem,5vw,3.8rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -.035em;
  margin-bottom: 1rem;
}
.lp-title-accent { color: var(--acc); }
.lp-subtitle {
  font-size: 1rem; color: var(--dim);
  max-width: 500px; line-height: 1.75; margin-bottom: 1.75rem;
}

.lp-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 2rem;
}
.lp-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--dim);
}
.lp-features li strong { color: var(--text); }
.lp-feat-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.lp-coming {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 8px;
  background: rgba(140,148,180,.1); color: var(--muted);
  border: 1px solid var(--border); margin-left: 4px;
}

.lp-stat-row {
  display: flex; align-items: center; gap: 20px;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.lp-stat-n { font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.lp-stat-l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.lp-stat-sep { width: 1px; height: 28px; background: var(--border); }

/* ── RIGHT: auth card ── */
.lp-auth-col {
  position: sticky;
  top: 1.5rem;
  padding: 2rem 0 4rem;
  z-index: 2;
}
.lp-auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  padding: 13px; font: inherit; font-size: 13px; font-weight: 600;
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); transition: color .15s, background .15s;
  min-height: 44px;
}
.auth-tab:first-child { border-right: 1px solid var(--border); }
.auth-tab.active { color: var(--text); background: var(--bg3); }
.auth-tab:hover:not(.active) { color: var(--dim); }

.auth-form { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 13px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-label { font-size: 12px; color: var(--dim); font-weight: 500; }
.auth-input {
  font: inherit; font-size: 16px; /* 16px prevents iOS auto-zoom */
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--rs);
  background: var(--bg3);
  color: var(--text);
  transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.auth-input:focus { outline: none; border-color: var(--acc); background: var(--bg2); }
.auth-input::placeholder { color: var(--muted); }

.auth-submit {
  padding: 11px;
  border: none; border-radius: var(--rs);
  background: var(--acc); color: #fff;
  font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; min-height: 44px;
  transition: opacity .15s, transform .1s;
}
.auth-submit:active { transform: scale(.98); }
.auth-submit:hover { opacity: .9; }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.auth-switch { font-size: 12px; color: var(--muted); text-align: center; }
.auth-switch-btn {
  background: none; border: none; color: var(--acc);
  font: inherit; font-size: 12px; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
  min-height: 28px;
}
.auth-banner {
  padding: 9px 12px; border-radius: var(--rs); font-size: 13px;
}
.auth-banner--err { background: rgba(220,53,69,.1); color: #dc3545; border: 1px solid rgba(220,53,69,.25); }
html.theme-dark .auth-banner--err { background: rgba(252,129,129,.08); color: #fc8181; border-color: rgba(252,129,129,.22); }
.auth-banner--ok  { background: var(--green-dim); color: var(--green); border: 1px solid rgba(61,214,140,.25); }
.lp-trust { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ── Shared section styles ── */
.lp-section {
  position: relative; z-index: 1;
  padding: clamp(3.5rem,7vw,6rem) clamp(1rem,4vw,3rem);
  border-top: 1px solid var(--border);
}
.lp-section--dark { background: var(--bg2); }
.lp-section-inner { max-width: 1100px; margin: 0 auto; }
.lp-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc); margin-bottom: .5rem;
  display: flex; align-items: center; gap: 8px;
}
.lp-section-title {
  font-size: clamp(1.5rem,3.5vw,2.3rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.15; margin-bottom: .65rem;
}
.lp-section-sub { font-size: .95rem; color: var(--dim); max-width: 520px; line-height: 1.7; }

/* ── Quest grid ── */
.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px; margin-top: 2.25rem;
}
.quest-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
  display: flex; flex-direction: column; gap: 11px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .18s, box-shadow .2s;
}
.quest-card::before,.quest-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border-color: var(--acc-border); border-style: solid;
  opacity: 0; transition: opacity .2s;
}
.quest-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.quest-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }
.quest-card:hover { border-color: var(--acc-border); transform: translateY(-2px); box-shadow: var(--acc-glow); }
.quest-card:hover::before,.quest-card:hover::after { opacity: 1; }
.quest-active { border-color: var(--acc-border); background: linear-gradient(135deg, var(--bg2) 55%, var(--acc-dim)); }
.quest-active::before,.quest-active::after { opacity: 1; }

.qc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qc-icon {
  width: 42px; height: 42px; border-radius: 10px; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qc-purple { background: var(--acc-dim); border: 1px solid var(--acc-border); }
.qc-amber  { background: var(--amber-dim); border: 1px solid rgba(194,118,15,.28); }
html.theme-dark .qc-amber { border-color: rgba(246,166,35,.28); }
.qc-green  { background: var(--green-dim); border: 1px solid rgba(22,163,74,.28); }
html.theme-dark .qc-green { border-color: rgba(61,214,140,.28); }
.qc-slate  { background: rgba(140,148,180,.1); border: 1px solid var(--border); }

.qc-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.qc-live    { background: var(--green-dim); color: var(--green); border: 1px solid rgba(22,163,74,.3); }
html.theme-dark .qc-live { border-color: rgba(61,214,140,.3); }
.qc-soon    { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(194,118,15,.3); }
html.theme-dark .qc-soon { border-color: rgba(246,166,35,.3); }
.qc-planned { background: rgba(140,148,180,.1); color: var(--muted); border: 1px solid var(--border); }

.qc-sub  { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qc-name { font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.qc-desc { font-size: 13px; color: var(--dim); line-height: 1.6; flex: 1; }
.qc-xp   { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.qc-xp-fill { height: 100%; background: linear-gradient(90deg, var(--acc), var(--green)); border-radius: 2px; }
.qc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.qc-tags span { font-size: 11px; padding: 2px 8px; border-radius: 5px; background: var(--acc-dim); color: var(--dim); border: 1px solid var(--border); }
.qc-cta  { padding-top: 11px; border-top: 1px solid var(--border); }
.qc-btn  { padding: 9px 16px; font-size: 13px; border-radius: var(--rs); margin-top: 0; width: 100%; }
.qc-locked { font-size: 12px; color: var(--muted); }

/* ── Spotlight grid ── */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin-top: 2.25rem;
}
.sf { background: var(--bg2); padding: 22px; display: flex; gap: 14px; align-items: flex-start; transition: background .15s; }
.sf:hover { background: var(--bg3); }
.sf-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.sf strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.sf p { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ── Steps ── */
.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: center; margin-top: 2.25rem;
}
.step-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px 22px; position: relative;
}
.step-n    { font-size: 2.8rem; font-weight: 900; letter-spacing: -.05em; color: var(--acc-dim); line-height: 1; margin-bottom: 10px; }
.step-ico  { position: absolute; top: 18px; right: 18px; font-size: 20px; opacity: .5; }
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.step-card p  { font-size: 13px; color: var(--dim); line-height: 1.65; }
.step-arrow   { font-size: 20px; color: var(--muted); padding: 0 10px; text-align: center; }

/* ── CTA section ── */
.lp-cta-section {
  position: relative; z-index: 1;
  padding: clamp(4rem,9vh,7rem) clamp(1rem,4vw,3rem);
  border-top: 1px solid var(--border); overflow: hidden;
}
.lp-cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at center, var(--acc-dim) 0%, transparent 65%); pointer-events: none; }
.lp-btn-hero {
  padding: 13px 24px; border-radius: 9px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .12s, box-shadow .15s; min-height: 48px;
}
.lp-btn-hero.primary { background: var(--acc); color: #fff; border: none; box-shadow: 0 4px 20px var(--acc-dim); }
.lp-btn-hero.primary:hover { transform: translateY(-2px); box-shadow: var(--acc-glow); }
.lp-btn-hero.secondary { background: transparent; color: var(--dim); border: 1px solid var(--border); }
.lp-btn-hero.secondary:hover { border-color: var(--acc-border); color: var(--text); transform: translateY(-1px); }

/* ── Footer ── */
.lp-footer {
  position: relative; z-index: 1;
  padding: 1.5rem clamp(1rem,4vw,3rem);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.lp-footer-brand  { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dim); }
.lp-footer-copy   { font-size: 12px; color: var(--muted); }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 900px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-pitch { padding: 1.25rem 0 2rem; }
  .lp-auth-col { position: static; padding: 0 0 3rem; }
  .lp-nav { padding-bottom: 1.75rem; }
  .steps-row { grid-template-columns: 1fr; gap: 8px; }
  .step-arrow { display: none; }
}
@media (max-width: 600px) {
  .lp-title  { font-size: 2rem; }
  .lp-section-title { font-size: 1.5rem; }
  .lp-stat-row { gap: 12px; }
  .lp-footer { flex-direction: column; text-align: center; }
  .quest-grid { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .auth-form { padding: 18px 16px 14px; }
  .lp-hero-inner { padding: 0 1rem; }
  .lp-section { padding: 2.5rem 1rem; }
  .lp-pitch { padding: 1rem 0 1.5rem; }
  .lp-auth-col { padding: 0 0 2rem; }
}

