/*
================================================================================
  CIONAOD INC. — BOOK PAGE SHARED STYLESHEET
  Stylesheet Version: 1.1.0   (pairs with template.html 2.2.0+; adds --secondary)
================================================================================
  This is the SINGLE LOOK-AND-FEEL FILE for every Cionaod Inc. book page.
  Edit this file once and EVERY page that links to it restyles automatically.

  Per-book values are NOT here. Only one thing changes per book — the accent
  color — and that is set inline on each page as:  <style>:root{--accent:#hex}</style>
  (the skill derives it from the cover). Everything else is shared.

  DESIGN TOKENS live in :root below. To rebrand the whole catalog, change the
  tokens here. To restyle one section, edit that section's rules here.
================================================================================
*/

/* ===== TOKENS: COLOR / TYPE / LAYOUT ===== */
:root{
  --bg:#0f0e0c;          /* page background (dark brand default) */
  --surface:#1a1815;     /* cards, bars, banners */
  --ink:#f4f1ea;         /* primary text */
  --muted:#a9a299;       /* secondary text */
  --accent:#d9603b;      /* FALLBACK accent; overridden per-book inline */
  --accent-ink:#0f0e0c;  /* text on accent */
  --line:#2c2a26;        /* borders / dividers */
  --secondary:#3b6ed9;   /* second voice; per-book override from cover */
  --display:"Fraunces", Georgia, serif;   /* headings */
  --body:"Inter", system-ui, sans-serif;  /* body */
  --maxw:1100px;         /* content max width */
}

/* Optional light mode. A page can opt OUT (lock dark) with
   <body data-force-dark>. Delete this block to lock dark globally. */
@media (prefers-color-scheme: light){
  :root:not([data-force-dark]){
    --bg:#faf8f3; --surface:#ffffff; --ink:#1a1815; --muted:#5b554d; --line:#e6e1d8;
  }
}

/* ===== BASE ===== */
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);
  line-height:1.6;font-size:18px;-webkit-font-smoothing:antialiased;padding-bottom:72px}
h1,h2,h3{font-family:var(--display);line-height:1.1;font-weight:600;margin:0 0 .4em}
h1{font-size:clamp(2.2rem,5vw,4rem)} h2{font-size:clamp(1.6rem,3vw,2.6rem)}
a{color:inherit} .wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
section{padding:72px 0;border-bottom:1px solid var(--line)}

/* ===== TYPOGRAPHY HELPERS ===== */
.eyebrow{font-family:var(--body);text-transform:uppercase;letter-spacing:.18em;
  font-size:.72rem;color:var(--accent);font-weight:700;margin-bottom:14px}
.muted{color:var(--muted)} .center{text-align:center}
.price{font-family:var(--display);font-size:2.4rem}

/* ===== BUTTONS ===== */
.btn{display:inline-block;background:var(--accent);color:var(--accent-ink);
  font-weight:700;padding:16px 34px;border-radius:2px;text-decoration:none;
  font-size:1rem;letter-spacing:.02em;transition:transform .15s,filter .15s;
  border:0;cursor:pointer}
.btn:hover{transform:translateY(-2px);filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ===== LAYOUT PRIMITIVES ===== */
.grid{display:grid;gap:28px}
@media(min-width:760px){.cols-2{grid-template-columns:1fr 1fr}
  .cols-3{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:28px}

/* ===== HERO ===== */
.hero{display:grid;gap:48px;align-items:center;padding-top:96px}
@media(min-width:860px){.hero{grid-template-columns:0.9fr 1.1fr}}
.cover{width:100%;max-width:360px;height:auto;border-radius:6px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.7);transform:rotate(-2deg)}

/* ===== TRAILER ===== */
.ratio{position:relative;width:100%;aspect-ratio:16/9;border-radius:6px;overflow:hidden;
  border:1px solid var(--line);background:#000}
.ratio iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.facade{position:absolute;inset:0;width:100%;height:100%;border:0;cursor:pointer;
  background-size:cover;background-position:center;display:flex;align-items:center;
  justify-content:center;padding:0}
.facade::after{content:"";width:84px;height:84px;border-radius:50%;
  background:var(--accent);opacity:.92;
  clip-path:polygon(38% 30%,38% 70%,70% 50%);transition:transform .15s}
.facade:hover::after{transform:scale(1.08)}

/* ===== BENEFITS / SEGMENTS / TOC ===== */
ul.benefits{list-style:none;padding:0;margin:0}
ul.benefits li{padding:12px 0 12px 34px;position:relative;border-bottom:1px solid var(--line)}
ul.benefits li:before{content:"";position:absolute;left:4px;top:18px;width:14px;height:14px;
  background:var(--accent);border-radius:50%}
.seg{border-left:3px solid var(--accent);padding-left:20px}
.toc-cols{columns:2;gap:40px} @media(max-width:640px){.toc-cols{columns:1}}

/* ===== FAQ ===== */
details{border:1px solid var(--line);border-radius:4px;padding:8px 18px;margin-bottom:12px;
  background:var(--surface)} summary{cursor:pointer;font-weight:600;padding:10px 0}

/* ===== OFFER / FORMAT SELECTOR ===== */
.formats{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:20px 0}
.fmt{border:1px solid var(--line);background:var(--surface);color:var(--ink);
  padding:12px 22px;border-radius:2px;cursor:pointer;font-weight:600}
.fmt[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.reassure{font-size:.95rem;margin-top:14px}

/* ===== STICKY BUY BAR ===== */
.stickybar{position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--surface);
  border-top:1px solid var(--line);transform:translateY(110%);transition:transform .25s;
  box-shadow:0 -10px 30px -15px rgba(0,0,0,.6)}
.stickybar.show{transform:translateY(0)}
.stickybar .inner{max-width:var(--maxw);margin:0 auto;padding:10px 24px;display:flex;
  align-items:center;gap:14px}
.stickybar img{width:34px;height:auto;border-radius:2px}
.stickybar .meta{flex:1;min-width:0;font-size:.9rem;line-height:1.25}
.stickybar .meta b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== FOOTER / A11Y / CONSENT ===== */
footer{padding:48px 0;color:var(--muted);font-size:.9rem}
.skip{position:absolute;left:-999px}
.skip:focus{left:16px;top:16px;background:var(--accent);color:var(--accent-ink);padding:8px 14px;z-index:99}
.consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;background:var(--surface);
  border:1px solid var(--line);border-radius:6px;padding:18px 20px;max-width:560px;margin:0 auto;
  box-shadow:0 20px 50px -20px rgba(0,0,0,.7)}
.consent.hidden{display:none}
.consent .row{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.consent button{flex:1;min-width:120px}

/* ===== MOTION PREFERENCES ===== */
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
