/* DeepScan showcase site, strict black & white, literary-editorial. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --rule: #dcdcdc;
  --gray-mid: #6b6b6b;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Nav ---------- */

nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.brand .wordmark {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.brand .wordmark .light { font-weight: 400; }
.brand .wordmark .bold { font-weight: 700; }

.nav-download {
  font-family: var(--serif);
  font-size: 0.95rem;
  padding: 9px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-download:hover {
  background: var(--paper);
  color: var(--ink);
}

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

.hero {
  padding: 90px 0 90px;
  text-align: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 36px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gray-mid);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 15px 34px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero .fine-print {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--gray-mid);
  font-style: italic;
}

/* ---------- Section title ---------- */

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 56px;
}

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

.how {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
}

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

.how-step {
  text-align: center;
}

.step-num {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-mid);
  font-style: italic;
  margin-bottom: 14px;
}

/* Square, self-looping demo clip per step — muted autoplay video instead
   of an actual .gif file: same "just replays by itself" effect the eye
   sees, at a fraction of the file size and with far less banding/noise
   than GIF's 256-color palette. */
.how-step-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 4px 0 18px;
  border: 1px solid var(--rule-strong);
  background: var(--gray-soft);
  overflow: hidden;
}

.how-step-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.how-step p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.6;
  margin: 0;
}

/* ---------- File types ---------- */

.filetypes {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pill {
  font-size: 0.95rem;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

/* ---------- Examples ---------- */

.examples {
  padding: 90px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.examples-copy {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-mid);
  font-style: italic;
}

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

.closing {
  padding: 90px 0 100px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.closing .lede {
  margin-bottom: 32px;
}

/* ---------- Feature strip ---------- */

.features {
  border-top: 1px solid var(--rule);
  padding: 80px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.feature p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.6;
  margin: 0;
}

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

footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 16px;
  margin-bottom: 16px;
}

footer a { text-decoration: underline; }

/* ---------- Download page ---------- */

.download-hero {
  text-align: center;
  padding: 80px 0 40px;
}

.download-hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.download-hero p {
  color: var(--gray-mid);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 60px 0 40px;
}

.platform-card {
  background: var(--paper);
  padding: 56px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-card .os-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 28px;
}

.platform-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.platform-card .os-sub {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin: 0 0 28px;
}

.platform-card.is-detected {
  position: relative;
}

.platform-card.is-detected::before {
  content: "recommended for your device";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--gray-mid);
}

.install-notice {
  max-width: 560px;
  margin: 0 auto 80px;
  border: 2px solid var(--ink);
  padding: 28px 32px;
}

.notice-label {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}

.install-notice p:not(.notice-label) {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 14px;
}

.install-notice p:last-child {
  margin-bottom: 0;
}

.install-notice strong {
  font-weight: 700;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .features { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
}
