/* ============================================================
   Book Odyssey: Forest & Gold site styles
   ============================================================ */

:root{
  /* Forest & Gold palette (matches the app's default theme) */
  --ink:        #1A1A2E;
  --page:       #F7F4EF;
  --forest:     #2D6A4F;
  --forest-lt:  #52B788;
  --gold:       #E9C46A;
  --gold-lt:    #F5DFA0;
  --muted:      #7D8199;
  --card:       #FFFFFF;
  --border:     #E8E4DC;
  --danger:     #C1554B;

  /* Theme swatches, pulled from the app's palettes */
  --sw-forest-a:#2D6A4F; --sw-forest-b:#E9C46A;
  --sw-midnight-a:#1A1A2E; --sw-midnight-b:#E9C46A;
  --sw-nordic-a:#3F88C5; --sw-nordic-b:#E29578;
  --sw-crimson-a:#9B2335; --sw-crimson-b:#C9A85C;
  --sw-slate-a:#0F172A; --sw-slate-b:#F59E0B;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(26,26,46,0.22);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--sans);
  background:var(--page);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
.container{ max-width:var(--max); margin:0 auto; padding:0 24px; }

h1,h2,h3{ font-family:var(--serif); font-weight:600; line-height:1.12; margin:0; color:var(--ink); }
p{ margin:0; }

/* ---------- Eyebrow / catalog-tab label ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--sans);
  font-weight:700;
  font-size:0.72rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--forest);
  background:#EAF4EE;
  border:1px solid #D7EADD;
  padding:6px 14px 6px 10px;
  border-radius:3px 3px 3px 0;
  position:relative;
}
.eyebrow::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--sans);
  font-weight:700;
  font-size:0.95rem;
  padding:14px 24px;
  border-radius:10px;
  text-decoration:none;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-gold{
  background:var(--gold);
  color:#241C05;
  box-shadow:0 10px 24px -10px rgba(233,196,106,0.7);
}
.btn-gold:hover{ background:var(--gold-lt); }
.btn-outline{
  background:transparent;
  border-color:var(--border);
  color:var(--ink);
}
.btn-outline:hover{ border-color:var(--forest); color:var(--forest); }
.btn-ghost-invert{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.35);
  color:#fff;
}
.btn-ghost-invert:hover{ background:rgba(255,255,255,0.18); }
.btn-sm{ padding:9px 16px; font-size:0.82rem; border-radius:8px; }

.btn svg{ width:18px; height:18px; flex-shrink:0; }

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(247,244,239,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-mark{ width:32px; height:auto; color:var(--forest); }
.brand-word{ font-family:var(--serif); font-style:italic; font-weight:600; font-size:1.28rem; color:var(--ink); white-space:nowrap; }
.nav-links{ display:flex; align-items:center; gap:32px; list-style:none; margin:0; padding:0; }
.nav-links a{ text-decoration:none; font-weight:700; font-size:0.92rem; color:var(--ink); opacity:0.75; transition:opacity .15s; }
.nav-links a:hover{ opacity:1; }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
.nav-toggle svg{ width:26px; height:26px; color:var(--ink); }

@media (max-width: 860px){
  .nav-links{
    position:absolute; top:74px; left:0; right:0;
    background:var(--page); border-bottom:1px solid var(--border);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:8px 24px 18px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding:12px 0; border-bottom:1px solid var(--border); opacity:1; }
  .nav-toggle{ display:inline-flex; }
}
@media (max-width: 420px){
  .nav{ height:60px; }
  .brand{ gap:7px; }
  .brand-mark{ width:22px; }
  .brand-word{ font-size:0.92rem; }
  .nav-cta{ gap:6px; }
  .nav-cta .nav-download{ padding:6px 10px; border-radius:7px; }
  .nav-cta .nav-download .lines small{ display:none; }
  .nav-cta .nav-download .lines strong{ font-size:0.7rem; }
  .nav-cta .nav-download .play-badge{ gap:5px; }
  .nav-cta .nav-download .play-badge svg{ width:12px; height:12px; }
  .nav-toggle{ padding:4px; }
  .nav-toggle svg{ width:20px; height:20px; }
}

/* ---------- Hero ---------- */
.hero{ padding:88px 0 70px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(2.4rem, 4.4vw, 3.6rem); margin:18px 0 20px; letter-spacing:-0.01em; }
.hero h1 em{ font-style:italic; color:var(--forest); }
.hero p.lede{ font-size:1.14rem; color:#4B4E63; max-width:46ch; margin-bottom:32px; }
.hero-ctas{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:28px; }
.hero-note{ display:flex; align-items:center; gap:10px; font-size:0.86rem; color:var(--muted); }
.hero-note svg{ width:16px; height:16px; color:var(--forest-lt); flex-shrink:0; }

/* Signature: phone mockup with library list + floating scanner card */
.phone-scene{ position:relative; height:480px; display:flex; align-items:center; justify-content:center; }

.phone{
  width:252px; height:502px;
  background:var(--page);
  border:8px solid var(--ink);
  border-radius:38px;
  box-shadow:var(--shadow), 0 30px 50px -20px rgba(26,26,46,0.35);
  overflow:hidden;
  position:relative;
  transform:rotate(-3deg);
}
.phone-notch{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:72px; height:16px; background:var(--ink); border-radius:10px; z-index:5;
}
.phone-header{
  display:flex; align-items:center; gap:8px;
  padding:26px 16px 10px;
  border-bottom:1px solid var(--border);
  background:var(--page);
}
.phone-header svg{ width:16px; height:16px; color:var(--forest); flex-shrink:0; }
.phone-header span{ font-family:var(--serif); font-weight:600; font-size:0.86rem; color:var(--ink); }
.phone-header .spacer{ flex:1; }
.phone-header .settings-dot{ width:14px; height:14px; color:var(--muted); }

.phone-tabbar{ display:flex; border-bottom:1px solid var(--border); background:var(--page); }
.phone-tab{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:8px 2px 9px; position:relative;
}
.phone-tab svg{ width:14px; height:14px; color:var(--muted); }
.phone-tab span{ font-size:0.5rem; font-weight:700; color:var(--muted); letter-spacing:0.01em; }
.phone-tab.active{ border-bottom:2px solid var(--forest); }
.phone-tab.active svg{ color:var(--forest); }
.phone-tab.active span{ color:var(--forest); }
.phone-tab .count{
  position:absolute; top:3px; right:14px;
  background:var(--forest); color:#fff; font-size:0.44rem; font-weight:700;
  border-radius:8px; padding:1px 4px;
}
.phone-tab .pro{
  position:absolute; top:3px; right:8px;
  background:var(--gold); color:#241C05; font-size:0.4rem; font-weight:800;
  border-radius:6px; padding:1px 4px;
}

.phone-list{ padding:12px; display:flex; flex-direction:column; gap:9px; }
.book-row{
  display:flex; align-items:center; gap:10px;
  background:var(--card); border:1px solid var(--border); border-radius:10px;
  padding:8px;
}
.book-row .cover{ width:30px; height:42px; border-radius:4px; flex-shrink:0; }
.book-row .lines{ flex:1; display:flex; flex-direction:column; gap:5px; }
.book-row .line{ height:6px; border-radius:3px; background:#DCD8CC; }
.book-row .line.title{ width:78%; background:#B9B4A4; }
.book-row .line.author{ width:52%; }
.book-row .badge-fmt{ font-size:0.48rem; font-weight:700; padding:2px 6px; border-radius:8px; align-self:flex-start; }
.book-row .check{ width:16px; height:16px; flex-shrink:0; border-radius:50%; }

/* Floating scanner card */
.scan-card{
  position:absolute; top:0; right:-6%;
  background:var(--card); border:1px solid var(--border); border-radius:14px;
  padding:14px 14px 12px; box-shadow:var(--shadow);
  transform:rotate(4deg);
  width:132px;
}
.scan-viewfinder{
  position:relative; width:100%; height:78px; border-radius:8px;
  background:var(--ink); overflow:hidden; margin-bottom:9px;
}
.scan-corner{ position:absolute; width:14px; height:14px; border:2px solid var(--gold); }
.scan-corner.tl{ top:6px; left:6px; border-right:0; border-bottom:0; border-radius:3px 0 0 0; }
.scan-corner.tr{ top:6px; right:6px; border-left:0; border-bottom:0; border-radius:0 3px 0 0; }
.scan-corner.bl{ bottom:6px; left:6px; border-right:0; border-top:0; border-radius:0 0 0 3px; }
.scan-corner.br{ bottom:6px; right:6px; border-left:0; border-top:0; border-radius:0 0 3px 0; }
.scan-line{
  position:absolute; left:8%; right:8%; height:2px; background:var(--forest-lt);
  box-shadow:0 0 8px 1px rgba(82,183,136,0.8);
  animation:scanmove 2.6s ease-in-out infinite;
}
@keyframes scanmove{ 0%,100%{ top:14%; } 50%{ top:82%; } }
.scan-card b{ font-family:var(--serif); font-size:0.78rem; color:var(--ink); display:block; }
.scan-card small{ font-size:0.64rem; color:var(--muted); }

.dust{ position:absolute; border-radius:50%; background:var(--gold); opacity:0.55; animation:float 7s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }

/* ---------- Section shell ---------- */
.section{ padding:96px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(1.9rem,3vw,2.5rem); margin:16px 0 14px; }
.section-head p{ color:#4B4E63; font-size:1.05rem; }
.section-alt{ background:var(--card); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

/* ---------- Feature catalog cards ---------- */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.feature-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px 24px 26px; position:relative; overflow:hidden;
}
.feature-card::before{
  content:attr(data-tab); position:absolute; top:0; left:22px;
  background:var(--gold-lt); color:#5A4A15; font-family:var(--serif); font-style:italic;
  font-size:0.72rem; padding:4px 10px 3px; border-radius:0 0 6px 6px;
}
.feature-icon{
  width:44px; height:44px; border-radius:10px; background:#EAF4EE; color:var(--forest);
  display:flex; align-items:center; justify-content:center; margin:20px 0 18px;
}
.feature-icon svg{ width:22px; height:22px; }
.feature-card h3{ font-size:1.12rem; margin-bottom:9px; }
.feature-card p{ color:#575A70; font-size:0.94rem; }

/* ---------- Themes ---------- */
.theme-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.theme-card{
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--border);
  background:var(--card); position:relative;
}
.theme-swatch{ height:104px; position:relative; }
.theme-swatch .bar{ position:absolute; left:14px; right:14px; height:8px; border-radius:4px; }
.theme-swatch .bar.b1{ top:20px; }
.theme-swatch .bar.b2{ top:36px; width:60%; opacity:0.8; }
.theme-meta{ padding:14px 14px 16px; }
.theme-meta h4{ font-family:var(--serif); font-size:0.98rem; margin:0 0 6px; }
.badge{ display:inline-block; font-size:0.68rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:3px 9px; border-radius:20px; }
.badge-free{ background:#EAF4EE; color:var(--forest); }
.badge-premium{ background:#FBF1DA; color:#8A6412; }

/* ---------- Premium ---------- */
.premium-panel{
  background:linear-gradient(160deg,#1A1A2E 0%, #232342 60%, #2D6A4F 150%);
  border-radius:24px; padding:56px; color:#F4F4F9;
  position:relative; overflow:hidden;
}
.premium-panel::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle at 85% 10%, rgba(233,196,106,0.12), transparent 60%);
}
.premium-head{ position:relative; z-index:1; max-width:640px; margin-bottom:44px; }
.premium-head .eyebrow{ background:rgba(233,196,106,0.14); border-color:rgba(233,196,106,0.4); color:var(--gold-lt); }
.premium-head h2{ color:#fff; margin:16px 0 12px; }
.premium-head p{ color:#C7C9DA; }
.premium-grid{ position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.premium-card{
  background:rgba(255,255,255,0.055); border:1px solid rgba(255,255,255,0.14);
  border-radius:14px; padding:24px;
}
.premium-card .feature-icon{ background:rgba(233,196,106,0.16); color:var(--gold-lt); }
.premium-card h3{ color:#fff; font-size:1.05rem; margin:14px 0 8px; }
.premium-card p{ color:#B7B9CC; font-size:0.92rem; }
.premium-cta{ position:relative; z-index:1; margin-top:40px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.premium-note{ color:#B7B9CC; font-size:0.88rem; font-weight:600; }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--forest); color:#fff; border-radius:24px; padding:64px 48px;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 10% 120%, rgba(233,196,106,0.35), transparent 60%);
}
.cta-band h2{ color:#fff; font-size:clamp(1.7rem,3vw,2.2rem); max-width:520px; position:relative; z-index:1; }
.cta-band-actions{ position:relative; z-index:1; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
footer.site{ border-top:1px solid var(--border); padding:56px 0 34px; }
.footer-grid{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; margin-bottom:36px; }
.footer-brand p{ color:var(--muted); max-width:34ch; margin-top:12px; font-size:0.92rem; }
.footer-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-col h5{ font-family:var(--sans); font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.footer-col a{ display:block; text-decoration:none; color:var(--ink); font-size:0.94rem; margin-bottom:10px; opacity:0.82; }
.footer-col a:hover{ opacity:1; color:var(--forest); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; border-top:1px solid var(--border); padding-top:24px; font-size:0.82rem; color:var(--muted); }

/* ---------- Play badge ---------- */
.play-badge{ display:inline-flex; align-items:center; gap:12px; }
.play-badge svg{ width:22px; height:22px; }
.play-badge .lines{ display:flex; flex-direction:column; line-height:1.1; }
.play-badge .lines small{ font-size:0.62rem; font-weight:600; opacity:0.85; }
.play-badge .lines strong{ font-size:1rem; font-family:var(--sans); }

/* ---------- Privacy page ---------- */
.policy-hero{ padding:64px 0 32px; }
.policy-hero .updated{ color:var(--muted); font-size:0.92rem; margin-top:10px; }
.policy-wrap{ max-width:760px; margin:0 auto; padding:0 24px 100px; }
.policy-wrap h2{ font-size:1.35rem; margin-top:44px; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--border); color:var(--forest); }
.policy-wrap p{ color:#3D3F52; margin-bottom:14px; }
.policy-wrap ul{ padding-left:22px; margin:0 0 16px; color:#3D3F52; }
.policy-wrap li{ margin-bottom:9px; }
.policy-wrap a.inline{ color:var(--forest); font-weight:700; text-decoration:underline; }
.note{
  background:#EAF4EE; border-left:4px solid var(--forest);
  padding:14px 18px; border-radius:6px; font-size:0.94rem; margin:20px 0;
}
.back-link{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--forest); text-decoration:none; font-size:0.92rem; margin-bottom:8px; }
.back-link svg{ width:16px; height:16px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal]{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible{ opacity:1; transform:none; }

/* ---------- FAQ page ---------- */
.faq-toc{ display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 8px; }
.faq-toc a{
  font-size:0.82rem; font-weight:700; color:var(--forest);
  background:#EAF4EE; border:1px solid #D7EADD; border-radius:20px;
  padding:7px 14px; text-decoration:none; transition:background .15s, color .15s;
}
.faq-toc a:hover{ background:var(--forest); color:#fff; border-color:var(--forest); }

.faq-category{ margin-top:52px; scroll-margin-top:96px; }
.faq-category:first-of-type{ margin-top:8px; }
.faq-category h2{
  font-size:1.3rem; color:var(--forest); margin-bottom:6px;
  padding-bottom:10px; border-bottom:1px solid var(--border);
  scroll-margin-top:96px;
}
.faq-item{ padding:20px 0; border-bottom:1px solid var(--border); scroll-margin-top:96px; }
.faq-item:last-child{ border-bottom:none; }
.faq-question{
  display:flex; align-items:baseline; gap:8px;
  font-family:var(--sans); font-weight:800; font-size:1.02rem; color:var(--ink);
  scroll-margin-top:96px;
}
.faq-question .permalink{
  opacity:0; color:var(--forest); text-decoration:none; font-size:0.85em; font-weight:700;
  transition:opacity .15s;
}
.faq-item:hover .permalink, .faq-question:focus-within .permalink{ opacity:1; }
.faq-answer{ color:#3D3F52; margin-top:10px; font-size:0.96rem; line-height:1.68; }
.faq-answer p{ margin-bottom:10px; }
.faq-answer p:last-child{ margin-bottom:0; }
.faq-answer ol,.faq-answer ul{ margin:10px 0 12px; padding-left:22px; }
.faq-answer li{ margin-bottom:8px; }
.faq-answer code{ background:#EFEAE0; padding:2px 6px; border-radius:4px; font-size:0.86em; color:#4A4326; }
.faq-answer a.inline{ color:var(--forest); font-weight:700; text-decoration:underline; }
.faq-item:target .faq-question{ color:var(--forest); }
.faq-item:target{ background:#FBF8F2; margin:0 -16px; padding:20px 16px; border-radius:10px; }
@media (max-width: 980px){
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .premium-grid{ grid-template-columns:1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .phone-scene{ height:340px; margin-top:20px; }
  .phone{ width:200px; height:398px; border-radius:30px; }
  .scan-card{ width:110px; padding:11px 11px 10px; }
  .scan-viewfinder{ height:62px; }
}
@media (max-width: 620px){
  .feature-grid{ grid-template-columns:1fr; }
  .theme-grid{ grid-template-columns:repeat(2,1fr); }
  .nav-links{ display:none; }
  .cta-band{ padding:44px 28px; flex-direction:column; align-items:flex-start; }
  .premium-panel{ padding:36px 22px; }
  .footer-grid{ flex-direction:column; }
}

/* ---------- FAQ demo player ---------- */
.faq-demo{
  margin-top:16px; border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; background:var(--page); max-width:480px;
}
.faq-demo video{ display:block; width:100%; height:auto; background:var(--page); }
.faq-demo-controls{
  display:flex; gap:8px; padding:10px 12px;
  border-top:1px solid var(--border); background:var(--card);
}
.faq-demo-btn{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--sans); font-size:0.82rem; font-weight:700;
  padding:8px 14px; border-radius:8px; border:1.5px solid var(--border);
  background:var(--page); color:var(--forest); cursor:pointer;
  transition:background-color .15s ease, border-color .15s ease;
}
.faq-demo-btn:hover{ background:#EAF4EE; border-color:var(--forest-lt); }
.faq-demo-btn:disabled{ opacity:0.45; cursor:default; }
.faq-demo-btn:disabled:hover{ background:var(--page); border-color:var(--border); }
.faq-demo-btn.primary{ background:var(--forest); border-color:var(--forest); color:#fff; }
.faq-demo-btn.primary:hover{ background:#256143; }