/* PrintPrep (working name) — mirrors the StitchLab pattern: theme variables,
   sticky top bar, scroll reveals, cards, tiers. All copy on this page is original. */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --text: #1c2333; --muted: #5b6472;
  --border: #e2ddd2; --accent: #1b3a58; --accent-soft: #e8eef4;
  --ok: #1d7a3d; --err: #b3261e; --shadow: 0 2px 12px rgba(28,35,51,.08);
  --check-a: #e8eef4; --check-b: #ffffff;
}
html[data-theme="dark"] {
  --bg: #14161c; --surface: #1e212b; --text: #eef0f4; --muted: #a6adbb;
  --border: #343947; --accent: #6fa8d8; --accent-soft: #24344a;
  --ok: #5ec98a; --err: #ff8a80; --shadow: 0 2px 12px rgba(0,0,0,.4);
  --check-a: #2a2f3d; --check-b: #1e212b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* --- top bar --- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; gap: 10px; }
.brand { text-decoration: none; color: var(--text); font-size: 19px; white-space: nowrap; }
.brand span { color: var(--muted); font-size: 13px; }
nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; margin-left: 18px; font-size: 14px; }
nav a:hover { color: var(--accent); }
.theme-btn { background: none; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; cursor: pointer; margin-left: 14px; padding: 4px 9px; color: var(--text); }

/* --- scroll reveals --- */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim-progress span { transition: none; }
}

/* --- hero --- */
.hero { padding: 52px 0 36px;
  background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; margin: 0 0 12px; }
.hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.lede strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.hero-facts { display: flex; gap: 20px; flex-wrap: wrap; margin: 0;
  color: var(--muted); font-size: .95rem; }
.hero-facts strong { color: var(--text); }

/* --- before / after --- */
.hero-ba { display: flex; flex-direction: column; gap: 10px; }
.ba { position: relative; border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  background: var(--surface); aspect-ratio: 4 / 3; }
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0;
  /* checkerboard behind the transparent PNG, so "transparent" is visible */
  background-image: linear-gradient(45deg, var(--check-a) 25%, transparent 25%),
    linear-gradient(-45deg, var(--check-a) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--check-a) 75%),
    linear-gradient(-45deg, transparent 75%, var(--check-a) 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-color: var(--check-b); }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.4); transform: translateX(-50%); }
.ba-tag { position: absolute; top: 10px; font-size: .8rem; font-weight: 700;
  background: rgba(0,0,0,.65); color: #fff; border-radius: 999px; padding: 3px 10px; }
.ba-tag-before { left: 10px; }
.ba-tag-after { right: 10px; }
.ba-slider-label { font-size: .9rem; color: var(--muted); text-align: center; }
#baSlider { width: 100%; accent-color: var(--accent); cursor: pointer; }
.anim-cap { font-size: .85rem; color: var(--muted); margin: 0; }

/* --- trace animation bar (mirrors StitchLab's anim-bar) --- */
.anim-bar { padding-top: 2px; }
.anim-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.anim-progress span { display: block; height: 100%; width: 0; background: var(--accent);
  border-radius: 999px; transition: width .15s linear; }
.anim-meta { display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 8px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.mini-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; cursor: pointer; font-size: .85rem; color: var(--text); }

/* --- sections / cards --- */
section { margin: 52px 0; }
.sec-title { font-size: 1.8rem; margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 26px; margin: 26px 0; }
.card h2 { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; }
.step-n { display: inline-block; background: var(--accent); color: #fff;
  width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%;
  font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }
.honest { background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin-top: 16px; }
.sheet-fig { margin: 24px 0 0; }
.sheet-fig img { width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: 12px; }
.sheet-fig figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* --- buttons --- */
.cta { display: inline-block; background: var(--accent); color: #fff; border: 0;
  border-radius: 10px; padding: 13px 26px; font-size: 17px; font-weight: 700;
  cursor: pointer; margin-top: 18px; text-decoration: none; }
.cta.small { padding: 10px 18px; margin-top: 0; font-size: 15px; }
.cta:disabled { opacity: .55; cursor: not-allowed; }
.cta.secondary { font-size: 15px; padding: 10px 20px; }
.ghost { color: var(--muted); text-decoration: none; }
.ghost:hover { color: var(--text); }
.fine { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* --- pricing tiers --- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.tier { border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.tier.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier h3 { margin: 0; }
.price { font-size: 30px; font-weight: 800; margin: 6px 0; color: var(--accent); }
.price .per { font-size: 15px; font-weight: 400; color: var(--muted); }
.tier p:last-child { color: var(--muted); margin: 0; }

/* --- faq / footer --- */
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 4px 0 0; color: var(--muted); }
footer { padding: 10px 0 34px; color: var(--muted); font-size: 13px; text-align: center; }
footer a { color: var(--accent); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 32px; }
  .steps, .tiers { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  nav a:not(.theme-btn) { display: none; }
}
