/* PatternPaws — flat, friendly, no gradients. System fonts only (no third-party font requests). */
:root {
  --bg: #fffaf2; --surface: #ffffff; --ink: #1f1d24; --muted: #5b5866; --line: #e8e0d3;
  --primary: #b94e1c; --primary-ink: #ffffff; --primary-soft: #fbe3d4;
  --teal: #1f6f65; --teal-soft: #dcefeb; --yellow: #f2c14e; --yellow-soft: #fdf1cf;
  --radius: 14px; --max: 1160px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
img, canvas, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* header */
.site-header { border-bottom: 2px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 9px; border-radius: 10px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-soft); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 2px solid var(--line); padding: 10px 20px 16px; flex-direction: column; }
  .nav-open .nav { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .98rem;
  padding: 11px 18px; border-radius: 12px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--yellow-soft); color: var(--ink); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #9d4116; color: #fff; }
.btn-ghost { border-color: var(--line); }
.btn-sm { padding: 7px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.badge { background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .88rem; padding: 6px 12px; border-radius: 999px; }
.hero-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hero-visual figure { margin: 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; }
.hero-visual img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; image-rendering: auto; }
.hero-visual img.pixelated { image-rendering: pixelated; }
.hero-visual figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; font-weight: 600; }
.arrow { font-size: 2rem; color: var(--primary); font-weight: 800; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* sections */
section.block { padding: 48px 0; }
section.alt { background: var(--surface); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 26px; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--ink); color: var(--ink); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card .go { margin-top: auto; font-weight: 700; color: var(--primary); }
.i1 { background: var(--primary-soft); } .i2 { background: var(--teal-soft); } .i3 { background: var(--yellow-soft); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; }
.portraits { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .portraits { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.plan { border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.plan .p { font-size: 1.3rem; font-weight: 800; }
.plan small { color: var(--muted); display: block; }
.tag { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 6px; }
.waitlist { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; }
.waitlist form { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist input[type=email] { flex: 1 1 220px; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; }
.form-msg { font-weight: 600; color: var(--teal); min-height: 1.4em; margin-top: 10px; }
.todo-note { font-size: .82rem; color: var(--muted); border-left: 4px solid var(--yellow); padding-left: 10px; margin-top: 12px; }

/* FAQ */
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* tool pages */
.tool-hero { padding: 30px 0 10px; }
.tool-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 46em; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel-title { font-size: 1.05rem; margin: 18px 0 8px; }
.dropzone { border: 3px dashed #d9cdb9; border-radius: var(--radius); padding: 22px 14px; text-align: center; cursor: pointer; background: var(--bg); }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dz-icon { color: var(--primary); }
.dz-title { font-weight: 800; margin: 4px 0 0; }
.dz-sub { font-size: .9rem; color: var(--muted); margin: 0; }
.link { color: var(--teal); text-decoration: underline; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.privacy-note { font-size: .86rem; background: var(--teal-soft); color: #164f48; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.controls .control { margin-bottom: 14px; }
.controls label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 4px; }
.controls label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.controls output { float: right; font-weight: 800; color: var(--primary); }
.controls input[type=range] { width: 100%; accent-color: var(--primary); }
.controls select, .controls input[type=number] { width: 100%; font: inherit; font-size: .95rem; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.help { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.status { font-size: .92rem; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.preview { background: #f7f3ec; border: 2px solid var(--line); border-radius: 12px; min-height: 280px; display: grid; place-items: center; overflow: auto; padding: 10px; }
.preview-canvas { display: block; max-width: 100%; height: auto; image-rendering: auto; background: #fff; }
.preview-empty { color: var(--muted); margin: 0; }
.busy .preview { opacity: .55; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.summary p { background: var(--yellow-soft); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.table-scroll { overflow-x: auto; }
.legend-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legend-table caption { text-align: left; font-weight: 800; padding: 6px 0; }
.legend-table th, .legend-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.legend-table tfoot td { font-weight: 800; }
.swatch { display: inline-grid; place-items: center; width: 28px; height: 22px; border-radius: 4px; border: 1px solid rgba(0,0,0,.25); font-weight: 800; font-size: .8rem; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.8); }
.instructions-box { margin-top: 16px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.instructions-box summary { font-weight: 800; cursor: pointer; }
.instructions-box ol { max-height: 320px; overflow: auto; font-size: .88rem; padding-left: 0; list-style: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.upsells { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.upsell { border-radius: var(--radius); padding: 18px 20px; border: 2px solid var(--ink); background: var(--surface); }
.upsell-portrait { background: var(--primary-soft); border-color: var(--primary); }
.upsell ul { padding-left: 1.1em; margin: 0 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 800; color: var(--muted); margin: 0 0 4px; }
.price { font-size: .92rem; }
.content { max-width: 46em; }
.content ol, .content ul { padding-left: 1.2em; }
.related { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; }
.related a { display: inline-block; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 650; color: var(--ink); background: var(--surface); }
.related a:hover { border-color: var(--ink); }
.note { font-size: .86rem; color: var(--muted); }

/* ad slot placeholders (no ad code). Hidden unless site-config enables review mode. */
.ad-slot { display: none; }
.show-ad-placeholders .ad-slot { display: grid; place-items: center; min-height: 90px; margin: 18px 0; border: 2px dashed #c9bfae; border-radius: 12px; color: #8a8174; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #fbf7f0; }

/* legal pages */
.review-banner { background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: 12px; padding: 12px 16px; font-weight: 600; }

/* footer */
.site-footer { border-top: 2px solid var(--line); margin-top: 40px; padding: 32px 0 40px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .ad-slot, .upsells, .panel-controls, .actions, .content, .crumbs, .no-print { display: none !important; }
  .tool-grid { display: block; } .panel { border: 0; padding: 0; }
  .preview { border: 0; background: #fff; } body { background: #fff; }
}
.spaced { margin-top: 18px; }
