/* PDFModule home — flat "business tool" style (after pipmcp.com):
 * warm off-white sections, chunky headings, one brand blue. */

:root {
  --ink: #1b1b1f;
  --mute: #5f6068;
  --paper: #faf9f7;
  --rule: #e7e4df;
  --rule-soft: #efece7;
  --blue: #2f6fe0;
  --blue-dark: #1f56c4;
  --ok: #10a064;
  --warn-bg: #fff1d6;
  --warn-ink: #9a5a00;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }

/* Header on this page sits on paper, like the rest of the page */
/* body-qualified: site-chrome.css is linked after this file */
body .sc {
  --sc-bg: rgba(250, 249, 247, 0.95);
  --sc-bg-solid: #faf9f7;
  --sc-line: var(--rule);
  --sc-accent: var(--blue);
}

/* ---------- layout ---------- */
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.section { border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.section > .wrap { padding-top: 64px; padding-bottom: 64px; }
.section--white { background: #fff; }
@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
  .section > .wrap { padding-top: 96px; padding-bottom: 96px; }
}

.heading { max-width: 672px; }
.heading--center { margin: 0 auto; text-align: center; }
.kicker, .heading .kicker { font-weight: 600; color: var(--blue); margin: 0 0 12px; font-size: 1rem; }
.heading h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.heading p { margin-top: 16px; font-size: 1.125rem; line-height: 1.65; color: var(--mute); }
@media (min-width: 768px) { .heading h2 { font-size: 2.6rem; line-height: 1.1; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--line { border: 1px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: rgba(255,255,255,.9); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; font-size: .875rem; color: var(--mute); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.tick { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero__copy { padding-top: 40px; text-align: center; }
.hero__kicker { font-weight: 600; color: var(--blue); margin-bottom: 16px; }
.hero h1 {
  max-width: 1024px; margin: 0 auto;
  font-size: 2.5rem; line-height: 1.03; font-weight: 800; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 768px; margin: 20px auto 0;
  font-size: 1.125rem; line-height: 1.65; color: var(--mute); text-wrap: balance;
}
.hero .btn-row { justify-content: center; margin-top: 28px; }
.hero .ticks { justify-content: center; margin-top: 24px; }
.hero__media { padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 768px) {
  .hero__copy { padding-top: 56px; }
  .hero h1 { font-size: 3.6rem; }
  .hero__lead { font-size: 1.25rem; }
  .hero__media { padding-top: 48px; padding-bottom: 96px; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 3.9rem; } }

/* hero video: silent teaser loop, click swaps in the full film */
.hv { position: relative; }
.hv__glow {
  position: absolute; left: -40px; right: -40px; top: -40px; bottom: -24px;
  border-radius: 48px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(47,111,224,.28), transparent 70%);
  filter: blur(40px);
}
.hv__frame {
  position: relative; overflow: hidden; border-radius: 16px;
  background: #0a0c12;
  box-shadow: 0 30px 90px rgba(16,19,26,.3), 0 0 0 1px rgba(0,0,0,.1);
}
@media (min-width: 768px) { .hv__frame { border-radius: 24px; } }
.hv__frame video { width: 100%; aspect-ratio: 16 / 9; }
.hv__play {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%);
  font: inherit;
}
.hv__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: .875rem; font-weight: 600;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  transition: transform .15s;
}
.hv__play:hover .hv__pill, .hv__play:focus-visible .hv__pill { transform: scale(1.05); }
.hv__btn {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center;
}
.hv__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(47,111,224,.4); animation: hv-ping 1.4s cubic-bezier(0,0,.2,1) infinite;
}
.hv__btn svg { position: relative; width: 14px; height: 14px; margin-left: 2px; fill: #fff; }
.hv__meta { display: none; font-weight: 400; color: var(--mute); }
@keyframes hv-ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hv__btn::before { display: none; } }
@media (min-width: 640px) { .hv__meta { display: inline; } }
@media (min-width: 768px) {
  .hv__play { padding: 32px; }
  .hv__pill { gap: 12px; padding: 10px 24px 10px 8px; font-size: 1.125rem; }
  .hv__btn { width: 48px; height: 48px; }
  .hv__btn svg { width: 20px; height: 20px; }
}

/* ---------- cards ---------- */
.card { border: 1px solid var(--rule); background: #fff; border-radius: 12px; }
.grid-3 { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* products */
.product { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.product:hover { border-color: #c9c5be; transform: translateY(-2px); }
.product img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.product__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product__tag {
  align-self: flex-start; font-size: .75rem; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule); color: var(--mute);
}
.product__tag--biz { background: #e8effd; border-color: #c9d9fa; color: var(--blue); }
.product h3 { margin-top: 14px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.product p { margin-top: 8px; color: var(--mute); line-height: 1.6; flex: 1; }
.product__go { margin-top: 18px; font-weight: 600; color: var(--blue); }

/* ritual steps (vertical, PipMCP "three steps" pattern) */
.steps { max-width: 768px; margin: 56px auto 0; list-style: none; }
.step {
  display: grid; gap: 24px; padding: 24px;
}
@media (min-width: 768px) { .step { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 32px; } }
.step__n {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; font-size: .875rem; font-weight: 700;
}
.step h3 { margin-top: 16px; font-size: 1.25rem; font-weight: 700; }
.step p { margin-top: 8px; color: var(--mute); line-height: 1.6; }
.step__ui {
  border: 1px solid var(--rule); background: var(--paper); border-radius: 8px; padding: 8px;
  display: flex; align-items: center; gap: 8px; font-size: .875rem;
}
.step__ui .mono { flex: 1; padding: 0 8px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step__ui .chip { border-radius: 6px; padding: 6px 12px; font-weight: 600; white-space: nowrap; }
.chip--blue { background: var(--blue); color: #fff; }
.chip--ok { background: #e3f5ec; color: var(--ok); }
.chip--bad { background: #fde8e8; color: #c43b3b; }
.step__join { display: flex; justify-content: center; padding: 8px 0; color: #8a8b92; }
.step__join svg { width: 16px; height: 32px; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.checks { display: grid; gap: 6px; flex: 1; }
.checks div { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rule-soft); border-radius: 6px; padding: 6px 10px; }
.checks b { font-size: .75rem; }
.x { color: #c43b3b; } .ok { color: var(--ok); }

/* feature grid */
.feats { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { padding: 24px; }
.feat__icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; background: #e8effd; color: var(--blue);
}
.feat h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 700; }
.feat p { margin-top: 8px; color: var(--mute); line-height: 1.6; font-size: .975rem; }
.sub-block { margin-top: 96px; }

/* split (proofing + API) */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: .9fr 1.1fr; } }
.split .btn-row { margin-top: 28px; }
.list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.list .tick { margin-top: 4px; }

/* proof mock */
.proof { padding: 0; overflow: hidden; }
.proof__bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.proof__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.proof__body { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 16px; background: var(--paper); }
@media (min-width: 640px) { .proof__body { grid-template-columns: 64px 1fr 200px; } }
.proof__thumbs { display: grid; gap: 8px; align-content: start; }
.proof__thumbs i { aspect-ratio: 3 / 4; border-radius: 4px; background: #fff; border: 1px solid var(--rule); }
.proof__thumbs i:first-child { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(47,111,224,.2); }
.proof__canvas { position: relative; min-height: 260px; border-radius: 8px; background: #fff; border: 1px solid var(--rule); padding: 20px; }
.proof__sheet { position: absolute; inset: 20px 20px 56px; border-radius: 4px; background: linear-gradient(135deg, #ffd9c8, #f5e3a8 45%, #cfe0ff); }
.proof__pin {
  position: absolute; top: 40%; left: 55%; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(47,111,224,.2);
}
.proof__issue {
  position: absolute; left: 20px; bottom: 16px; font-size: .8rem; font-weight: 600;
  background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 4px 10px;
}
.proof__comments { display: none; gap: 8px; align-content: start; }
@media (min-width: 640px) { .proof__comments { display: grid; } }
.proof__comments div { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; font-size: .85rem; color: var(--mute); line-height: 1.45; }
.proof__comments strong { display: block; color: var(--ink); font-size: .8rem; margin-bottom: 2px; }

/* code window stays dark */
.code { background: #10131a; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(16,19,26,.18); min-width: 0; }
.code__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #171b24; }
.code__bar i { width: 11px; height: 11px; border-radius: 50%; }
.code__bar span { margin-left: 8px; font-size: .8rem; color: #8a93a6; }
.code pre { padding: 20px; overflow-x: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .8rem; line-height: 1.7; color: #d7e3f4; }
.c-k { color: #c792ea; } .c-s { color: #a5d6a7; } .c-p { color: #82aaff; } .c-n { color: #f78c6c; } .c-c { color: #6b7488; }

/* four steps (template → PDF) */
.flow { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow .card { padding: 24px; }
.flow h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 700; }
.flow p { margin-top: 8px; color: var(--mute); line-height: 1.6; }

/* pricing */
.plans { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan--biz { border: 2px solid var(--blue); }
.plan__badge {
  position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.plan__name { font-weight: 700; }
.plan__price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__price span { color: var(--mute); font-size: .9rem; }
.plan__desc { margin-top: 6px; color: var(--mute); font-size: .95rem; }
.plan ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; font-size: .95rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .tick { margin-top: 3px; }
.plan .btn { width: 100%; }

/* final CTA */
.cta { background: var(--blue); color: #fff; }
.cta .wrap { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .cta .wrap { padding-top: 96px; padding-bottom: 96px; } }
.cta h2 { max-width: 768px; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
@media (min-width: 768px) { .cta h2 { font-size: 3rem; } }
.cta p { margin-top: 20px; max-width: 576px; font-size: 1.125rem; color: rgba(255,255,255,.85); }
.cta .btn-row { margin-top: 32px; }
.cta__dev { display: inline-flex; margin-top: 40px; font-size: .875rem; color: rgba(255,255,255,.8); text-decoration: none; }
.cta__dev:hover { color: #fff; }

/* footer */
.foot { border-top: 1px solid var(--rule); background: #fff; font-size: .875rem; }
.foot__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 640px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 2fr repeat(5, 1fr); } }
.foot__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.foot__brand svg { width: 28px; height: 28px; }
.foot__about { margin-top: 12px; max-width: 280px; color: var(--mute); }
.foot h4 { font-weight: 500; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot ul a { color: var(--mute); text-decoration: none; }
.foot ul a:hover { color: var(--ink); }
.foot__bottom { border-top: 1px solid var(--rule); padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .75rem; color: var(--mute); }
.foot__bottom nav { display: flex; gap: 16px; }
.foot__bottom a { color: var(--mute); text-decoration: none; }

/* grid/flex children must be allowed to shrink below their nowrap content */
.split > *, .step > *, .step__ui > *, .steps > li { min-width: 0; }
