/* Notebooker.ai — "calm" design system (calm-C build 33b9282e), themed by the
   app's five Radix packs (config/appearance.php — light AND dark scales).
   Wordmark + letters render in var(--accent-deep): the darkest color of the
   selected theme in light mode (accent step 12), its pastel counterpart in
   dark mode, per the generator's "deep inverts with the mode" rule. */

:root {
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 26, 24, 0.04), 0 6px 20px rgba(23, 26, 24, 0.06);
  --shadow-sm: 0 1px 2px rgba(23, 26, 24, 0.05);
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --terra: #b0451f; --terra-soft: #fbeee7;
}

/* light packs — paper=gray2 ink=gray12 accent=accent11 deep=accent12 soft=accent3 */
:root, :root[data-pack='quiet-green'] {
  --paper: #f7f9f8; --card: #ffffff;
  --ink: #1a211e; --ink-soft: #5f6563; --ink-faint: #7c8481;
  --line: #e6e9e8; --line-strong: #d7dad9;
  --accent: #208368; --accent-deep: #1d3b31; --accent-soft: #e6f7ed; --accent-solid: #29a383;
  --band: #1d3b31; --on-accent: #ffffff;
}
:root[data-pack='graphite'] {
  --paper: #f9f9f9; --card: #ffffff;
  --ink: #202020; --ink-soft: #646464; --ink-faint: #838383;
  --line: #e8e8e8; --line-strong: #d9d9d9;
  --accent: #646464; --accent-deep: #202020; --accent-soft: #f0f0f0; --accent-solid: #8d8d8d;
  --band: #202020; --on-accent: #ffffff;
}
:root[data-pack='indigo'] {
  --paper: #f9f9fb; --card: #ffffff;
  --ink: #1c2024; --ink-soft: #60646c; --ink-faint: #80838d;
  --line: #e8e8ec; --line-strong: #d9d9e0;
  --accent: #3a5bc7; --accent-deep: #1f2d5c; --accent-soft: #edf2fe; --accent-solid: #3e63dd;
  --band: #1f2d5c; --on-accent: #ffffff;
}
:root[data-pack='warm-paper'] {
  --paper: #f9f9f8; --card: #ffffff;
  --ink: #21201c; --ink-soft: #63635e; --ink-faint: #82827c;
  --line: #e9e8e6; --line-strong: #dad9d6;
  --accent: #7d5e54; --accent-deep: #43302b; --accent-soft: #f6edea; --accent-solid: #a18072;
  --band: #43302b; --on-accent: #ffffff;
}
:root[data-pack='plum'] {
  --paper: #faf9fb; --card: #ffffff;
  --ink: #211f26; --ink-soft: #65636d; --ink-faint: #84828e;
  --line: #eae7ec; --line-strong: #dbd8e0;
  --accent: #6550b9; --accent-deep: #2f265f; --accent-soft: #f4f0fe; --accent-solid: #6e56cf;
  --band: #2f265f; --on-accent: #ffffff;
}

/* dark packs — same scales, dark halves of config/appearance.php */
@media (prefers-color-scheme: dark) {
  :root { --terra: #e8814f; --terra-soft: #3a2318; --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.35); --shadow-sm: 0 1px 2px rgba(0,0,0,0.35); }
  :root, :root[data-pack='quiet-green'] {
    --paper: #171918; --card: #202221;
    --ink: #eceeed; --ink-soft: #adb5b2; --ink-faint: #717d79;
    --line: #2c302e; --line-strong: #444947;
    --accent: #1fd8a4; --accent-deep: #adf0d4; --accent-soft: #0f2e22; --accent-solid: #29a383;
    --band: #0b3b2c; --on-accent: #101211;
  }
  :root[data-pack='graphite'] {
    --paper: #191919; --card: #222222;
    --ink: #eeeeee; --ink-soft: #b4b4b4; --ink-faint: #7b7b7b;
    --line: #2e2e2e; --line-strong: #484848;
    --accent: #b4b4b4; --accent-deep: #eeeeee; --accent-soft: #222222; --accent-solid: #6e6e6e;
    --band: #2a2a2a; --on-accent: #111111;
  }
  :root[data-pack='indigo'] {
    --paper: #18191b; --card: #212225;
    --ink: #edeef0; --ink-soft: #b0b4ba; --ink-faint: #777b84;
    --line: #2b2e33; --line-strong: #43484e;
    --accent: #9eb1ff; --accent-deep: #d6e1ff; --accent-soft: #182449; --accent-solid: #3e63dd;
    --band: #1d2e62; --on-accent: #111113;
  }
  :root[data-pack='warm-paper'] {
    --paper: #191918; --card: #222221;
    --ink: #eeeeec; --ink-soft: #b5b3ad; --ink-faint: #7c7b74;
    --line: #2e2d2b; --line-strong: #494844;
    --accent: #d4b3a5; --accent-deep: #ede0d9; --accent-soft: #262220; --accent-solid: #a18072;
    --band: #302a27; --on-accent: #111110;
  }
  :root[data-pack='plum'] {
    --paper: #1a191b; --card: #232225;
    --ink: #eeeef0; --ink-soft: #b5b2bc; --ink-faint: #7c7a85;
    --line: #2d2b31; --line-strong: #49474e;
    --accent: #baa7ff; --accent-deep: #e2ddfe; --accent-soft: #291f43; --accent-solid: #6e56cf;
    --band: #33255b; --on-accent: #121113;
  }
}

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(22px, env(safe-area-inset-left)) 0; padding-right: max(22px, env(safe-area-inset-right)); padding-left: max(22px, env(safe-area-inset-left)); }

.fig { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; row-gap: 4px; }
.fig .muted { color: var(--ink-faint); font-weight: 600; }
.fig-right { margin-left: auto; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.brand { display: flex; align-items: baseline; color: var(--accent-deep); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .word { display: inline-flex; align-items: baseline; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand .nmark { height: 0.73em; width: auto; margin-right: 0.055em; fill: currentColor; flex: none; }
.brand .nmark .fold { opacity: 0.65; }
.brand .word .tld { color: inherit; opacity: 0.65; font-weight: 600; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-login { border-left: 1px solid var(--line-strong); padding-left: 24px; color: var(--ink) !important; font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; background: var(--card); font-size: 16px; line-height: 1; color: var(--ink); }

/* theme pack switcher */
.pack-menu { position: relative; }
.pack-menu summary { list-style: none; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: conic-gradient(var(--accent) 0 50%, var(--accent-soft) 50% 100%); display: block; }
.pack-menu summary::-webkit-details-marker { display: none; }
.pack-menu[open] summary { outline: 2px solid var(--accent); outline-offset: 2px; }
.pack-list { position: absolute; right: 0; top: calc(100% + 10px); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; min-width: 170px; z-index: 60; }
.pack-list button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; }
.pack-list button:hover { background: var(--paper); }
.pack-list button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.pack-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid rgba(128,128,128,0.25); }

/* cards, buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background 0.12s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent) !important; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent), var(--ink) 15%); }
.btn-secondary { background: var(--card); color: var(--ink) !important; border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-faint); }
.btn-link { font-weight: 600; color: var(--accent); text-decoration: none; }

/* hero */
.hero, .lp-hero { padding: 56px 0 8px; }
.hero h1, .lp-h1 { font-size: clamp(38px, 4.8vw, 56px); line-height: 1.05; font-weight: 700; margin: 14px 0 18px; }
.hero h1 .know { color: var(--accent); }
.hero .lede, .page-hero .lede { color: var(--ink-soft); font-size: 17px; max-width: 54ch; }
.hero-ctas { display: flex; gap: 14px; margin: 26px 0 10px; flex-wrap: wrap; align-items: center; }

/* artifact gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; padding: 40px 0 8px; }
.art { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.art .fig { font-size: 11.5px; }
.podcast-row { display: grid; grid-template-columns: 108px 1fr; gap: 16px; align-items: center; }
.art-cover { width: 108px; height: 108px; border-radius: 12px; background: linear-gradient(160deg, var(--accent) 0%, var(--band) 100%); color: var(--on-accent); display: flex; align-items: flex-end; padding: 10px; font-weight: 700; font-size: 13px; line-height: 1.2; }
.pod-title { font-weight: 700; font-size: 17px; }
.pod-sub { color: var(--ink-soft); font-size: 13.5px; margin: 4px 0 10px; }
.player { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.player button.play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.player .wave { display: flex; align-items: center; gap: 2px; height: 34px; overflow: hidden; }
.player .wave span { width: 3px; background: var(--accent-solid); border-radius: 2px; opacity: 0.9; flex: none; }
.player-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }
.book-spread { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 190px; }
.book-illus { background: var(--accent-soft); display: grid; place-items: center; }
.book-illus svg { width: 92%; height: auto; }
.book-text { padding: 16px 18px; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); border-left: 1px solid var(--line); background: var(--card); }
.book-text em { color: var(--ink); font-style: italic; }
.itin-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.itin-photo { border-radius: 12px; overflow: hidden; min-height: 160px; }
.itin-photo svg { width: 100%; height: 100%; display: block; }
.itin-title { font-weight: 700; font-size: 16px; }
.itin-sub { color: var(--ink-faint); font-size: 12.5px; margin-bottom: 8px; }
.stop { display: grid; grid-template-columns: 58px 1fr; gap: 10px; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.stop:last-child { border-bottom: 0; }
.stop .t { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.stop .s { color: var(--ink-soft); }
.tl { position: relative; padding-top: 8px; }
.tl-line { position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: var(--line-strong); }
.tl-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.tl-item { text-align: center; font-size: 12.5px; color: var(--ink-soft); }
.tl-item .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-solid); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-strong); margin: 8px auto 10px; }
.tl-item .yr { font-weight: 700; color: var(--ink); font-size: 14px; }
.tl-item .th { width: 64px; height: 46px; border-radius: 8px; background: var(--accent-soft); margin: 8px auto 6px; display: grid; place-items: center; color: var(--accent); }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.bubble.you { background: var(--accent-soft); color: var(--ink); justify-self: start; border-bottom-left-radius: 4px; }
.bubble.tutor { background: var(--accent); color: var(--on-accent); justify-self: end; border-bottom-right-radius: 4px; }
.chat .hint { color: var(--ink-faint); font-size: 12px; font-style: italic; }
.cp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-col { border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; }
.cp-col .tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 8px; }
.cp-point { background: var(--accent-soft); color: var(--ink); }
.cp-point .tag { color: var(--accent); }
.cp-counter { background: var(--terra-soft); color: var(--ink); }
.cp-counter .tag { color: var(--terra); }

/* sections, grids, tiles */
.section { padding: 56px 0; }
.section-rule { border-top: 1px solid var(--line-strong); }
.section-head { display: flex; align-items: baseline; margin-bottom: 24px; }
.section h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; margin: 10px 0 8px; }
.section .sub { color: var(--ink-soft); max-width: 60ch; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 20px; }
.tile h3 { font-size: 17px; margin: 0 0 8px; }
.tile p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.tile .fig { margin-bottom: 10px; }
.tile-link { display: block; color: inherit !important; text-decoration: none; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.tile-link:hover { text-decoration: none; border-color: var(--accent-solid); box-shadow: var(--shadow); }

/* comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14.5px; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.compare .group td { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .dim { color: var(--ink-faint); }
.compare .fname { font-weight: 600; }
.compare .fname a { color: inherit; text-decoration: none; }
.compare .fname a:hover { color: var(--accent); }
.compare .fdesc { color: var(--ink-faint); font-size: 13px; font-weight: 400; }
.table-scroll { overflow-x: auto; }

/* pricing */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price .amount { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.price .per { font-size: 16px; color: var(--ink-faint); font-weight: 500; }
.price .body { padding: 20px; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.price .cta { padding: 0 20px 20px; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 3px 10px; border-radius: 999px; }
.included { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.included li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.included li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* FAQ, snippets, band, footer */
.faq { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 20px 18px; color: var(--ink-soft); font-size: 14.5px; }
.snippet { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r-sm); overflow-x: auto; }
.snippet .prompt { color: var(--accent-solid); }
.cta-band { background: var(--band); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .sub { color: rgba(255,255,255,0.75); }
.cta-band .fig { color: rgba(255,255,255,0.7); }
.cta-band .fig .muted { color: rgba(255,255,255,0.55) !important; }
.cta-band .btn-secondary { border-color: transparent; background: #fff; color: var(--band) !important; }
.cta-band .btn-link { color: rgba(255,255,255,0.85); }
.site-footer { border-top: 1px solid var(--line-strong); background: var(--card); padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid .fig { margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul a { color: var(--ink-soft); font-size: 14.5px; text-decoration: none; }
.footer-grid ul a:hover { color: var(--ink); }
.footer-desc { color: var(--ink-faint); font-size: 14px; max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); flex-wrap: wrap; }
.gh-link { color: var(--ink-faint); display: inline-flex; padding: 8px; margin: -8px; }
.gh-link:hover { color: var(--ink); }
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.06; font-weight: 700; margin: 14px 0 16px; max-width: 24ch; }
.form-card .card-body { padding: 24px; }

/* creator pages */
.lp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.lp-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.lp-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.lp-points .arrow { color: var(--accent); font-weight: 700; }
.lp-points strong { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.lp-points span { color: var(--ink-soft); font-size: 14.5px; }
.phone { width: min(360px, 100%); margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 40px; background: var(--card); box-shadow: var(--shadow); padding: 10px; }
.phone-screen { border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: var(--card); }
.phone-status { display: flex; justify-content: space-between; padding: 10px 22px 6px; font-size: 11px; color: var(--ink-faint); }
.feed-head { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 18px 0; }
.feed-art { width: 96px; height: 96px; border-radius: 12px; background: linear-gradient(160deg, var(--accent), var(--band)); display: grid; place-items: center; position: relative; overflow: hidden; }
.feed-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feed-art .nb { position: relative; color: #fff; font-weight: 700; font-size: 13px; text-align: center; line-height: 1.2; }
.feed-art .nb small { display: block; font-weight: 500; font-size: 7.5px; letter-spacing: 0.12em; margin-top: 3px; opacity: 0.85; }
.feed-title { font-weight: 700; font-size: 17px; line-height: 1.2; }
.feed-private { display: inline-flex; gap: 5px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; margin: 6px 0; }
.feed-desc { font-size: 12px; color: var(--ink-faint); line-height: 1.4; }
.feed-sub { display: flex; gap: 10px; padding: 12px 18px; }
.sub-btn { flex: 1; background: var(--accent); color: var(--on-accent); border-radius: 999px; font-weight: 600; font-size: 14px; padding: 9px 0; text-align: center; }
.share-btn { width: 40px; border: 1px solid var(--line-strong); border-radius: 999px; display: grid; place-items: center; color: var(--ink-soft); }
.feed-tabs { display: flex; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
.feed-tabs span { padding: 8px 0; }
.feed-tabs .on { color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent); }
.ep { display: grid; grid-template-columns: 40px 1fr 34px; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.ep-num { font-size: 9.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 8px; text-align: center; padding: 4px 2px; line-height: 1.3; }
.ep-title { font-weight: 600; font-size: 13px; line-height: 1.25; }
.ep-meta { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.ep-play { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 10px; }
.feed-rss { margin: 12px 14px 14px; border: 1.5px dashed var(--accent-solid); border-radius: 10px; padding: 10px 12px; }
.feed-rss .t { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 12.5px; }
.feed-rss .u { font-size: 10.5px; color: var(--accent); margin-top: 4px; word-break: break-all; }
.phone-caption { text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-faint); margin-top: 14px; text-transform: uppercase; }
.formats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.format { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); padding: 16px 14px; }
.format .num { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.format h3 { font-size: 14.5px; margin: 10px 0 6px; }
.format p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.format .dur { font-size: 10.5px; font-weight: 600; color: var(--ink-faint); display: block; margin-top: 10px; }
.shelf-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-sm); padding: 26px 26px 0; overflow: hidden; }
.shelf { display: flex; align-items: flex-end; gap: 6px; height: 200px; }
.book { border: 1px solid var(--line-strong); border-radius: 4px 4px 0 0; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; padding: 10px 0; flex: none; }
.book.s1 { width: 30px; height: 160px; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.book.s2 { width: 26px; height: 178px; background: var(--card); color: var(--ink); }
.book.s3 { width: 34px; height: 150px; background: var(--band); color: #fff; border-color: var(--band); }
.book.s4 { width: 24px; height: 170px; background: var(--accent-soft); color: var(--accent); }
.book.s5 { width: 30px; height: 158px; background: var(--card); color: var(--ink); }
.book.s6 { width: 26px; height: 182px; background: var(--terra); color: #fff; border-color: var(--terra); }
.book-face { flex: none; width: 118px; height: 176px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--card); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; padding: 12px 10px; margin-left: 8px; }
.book-face .tt { font-weight: 700; font-size: 13px; line-height: 1.2; }
.book-face .au { font-size: 9px; font-weight: 600; color: var(--ink-faint); margin-top: 6px; letter-spacing: 0.06em; }
.book-face .mark { margin-top: auto; height: 44px; border-top: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.shelf-board { border-top: 2px solid var(--line-strong); margin: 0 -26px; padding: 8px 26px 10px; font-size: 11px; font-weight: 600; color: var(--ink-faint); display: flex; justify-content: space-between; }
.reader { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); margin-top: 24px; }
.reader .pg { padding: 22px 20px; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }
.reader .pg + .pg { border-left: 1px solid var(--line); }
.reader .ch { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.reader h3 { font-size: 17px; margin: 8px 0 10px; }
.reader .drop::first-letter { font-size: 34px; font-weight: 700; float: left; line-height: 0.9; padding-right: 6px; color: var(--ink); }
.reader .illus { border: 1px solid var(--line); border-radius: 8px; background: var(--accent-soft); height: 110px; display: grid; place-items: center; margin-bottom: 12px; }
.reader .illus svg { width: 80%; height: 80%; }
.reader .fn { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; font-size: 11px; color: var(--ink-faint); }
.reader .pgno { font-size: 10px; color: var(--ink-faint); text-align: center; margin-top: 10px; }
.cite { font-size: 12px; font-weight: 600; color: var(--accent); }
.specimen { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.spec-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); padding: 18px; display: flex; flex-direction: column; gap: 10px; color: inherit !important; text-decoration: none; }
a.spec-cell:hover { border-color: var(--accent-solid); text-decoration: none; }
.spec-cell .idx { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.spec-cell h3 { font-size: 15.5px; margin: 0; }
.spec-cell p { font-size: 12.5px; color: var(--ink-soft); margin: 0; flex: 1; }
.spec-cell svg { width: 64px; height: 44px; }
.sch { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.sch-a { stroke: var(--accent); stroke-width: 1.2; fill: none; }
.sch-fa { fill: var(--accent); stroke: none; }
.sch-fs { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 1.2; }

/* legacy */
.spec { margin: 40px 0 0; max-width: 520px; }
.spec dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; padding: 18px 20px; font-size: 13px; }
.spec dt { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11.5px; }
.spec dd { margin: 0; color: var(--ink); }
.qa-card .q, .qa-card .a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.qa-card .marker { color: var(--accent); font-weight: 700; }
.qa-card .q p { font-weight: 600; font-size: 17px; margin: 0; }
.qa-card hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.qa-card .a p { margin: 0; color: var(--ink-soft); }
.qa-flex { display: grid; grid-template-columns: 1fr; }
.qa-main { padding: 20px; }
.evidence, .connectors { display: none; }
.sources-card { margin-top: 20px; }
.source-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.source-num { color: var(--accent); background: var(--accent-soft); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.source-title { font-weight: 600; font-size: 15px; }
.source-meta { color: var(--ink-faint); font-size: 13px; margin-top: 2px; }
.source-ref { font-size: 12px; color: var(--accent); text-align: right; }
.gen-meta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; font-size: 11.5px; color: var(--ink-faint); flex-wrap: wrap; }
.make-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.make-card .num { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; margin-right: 10px; }
.make-card h3 { font-size: 19px; }
.make-card .desc { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 18px; }
.make-card .fig-caption { font-size: 11.5px; font-weight: 600; color: var(--accent); margin-top: 14px; }
.flash-pair { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 8px; align-items: stretch; }
.flash { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.flash .tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.flash p { margin: 0; font-size: 14px; font-weight: 500; flex: 1; }
.flash .foot { font-size: 11px; color: var(--ink-faint); }
.flash-arrow { display: grid; place-items: center; color: var(--ink-faint); }
.kgraph svg { width: 100%; height: auto; display: block; }
.kgraph .node rect { fill: var(--card); stroke: var(--ink-soft); stroke-width: 1.2; }
.kgraph .node.hub rect { stroke: var(--accent); stroke-width: 1.6; }
.kgraph text { font-family: var(--sans); font-size: 11px; fill: var(--ink); }
.kgraph .hub text { fill: var(--accent); font-weight: 600; }
.kgraph line { stroke: var(--accent-solid); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0.75; }

/* responsive */
@media (max-width: 960px) {
  .gallery, .grid-3, .grid-4, .make-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .formats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .specimen { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line-strong); flex-direction: column; padding: 18px 0 22px; gap: 14px; text-align: center; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; }
  .nav-login { border-left: 0; padding-left: 0; }
  .nav-toggle { display: block; }
  .pack-menu { justify-self: center; }
  .pack-list { left: 50%; right: auto; transform: translateX(-50%); }
  .gallery, .grid-2, .grid-3, .grid-4, .make-grid, .price-cards, .cp { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr 1fr; }
  .included { columns: 1; }
  .podcast-row { grid-template-columns: 84px 1fr; }
  .art-cover { width: 84px; height: 84px; font-size: 11px; }
  .itin-row { grid-template-columns: 1fr; }
  .itin-photo { min-height: 120px; }
  .book-spread { grid-template-columns: 1fr; }
  .book-text { border-left: 0; border-top: 1px solid var(--line); }
  .tl-items { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tl-line { display: none; }
  .shelf { height: 170px; width: max-content; min-width: 100%; }
  .shelf-wrap { overflow-x: auto; }
  .reader { grid-template-columns: 1fr; }
  .reader .pg + .pg { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .specimen { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tile-link { transition: none; }
}
