/* ChromoLab public pages: landing, pricing, legal. Persuade mode: the proof-sheet world owns the page. */

body.site { background: var(--paper); }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* The press colour bar across the very top of every page */
.colorbar { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.colorbar i:nth-child(1) { background: var(--cyan); }
.colorbar i:nth-child(2) { background: #ff2f95; }
.colorbar i:nth-child(3) { background: var(--yellow); }
.colorbar i:nth-child(4) { background: var(--key); }

/* ---------- Header ---------- */
.site-head { background: var(--ink-900); color: var(--on-ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--on-ink-2); text-decoration: none; font-weight: 500; border-radius: var(--r-md); }
.site-nav a:not(.btn):hover { color: #fff; background: rgba(238, 240, 255, 0.07); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .btn { margin-left: 8px; min-height: 44px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink-900); color: var(--on-ink); padding: 72px 0 0; position: relative; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: #ff5fae; }
.hero .sub { margin-top: 24px; max-width: 56ch; font-size: var(--t-lg); color: var(--on-ink-2); line-height: 1.55; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: var(--t-sm); color: var(--on-ink-3); }

/* The proof sheet: the compare stage straddles the ink hero and the paper below */
.sheet-zone { position: relative; margin-top: 56px; padding-bottom: 0; }
.sheet-zone::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--paper); }
.sheet {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.sheet .reg { position: absolute; width: 16px; height: 16px; }
.sheet .reg::before, .sheet .reg::after { content: ""; position: absolute; background: var(--key); }
.sheet .reg::before { width: 16px; height: 1px; } .sheet .reg::after { width: 1px; height: 16px; }
.sheet .reg.tl { top: 8px; left: 8px; } .sheet .reg.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.sheet .reg.bl { bottom: 8px; left: 8px; transform: scaleY(-1); } .sheet .reg.br { bottom: 8px; right: 8px; transform: scale(-1); }

.demo {
  position: relative;
  --pos: 50%;
  aspect-ratio: 2 / 1;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #e9ebf1;
  touch-action: pan-y;
  user-select: none;
}
.demo .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo .layer.flat {
  background-color: #eef0f4;
  background-image: conic-gradient(#dfe2ea 25%, transparent 0 50%, #dfe2ea 0 75%, transparent 0);
  background-size: 20px 20px;
  clip-path: inset(0 0 0 var(--pos));
}
.demo .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--key); z-index: 3; pointer-events: none; }
.demo .divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
  background: var(--key) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center/22px no-repeat;
  border: 2px solid #fff; border-radius: 50%; box-shadow: var(--shadow-1);
}
.demo input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.demo:focus-within .divider::after { outline: 2px solid var(--mag); outline-offset: 3px; }
.demo .tag { position: absolute; top: 14px; z-index: 4; padding: 5px 12px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--key); color: #fff; }
.demo .tag.l { left: 14px; } .demo .tag.r { right: 14px; background: var(--mag); }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: var(--t-sm); color: var(--text-2); }
.sheet-foot .colorbar { width: 120px; height: 8px; gap: 3px; flex: none; }
.sheet-foot .colorbar i { border-radius: 2px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.h2 { font-family: var(--font-display); font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.05; font-weight: 750; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.lede { margin-top: 14px; max-width: 58ch; color: var(--text-2); font-size: var(--t-lg); text-wrap: pretty; }

/* Tool spec list: rows of a proof sheet, not cards */
.specs { margin-top: 40px; border-top: 2px solid var(--key); }
.spec {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.5fr) 96px;
  gap: 8px 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}
.spec .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--ink-900); color: #fff; }
.spec .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spec h3 { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.015em; }
.spec .io { font-size: var(--t-sm); color: var(--text-2); margin-top: 2px; }
.spec p { color: var(--text-2); text-wrap: pretty; }
.spec .price { text-align: right; font-family: var(--font-mono); font-size: var(--t-lg); font-weight: 600; }
.spec .price small { display: block; font-family: var(--font-ui); font-weight: 500; font-size: var(--t-xs); color: var(--text-3); }

/* Billing: a job's life, with a sample ledger */
.band-white { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.steps { margin-top: 28px; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 22px 44px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-900); color: #fff; font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 600; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: var(--t-lg); font-weight: 650; }
.steps span { color: var(--text-2); }
.ledger { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.ledger h3 { padding: 14px 18px; font-size: var(--t-sm); font-weight: 600; color: var(--text-2); background: var(--sunken); border-bottom: 1px solid var(--line); }
.ledger table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.ledger td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .n { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.ledger .plus { color: var(--ok); } .ledger .minus { color: var(--err); }
.ledger .note { padding: 12px 18px; font-size: var(--t-xs); color: var(--text-3); border-top: 1px solid var(--line); background: var(--sunken); }

/* Facts row for files / pricing model */
.facts-row { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--key); }
.facts-row > div { padding: 24px 28px 0 0; }
.facts-row > div + div { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.facts-row h3 { font-size: var(--t-lg); font-weight: 650; }
.facts-row p { margin-top: 6px; color: var(--text-2); text-wrap: pretty; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 2px solid var(--key); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; font-size: var(--t-lg); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-weight: 500; transition: transform var(--fast) var(--ease); }
.faq details[open] summary::after { content: "–"; background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.faq details p { padding: 0 48px 20px 0; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }

/* Closing band: committed magenta */
.close { background: var(--mag); color: #fff; padding: 88px 0; }
.close .h2 { color: #fff; max-width: 18ch; }
.close p { margin-top: 14px; max-width: 52ch; color: #ffe3f0; font-size: var(--t-lg); }
.btn-white { background: #fff; color: var(--mag); }
.btn-white:hover { background: #ffe3f0; color: var(--mag-hover); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink-900); color: var(--on-ink-2); padding: 56px 0 40px; font-size: var(--t-sm); }
.site-foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-foot a { color: var(--on-ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { display: grid; gap: 2px; }
.site-foot h2 { font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 10px; font-weight: 600; }
.site-foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-line); color: var(--on-ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Pricing page ---------- */
.page-head { background: var(--ink-900); color: var(--on-ink); padding: 64px 0 56px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance; }
.page-head p { margin-top: 16px; max-width: 58ch; color: var(--on-ink-2); font-size: var(--t-lg); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -28px; position: relative; }
.pk { display: flex; flex-direction: column; gap: 4px; padding: 28px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.pk.best { border-color: var(--mag); box-shadow: 0 0 0 3px var(--mag-tint), var(--shadow-1); }
.pk .name { font-size: var(--t-lg); font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pk .badge { font-size: var(--t-xs); font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mag-tint); color: var(--mag); }
.pk .price { margin-top: 10px; font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.pk .each { color: var(--text-2); font-size: var(--t-sm); }
.pk .credits { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.pk .btn { margin-top: 20px; }
.skeleton-pk { min-height: 250px; }
.cost-table { width: 100%; margin-top: 28px; border-collapse: collapse; border-top: 2px solid var(--key); }
.cost-table th, .cost-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.cost-table th { font-weight: 650; }
.cost-table td.n { text-align: right; font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.cost-table .d { color: var(--text-2); }

/* ---------- Legal pages ---------- */
.doc { max-width: 74ch; padding: 56px 0 96px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.doc .meta { margin-top: 8px; color: var(--text-3); font-size: var(--t-sm); }
.doc h2 { margin-top: 40px; font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.01em; }
.doc p, .doc li { margin-top: 12px; color: var(--text-2); text-wrap: pretty; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin-top: 6px; }
.draft-note { margin-top: 24px; padding: 16px 18px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); font-size: var(--t-sm); border: 1px solid #f0d58a; }
.draft-note b { color: #5c3d00; }
.ph { background: #fff4d6; padding: 0 4px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.92em; color: #5c3d00; }

.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf h1 { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 7rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; }
.nf p { margin: 12px auto 28px; color: var(--text-2); max-width: 40ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .hero { padding-top: 48px; }
  .section { padding: 64px 0; }
  .split, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .facts-row > div, .facts-row > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .spec { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .spec p { grid-column: 2 / -1; grid-row: 2; }
  .packs { grid-template-columns: minmax(0, 1fr); margin-top: -20px; }
  .sheet { padding: 14px; }
  .site-nav a.hide-sm { display: none; }
}
@media (max-width: 520px) {
  .demo { aspect-ratio: 1 / 1; }
  .site-head .wrap { min-height: 60px; }
  .site-nav .btn-ghost-ink { display: none; }
  .site-nav { gap: 0; }
  .site-nav a:not(.btn) { padding: 0 10px; }
  .site-nav .btn { margin-left: 4px; padding: 0 14px; }
  .cta-row .btn { flex: 1 1 100%; }
  .sheet-foot { flex-direction: column; align-items: flex-start; }
}

.foot-blurb { margin-top: 12px; max-width: 44ch; }
#packsNote { margin-top: 28px; }
.pk-sec { padding-top: 0; }
.skel { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--sunken), #f7f8fb, var(--sunken)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Site tabs: Chromotec / ChromoLab / Kreathena, on every page ---------- */
.brandbar { background: var(--ink-950); }
.brandbar .wrap { display: flex; gap: 4px; padding-top: 6px; overflow-x: auto; }
.brandbar a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: 10px 10px 0 0; color: var(--on-ink-3); text-decoration: none;
  font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.01em; white-space: nowrap;
}
.brandbar a:hover { color: #fff; background: rgba(238, 240, 255, 0.06); }
.brandbar a:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.brandbar a[aria-current="page"].bb-chromotec { background: #ffffff; color: var(--text); }
.brandbar a[aria-current="page"].bb-chromolab { background: var(--ink-900); color: #fff; }
.brandbar a[aria-current="page"].bb-kreathena { background: #14213d; color: #e2bf4f; }

.foot-name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; color: #fff; }
@media (max-width: 520px) { .brandbar a { padding: 0 12px; } }
