/* ============================================================
   Tomson Studio — comic / graphic-novel landing (index.html)
   ============================================================ */

:root {
  --paper: #fff8e7;
  --paper-2: #f5ecd4;
  --ink: #141414;
  --ink-2: #2a2a2a;
  --ink-3: #4a4a4a;
  --blue: #4a90d9;
  --blue-dark: #2d6cb5;
  --red: #e8453c;
  --red-dark: #c42e26;
  --yellow: #f4d030;
  --yellow-dark: #d4a820;
  --orange: #f4a030;
  --green: #5cb85c;
  --border: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 0;
  --font-display: "Bangers", "Impact", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --halftone: radial-gradient(circle, rgba(20, 20, 20, 0.18) 1.2px, transparent 1.2px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Halftone paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: var(--halftone);
  background-size: 5px 5px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border: var(--border);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
}
.btn-comic-blue {
  background: var(--blue);
  color: #fff;
}
.btn-lg { padding: 16px 32px; font-size: 1.2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
  box-shadow: 0 4px 0 var(--ink);
}
.nav { display: flex; align-items: center; height: 68px; gap: 6px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 20px; }
.nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 12px;
  border: 2px solid transparent;
  transition: border-color 0.12s, background 0.12s;
}
.nav-links a:hover {
  border-color: var(--ink);
  background: var(--yellow);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--yellow);
  border: var(--border);
  color: var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.mobile-menu {
  display: none;
  border-bottom: var(--border);
  background: var(--paper-2);
}
.mobile-menu.open { display: block; }
.mobile-menu .container { padding-top: 12px; padding-bottom: 18px; }
.mobile-menu a {
  display: block;
  padding: 13px 4px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px dashed rgba(20, 20, 20, 0.2);
}
.mobile-menu .btn { width: 100%; margin-top: 12px; border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  text-align: center;
  border-bottom: var(--border);
  background:
    linear-gradient(135deg, var(--red) 0%, var(--orange) 45%, var(--yellow) 100%);
  overflow: hidden;
}

/* Radial speed lines */
.hero-speedlines {
  position: absolute;
  inset: -20%;
  background: repeating-conic-gradient(
    from 0deg at 50% 42%,
    transparent 0deg 7deg,
    rgba(20, 20, 20, 0.07) 7deg 8deg
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--halftone);
  background-size: 5px 5px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 2; }

/* Floating comic stickers */
.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.comic-burst {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
    50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 88px;
  text-align: center;
  line-height: 1;
}
.burst-1 {
  top: 14%;
  left: 4%;
  transform: rotate(-18deg);
  background: var(--blue);
  color: #fff;
}
.burst-2 {
  top: 18%;
  right: 5%;
  transform: rotate(14deg);
  background: #fff;
}
.burst-3 {
  bottom: 18%;
  left: 7%;
  transform: rotate(8deg);
  background: var(--red);
  color: #fff;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
}

.comic-star {
  position: absolute;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 3px solid var(--ink);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
    50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
}
.star-1 { top: 42%; left: 2%; transform: rotate(12deg) scale(0.9); background: var(--yellow); }
.star-2 { top: 55%; right: 3%; transform: rotate(-20deg) scale(1.1); background: var(--blue); }
.star-3 { bottom: 28%; right: 8%; transform: rotate(5deg) scale(0.75); background: #fff; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  background: #fff;
  border: var(--border);
  padding: 6px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transform: rotate(-2deg);
  position: relative;
}
.hero-badge::before {
  content: "★";
  position: absolute;
  top: -14px;
  right: -10px;
  font-size: 1.2rem;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  max-width: 900px;
  margin: 0 auto;
}
.hero-line {
  display: block;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    5px 5px 0 var(--ink),
    -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink);
}
.hero-line:nth-child(1) { transform: rotate(-1.5deg); }
.hero-line:nth-child(2) { transform: rotate(1deg) scale(1.02); color: var(--yellow); }
.hero-line:nth-child(3) { transform: rotate(-0.8deg); }

.hero .lede {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 580px;
  margin: 28px auto 0;
  background: #fff;
  border: var(--border);
  padding: 16px 22px 18px;
  box-shadow: var(--shadow-sm);
  border-radius: 18px;
  position: relative;
  transform: rotate(0.5deg);
}
/* Speech bubble tail */
.hero .lede::before,
.hero .lede::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: solid transparent;
  pointer-events: none;
}
.hero .lede::before {
  margin-left: -14px;
  border-width: 14px 14px 0;
  border-top-color: var(--ink);
}
.hero .lede::after {
  margin-left: -10px;
  margin-top: -5px;
  border-width: 10px 10px 0;
  border-top-color: #fff;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  position: relative;
}
.hero-cta::before {
  content: "GO!";
  position: absolute;
  top: -28px;
  right: calc(50% - 180px);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--red);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
  transform: rotate(12deg);
  opacity: 0.9;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1deg);
}
.hero-trust span:nth-child(2) { transform: rotate(1.5deg); }
.hero-trust span:nth-child(3) { transform: rotate(-0.5deg); }
.hero-trust svg { flex: none; color: var(--green); }

@media (max-width: 680px) {
  .comic-burst { min-width: 64px; min-height: 64px; font-size: 0.7rem; padding: 6px; }
  .burst-1 { top: 8%; left: 2%; }
  .burst-2 { top: 10%; right: 2%; }
  .burst-3 { bottom: 12%; left: 2%; }
  .comic-star { width: 24px; height: 24px; }
  .star-2 { display: none; }
  .hero-cta::before { display: none; }
  .hero-line { -webkit-text-stroke: 1.5px var(--ink); }
}

/* ---------- Comic workflow ---------- */
.comic-workflow {
  padding: 48px 0 56px;
  border-bottom: var(--border);
  background: var(--paper-2);
}

.comic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--border);
  box-shadow: var(--shadow);
}

.comic-panel {
  position: relative;
  border: var(--border);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.comic-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--halftone);
  background-size: 5px 5px;
  opacity: 0.15;
  pointer-events: none;
}
.comic-panel > * { position: relative; z-index: 1; }

.panel-story { background: var(--blue); color: #fff; }
.panel-characters { background: var(--red); color: #fff; }
.panel-world { background: var(--yellow); color: var(--ink); }
.panel-movie { background: var(--orange); color: var(--ink); }

.step-star {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
    50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
  z-index: 2;
}
.panel-world .step-star { background: #fff; }
.panel-movie .step-star { background: var(--blue); color: #fff; }

.comic-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin: 0 0 12px 52px;
  text-transform: uppercase;
}
.panel-story h3,
.panel-characters h3 { text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2); }

.panel-art {
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: transparent;
  line-height: 0;
}
.panel-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: top;
}

.panel-caption {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.35;
}
.panel-story .panel-caption,
.panel-characters .panel-caption { opacity: 0.92; }

/* ---------- Value band ---------- */
.band {
  border-bottom: var(--border);
  background: #fff;
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.band-item {
  padding: 24px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: var(--border);
}
.band-item:first-child { border-left: none; }
.band-item svg {
  flex: none;
  color: var(--red);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 6px;
  width: 40px;
  height: 40px;
}
.band-item .t { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.03em; line-height: 1.2; }
.band-item .s { color: var(--ink-3); font-size: 0.78rem; line-height: 1.35; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border);
  padding: 4px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transform: rotate(-1deg);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.section-head p { color: var(--ink-3); margin-top: 14px; font-size: 1rem; font-weight: 500; }

/* ---------- Feature cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: var(--border);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border: 3px solid var(--ink);
  color: #fff;
  margin-bottom: 16px;
}
.card:nth-child(2) .icon { background: var(--red); }
.card:nth-child(3) .icon { background: var(--yellow); color: var(--ink); }
.card:nth-child(4) .icon { background: var(--orange); }
.card:nth-child(5) .icon { background: var(--green); }
.card:nth-child(6) .icon { background: var(--blue-dark); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.card p { color: var(--ink-3); font-size: 0.9rem; }

.card-visual { padding: 0; overflow: hidden; }
.card-visual .card-img {
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  background: transparent;
  line-height: 0;
}
.card-visual .card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: top;
}
.card-visual h3,
.card-visual p { padding-left: 22px; padding-right: 22px; }
.card-visual h3 { padding-top: 18px; margin-bottom: 8px; }
.card-visual p { padding-bottom: 22px; }

/* ---------- Models ---------- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.model-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 3px solid var(--ink);
  padding: 14px 16px;
  box-shadow: 3px 3px 0 var(--ink);
}
.model-card .m-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
}
.model-card .m-name { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.model-card .m-kind { color: var(--ink-3); font-size: 0.76rem; }

.byok-note {
  text-align: center;
  color: var(--ink-3);
  font-size: 0.88rem;
  margin-top: 24px;
  font-weight: 500;
}
.byok-note strong { color: var(--ink); font-weight: 700; }

/* ---------- SaaS explainer ---------- */
.saas-explainer {
  border-bottom: var(--border);
  background: var(--paper-2);
}
.saas-explainer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0 40px;
}
.saas-explainer-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 8px 0 12px;
}
.saas-explainer-copy p {
  color: var(--ink-2);
  font-weight: 500;
  max-width: 520px;
}
.saas-explainer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.saas-explainer-list li {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.saas-explainer-list strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: #fff;
  border: var(--border);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  background: var(--yellow);
  box-shadow: var(--shadow);
  transform: rotate(-0.5deg);
}
.price-badge {
  position: absolute;
  top: -16px;
  left: 28px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.price-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.price-card.featured .price-name { color: var(--ink); }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; }
.price-amount .amt {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
}
.price-amount .per { color: var(--ink-3); font-size: 0.9rem; font-weight: 600; }
.price-desc { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 20px; }
.price-features { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 500;
}
.price-features svg { color: var(--green); flex: none; margin-top: 2px; }
.price-card .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 3px solid var(--ink);
  background: #fff;
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-3); font-size: 0.9rem; }

/* ---------- Comic CTA banner ---------- */
.comic-cta-band {
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--yellow);
  padding: 0;
}
.comic-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.comic-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  flex: 1;
  min-width: 240px;
}
.comic-cta-inner .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta {
  text-align: center;
  border: var(--border);
  padding: 56px 32px;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  max-width: 560px;
  margin: 0 auto 14px;
  text-shadow: 3px 3px 0 var(--ink);
}
.cta p { max-width: 460px; margin: 0 auto 28px; opacity: 0.95; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--border);
  background: var(--ink);
  color: #fff;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.footer-brand img { height: 28px; margin-bottom: 14px; filter: brightness(1.1); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.88rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.12s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  color: rgba(255,255,255,0.5);
  font-size: 0.84rem;
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--yellow); }

/* ============================================================
   Inner pages: blog list, blog articles, legal, 404
   ============================================================ */

.gradient-text { color: var(--red); }

.btn-light {
  background: #fff;
  color: var(--ink);
}

/* ---------- Page hero (blog + legal) ---------- */
.page-hero {
  position: relative;
  padding: 56px 0 44px;
  text-align: center;
  overflow: hidden;
  border-bottom: var(--border);
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 55%, var(--yellow) 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--halftone);
  background-size: 6px 6px;
  opacity: 0.2;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  text-shadow:
    3px 3px 0 var(--ink),
    -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink);
}
.page-hero p {
  color: var(--ink);
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid var(--ink);
  display: inline-block;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}
.breadcrumb {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--ink);
  display: inline-block;
  padding: 5px 12px;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Blog list ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}
.post-thumb {
  border-bottom: var(--border);
  line-height: 0;
  background: var(--paper-2);
}
.post-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.post-card .body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card .tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 2px 10px;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.post-card p { color: var(--ink-3); font-size: 0.9rem; flex: 1; font-weight: 500; }
.post-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 2px dashed rgba(20, 20, 20, 0.2);
}
.post-card .read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: gap 0.12s ease;
}
.post-card:hover .read { gap: 9px; }

/* ---------- Article / legal prose ---------- */
.prose {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.prose .updated { color: var(--ink-3); font-size: 0.85rem; margin-bottom: 18px; font-weight: 600; }
.prose .lead {
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 28px;
  font-weight: 500;
  padding: 18px 20px;
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow-sm);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 36px 0 12px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin: 28px 0 10px;
}
.prose p { color: var(--ink-2); margin-bottom: 16px; font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { color: var(--ink-2); margin: 0 0 16px 22px; font-weight: 500; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a {
  color: var(--red);
  font-weight: 700;
  border-bottom: 2px solid var(--yellow);
}
.prose a:hover { background: var(--yellow); }

/* ---------- Legal pages ---------- */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 24px 24px 0;
  margin-bottom: -8px;
}
.legal-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, background 0.12s ease;
}
.legal-nav a:hover {
  transform: translate(-2px, -2px);
  background: var(--yellow);
}
.legal-nav a.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.legal-doc {
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 36px 32px 40px;
  margin-bottom: 72px;
}
.legal-doc .updated {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 4px 12px;
  margin-bottom: 20px;
}

@media (max-width: 680px) {
  .legal-doc { padding: 24px 18px 32px; }
  .legal-nav a { flex: 1; text-align: center; min-width: calc(50% - 10px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .saas-explainer-inner { grid-template-columns: 1fr; }
  .comic-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .band-item:nth-child(odd) { border-left: none; }
  .band-item { border-top: var(--border); }
  .band-item:nth-child(-n + 2) { border-top: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 40px; }
  .section { padding: 56px 0; }
  .grid-3, .models-grid, .pricing, .posts { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .band-item { border-left: none; border-top: var(--border); }
  .band-item:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .comic-cta-inner { flex-direction: column; text-align: center; }
  .comic-cta-inner .cta-actions { justify-content: center; width: 100%; }
  .comic-cta-inner .btn { width: 100%; }
  .price-card.featured { transform: none; }
}
