/* Only Fan Out: marketing site styles */

:root {
  --blue: #00AFF0;
  --blue-deep: #008CCF;
  --charcoal: #27272B;
  --grey: #8A96A3;
  --bg: #FEFEFE;
  --card: #FFFFFF;
  --tint: #F1F7FB;
  --border: #E7EBEF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(39, 39, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(39, 39, 43, 0.08);
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.wordmark img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wordmark .w-only {
  color: var(--blue);
}

.wordmark .w-fanout {
  color: var(--blue-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

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

.hero {
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 44px;
  letter-spacing: -0.01em;
}

.hero-copy .subhead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--grey);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #EDEFF2;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1600 / 1000;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */

section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 32px;
}

.section-head p {
  margin-top: 14px;
  color: var(--grey);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

/* ---------- Engine cards ---------- */

.engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.engines-grid > .engine-card,
.engine-shot {
  min-width: 0;
}

.engine-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.engine-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.engine-shot {
  border-radius: var(--radius-md);
  background: #EDEFF2;
  margin-bottom: 20px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 420 / 760;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.engine-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.engine-card ul {
  margin-top: auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.engine-card li {
  font-size: 15px;
  color: var(--charcoal);
  padding-left: 22px;
  position: relative;
}

.engine-card li::marker {
  content: "";
}

.engine-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--tint);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--grey);
  font-size: 15px;
}

/* ---------- Feature grid (Built for GEO) ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--grey);
  font-size: 14.5px;
}

/* ---------- Privacy block ---------- */

.privacy-block {
  background: var(--tint);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.privacy-block h2 {
  font-size: 30px;
  margin-bottom: 24px;
}

.privacy-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.privacy-line {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.privacy-line strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding-bottom: 20px;
  color: var(--grey);
  font-size: 15px;
}

/* ---------- Final CTA ---------- */

.cta-band {
  text-align: center;
}

.cta-band .wrap {
  background: var(--tint);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
}

.cta-band h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--grey);
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.footer-links a {
  text-decoration: none;
  color: var(--charcoal);
}

.footer-links a:hover {
  color: var(--blue-deep);
}

.footer-disclaimer {
  color: var(--grey);
  font-size: 13px;
  max-width: 70ch;
  margin-bottom: 12px;
}

.footer-copy {
  color: var(--grey);
  font-size: 13px;
}

/* ---------- Privacy page ---------- */

.legal {
  padding-top: 56px;
  padding-bottom: 72px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--grey);
  font-size: 14px;
  margin-bottom: 40px;
  display: block;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal p {
  margin-bottom: 14px;
  font-size: 15.5px;
  color: var(--charcoal);
}

.legal ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
  font-size: 15.5px;
}

.legal code {
  background: var(--tint);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.legal .summary-box {
  background: var(--tint);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 8px;
  font-size: 15.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 959px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .engines-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-lines {
    grid-template-columns: 1fr;
  }

  .privacy-block {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy .subhead {
    font-size: 16px;
  }

  section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .engines-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-band .wrap {
    padding: 40px 20px;
  }

  .wordmark {
    font-size: 17px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
