/*
  Searchlight marketing site.

  Shares the app's palette so the site and the product feel like one thing —
  same off-white ground, white surfaces, blue→violet accent. No framework and no
  build step: four static pages don't earn a toolchain, and Pages serves them as
  they are.
*/

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-high: #eff2f7;
  --border: #e3e8ef;
  --text: #0e1424;
  --text-dim: #5b6579;
  --text-faint: #8b94a5;
  --accent: #2f6bff;
  --accent-alt: #6c4cf0;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --indigo: #4f46e5;
  --radius: 20px;
  --shadow: 0 3px 12px rgba(14, 20, 36, 0.05);
  --shadow-lg: 0 12px 40px rgba(14, 20, 36, 0.1);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

/*
  Images carry width/height attributes so the browser can reserve space and avoid
  layout shift. Without `height: auto` those attributes keep winning after CSS
  scales the width, which stretches every screenshot.
*/
img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------- header -------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-dim);
}

/* Small screens: the wordmark plus one or two links is plenty. */
@media (max-width: 560px) {
  .nav-links a.hide-sm {
    display: none;
  }
}

/* -------------------------------- hero --------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
}

/* Ambient bloom, matching the in-app header glow. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 520px;
  background: radial-gradient(
    60% 60% at 50% 40%,
    rgba(47, 107, 255, 0.14),
    rgba(108, 76, 240, 0.05) 55%,
    transparent 78%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

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

h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 20px;
  font-weight: 800;
}

.lede {
  font-size: 19px;
  color: var(--text-dim);
  margin: 0 0 28px;
  max-width: 34ch;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(47, 107, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 14px;
}

/* Phone frame around the real screenshots. */
.phone {
  margin: 0 auto;
  width: min(300px, 78vw);
  border-radius: 44px;
  padding: 10px;
  background: #0e1424;
  box-shadow: var(--shadow-lg);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 34px;
}

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

section {
  padding: 72px 0;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -1px;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-lede {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 40px;
  max-width: 56ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, 0.1);
  font-size: 20px;
}

/* ------------------------------ shots ---------------------------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.shots img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

/* -------------------------------- faq ---------------------------------- */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--text-faint);
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--text-dim);
  margin: 12px 0 0;
  font-size: 15px;
}

/* ------------------------------- legal --------------------------------- */

.legal {
  max-width: 720px;
  padding: 56px 0 80px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 36px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 16px;
}

.legal ul {
  padding-left: 20px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal th {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.legal td {
  color: var(--text-dim);
}

/* Long tables shouldn't push the page sideways on a phone. */
.table-scroll {
  overflow-x: auto;
}

/* ------------------------------- footer -------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  color: var(--text-faint);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-row .spacer {
  margin-left: auto;
}

footer a {
  color: var(--text-dim);
}

/*
  Independence notice. Given as a bordered block rather than fine print: an
  unofficial client for someone else's product should say so where it can't be
  missed, and App Store review looks for exactly this.
*/
.disclaimer {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
}
