/* Landing page styles. Shares the palette and spacing of styles.css but is
   loaded on its own so the search UI stylesheet stays untouched. */

/* Colour tokens live in theme.css, which every page loads first. */
:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

/* ---------- Navigation ---------- */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
}

.home-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--maroon);
  color: var(--surface);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.brand-text {
  font-size: 1.02rem;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.home-nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.home-nav-links a:hover,
.home-nav-links a:focus-visible {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--surface) !important;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-hover);
  text-decoration: none !important;
}

/* ---------- Layout ---------- */

.home {
  flex: 1 0 auto;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 56px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  width: min(660px, 100%);
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 10px 22px var(--focus-ring);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--text-subtle);
  background: var(--surface-alt);
}

.hero-note {
  margin-top: 18px;
  color: var(--text-subtle);
  font-size: 0.86rem;
}

/* ---------- Content sections ---------- */

.section {
  padding: 54px 0 8px;
  text-align: center;
}

.section h2,
.closing-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
  text-align: left;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px var(--shadow-color);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.card p,
.audience-list p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.card em {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.audience-list li {
  padding-left: 18px;
  border-left: 3px solid var(--maroon);
}

.audience-list h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

/* ---------- Application demo walkthrough ---------- */

.section-lead {
  width: min(620px, 100%);
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.walkthrough {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px var(--shadow-color);
}

.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--surface);
  font-size: 0.8rem;
  font-weight: 900;
}

.step-body h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.step-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.step-body em {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

/* Real screenshots of the running search UI, captured at 2x. Regenerate with
   scripts/capture_walkthrough.js whenever those controls change. */
.step-visual {
  display: grid;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-alt);
}

.step-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  background: var(--surface);
}

/* The term dropdown is a narrow control; full-bleed would blow it up. */
.step-visual-narrow img {
  width: min(100%, 277px);
  margin: 0 auto;
}

/* Dense screenshots are unreadable at half width, so they take the full card
   and sit under their explanation. */
.step-wide {
  grid-template-columns: 1fr;
}

.walkthrough-cta {
  margin-top: 26px;
}

@media (max-width: 860px) {
  .step {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---------- Closing ---------- */

.closing-cta {
  margin-top: 60px;
  padding: 44px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px var(--shadow-color);
  text-align: center;
}

.closing-cta p {
  margin: 12px 0 26px;
  color: var(--text-muted);
}

.home-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-subtle);
}

.home-footer p {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  color: var(--text-subtle);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 640px) {
  .home-nav-links {
    gap: 14px;
  }

  /* Keep the nav button visible on small screens; drop the anchor links. */
  .home-nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }
}
