/* ============================================
   Filecook — SEO landing page styles
   Loaded after styles.css; reuses the same tokens.
   ============================================ */

/* ---- Hero ---- */
.page-hero {
  padding: calc(var(--header-h) + 84px) 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.page-hero::before {
  width: 320px;
  height: 320px;
  background: rgba(59, 130, 246, 0.14);
  top: -70px;
  right: -90px;
}

.page-hero::after {
  width: 220px;
  height: 220px;
  background: rgba(245, 166, 35, 0.16);
  bottom: -80px;
  left: -70px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--blue);
}

.crumbs a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 15ch;
}

.page-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 30px;
}

.page-hero .file-chips {
  margin-top: 24px;
}

/* ---- Body ---- */
.page-body {
  padding: 24px 0 88px;
  position: relative;
}

.prose-block {
  max-width: 760px;
  margin: 0 auto 52px;
}

.prose-block h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
}

.prose-block p {
  font-size: 1.03rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose-block code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--blue-pale);
  border: 1.5px solid rgba(15, 26, 61, 0.16);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--blue-deep);
  white-space: nowrap;
}

.prose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 4px;
}

.prose-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.prose-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--html-green);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.prose-list strong {
  color: var(--ink);
}

/* ---- Code blocks ---- */
.code-block {
  margin: 26px 0 8px;
  background: #12203F;
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--pop);
  overflow: hidden;
}

.code-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  background: #1B2C53;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #A9B8DD;
}

.code-block pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #E5E7EB;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

/* ---- Comparison table ---- */
.table-scroll {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--pop);
  background: #fff;
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px dashed rgba(15, 26, 61, 0.14);
}

.compare-table thead th {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--blue-pale);
  border-bottom: var(--line) solid var(--ink);
}

.compare-table thead th:nth-child(2) {
  background: var(--blue);
  color: #fff;
}

.compare-table tbody th {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  width: 34%;
}

.compare-table td {
  color: var(--text-secondary);
  font-weight: 600;
}

.compare-table td:first-of-type {
  background: rgba(37, 99, 235, 0.06);
  color: var(--ink);
  font-weight: 700;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.table-note {
  font-size: 0.84rem !important;
  color: var(--text-muted) !important;
  margin-top: 14px;
  line-height: 1.6 !important;
}

/* ---- Related ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px;
  background: #fff;
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--pop-sm);
  transition: transform 0.22s var(--bounce), box-shadow 0.22s var(--bounce);
}

.related-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--pop);
}

.related-kicker {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.related-title {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.related-desc {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- CTA band ---- */
.cta-band {
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2px);
  background-size: 26px 26px;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 3px 3px 0 rgba(15, 26, 61, 0.35);
}

.cta-band p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.cta-band .btn-secondary {
  background: #fff;
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--header-h) + 60px);
    text-align: center;
  }

  .page-hero h1 {
    font-size: 2.3rem;
    max-width: none;
  }

  .page-hero-sub {
    font-size: 1.02rem;
  }

  .crumbs,
  .page-hero .hero-actions,
  .page-hero .file-chips {
    justify-content: center;
  }

  .page-hero .hero-actions .btn {
    width: 100%;
  }

  .prose-block h2 {
    font-size: 1.55rem;
  }

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

  .cta-band h2 {
    font-size: 1.7rem;
  }

  .cta-band .hero-actions {
    flex-direction: column;
  }

  .cta-band .hero-actions .btn {
    width: 100%;
  }
}
