/* Flipbook marketing + legal site — shared styles.
   Palette ported from the app/extension (warm filmic-dark + amber). */

:root {
  --amber: #e9a23b;
  --amber-hi: #f6bc54;
  --rec: #e5484d;
  --surface: #211d16;
  --surface-alt: #2b261d;
  --hairline: rgba(243, 236, 221, 0.133);
  --text-primary: #f3ecdd;
  --text-secondary: #9c9582;
  --text-dim: #615c50;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(168deg, #1a1610 0%, #0c0a07 100%) fixed;
  color: var(--text-primary);
  font-family: var(--ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* faint scanline texture for the instrument feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0 1px,
    transparent 1px 3px
  );
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hi); text-decoration: underline; }

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

/* ============ HEADER ============ */
header.site {
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(12, 10, 7, 0.72);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}
.wordmark:hover { text-decoration: none; color: var(--text-primary); }
.dot {
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(233, 162, 59, 0.7);
}
nav.top { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.top a { color: var(--text-secondary); font-size: 14px; }
nav.top a:hover { color: var(--text-primary); text-decoration: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a1200; }
.btn-primary:hover { background: var(--amber-hi); color: #1a1200; }
.btn-ghost { border-color: var(--hairline); color: var(--text-primary); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-hi); }

/* ============ HERO ============ */
.hero { text-align: center; padding: 88px 0 64px; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 5px 14px; display: inline-block; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px); line-height: 1.08;
  margin: 0 0 20px; font-weight: 700; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--amber); }
.hero p.lede {
  font-size: clamp(16px, 2.2vw, 20px); color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 34px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ============ SECTIONS ============ */
section { padding: 56px 0; border-top: 1px solid var(--hairline); }
section h2 {
  font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 12px;
  letter-spacing: -0.01em; text-align: center;
}
section .sub { text-align: center; color: var(--text-secondary); max-width: 620px; margin: 0 auto 40px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.card .ico { font-size: 24px; margin-bottom: 14px; display: block; }

/* ============ PRICING ============ */
.price-card {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--amber);
  border-radius: 18px; padding: 40px 32px;
  box-shadow: 0 0 40px rgba(233, 162, 59, 0.08);
}
.price-card .free { font-family: var(--mono); color: var(--amber); font-size: 15px; margin-bottom: 18px; }
.price-card .big { font-size: 52px; font-weight: 700; line-height: 1; }
.price-card .big span { font-size: 20px; color: var(--text-secondary); font-weight: 400; }
.price-card .per { color: var(--text-secondary); margin: 8px 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; color: var(--text-secondary); }
.price-card li::before { content: "✓ "; color: var(--amber); font-weight: 700; }
.price-card li:last-child { border-bottom: none; }

/* ============ FAQ ============ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 12px; background: rgba(255,255,255,.014);
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-secondary); font-size: 14.5px; }

/* ============ LEGAL PAGES ============ */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 40px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.legal .updated { color: var(--text-dim); font-family: var(--mono); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; color: var(--text-primary); border: none; padding: 0; text-align: left; }
.legal p, .legal li { color: var(--text-secondary); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .back { display: inline-block; margin-bottom: 8px; font-size: 14px; }
.legal strong { color: var(--text-primary); }

/* ============ FOOTER ============ */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 40px 0; margin-top: 40px;
  color: var(--text-dim); font-size: 13.5px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site nav a { color: var(--text-secondary); }
footer.site .spacer { margin-left: auto; }
footer.site .mor { color: var(--text-dim); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  nav.top { display: none; }
  .hero { padding: 60px 0 44px; }
  footer.site .spacer { margin-left: 0; width: 100%; }
}
