/* PeppyPDF marketing site — shared by the landing page and every tool page.
   Kept as one cached file rather than inlined per page, since there are 13+
   static pages sharing it. */
:root,
html[data-theme='light'] {
  color-scheme: light;
  --paper: #f6f2ea;
  --paper-deep: #efe9dd;
  --ink: #241e15;
  --ink-soft: #5c5546;
  --red: #c93a2c;
  --red-deep: #a52d21;
  --rule: #ddd5c5;
  --card: #ffffff;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --paper: #16120d;
  --paper-deep: #1d1812;
  --ink: #ede8df;
  --ink-soft: #a59c8c;
  --red: #d84a3b;
  --red-deep: #e8604f;
  --rule: #322b21;
  --card: #1f1a13;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.serif { font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif; }
a { color: var(--red); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand strong { font-size: 20px; letter-spacing: 0.3px; font-weight: 650; }
.brand svg { width: 30px; height: 30px; }
/* flex, so the CTA and the theme toggle can never collide on narrow screens */
nav.top { display: flex; align-items: center; }
nav.top a { margin-left: 26px; text-decoration: none; color: var(--ink-soft); font-size: 15px; white-space: nowrap; }
nav.top a:hover { color: var(--red); }
nav.top a.cta {
  color: #fff; background: var(--red); padding: 9px 18px; border-radius: 8px; font-weight: 600;
}
nav.top a.cta:hover { background: var(--red-deep); }
.theme-toggle {
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: 18px; color: var(--ink-soft); vertical-align: middle;
  border-radius: 8px;
}
.theme-toggle:hover { color: var(--red); }
.theme-toggle svg { width: 19px; height: 19px; display: block; }
.theme-toggle .sun { display: none; }
html[data-theme='dark'] .theme-toggle .sun { display: block; }
html[data-theme='dark'] .theme-toggle .moon { display: none; }

@media (max-width: 860px) {
  nav.top a { margin-left: 16px; font-size: 14px; }
  nav.top a.cta { padding: 8px 14px; }
  .theme-toggle { margin-left: 10px; }
}

/* NOTE: elements that also carry .wrap must never use the `padding`
   shorthand — it would wipe out .wrap's horizontal padding (or be wiped by
   it inside a media query). Always set padding-top/padding-bottom only. */
.hero { padding-top: 72px; padding-bottom: 84px; text-align: center; position: relative; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  margin: 0 auto 18px;
  /* wide enough for the longest line to sit on one row on a desktop; the box
     still shrinks to the viewport below that, so nothing overflows */
  max-width: 30ch;
  font-weight: 550;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
/* the red half is its own line by design, so both lines centre on the same
   axis. It must stay breakable — as one unwrappable run it would push the
   page sideways on a phone. */
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.hero p.lede { max-width: 52ch; margin: 0 auto 34px; color: var(--ink-soft); font-size: 19px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-main {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 18px; padding: 15px 34px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(201, 58, 44, 0.28);
}
.btn-main:hover { background: var(--red-deep); }
.btn-ghost {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: 18px; padding: 15px 26px; border-radius: 10px; border: 1.5px solid var(--rule);
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--ink-soft); }
.hero .stamp {
  position: absolute; top: 26px; right: 4%;
  width: 92px; height: 92px; opacity: 0.9; transform: rotate(7deg);
}
@media (max-width: 720px) { .hero .stamp { display: none; } }
.hero .note { margin-top: 22px; color: var(--ink-soft); font-size: 14px; }
.hero .note svg { width: 14px; height: 14px; vertical-align: -2px; }

section.band { border-top: 1px solid var(--rule); padding: 66px 0; }
section.band h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; font-weight: 550; letter-spacing: -0.3px; }
section.band p.sub { color: var(--ink-soft); margin: 0 0 36px; max-width: 60ch; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feature {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px;
  display: block; text-decoration: none; color: inherit;
  transition: border-color 0.12s, transform 0.12s;
}
.feature:hover { border-color: var(--red); transform: translateY(-2px); }
.feature h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 650; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.feature svg { width: 22px; height: 22px; color: var(--red); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-size: 44px; color: var(--red); display: block; line-height: 1; margin-bottom: 8px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.privacy-band { background: var(--paper-deep); }
.privacy-band .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 780px) { .privacy-band .cols { grid-template-columns: 1fr; } }
.privacy-band ul { margin: 18px 0 0; padding: 0; list-style: none; }
.privacy-band li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-soft); }
.privacy-band li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 14px; height: 14px; border-radius: 4px; background: var(--red); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 13 5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.seal-big { width: 190px; height: 190px; margin: 0 auto; display: block; transform: rotate(-5deg); }

details.faq { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--red); font-size: 24px; font-weight: 400; flex: none; }
details.faq[open] summary::after { content: '\2013'; }
details.faq p { color: var(--ink-soft); margin: 10px 0 0; max-width: 70ch; }

footer.site { border-top: 1px solid var(--rule); padding: 34px 0 44px; color: var(--ink-soft); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--red); }

.footer-tools { border-top: 1px solid var(--rule); padding-top: 34px; padding-bottom: 10px; }
.footer-tools h2 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px; font-weight: 650; }
.footer-tools ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 18px; }
.footer-tools a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.footer-tools a:hover { color: var(--red); }

/* ---------- long-form document pages (privacy policy) ---------- */

/* .wrap owns the horizontal gutter — set padding-top/bottom only here */
.doc { padding-top: 34px; padding-bottom: 60px; max-width: 74ch; }
.doc h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.15; margin: 0 0 6px; font-weight: 550; letter-spacing: -0.3px; }
.doc-updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 26px; }
.doc-lede { font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.doc-section { border-top: 1px solid var(--rule); margin-top: 30px; padding-top: 24px; }
.doc-section h2 { font-size: 20px; margin: 0 0 12px; font-weight: 640; letter-spacing: -0.1px; }
.doc-section p { margin: 0 0 13px; line-height: 1.65; color: var(--ink-soft); }
.doc-section strong { color: var(--ink); }
.doc-section ul { margin: 0 0 13px; padding-left: 22px; color: var(--ink-soft); }
.doc-section li { margin-bottom: 7px; line-height: 1.6; }
.doc-section a { color: var(--red); }
.doc-section code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- tool pages ---------- */

.crumbs { padding: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 7px; opacity: 0.6; }

.tool-hero { padding-top: 40px; padding-bottom: 46px; }
.tool-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.14; margin: 0 0 16px; font-weight: 550; letter-spacing: -0.4px; max-width: 18ch; }
.tool-hero p { color: var(--ink-soft); font-size: 19px; margin: 0 0 16px; max-width: 58ch; }
.tool-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.tool-hero .reassure { color: var(--ink-soft); font-size: 14px; margin: 18px 0 0; }
.tool-hero .reassure svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--red); }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.point h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.point p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.cta-band { background: var(--paper-deep); text-align: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p.sub { margin-left: auto; margin-right: auto; margin-bottom: 26px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.related-grid a {
  display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 15px 17px; text-decoration: none; color: inherit;
  transition: border-color 0.12s, transform 0.12s;
}
.related-grid a:hover { border-color: var(--red); transform: translateY(-2px); }
.related-grid strong { display: block; font-size: 16px; font-weight: 650; margin-bottom: 3px; }
.related-grid span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

.note-box {
  border-left: 3px solid var(--red); background: var(--paper-deep);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 26px 0 0;
  color: var(--ink-soft); font-size: 15.5px;
}
.note-box strong { color: var(--ink); }

/* ---------- mobile ---------- */

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  header.site { padding: 15px 0; }
  .brand strong { font-size: 18px; }
  .brand svg { width: 26px; height: 26px; }
  nav.top a { margin-left: 13px; font-size: 13.5px; padding: 8px 0; }
  nav.top a.cta { margin-left: 13px; }

  .hero { padding-top: 44px; padding-bottom: 54px; }
  .hero p.lede { font-size: 17px; }
  .tool-hero { padding-top: 24px; padding-bottom: 34px; }
  .tool-hero p { font-size: 17px; }
  .tool-hero .actions { gap: 10px; margin-top: 22px; }
  section.band { padding: 44px 0; }
  section.band p.sub { margin-bottom: 26px; }

  .btn-main, .btn-ghost { font-size: 16px; padding: 13px 20px; }

  .steps { gap: 22px; }
  .step::before { font-size: 34px; }
  details.faq summary { font-size: 16px; }
  .seal-big { width: 130px; height: 130px; }

  .footer-tools ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
  footer.site .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer.site nav a { margin-right: 16px; }

  /* comfortable thumb targets: plain text links are only ~21px tall */
  .footer-tools a,
  .footer-tools span,
  footer.site nav a { display: inline-block; padding: 8px 0; }
  .crumbs { padding-top: 2px; }
  .crumbs a { display: inline-block; padding: 6px 0; }
}

/* below ~375px the section anchors no longer fit beside the brand; they are
   all repeated in the footer, so drop them rather than overflow the header */
@media (max-width: 374px) {
  nav.top a:not(.cta) { display: none; }
}

/* very narrow phones: stack the two hero buttons full width */
@media (max-width: 400px) {
  .brand strong { font-size: 16px; }
  .brand svg { width: 22px; height: 22px; }
  nav.top a.cta { font-size: 13px; padding: 8px 11px; }
  .theme-toggle { margin-left: 6px; padding: 5px; }
  /* stack, but sized to their label — full-bleed buttons read as a mistake */
  .hero .actions { flex-direction: column; align-items: center; }
  .tool-hero .actions { flex-direction: column; align-items: flex-start; }
  .btn-main, .btn-ghost { text-align: center; }
  .footer-tools ul { grid-template-columns: 1fr; }
  .crumbs { font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .actions, .hero .note { animation: rise 0.55s ease both; }
  .hero .lede { animation-delay: 0.08s; }
  .hero .actions { animation-delay: 0.16s; }
  .hero .note { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
