/* Overlook — landing-page-only styles.
 *
 * Relies on tokens.css + components.css. Everything here is a one-off
 * layout for marketing sections (hero, feature grid, workflow, pricing
 * teaser, FAQ, CTA, footer) — not reusable components.
 */

/* ---------- Hero ------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.75rem, 6vw + 1rem, 5.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.hero .sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 58ch;
  line-height: var(--leading-relaxed);
}
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.hero-meta {
  display: flex;
  gap: var(--space-6);
  color: var(--text-faint);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  margin-top: var(--space-2);
}
.hero-meta span::before {
  content: "▸";
  margin-right: var(--space-2);
  color: var(--accent);
}

/* Hero showcase — mock app window */
.hero-showcase {
  margin-top: var(--space-12);
  position: relative;
  max-width: 1040px;
  margin-left: auto; margin-right: auto;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(139,92,246,0.15);
  overflow: hidden;
}
.showcase-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.showcase-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--zinc-700); }
.showcase-dot:nth-child(1) { background: #ff5f57; }
.showcase-dot:nth-child(2) { background: #febc2e; }
.showcase-dot:nth-child(3) { background: #28c840; }
.showcase-path {
  margin-left: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.showcase-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 320px;
}
.showcase-side {
  border-right: 1px solid var(--border);
  padding: var(--space-4);
  background: var(--bg-elevated);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.showcase-side-item {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.showcase-side-item.active {
  background: var(--bg-hover);
  color: var(--text);
}
.showcase-main { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.showcase-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}
.showcase-row .label { color: var(--text-muted); }
.showcase-row .value { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text); }
.showcase-row .value.accent { color: var(--violet-400); }

@media (max-width: 720px) {
  .showcase-body { grid-template-columns: 1fr; }
  .showcase-side { display: none; }
}

/* ---------- Logo strip ------------------------------------------------- */
.logos {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.logos-title {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-faint);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-6);
}
.logos-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  opacity: 0.6;
}
.logo-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-muted);
  letter-spacing: var(--tracking-tight);
}

/* ---------- Feature grid ----------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.feature {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--violet-400);
  margin-bottom: var(--space-4);
}
.feature h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ---------- Workflow (3 steps) ---------------------------------------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: var(--tracking-wider);
}
.step h3 { font-size: var(--text-lg); margin: 0 0 var(--space-3); letter-spacing: -0.01em; }
.step p  { margin: 0; color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
@media (max-width: 780px) { .workflow { grid-template-columns: 1fr; } }

/* ---------- Spotlight (big feature) ----------------------------------- */
.spotlight {
  position: relative;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 15% 15%, rgba(139,92,246,0.15), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(6,182,212,0.12), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  overflow: hidden;
}
.spotlight .copy h2 { letter-spacing: -0.02em; margin: 0 0 var(--space-4); font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
.spotlight .copy p { color: var(--text-muted); font-size: var(--text-md); line-height: var(--leading-relaxed); margin: 0 0 var(--space-6); }
.spotlight-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  min-height: 280px;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.spotlight-line { display: flex; gap: var(--space-2); align-items: center; }
.spotlight-line .tag {
  display: inline-flex; align-items: center;
  padding: 0 var(--space-2); height: 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--violet-400);
  font-size: 10px;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
}
.spotlight-line.done .tag { background: var(--success-bg); color: var(--success-400); }
.spotlight-line.working .tag { background: var(--warning-bg); color: var(--warning-400); }
@media (max-width: 920px) { .spotlight { grid-template-columns: 1fr; padding: var(--space-8); } }

/* ---------- Pricing teaser --------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.plan {
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.plan.popular {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.15), 0 20px 40px rgba(139,92,246,0.1);
}
.plan h3 { margin: 0; font-size: var(--text-lg); letter-spacing: -0.01em; }
.plan .price {
  display: flex; align-items: baseline; gap: var(--space-1);
  font-family: var(--font-display);
}
.plan .price .amount { font-size: var(--text-4xl); font-weight: 600; letter-spacing: -0.02em; }
.plan .price .period { color: var(--text-muted); font-size: var(--text-sm); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.plan ul li { display: flex; gap: var(--space-2); align-items: center; }
.plan ul li::before {
  content: "";
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid rgba(139,92,246,0.3);
  flex-shrink: 0;
}
@media (max-width: 780px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ -------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: var(--space-2); }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ---------- Final CTA -------------------------------------------------- */
.cta-final {
  position: relative;
  padding: var(--space-20) var(--space-8);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(139,92,246,0.25), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(6,182,212,0.18), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin: 0 auto var(--space-4);
  max-width: 720px;
  line-height: 1.1;
}
.cta-final p {
  color: var(--text-muted);
  margin: 0 auto var(--space-6);
  max-width: 520px;
}
.cta-final .hero-ctas { justify-content: center; }

/* ---------- Footer ----------------------------------------------------- */
.ov-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}
.ov-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.ov-footer-brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 300px; }
.ov-footer-brand p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }
.ov-footer-col h4 {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 var(--space-4);
  font-weight: 500;
}
.ov-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ov-footer-col a { font-size: var(--text-sm); color: var(--text-muted); transition: color var(--duration) var(--ease); }
.ov-footer-col a:hover { color: var(--text); }
.ov-footer-legal {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; gap: var(--space-4);
  color: var(--text-faint);
  font-size: var(--text-xs);
  flex-wrap: wrap;
}
.ov-footer-legal a { color: var(--text-faint); }
.ov-footer-legal a:hover { color: var(--text-muted); }
@media (max-width: 920px) {
  .ov-footer-grid { grid-template-columns: 1fr 1fr; }
}
