/* Seldora Landing — Shared Styles */

/* Light theme (default) — mirrors seldora-web app tokens (index.html reference) */
:root {
  --bg: hsl(30 18% 97%);
  --text: hsl(20 15% 10%);
  --pillar-bg: hsl(186 10% 94%);
  --pillar-border: hsl(186 10% 86%);
  --pillar-hover-border: hsl(186 12% 78%);
  --pillar-text: hsl(186 8% 42%);
  --accent: hsl(186 50% 32%);
  --accent-hover: hsl(186 50% 26%);
  --step-number-bg: hsl(186 50% 32%);
  --step-number-text: hsl(180 20% 97%);
  --timeline-line: hsl(186 10% 86%);
  --footer-link: hsl(20 15% 10%);
  --cookie-bg: hsla(30 15% 99% / 0.95);
  --cookie-text: hsl(20 15% 10%);
  --cookie-link: hsl(20 15% 10%);
  --cookie-btn-bg: hsl(20 15% 10%);
  --cookie-btn-text: hsl(180 20% 97%);
  --waitlist-input-bg: hsla(30 15% 99% / 0.9);
  --waitlist-input-border: hsl(186 10% 86%);
  --waitlist-input-focus: hsl(186 50% 32%);
  --waitlist-input-text: hsl(20 15% 10%);
  --waitlist-btn-bg: hsl(20 15% 10%);
  --waitlist-btn-text: hsl(180 20% 97%);
  --waitlist-btn-hover: hsl(20 10% 25%);
  --muted: hsl(20 8% 45%);
  --faint: hsl(20 6% 55%);
  --disclaimer-bg: hsl(0 60% 96%);
  --disclaimer-border: hsl(0 72% 56%);
  --disclaimer-text: hsl(0 55% 42%);
}

/* Dark theme — mirrors seldora-web app tokens (index.html reference) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(160 15% 6%);
    --text: hsl(30 10% 90%);
    --pillar-bg: hsl(186 10% 13%);
    --pillar-border: hsl(186 10% 16%);
    --pillar-hover-border: hsl(186 12% 24%);
    --pillar-text: hsl(186 8% 55%);
    --accent: hsl(186 38% 48%);
    --accent-hover: hsl(186 38% 58%);
    --step-number-bg: hsl(186 38% 48%);
    --step-number-text: hsl(180 15% 95%);
    --timeline-line: hsl(186 10% 16%);
    --footer-link: hsl(30 10% 90%);
    --cookie-bg: hsla(155 12% 9% / 0.9);
    --cookie-text: hsl(30 10% 90%);
    --cookie-link: hsl(30 10% 90%);
    --cookie-btn-bg: hsl(30 10% 90%);
    --cookie-btn-text: hsl(160 15% 6%);
    --waitlist-input-bg: hsla(160 15% 6% / 0.7);
    --waitlist-input-border: hsl(186 10% 16%);
    --waitlist-input-focus: hsl(186 38% 48%);
    --waitlist-input-text: hsl(30 10% 90%);
    --waitlist-btn-bg: hsl(30 10% 90%);
    --waitlist-btn-text: hsl(160 15% 6%);
    --waitlist-btn-hover: hsl(30 8% 80%);
    --muted: hsl(30 6% 60%);
    --faint: hsl(30 5% 48%);
    --disclaimer-bg: hsl(160 12% 11%);
    --disclaimer-border: hsl(0 65% 55%);
    --disclaimer-text: hsl(0 60% 75%);
  }
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('seldora-auto-bg.webp') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 25%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.5) 100%);
}
@media (prefers-color-scheme: dark) {
  .hero-bg::after {
    background: radial-gradient(ellipse at center, transparent 0%, transparent 25%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.8) 100%);
  }
}

/* Hero content — always on dark background image, fixed light text */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  color: #fafafa;
  padding: 2rem 2rem 2rem 8vw;
}
.hero-content svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)); }
.subtitle { font-size: 1.2rem; font-weight: 300; margin: 0; line-height: 1.65; }
.description { max-width: 480px; margin: 0; line-height: 1.65; font-size: 0.95rem; color: #999; }
.subtitle span, .description span, .waitlist-label span {
  background: #000; padding: 0.2em 0.6em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.description span { padding: 0.325em 0.6em; }
.waitlist { max-width: 420px; margin: 0.8rem 0 0; }
.waitlist-label { font-size: 0.85rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 0.6rem; line-height: 1.65; }
.waitlist-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }

/* Hero waitlist inputs — always on dark bg, fixed colors */
.waitlist-row input[type="email"] {
  flex: 1; padding: 0.5rem 0.75rem; background: rgba(0,0,0,0.7);
  border: 1px solid #333; color: #fafafa; font-size: 0.9rem;
  font-family: inherit; outline: none; border-radius: 0;
}
.waitlist-row input[type="email"]:focus { border-color: #5BAFBC; }
.waitlist-row input[type="email"]::placeholder { color: #666; }
.waitlist-row button {
  padding: 0.5rem 1.2rem; background: #fafafa; color: #000; border: none;
  font-size: 0.9rem; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.waitlist-row button:hover { background: #ddd; }
.waitlist-row button:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist-note { font-size: 0.75rem; color: #fff; margin: 0 0 0.6rem; line-height: 1.65; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

/* Hero consent */
.consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.75rem; color: #fff; cursor: pointer; line-height: 1.65; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.consent input[type="checkbox"] { margin-top: 0.2rem; accent-color: #5BAFBC; flex-shrink: 0; width: 1.25rem; height: 1.25rem; min-width: 1.25rem; }
.consent a { color: #fff; text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.waitlist-error { font-size: 0.8rem; color: #f87171; margin: 0.4rem 0 0; }
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #666;
  text-decoration: none;
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}
.scroll-indicator:hover { color: #fafafa; }
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ─── Sections (themed) ─────────────────────────────────────────────────── */

.section { padding: 5rem 2rem; background: var(--bg); }
.section-inner { max-width: 960px; margin: 0 auto; }
.section h2 { font-size: 1.5rem; font-weight: 600; text-align: center; margin: 0 0 3rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--pillar-bg); border: 1px solid var(--pillar-border); border-radius: 8px; padding: 2rem;
  transition: border-color 0.2s;
}
.pillar:hover { border-color: var(--pillar-hover-border); }
.pillar-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
.pillar h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.pillar p { color: var(--pillar-text); font-size: 0.9375rem; line-height: 1.7; margin: 0; }

/* Journey (How it works) */
.journey {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  position: relative;
}
.journey::before {
  content: ''; position: absolute; top: 1.75rem; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--timeline-line) 12%, var(--timeline-line) 88%, transparent);
  z-index: 0;
}
.journey-step { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.journey-marker {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journey-marker::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--pillar-border); opacity: 0.7; pointer-events: none;
}
.journey-num {
  font-size: 1.25rem; font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.journey-step:hover .journey-marker {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(91,175,188,0.10);
}
.journey-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 0.4rem;
}
.journey-content h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.6rem; }
.journey-content p {
  color: var(--pillar-text); font-size: 0.9375rem; line-height: 1.7; margin: 0;
}

/* Creator */
.creator-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: center; }
.creator-photo { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.creator p { color: var(--pillar-text); font-size: 0.9375rem; line-height: 1.7; margin: 0 0 1rem; }
.creator a { color: var(--accent); }
.creator a:hover { color: var(--accent-hover); }
.creator blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--pillar-text);
}

/* Footer */
.footer {
  padding: 2rem 2rem 5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer a { color: var(--footer-link); text-decoration: underline; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  background: var(--cookie-bg); padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-size: 0.8rem; color: var(--cookie-text);
}
.cookie-banner a { color: var(--cookie-link); text-decoration: underline; }
.cookie-banner button {
  background: var(--cookie-btn-bg); color: var(--cookie-btn-text); border: none; padding: 0.3rem 1rem;
  font-size: 0.8rem; cursor: pointer;
}
.cookie-banner button.cookie-banner-secondary {
  background: transparent; color: var(--cookie-text); border: 1px solid var(--cookie-link);
}

/* ─── Content pages (legal, help) ───────────────────────────────────────── */

.legal { line-height: 1.7; }
.legal .container { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }
.legal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.legal header a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.legal header a:hover { color: var(--text); }
.legal h1 { font-size: 1.75rem; font-weight: 600; margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; scroll-margin-top: 4rem; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li, .legal dd { color: var(--pillar-text); font-size: 0.9375rem; }
.legal ul, .legal ol { padding-left: 1.5rem; }
.legal li { margin-bottom: 0.5rem; }
.legal dl { padding-left: 1.5rem; margin: 0.5rem 0; }
.legal dt { font-weight: 600; color: var(--text); margin-top: 0.5rem; }
.legal dd { margin: 0; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-hover); }
.legal .meta { color: var(--faint); font-size: 0.8125rem; margin-bottom: 2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--pillar-border); font-size: 0.9375rem; color: var(--pillar-text); }
.legal th { color: var(--text); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal .disclaimer { background: var(--disclaimer-bg); border-left: 3px solid var(--disclaimer-border); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 4px 4px 0; }
.legal .disclaimer p { color: var(--disclaimer-text); margin: 0; }
.legal .section-nav { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--pillar-border); padding: 0.75rem 0; z-index: 10; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.legal .section-nav a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.legal .section-nav a:hover { color: var(--text); }
.legal details { margin-bottom: 1rem; }
.legal summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 0.9375rem; padding: 0.5rem 0; }
.legal summary:hover { color: var(--accent-hover); }
.legal details p { margin: 0.25rem 0 0.75rem; }
.legal .tip { margin-bottom: 1.5rem; }
.legal .tip strong { color: var(--text); }
.legal .tip p { margin: 0.25rem 0 0; }
.legal footer { margin-top: 3rem; padding-top: 1.5rem; padding-bottom: 5rem; border-top: 1px solid var(--pillar-border); font-size: 0.8125rem; color: var(--faint); }
.legal footer a { color: var(--faint); text-decoration: none; }
.legal footer a:hover { color: var(--text); }
.legal .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; gap: 1.75rem; }
  .journey::before { display: none; }
  .journey-step { flex-direction: row; align-items: flex-start; gap: 1.25rem; }
  .journey-marker { flex-shrink: 0; width: 3rem; height: 3rem; }
  .journey-content { flex: 1; }
  .hero-content { padding: 2rem; }
  .creator-grid { grid-template-columns: 1fr; justify-items: center; gap: 2rem; }
  .creator-photo { max-width: 200px; }
}
