/* ==========================================================================
   FLIPPABLE.PDF — SITE STYLES
   ========================================================================== */

:root {
  --bg:           #08080a;
  --bg-2:         #0e0e11;
  --surface:      #131318;
  --surface-2:    #1a1a20;
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.14);
  --rule:         rgba(255,255,255,0.08);
  --text:         #f8f8f7;
  --text-2:       #a1a1aa;
  --text-3:       #71717a;
  --text-4:       #52525b;
  --lime:         #c8f74e;
  --lime-soft:    rgba(200, 247, 78, 0.12);
  --lime-glow:    rgba(200, 247, 78, 0.35);
  --warn:         #fb7185;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", "Roboto Mono", "Consolas", monospace;
  --font-display: var(--font-sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

/* atmospheric, static, cheap to render */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 8% -10%,  rgba(200,247,78,0.07), transparent 70%),
    radial-gradient(900px 500px at 100% 10%, rgba(127,86,217,0.05), transparent 70%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime); }

::selection { background: var(--lime); color: var(--bg); }

/* layout helpers */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 1;
}
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; z-index: 1; }
.section + .section { padding-top: 0; }

/* typographic primitives */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow.lime { color: var(--lime); }
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime-glow);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 18ch;
}
.section-title em { font-style: normal; color: var(--lime); }
.section-lede {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 56ch;
}
.section-head { margin-bottom: 56px; }

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-brand .mark {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  background: var(--lime);
  color: var(--bg);
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font-display);
}
.nav-brand .dot { color: var(--lime); }
.nav-links {
  display: flex; gap: 28px;
  justify-content: center;
  font-size: 13.5px;
  color: var(--text-2);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 820px) {
  .nav { grid-template-columns: auto auto; }
  .nav-links { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--lime);
  color: var(--bg);
}
.btn-primary:hover {
  background: #d8ff5e;
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-large { height: 52px; padding: 0 24px; font-size: 14.5px; border-radius: var(--r-md); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.btn:hover .arrow { transform: translateX(2px); }

.btn-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 72px;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-top: 28px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--lime) 0%, #99f6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lede {
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  max-width: 50ch;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* hero visual — illustrative book pages */
.hero-art {
  position: relative;
  aspect-ratio: 4/3;
  perspective: 1800px;
  display: grid;
  place-items: center;
}
.hero-art-book {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1.5/1;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-12deg);
}
.hero-art-page {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, #f5f1e6 0%, #e7dcc1 100%);
  border-radius: 1px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 8px 18px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  padding: 22px 18px;
  gap: 8px;
  font-family: var(--font-mono);
}
.hero-art-page.left  { left: 0;  border-right: 1px solid rgba(0,0,0,0.18); transform-origin: right center; }
.hero-art-page.right { right: 0; border-left: 1px solid rgba(0,0,0,0.18); transform-origin: left center; transform: rotateY(-32deg); box-shadow: 0 40px 70px -20px rgba(0,0,0,0.85), 0 14px 22px rgba(0,0,0,0.5); }
.hero-art-num {
  font-size: 9px; letter-spacing: 0.2em; color: #8b7e5c; text-transform: uppercase;
}
.hero-art-rule { width: 28px; height: 2px; background: var(--lime); border-radius: 1px; }
.hero-art-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #15110a;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 6px;
}
.hero-art-line {
  height: 6px; background: rgba(21, 17, 10, 0.18); border-radius: 2px;
  margin-top: 4px;
}
.hero-art-line.short { width: 60%; }
.hero-art-line.med   { width: 80%; }
.hero-art-foot {
  margin-top: auto;
  font-size: 8.5px; letter-spacing: 0.18em; color: #a89770; text-transform: uppercase;
  display: flex; justify-content: space-between;
}

/* ==========================================================================
   PROOF STRIP — small badges below hero
   ========================================================================== */

.proof {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.proof-row {
  display: flex; gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.proof-row span {
  display: inline-flex; gap: 8px; align-items: center;
}
.proof-row span::before {
  content: "✓";
  color: var(--lime);
  font-weight: 800;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}
.feature:hover { background: var(--surface-2); }
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--lime);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.feature p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.feature-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--lime);
  margin-bottom: 4px;
}
.feature-icon svg { width: 18px; height: 18px; }

/* ==========================================================================
   DEMO BLOCK
   ========================================================================== */

.demo-frame {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: rgba(0,0,0,0.4);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.demo-bar .left  { display: flex; gap: 16px; align-items: center; min-width: 0; flex: 1; }
.demo-bar .right { display: flex; gap: 8px; align-items: center; }
.demo-bar .traffic {
  display: inline-flex; gap: 6px;
}
.demo-bar .traffic i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-4);
  display: inline-block;
}
.demo-bar .stat {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.demo-bar .stat b { color: var(--text); font-weight: 600; }
.demo-bar .stat.live b { color: var(--lime); }
.demo-bar .pill {
  font-size: 10.5px;
  border: 1px solid var(--border-2);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
}
.demo-bar .pill.live { color: var(--lime); border-color: var(--lime-soft); }

.viewer {
  position: relative;
  height: clamp(540px, 70vh, 820px);
  overflow: hidden;
  background: #0a0a0c;
}
.viewer.is-empty .viewer-drop { display: flex; }

#flipbook { width: 100%; height: 100%; }

.viewer-drop {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  z-index: 5; cursor: pointer;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(200,247,78,0.04) 14px 15px),
    #0c0c10;
  text-align: center; padding: 24px;
}
.viewer-drop .glyph {
  width: 64px; height: 64px;
  border: 2px dashed var(--lime);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
}
.viewer-drop .label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.viewer-drop .hint {
  font-size: 12.5px;
  color: var(--text-3);
  max-width: 38ch;
}
.viewer-drop .browse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--lime); color: var(--bg);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 0; border-radius: var(--r-md);
  cursor: pointer;
  text-transform: uppercase;
}
.viewer.is-drag .viewer-drop {
  background:
    repeating-linear-gradient(45deg, rgba(200,247,78,0.18) 0 14px, rgba(200,247,78,0.08) 14px 15px),
    #0c0c10;
}

#file-input { display: none; }

/* ==========================================================================
   PRIVACY CALLOUT
   ========================================================================== */

.privacy-bar {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(200,247,78,0.04), rgba(200,247,78,0)) ,
    var(--surface);
}
@media (min-width: 860px) {
  .privacy-bar { grid-template-columns: 1.3fr 1fr; align-items: center; }
}
.privacy-bar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.privacy-bar h3 em { font-style: normal; color: var(--lime); }
.privacy-bar p {
  color: var(--text-2);
  margin-top: 12px;
  max-width: 50ch;
}
.privacy-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.privacy-stat {
  background: var(--bg-2);
  padding: 18px 14px;
  text-align: center;
}
.privacy-stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--lime);
  letter-spacing: -0.04em;
  line-height: 1;
}
.privacy-stat .lab {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ==========================================================================
   INSTALL BLOCKS — three methods (WordPress / CDN / self-hosted)
   ========================================================================== */

.install-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(900px 400px at -10% -20%, rgba(200,247,78,0.07), transparent 60%),
    var(--surface);
}
.install-block + .install-block { margin-top: 28px; }

@media (min-width: 980px) {
  .install-block { grid-template-columns: 1fr 1.05fr; }
}

.install-content {
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 16px;
}
.install-tag {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 5px 12px 4px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-soft);
  border-radius: 999px;
}
.install-tag .num {
  font-weight: 700;
  color: var(--lime);
}
.install-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.install-content h3 em { font-style: normal; color: var(--lime); }
.install-content > p { color: var(--text-2); max-width: 50ch; }
.install-features {
  margin-top: 4px;
  display: grid; gap: 6px;
  font-size: 14px;
  color: var(--text-2);
}
.install-features li {
  list-style: none;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 4px 0;
}
.install-features li::before {
  content: "→";
  color: var(--lime);
  font-weight: 700;
  flex-shrink: 0;
}
.install-features code,
.install-content code {
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.install-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.install-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.install-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  line-height: 1.6;
  border-left: 2px solid var(--lime-soft);
  padding-left: 14px;
}

.install-code {
  background: #050507;
  border-left: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 36px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  overflow: auto;
  position: relative;
  white-space: pre;
}
.install-code .caption {
  display: block;
  color: var(--text-4);
  font-size: 11px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  white-space: normal;
}
.tok-key { color: var(--lime); }
.tok-str { color: #f0c674; }
.tok-com { color: var(--text-4); }
.tok-fn  { color: #98c0fa; }
.tok-tag { color: #fb7185; }
.tok-attr{ color: #c8f74e; }
.tok-url { color: #99f6e4; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq details {
  background: var(--surface);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--lime);
  font-weight: 300;
  transition: transform 0.2s;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p, .faq details > div {
  padding: 0 26px 24px;
  color: var(--text-2);
  max-width: 70ch;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: clamp(48px, 7vw, 80px) 0 32px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--lime); }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-brand .mark {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  background: var(--lime); color: var(--bg);
  border-radius: 4px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 13px;
}
.footer-tag {
  font-size: 13.5px;
  color: var(--text-2);
  max-width: 38ch;
  margin-bottom: 18px;
}
.footer-co {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.footer-co b { color: var(--text-2); font-weight: 600; }
.footer-bottom {
  padding: 18px 0 36px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-4);
}

/* ==========================================================================
   LEGAL PAGES (terms.html / privacy.html)
   ========================================================================== */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px) 64px;
  position: relative; z-index: 1;
}
.legal .back {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.legal .back:hover { color: var(--lime); }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.legal .updated {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  margin-right: 12px;
}
.legal p, .legal li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin-left: 24px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--lime); border-bottom: 1px dotted var(--lime); }
.legal hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

/* ==========================================================================
   FLIPBOOK COMPONENT — .fp-*
   ========================================================================== */

.fp-container {
  --fp-page-bg: #f4ecd6;
  --fp-page-edge: #d8caa3;
  --fp-accent: var(--lime);
  --fp-text: #ece4ce;
  --fp-text-dim: rgba(236, 228, 206, 0.55);
  --fp-control-bg: rgba(255, 255, 255, 0.03);
  --fp-control-bg-hover: rgba(200, 247, 78, 0.14);
  --fp-control-border: rgba(255, 255, 255, 0.1);
  --fp-flip-duration: 1100ms;
  --fp-flip-easing: cubic-bezier(0.45, 0.05, 0.55, 0.95);

  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none;
  font-family: var(--font-mono);
  color: var(--fp-text);
  background: #0a0a0c;
}

.fp-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  perspective: 1700px;
  perspective-origin: 50% 38%;
  overflow: hidden;
  padding: 28px;
}

.fp-book-wrapper { position: relative; transform-style: preserve-3d; }

.fp-book {
  position: relative;
  transform-style: preserve-3d;
  background: #0c0a05;
  cursor: pointer;
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.85),
    0 12px 24px -8px rgba(0,0,0,0.55);
}

.fp-spine {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 24px;
  transform: translateX(-50%);
  pointer-events: none; z-index: 999;
  background: linear-gradient(to right,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.10) 30%,
    rgba(0,0,0,0.65) 50%,
    rgba(0,0,0,0.10) 70%,
    rgba(0,0,0,0)    100%);
}
.fp-mode-single .fp-spine { display: none; }

.fp-leaves {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
}

.fp-mode-double .fp-leaf {
  position: absolute;
  top: 0; left: 50%;
  width: 50%; height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform var(--fp-flip-duration) var(--fp-flip-easing);
  will-change: transform;
}

.fp-mode-single .fp-leaf {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform var(--fp-flip-duration) var(--fp-flip-easing);
  will-change: transform;
}

.fp-leaf.fp-flipped { transform: rotateY(-180deg); }

.fp-leaf-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--fp-page-bg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transform: translateZ(0);
}
.fp-leaf-front { box-shadow: inset 22px 0 28px -22px rgba(0, 0, 0, 0.55); }
.fp-leaf-back  {
  transform: rotateY(180deg) translateZ(1px);
  box-shadow: inset -22px 0 28px -22px rgba(0, 0, 0, 0.55);
}
.fp-mode-single .fp-leaf-front,
.fp-mode-single .fp-leaf-back {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
}

.fp-leaf-blank {
  background: radial-gradient(ellipse at center, var(--fp-page-bg) 0%, var(--fp-page-edge) 130%);
}

.fp-leaf-face::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 2;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(120, 90, 40, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(120, 90, 40, 0.05) 0%, transparent 45%);
}

/* sweep shadow during flip */
.fp-leaf-face::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 3;
  opacity: 0;
}
.fp-leaf-front::after {
  background: linear-gradient(to right,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0)   38%,
    rgba(0,0,0,0.55) 100%);
}
.fp-leaf-back::after {
  background: linear-gradient(to left,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0)   38%,
    rgba(0,0,0,0.55) 100%);
}
.fp-leaf.fp-flipping .fp-leaf-face::after {
  animation: fp-edge-shade var(--fp-flip-duration) var(--fp-flip-easing) forwards;
}
@keyframes fp-edge-shade {
  0%   { opacity: 0; }
  45%  { opacity: 1; }
  55%  { opacity: 1; }
  100% { opacity: 0; }
}

/* hinge shadow at spine during flip (double mode) */
.fp-mode-double .fp-leaves::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 14px);
  width: 28px;
  pointer-events: none; z-index: 998;
  opacity: 0;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0)    70%);
  transition: opacity 0.15s;
}
.fp-mode-double .fp-leaves.fp-is-flipping::before { opacity: 1; }

.fp-page-canvas {
  width: 100%; height: 100%;
  display: block; object-fit: contain;
  position: relative; z-index: 1;
}

.fp-page-loading {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

.fp-spinner, .fp-spinner-sm {
  width: 38px; height: 38px;
  border: 2px solid rgba(200, 247, 78, 0.15);
  border-top-color: var(--fp-accent);
  border-radius: 50%;
  animation: fp-spin 0.8s linear infinite;
}
.fp-spinner-sm { width: 22px; height: 22px; }
@keyframes fp-spin { to { transform: rotate(360deg); } }

.fp-loading-overlay {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  background: rgba(10, 10, 12, 0.86);
  z-index: 100;
}
.fp-loading-text {
  font-size: 10.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--fp-text-dim);
}

/* controls */
.fp-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(5, 5, 7, 0.85);
  border-top: 1px solid var(--fp-control-border);
}
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--fp-control-border);
  background: transparent;
  color: var(--fp-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  padding: 0; border-radius: 0;
}
.fp-btn:hover:not(:disabled) {
  background: var(--fp-control-bg-hover);
  border-color: var(--fp-accent);
  color: var(--fp-accent);
}
.fp-btn:disabled { opacity: 0.22; cursor: not-allowed; }

.fp-page-info {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 38px;
  border: 1px solid var(--fp-control-border);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--fp-text);
  font-variant-numeric: tabular-nums;
  min-width: 100px; justify-content: center;
}
.fp-page-input {
  width: 30px;
  background: transparent; border: 0;
  color: var(--fp-accent);
  font: inherit; font-size: 11px;
  text-align: right;
  padding: 0;
}
.fp-page-input:focus { outline: none; }
.fp-page-input::-webkit-inner-spin-button,
.fp-page-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fp-page-input { -moz-appearance: textfield; }
.fp-page-divider { opacity: 0.3; }
.fp-page-total { opacity: 0.55; }

.fp-fullscreen-active {
  position: fixed !important;
  inset: 0;
  height: 100vh !important;
  z-index: 9999;
}

@media (max-width: 768px) {
  .fp-stage { padding: 14px; }
  .fp-controls { padding: 10px; gap: 6px; }
  .fp-btn { width: 36px; height: 36px; }
  .fp-page-info { padding: 0 10px; height: 36px; min-width: 84px; font-size: 10px; }
}
