/* ============================================================================
   Comics AI — comic-book design system.
   Palette from comicsai.com (near-black ink + #00bbf9 blue) plus the app's
   signature yellow. Display font: Komika Axis (same as the app). Body: Inter.
   ========================================================================== */

/* ---------- Fonts (self-hosted; CSP allows 'self' only) ---------- */
@font-face {
  font-family: 'Komika Axis';
  src: url('/fonts/KomikaAxis.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg:      #0b111c;
  --bg-2:    #0f1726;
  --panel:   #141f33;
  --panel-2: #182742;
  --line:    rgba(244, 247, 255, .14);
  --ink:     #0c0f16;            /* near-black for text on yellow */
  --paper:   #f6f8ff;            /* comic paper white */
  --text:    #f4f7ff;
  --muted:   rgba(244, 247, 255, .72);
  --faint:   rgba(244, 247, 255, .45);
  --blue:    #00bbf9;
  --blue-2:  #0099ff;
  --yellow:  #ffd233;
  --pink:    #ff5ea0;
  --radius:  18px;
  --shadow-pop: 7px 7px 0 rgba(0, 0, 0, .45);
  --font-display: 'Komika Axis', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip; /* the tilted style ticker intentionally bleeds past both edges */
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Halftone comic texture used across sections */
.halftone {
  background-image: radial-gradient(circle, rgba(244,247,255,.07) 1.3px, transparent 1.4px);
  background-size: 16px 16px;
}

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--yellow); margin: 0 0 14px;
}
.eyebrow__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); display: inline-block;
  box-shadow: 3px 3px 0 rgba(0,0,0,.4); transform: rotate(12deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: 16px; letter-spacing: .5px;
  padding: 14px 26px; border-radius: 999px; border: 3px solid var(--ink);
  white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-pop); text-decoration: none;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-.5deg); box-shadow: 9px 9px 0 rgba(0,0,0,.45); }
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--blue { background: var(--blue); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--small { padding: 9px 18px; font-size: 13px; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }

/* App Store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 16px; padding: 10px 20px;
  box-shadow: var(--shadow-pop); transition: transform .15s ease, box-shadow .15s ease;
}
.appstore-badge:hover { transform: translate(-2px,-2px) rotate(-.6deg); box-shadow: 9px 9px 0 rgba(0,0,0,.45); }
.appstore-badge__apple { width: 30px; height: 30px; flex: none; }
.appstore-badge__text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.appstore-badge__text small { font-size: 11px; font-weight: 600; opacity: .75; }
.appstore-badge__text strong { font-family: var(--font-display); font-size: 17px; }
.appstore-badge--pop { background: var(--yellow); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 17, 28, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.nav__logo { border-radius: 9px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.nav__name { font-family: var(--font-display); font-size: 18px; letter-spacing: .5px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .15s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--yellow); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__links.is-open { max-height: 340px; }
  .nav__links a { padding: 14px 22px; width: 100%; }
  /* Brand + CTA + burger must fit a 375px header without overlapping. */
  .nav__inner { gap: 10px; }
  .nav__name { font-size: 16px; }
  .nav__actions { gap: 4px; }
  .nav__actions .btn--small { padding: 8px 13px; font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 110px;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(0, 187, 249, .16), transparent 60%),
    radial-gradient(900px 460px at -10% 110%, rgba(255, 210, 51, .12), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 62px);
  letter-spacing: .5px; margin-bottom: 18px;
}
.hero h1 .pow { color: var(--yellow); text-shadow: 4px 4px 0 rgba(0,0,0,.5); display: inline-block; transform: rotate(-2deg); }
.hero h1 .zap { color: var(--blue); text-shadow: 4px 4px 0 rgba(0,0,0,.5); display: inline-block; transform: rotate(1.5deg); }
.hero__sub { font-size: 19px; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 22px; }
.hero__note { color: var(--faint); font-size: 13.5px; }

.hero__stage { position: relative; display: flex; justify-content: center; }
.hero__shot {
  width: min(330px, 78%); border-radius: 34px;
  border: 4px solid var(--ink); box-shadow: 14px 14px 0 rgba(0,0,0,.45);
  transform: rotate(2.2deg);
  animation: floaty 7s ease-in-out infinite;
}
.hero__sticker {
  position: absolute; font-family: var(--font-display); color: var(--ink);
  padding: 10px 16px; border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 6px 6px 0 rgba(0,0,0,.45); z-index: 2; font-size: 16px; white-space: nowrap;
}
.hero__sticker--pow { background: var(--yellow); top: 6%; left: 2%; transform: rotate(-8deg); animation: floaty 6s ease-in-out infinite .6s; }
.hero__sticker--zap { background: var(--blue); bottom: 16%; right: 0%; transform: rotate(7deg); animation: floaty 6.6s ease-in-out infinite 1.1s; }
.hero__sticker--boom { background: var(--pink); top: 44%; left: -4%; transform: rotate(-4deg); animation: floaty 7.4s ease-in-out infinite .3s; }

.hero__burst { position: absolute; width: 90px; height: 90px; color: var(--yellow); opacity: .9; animation: spin-slow 26s linear infinite; }
.hero__burst--1 { top: -18px; right: 6%; }
.hero__burst--2 { bottom: -8px; left: 8%; width: 64px; height: 64px; color: var(--blue); animation-duration: 34s; animation-direction: reverse; }

@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin-slow { to { rotate: 360deg; } }

/* Hero on phones/small tablets: single column, full-width headline, compact phone stage
   (the desktop 2-col grid squeezes to one word per line and crops the mockup). */
@media (max-width: 960px) {
  .hero { padding: 44px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 48px); }
  .hero__sub { font-size: 16.5px; margin-bottom: 24px; }
  .hero__stage { max-width: 340px; margin: 0 auto; }
  .hero__shot { width: min(250px, 74%); }
  .hero__sticker { font-size: 14px; padding: 8px 12px; }
  .hero__burst { width: 64px; height: 64px; }
  .hero__burst--2 { width: 46px; height: 46px; }
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 46px; }
.section__head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); }
.section__sub { color: var(--muted); font-size: 17.5px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 26px 24px 22px; position: relative;
  transition: transform .18s ease;
}
.feature:hover { transform: translateY(-6px) rotate(-.4deg); }
.feature:nth-child(even):hover { transform: translateY(-6px) rotate(.4deg); }
.feature__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,.4); margin-bottom: 16px;
  color: var(--ink);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature__icon--yellow { background: var(--yellow); }
.feature__icon--blue { background: var(--blue); }
.feature__icon--pink { background: var(--pink); }
.feature h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: .3px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ---------- Style ticker (marquee) ---------- */
.ticker { overflow: hidden; border-block: 3px solid var(--ink); background: var(--yellow); transform: rotate(-1deg) scale(1.02); }
.ticker__track { display: flex; gap: 0; width: max-content; animation: ticker 30s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--font-display); color: var(--ink); font-size: 17px;
  padding: 13px 24px; white-space: nowrap; display: inline-flex; align-items: center; gap: 22px;
}
.ticker__item::after { content: '★'; font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Screenshots ---------- */
.screens { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.screens__item { width: min(250px, 44vw); position: relative; }
.screens__item img {
  width: 100%; border-radius: 26px; border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.screens__item:nth-child(odd) img { transform: rotate(-1.6deg); }
.screens__item:nth-child(even) img { transform: rotate(1.6deg); }
.screens__item:hover img { transform: rotate(0) translateY(-8px); }
.screens__cap { text-align: center; font-family: var(--font-display); font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--panel); border: 3px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 30px 24px 24px;
}
.step__num {
  position: absolute; top: -20px; left: 20px;
  font-family: var(--font-display); font-size: 17px; color: var(--ink);
  background: var(--blue); border: 3px solid var(--ink); border-radius: 12px;
  padding: 5px 13px; box-shadow: 4px 4px 0 rgba(0,0,0,.4); transform: rotate(-3deg);
}
.step h3 { font-family: var(--font-display); font-size: 17px; margin-top: 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 30px 26px; display: flex; flex-direction: column; position: relative;
}
.price-card--hot { background: var(--panel-2); border-color: var(--yellow); }
.price-card__flag {
  position: absolute; top: -18px; right: 18px;
  font-family: var(--font-display); font-size: 12.5px; color: var(--ink);
  background: var(--pink); border: 3px solid var(--ink); border-radius: 10px;
  padding: 4px 12px; transform: rotate(4deg); box-shadow: 4px 4px 0 rgba(0,0,0,.4);
}
.price-card h3 { font-family: var(--font-display); font-size: 19px; }
.price-card__price { font-family: var(--font-display); font-size: 38px; margin: 6px 0 2px; }
.price-card__per { color: var(--faint); font-size: 13.5px; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--muted); font-size: 15px; }
.price-card li::before { content: '✔'; color: var(--yellow); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.pricing__note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 26px; }
.pricing__note strong { color: var(--yellow); font-weight: 700; }

.packs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }
.pack {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.4); padding: 10px 20px;
  font-family: var(--font-display); font-size: 14px;
}
.pack__bolt { color: var(--yellow); }
.pack small { color: var(--faint); font-family: var(--font-body); font-weight: 600; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(0,0,0,.4); margin-bottom: 16px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-display); font-size: 22px; color: var(--yellow);
  transition: transform .2s ease; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq-item__body a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 96px 0;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(0, 187, 249, .18), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 36em; margin: 0 auto 30px; }

/* ---------- Post cards / guides ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; background: var(--panel);
  border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-pop); color: var(--text);
  transition: transform .18s ease;
}
.post-card:hover { transform: translateY(-6px) rotate(-.35deg); }
.post-card__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--ink); }
.post-card__art svg { width: 100%; height: 100%; }
.post-card__art img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.post-card__tag {
  align-self: flex-start; font-family: var(--font-display); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 8px; padding: 3px 10px; box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.post-card__title { font-family: var(--font-display); font-size: 16.5px; line-height: 1.3; }
.post-card__desc { color: var(--muted); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { display: inline-flex; gap: 7px; align-items: center; color: var(--faint); font-size: 12.5px; margin-top: 4px; }

/* Card hero color themes */
.hero-bolt   { background: linear-gradient(135deg, #14243f, #0d1830); color: var(--yellow); }
.hero-pow    { background: linear-gradient(135deg, #3f1430, #240d1f); color: var(--pink); }
.hero-splash { background: linear-gradient(135deg, #0e2c40, #0a1c2c); color: var(--blue); }
.hero-ink    { background: linear-gradient(135deg, #1c2231, #10141f); color: var(--paper); }
.hero-zap    { background: linear-gradient(135deg, #2c2c12, #1c1a0c); color: var(--yellow); }

.guide-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.guide-chip {
  font-family: var(--font-display); font-size: 12.5px; color: var(--muted);
  border: 2px solid var(--line); border-radius: 999px; padding: 7px 16px; transition: all .15s;
}
.guide-chip:hover { color: var(--yellow); border-color: var(--yellow); }
.guide-chip.is-active { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.guide-empty { color: var(--muted); }

/* ---------- Article page ---------- */
.article-main { background: var(--bg); }
.post-wrap { max-width: 1020px; margin: 0 auto; padding: 40px 22px 90px; }
.post-crumbs { font-size: 13.5px; color: var(--faint); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-crumbs a { color: var(--muted); }
.post-crumbs a:hover { color: var(--yellow); }

.post-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 34px 34px; margin-bottom: 40px;
}
.post-hero__art svg { width: 100%; max-height: 150px; }
.post-hero__tag {
  display: inline-block; font-family: var(--font-display); font-size: 11.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 8px; padding: 3px 10px; margin-bottom: 12px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.post-hero h1 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 36px); }
.post-hero__desc { color: var(--muted); font-size: 16.5px; }
.post-hero__meta { color: var(--faint); font-size: 13.5px; margin: 0; }
@media (max-width: 760px) { .post-hero { grid-template-columns: 1fr; } .post-hero__art { display: none; } }

.post-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }
.post-toc {
  position: sticky; top: 90px; background: var(--panel); border: 3px solid var(--ink);
  border-radius: var(--radius); box-shadow: 6px 6px 0 rgba(0,0,0,.4); padding: 18px 20px;
}
.post-toc__title { font-family: var(--font-display); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; }
.post-toc ul { list-style: none; margin: 0; padding: 0; }
.post-toc li { margin: 8px 0; }
.post-toc a { color: var(--muted); font-size: 14px; }
.post-toc a:hover { color: var(--yellow); }
@media (max-width: 900px) { .post-toc { position: static; margin-bottom: 8px; } }

.post-body { min-width: 0; font-size: 16.5px; }
.post-body h2 { font-family: var(--font-display); font-size: 24px; margin: 1.7em 0 .6em; scroll-margin-top: 90px; }
.post-body h3 { font-family: var(--font-display); font-size: 18px; margin: 1.5em 0 .5em; }
.post-body p, .post-body li { color: var(--muted); }
.post-body strong { color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin: .4em 0; }
.post-body figure { margin: 1.8em 0; }
.post-body figure svg { width: 100%; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.4); }
.post-body figcaption { color: var(--faint); font-size: 13.5px; text-align: center; margin-top: 10px; }
.post-body blockquote {
  margin: 1.6em 0; padding: 16px 22px; border-left: 6px solid var(--yellow);
  background: var(--panel); border-radius: 0 14px 14px 0; color: var(--text); font-weight: 500;
}
.post-body code {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; font-size: .9em; color: var(--yellow);
}
.post-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.post-body th, .post-body td { border: 2px solid var(--line); padding: 10px 14px; text-align: left; color: var(--muted); }
.post-body th { background: var(--panel); color: var(--text); font-family: var(--font-display); font-size: 13px; letter-spacing: .5px; }

.post-ctacard {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  border: 3px solid var(--yellow); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 26px 28px; margin-top: 48px;
}
.post-ctacard h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 6px; }
.post-ctacard p { color: var(--muted); margin: 0; max-width: 34em; }

.post-related { margin-top: 70px; }
.post-related h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 26px; }
.post-related__more { text-align: center; margin-top: 34px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 50px 22px 90px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); }
.legal__updated {
  display: inline-block; font-family: var(--font-display); font-size: 13px;
  color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 9px;
  padding: 4px 12px; box-shadow: 3px 3px 0 rgba(0,0,0,.4); margin-bottom: 34px;
}
.legal h2 { font-family: var(--font-display); font-size: 21px; margin: 1.9em 0 .6em; scroll-margin-top: 90px; }
.legal h3 { font-size: 17px; margin: 1.5em 0 .4em; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 15.8px; }
.legal strong { color: var(--text); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: .45em 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.legal th, .legal td { border: 2px solid var(--line); padding: 10px 14px; text-align: left; color: var(--muted); }
.legal th { background: var(--panel); color: var(--text); font-family: var(--font-display); font-size: 12.5px; letter-spacing: .5px; }
.legal__toc {
  background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(0,0,0,.4); padding: 20px 24px; margin: 30px 0 10px;
}
.legal__toc p { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); margin: 0 0 10px; }
.legal__toc ol { margin: 0; columns: 2; column-gap: 30px; }
.legal__toc a { color: var(--muted); font-size: 14.5px; }
.legal__toc a:hover { color: var(--yellow); }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 48px); }
.notfound__actions { display: flex; gap: 16px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 3px solid var(--ink); padding: 64px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; margin: 16px 0 22px; max-width: 30em; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__head { font-family: var(--font-display); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); margin: 0 0 6px; }
.footer__col a { color: var(--muted); font-size: 14.5px; }
.footer__col a:hover { color: var(--yellow); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; color: var(--faint); font-size: 13.5px; }
.footer__base p { margin: 0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
