/* Overview, legal pages and the cookie banner. Builds on styles.css (colours, header, buttons). */

.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav .btn-secondary { color: var(--text); padding: 7px 14px; text-decoration: none; }
.site-nav .nav-cta { color: #fff; padding: 7px 14px; }

/* Overview nav: see-through over the hero, frosted once scrolled (home.js toggles .at-top) */
.site-header { transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s; }
.site-header.at-top {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

.site-main { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; }

/* Hero */
.hero { text-align: center; padding: 64px 0 36px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 18px; margin: 14px auto 26px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions a { text-decoration: none; }

.shot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: var(--surface);
  cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.shot:hover, .shot:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(47,91,234,0.45);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 40px rgba(47,91,234,0.18);
  outline: none;
}

.hero-shot { margin-top: 44px; }

/* Scroll fade-ins (home.js adds .reveal, then .in when visible) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Full-size screenshot */
.zoom {
  padding: 0; border: 0; background: none; max-width: 94vw; max-height: 92vh; cursor: zoom-out;
}
.zoom::backdrop { background: rgba(0,0,0,0.85); }
.zoom img { display: block; max-width: 94vw; max-height: 92vh; border-radius: var(--radius); }

/* Try it */
.try-card {
  max-width: 560px; margin: 0 auto; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.try-card > .field-label:first-child { margin-top: 0; }
.try-card #tryTagsWrap { margin-top: 6px; }
.try-done { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.try-done p { color: #b6bac6; font-size: 14px; margin-bottom: 12px; }
.try-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.try-actions a { text-decoration: none; }

/* How it works */
.site-section { padding: 56px 0 0; scroll-margin-top: 70px; }
.site-section > h2 { font-size: 28px; text-align: center; margin-bottom: 8px; }
.site-section > .lead { text-align: center; color: var(--muted); margin-bottom: 36px; }

.how-step { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; margin-bottom: 56px; }
.how-step:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.how-step:nth-child(even) .how-text { order: 2; }
.how-num { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.how-step h3 { font-size: 22px; margin: 6px 0 10px; }
.how-step p, .how-step li { color: #b6bac6; line-height: 1.6; }
.how-step ul { padding-left: 18px; margin-top: 8px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: #b6bac6; line-height: 1.6; }

.cta { text-align: center; padding: 64px 0 20px; }
.cta h2 { font-size: 26px; margin-bottom: 18px; }
.cta a { text-decoration: none; }

/* Footer */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border-light); margin-top: 40px;
  padding: 24px 20px 90px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8;
}
.site-footer a { color: var(--muted); margin: 0 8px; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 48px 20px; line-height: 1.7; }
.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; scroll-margin-top: 70px; }
.legal p, .legal li { color: #c3c7d2; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal a { color: #7B9BF7; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }
.legal-table-wrap { overflow-x: auto; }

/* Cookie banner: card in the bottom-left corner */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  width: 300px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); font-size: 14px; line-height: 1.5;
}
.cookie-banner h2 { font-size: 15px; margin-bottom: 6px; }
.cookie-banner p { color: #c3c7d2; margin-bottom: 14px; }
.cookie-banner a { color: #7B9BF7; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn-secondary { flex: 1; }

@media (max-width: 720px) {
  .site-nav .hide-sm { display: none; }
  .how-step, .how-step:nth-child(even) { grid-template-columns: 1fr; gap: 16px; }
  .how-step:nth-child(even) .how-text { order: 0; }
  .hero { padding-top: 40px; }
  .site-nav { gap: 12px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
