/* ==========================================================================
   Digital Seller Tools: stylesheet
   1. Fonts & design tokens   2. Base    3. Layout     4. Header & footer
   5. Components              6. Forms   7. Results    8. Checklist
   9. Content pages          10. Shop   11. Monetisation   12. Utilities
   13. Print
   Every colour comes from the tokens in section 1. Change them there.
   ========================================================================== */

/* 1. Fonts & design tokens ----------------------------------------------- */
/* Inter (SIL Open Font License, see assets/fonts/OFL.txt), served from this site. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff") format("woff"); }

:root {
  /* Brand palette (style guide) */
  --c-primary: #30245a;          /* deep purple: logo, headings, nav, primary buttons, links, footer */
  --c-primary-hover: #221943;
  --c-primary-soft: #8a7bc4;     /* hover borders */
  --c-lavender: #eee8ff;         /* hero, highlighted sections, selected states */
  --c-lavender-strong: #ddd4f7;  /* borders on lavender */
  --c-mint: #42bfa5;             /* positive results, completion, accents */
  --c-mint-strong: #1f8a74;      /* mint for controls and icons that need contrast */
  --c-mint-tint: #e6f7f2;
  --c-mint-ink: #0e5c4d;         /* readable text on mint tint */
  --c-yellow: #ffd766;           /* small highlights and badges */
  --c-yellow-tint: #fff6d6;
  --c-yellow-ink: #6b4b00;       /* readable text on pale yellow */
  --c-yellow-badge-ink: #3a2c00; /* text on solid yellow */
  --c-focus: #5b47c7;

  /* Neutrals */
  --c-bg: #f8f7fc;               /* page background */
  --c-surface: #ffffff;          /* cards, panels, forms */
  --c-bg-alt: #f8f7fc;           /* subtle fills inside cards */
  --c-text: #292638;
  --c-text-muted: #615c70;
  --c-border: #e7e3f0;
  --c-border-strong: #8e86a8;    /* input outlines (3:1 against white) */
  --c-border-button: #b9aedd;

  /* Feedback */
  --c-success: var(--c-mint-ink);
  --c-success-bg: var(--c-mint-tint);
  --c-success-border: #a7e3d5;
  --c-warning: var(--c-yellow-ink);
  --c-warning-bg: var(--c-yellow-tint);
  --c-warning-border: #f0d68a;
  --c-danger: #b42318;
  --c-danger-ink: #8a1f16;
  --c-danger-bg: #fef3f2;
  --c-danger-border: #f5c2bd;

  /* Footer (deep purple) */
  --c-footer-bg: var(--c-primary);
  --c-footer-text: #e8e3f7;
  --c-footer-muted: #bdb3e0;
  --c-footer-line: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-xl: 1.45rem;
  --fs-2xl: clamp(1.55rem, 1.2rem + 1.4vw, 2rem);
  --fs-3xl: clamp(1.95rem, 1.35rem + 2.4vw, 2.75rem);
  --lh: 1.6;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  /* Shape */
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(41, 38, 56, 0.05);
  --shadow: 0 1px 3px rgba(41, 38, 56, 0.06), 0 8px 24px rgba(48, 36, 90, 0.07);
  --ring: 0 0 0 3px rgba(91, 71, 199, 0.22);

  --container: 1120px;
  --container-narrow: 760px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--sp-4); letter-spacing: -0.018em; color: var(--c-primary); }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; }
li + li { margin-top: var(--sp-1); }
a { color: var(--c-primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary-hover); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--c-lavender); padding: 0.1em 0.35em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--c-primary); color: var(--c-surface); padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--sp-3); color: var(--c-surface); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 3. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.container-narrow { max-width: var(--container-narrow); }
@media (min-width: 640px) { .container { padding: 0 var(--sp-5); } }

.section { padding: var(--sp-7) 0; }
.section-alt { background: var(--c-lavender); }
.section-surface { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.section-tight { padding: var(--sp-6) 0; }
.section-head { max-width: 680px; margin-bottom: var(--sp-6); }
.section-head p { color: var(--c-text-muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-mint-ink); margin-bottom: var(--sp-2);
}

.grid { display: grid; gap: var(--sp-5); }
.grid > li { margin: 0; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* 4. Header & footer ----------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 800; color: var(--c-primary); text-decoration: none; font-size: 1.05rem; letter-spacing: -0.015em; }
.brand:hover { color: var(--c-primary-hover); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 40px;
  background: var(--c-surface); border: 1px solid var(--c-border-button); border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3); font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block; white-space: nowrap; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm);
  color: var(--c-text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
}
.site-nav a:hover { background: var(--c-lavender); color: var(--c-primary); }
.site-nav a[aria-current="page"] { color: var(--c-primary); background: var(--c-lavender); }
.nav-cta { margin-top: var(--sp-2); }
.site-nav a.nav-cta-link {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  background: var(--c-primary); color: var(--c-surface); border-radius: var(--radius-btn); padding: var(--sp-2) var(--sp-4);
}
.site-nav a.nav-cta-link svg { width: 18px; height: 18px; }
.site-nav a.nav-cta-link:hover, .site-nav a.nav-cta-link[aria-current="page"] { background: var(--c-primary-hover); color: var(--c-surface); }

/* Calculators dropdown */
.dd-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
  background: none; border: 0; font: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--c-text);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); cursor: pointer; text-align: left;
}
.dd-btn:hover, .dd-btn[aria-expanded="true"], .dd-btn.is-active { background: var(--c-lavender); color: var(--c-primary); }
.dd-chev { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.site-nav .dd { list-style: none; margin: 0 0 var(--sp-2); padding: 0 0 0 var(--sp-3); }
.site-nav .dd li { margin: 0; }
.site-nav .dd a { white-space: normal; padding: var(--sp-2) var(--sp-3); }
.site-nav .dd a strong { display: block; color: var(--c-primary); font-weight: 600; }
.site-nav .dd a span { display: block; font-weight: 500; color: var(--c-text-muted); font-size: var(--fs-xs); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; box-shadow: none; border: 0; background: none; }
  .site-nav > ul { display: flex; align-items: center; gap: var(--sp-1); }
  .nav-cta { margin: 0 0 0 var(--sp-2); }
  .site-nav a.nav-cta-link { display: inline-flex; }
  .has-dd { position: relative; }
  .dd-btn { width: auto; justify-content: flex-start; }
  .site-nav .dd {
    position: absolute; top: calc(100% + 8px); left: 0; width: 320px; z-index: 60;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: var(--sp-2); margin: 0;
  }
}

.site-footer { background: var(--c-footer-bg); color: var(--c-footer-text); padding: var(--sp-7) 0 var(--sp-5); margin-top: var(--sp-7); font-size: var(--fs-sm); }
.site-footer a { color: var(--c-surface); }
.site-footer a:hover { color: var(--c-yellow); }
.site-footer :focus-visible { outline-color: var(--c-yellow); }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: var(--sp-2); color: var(--c-surface); font-weight: 800; font-size: 1.05rem; margin-bottom: var(--sp-3); }
.footer-brand svg { width: 28px; height: 28px; flex: none; }
.site-footer h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-footer-muted); margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: var(--sp-2); }
.footer-disclosure { margin-top: var(--sp-6); padding: var(--sp-4); border: 1px solid var(--c-footer-line); border-radius: var(--radius); color: var(--c-footer-text); font-size: var(--fs-xs); }
.footer-disclosure p:last-child { margin-bottom: 0; }
.footer-bottom { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--c-footer-line); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: space-between; font-size: var(--fs-xs); color: var(--c-footer-muted); }

/* 5. Components ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: var(--fs-sm); line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-primary); color: var(--c-surface); }
.btn-primary:hover { background: var(--c-primary-hover); color: var(--c-surface); }
.btn-secondary { background: var(--c-surface); color: var(--c-primary); border-color: var(--c-border-button); }
.btn-secondary:hover { border-color: var(--c-primary); background: var(--c-lavender); color: var(--c-primary); }
.btn-ghost { background: none; color: var(--c-primary); padding-left: var(--sp-3); padding-right: var(--sp-3); }
.btn-ghost:hover { background: var(--c-lavender); color: var(--c-primary); }
.btn-sm { min-height: 36px; padding: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); border-radius: var(--radius-sm); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.card-lavender { background: var(--c-lavender); border-color: var(--c-lavender-strong); }
@media (min-width: 900px) { .card { padding: 1.625rem; } }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--c-lavender); color: var(--c-primary);
  flex: none;
}
.icon-badge svg { width: 26px; height: 26px; }
.tool-hero .icon-badge { background: var(--c-surface); border: 1px solid var(--c-lavender-strong); }
.icon-badge-lg { width: 60px; height: 60px; border-radius: var(--radius-lg); }
.icon-badge-lg svg { width: 32px; height: 32px; }

/* Whole-card links (tool and product cards) */
.tool-card, .product-card { position: relative; transition: border-color .15s, box-shadow .15s; }
.tool-card:hover, .product-card:hover { border-color: var(--c-primary-soft); box-shadow: var(--shadow); }
.tool-card:focus-within, .product-card:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.tool-card h3 a, .product-card h3 a { color: var(--c-primary); text-decoration: none; }
.tool-card h3 a::after, .product-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.tool-card h3 a:focus-visible, .product-card h3 a:focus-visible { outline: none; }
.card-link { font-weight: 600; color: var(--c-primary); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: var(--sp-1); }
.card-link svg { width: 16px; height: 16px; }

.tool-card { display: flex; flex-direction: column; gap: var(--sp-3); height: 100%; }
.tool-card h3 { margin: 0; }
.tool-card p { color: var(--c-text-muted); margin: 0; flex: 1; }
.tool-card-feature { background: var(--c-lavender); border-color: var(--c-lavender-strong); }
.tool-card-feature .icon-badge { background: var(--c-surface); }

/* Hero */
.hero { padding: var(--sp-7) 0; background: var(--c-lavender); }
@media (min-width: 900px) { .hero { padding: var(--sp-8) 0; } }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { max-width: 16ch; }
.hero-lead { font-size: 1.15rem; color: var(--c-text-muted); max-width: 34rem; margin-bottom: var(--sp-5); }
.hero-note { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--c-text-muted); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.hero-note span { display: inline-flex; align-items: center; gap: var(--sp-1); }
.hero-note svg { width: 18px; height: 18px; color: var(--c-mint-strong); }

.hero-preview { background: var(--c-surface); border: 1px solid var(--c-lavender-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-5); }
.hero-preview-title { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-muted); margin-bottom: var(--sp-3); display: flex; justify-content: space-between; }
.preview-row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px dashed var(--c-border); font-size: var(--fs-sm); }
.preview-row:last-of-type { border-bottom: 0; }
.preview-row b { font-variant-numeric: tabular-nums; }
.preview-total { margin-top: var(--sp-3); background: var(--c-mint-tint); border: 1px solid var(--c-success-border); color: var(--c-mint-ink); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.preview-total b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.preview-caption { font-size: var(--fs-xs); color: var(--c-text-muted); margin: var(--sp-3) 0 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; position: relative; padding-top: var(--sp-2); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--c-yellow); color: var(--c-yellow-badge-ink);
  font-weight: 800; margin-bottom: var(--sp-3);
}
.steps h3 { margin-bottom: var(--sp-2); }
.steps p { color: var(--c-text-muted); margin: 0; }

.audience-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .audience-list { grid-template-columns: repeat(2, 1fr); } }
.audience-list li { margin: 0; display: flex; gap: var(--sp-3); align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.audience-list svg { width: 22px; height: 22px; color: var(--c-mint-strong); flex: none; margin-top: 2px; }

.callout { border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); background: var(--c-lavender); border: 1px solid var(--c-lavender-strong); margin: 0 0 var(--sp-5); }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { background: var(--c-warning-bg); border-color: var(--c-warning-border); color: var(--c-yellow-ink); }

.breadcrumbs { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 var(--sp-2); color: var(--c-border-strong); }
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }

/* Page headers (tool, content and product pages) */
.tool-hero, .page-hero, .product-hero { background: var(--c-lavender); padding: var(--sp-6) 0; border-bottom: 1px solid var(--c-lavender-strong); }
.tool-hero-head { display: flex; gap: var(--sp-4); align-items: flex-start; }
.tool-hero h1, .page-hero h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.tool-hero p, .page-hero p { color: var(--c-text-muted); max-width: 46rem; margin: 0; font-size: 1.05rem; }

/* FAQ */
.faq { border-top: 1px solid var(--c-border); }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary { cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-6) var(--sp-4) 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: var(--sp-2); top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary h3 { display: inline; font-size: inherit; font-weight: 600; margin: 0; }
.faq .faq-body { padding: 0 0 var(--sp-4); color: var(--c-text-muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

.related { display: grid; gap: var(--sp-3); }
@media (min-width: 720px) { .related { grid-template-columns: repeat(2, 1fr); } }
.related a {
  display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-primary); font-weight: 600;
}
.related a:hover { border-color: var(--c-primary-soft); background: var(--c-lavender); }
.related .icon-badge { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.related .icon-badge svg { width: 22px; height: 22px; }

.formula {
  font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4);
  overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}

/* 6. Forms --------------------------------------------------------------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; padding: var(--sp-6) 0; }
.tool-layout > * { min-width: 0; }
@media (min-width: 960px) { .tool-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); } .results-panel { position: sticky; top: 84px; } }

.form-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); }
@media (min-width: 900px) { .form-panel { padding: 1.75rem; } }
.panel-title { font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.panel-title .tag { font-size: var(--fs-xs); font-weight: 600; padding: 2px var(--sp-2); border-radius: var(--radius-pill); background: var(--c-bg-alt); border: 1px solid var(--c-border); color: var(--c-text-muted); letter-spacing: 0.02em; }

fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
legend { font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-primary); padding: 0; margin-bottom: var(--sp-3); }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 560px) { .field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { min-width: 0; }

.field label, .field .label { display: block; font-weight: 500; font-size: var(--fs-sm); margin-bottom: var(--sp-1); color: var(--c-text); }
.field .optional { font-weight: 400; color: var(--c-text-muted); }
.hint { font-size: var(--fs-xs); color: var(--c-text-muted); margin: var(--sp-1) 0 0; }
.error { font-size: var(--fs-xs); color: var(--c-danger); font-weight: 600; margin: var(--sp-1) 0 0; display: flex; gap: var(--sp-1); }
.error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c-danger); color: var(--c-surface); font-size: 11px; flex: none; margin-top: 1px; }

.input-wrap {
  display: flex; align-items: stretch; background: var(--c-surface);
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: var(--c-focus); box-shadow: var(--ring); }
.has-error .input-wrap { border-color: var(--c-danger); background: var(--c-danger-bg); }
.affix { display: flex; align-items: center; padding: 0 var(--sp-3); color: var(--c-text-muted); font-weight: 500; font-size: var(--fs-sm); background: var(--c-bg-alt); white-space: nowrap; }
.affix:first-child { border-right: 1px solid var(--c-border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.affix:last-child { border-left: 1px solid var(--c-border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-wrap input, .input-wrap select {
  flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem;
  padding: var(--sp-2) var(--sp-3); min-height: 44px; color: var(--c-text); font-variant-numeric: tabular-nums;
}
.input-wrap input:focus, .input-wrap select:focus { outline: none; }
.input-wrap select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2330245a'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px;
}

/* Segmented switch (radio group) */
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 4px; gap: 4px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--c-text-muted); min-height: 38px; display: inline-flex; align-items: center; }
.segmented input:checked + label { background: var(--c-primary); color: var(--c-surface); }
.segmented input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }

.range-row { display: flex; align-items: center; gap: var(--sp-3); }
.range-row input[type="range"] { flex: 1; accent-color: var(--c-primary); min-height: 32px; }
.range-row .input-wrap { width: 120px; flex: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); }
.form-note { font-size: var(--fs-xs); color: var(--c-text-muted); margin: var(--sp-3) 0 0; }

/* Bundle product rows */
.product-list { list-style: none; padding: 0; margin: 0 0 var(--sp-3); display: grid; gap: var(--sp-3); }
.product-list li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9rem) auto; gap: var(--sp-2); align-items: end; padding: var(--sp-3); background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius); }
.product-list .field label { font-size: var(--fs-xs); }
.product-list .field-error-row { grid-column: 1 / -1; margin: 0; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border-button); background: var(--c-surface); border-radius: var(--radius-sm); color: var(--c-text-muted); cursor: pointer;
}
.icon-btn:hover:not([disabled]) { color: var(--c-danger); border-color: var(--c-danger); }
.icon-btn[disabled] { opacity: .4; cursor: not-allowed; }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 479px) {
  .product-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .product-list li .field-name { grid-column: 1 / -1; }
}

/* 7. Results ------------------------------------------------------------- */
.results-panel { background: var(--c-lavender); border: 1px solid var(--c-lavender-strong); border-radius: var(--radius-lg); padding: var(--sp-5); }
@media (min-width: 900px) { .results-panel { padding: 1.75rem; } }
.results-panel:focus { outline: none; }
.results-panel:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.results-head h2 { font-size: var(--fs-lg); margin: 0; }
.estimate-tag { font-size: var(--fs-xs); font-weight: 600; background: var(--c-surface); color: var(--c-primary); border: 1px solid var(--c-lavender-strong); padding: 2px var(--sp-3); border-radius: var(--radius-pill); white-space: nowrap; }

.headline-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: var(--sp-4); }
.stat { background: var(--c-surface); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--c-lavender-strong); }
.stat-label { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); display: block; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; line-height: 1.25; display: block; overflow-wrap: anywhere; }
.stat-sub { font-size: var(--fs-xs); color: var(--c-text-muted); display: block; }
/* Key neutral result (a price, a number of sales) */
.stat-primary { border: 2px solid var(--c-primary); }
.stat-primary .stat-value { color: var(--c-primary); }
/* Profit results: mint when positive, pale red when negative. Labels and alerts carry the meaning too. */
.stat-profit { background: var(--c-mint-tint); border-color: var(--c-success-border); }
.stat-profit .stat-label, .stat-profit .stat-sub { color: var(--c-mint-ink); }
.stat-profit .stat-value { color: var(--c-mint-ink); }
.stat-profit:has(.is-negative) { background: var(--c-danger-bg); border-color: var(--c-danger-border); }
.stat-profit:has(.is-negative) .stat-label, .stat-profit:has(.is-negative) .stat-sub { color: var(--c-danger-ink); }
.is-negative { color: var(--c-danger-ink) !important; }

.breakdown { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.breakdown caption { text-align: left; font-weight: 600; padding: 0 0 var(--sp-2); font-size: var(--fs-sm); color: var(--c-primary); }
.breakdown th, .breakdown td { padding: var(--sp-2) var(--sp-3); text-align: left; border-bottom: 1px solid var(--c-border); }
.breakdown td, .breakdown th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown thead th { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.05em; background: var(--c-bg-alt); }
.breakdown tbody th { font-weight: 400; }
.breakdown tr.total th, .breakdown tr.total td { font-weight: 700; border-bottom: 0; background: var(--c-bg-alt); }
.breakdown tr:last-child th, .breakdown tr:last-child td { border-bottom: 0; }
.breakdown .muted { color: var(--c-text-muted); font-size: var(--fs-xs); display: block; font-weight: 400; }
.breakdown tr.is-current th, .breakdown tr.is-current td { background: var(--c-lavender); font-weight: 700; }
.breakdown tr.is-below th, .breakdown tr.is-below td { color: var(--c-warning); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--sp-4); border-radius: var(--radius); }
.table-scroll .breakdown { margin-bottom: 0; min-width: 100%; }
.breakdown button.row-pick { font: inherit; color: var(--c-primary); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 600; }

.results-empty { background: var(--c-surface); border: 1px dashed var(--c-border-strong); border-radius: var(--radius); padding: var(--sp-5); text-align: center; color: var(--c-text-muted); }
.results-empty svg { width: 36px; height: 36px; color: var(--c-primary-soft); margin-bottom: var(--sp-2); }
.results-empty p { margin: 0; }
.results-alert { border-radius: var(--radius); padding: var(--sp-4); background: var(--c-warning-bg); border: 1px solid var(--c-warning-border); color: var(--c-text); margin-bottom: var(--sp-4); }
.results-alert strong { display: block; margin-bottom: var(--sp-1); color: var(--c-warning); }
.results-alert p:last-child { margin-bottom: 0; }
.results-alert.is-danger { background: var(--c-danger-bg); border-color: var(--c-danger-border); }
.results-alert.is-danger strong { color: var(--c-danger-ink); }
.results-alert.is-good { background: var(--c-success-bg); border-color: var(--c-success-border); }
.results-alert.is-good strong { color: var(--c-success); }
.results-foot { font-size: var(--fs-xs); color: var(--c-text-muted); margin: 0; }

.compare-bars { display: grid; gap: var(--sp-3); background: var(--c-surface); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.compare-bars h3 { font-size: var(--fs-base); }
.bar-row { display: grid; gap: var(--sp-1); }
.bar-label { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; }
.bar-label b { font-variant-numeric: tabular-nums; }
.bar-track { height: 12px; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { height: 100%; background: var(--c-primary); border-radius: var(--radius-pill); transition: width .25s ease; }
.bar-fill.alt { background: var(--c-primary-soft); }

.progress-wrap { margin: var(--sp-2) 0 0; }
.progress-track { height: 14px; background: var(--c-surface); border: 1px solid var(--c-lavender-strong); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--c-mint); border-radius: var(--radius-pill); transition: width .25s ease; }

/* 8. Checklist ----------------------------------------------------------- */
.checklist-summary { display: grid; gap: var(--sp-4); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); margin: var(--sp-6) 0 var(--sp-5); }
.checklist-count { font-size: 1.15rem; font-weight: 700; color: var(--c-primary); margin: 0; }
.checklist-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.save-toggle { display: flex; gap: var(--sp-3); align-items: flex-start; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); grid-column: 1 / -1; }
.save-toggle input { width: 20px; height: 20px; accent-color: var(--c-primary); margin-top: 3px; flex: none; }
.save-toggle label { font-weight: 600; font-size: var(--fs-sm); }
.save-toggle p { margin: 0; font-size: var(--fs-xs); color: var(--c-text-muted); }

.cl-section { border: 1px solid var(--c-border); border-radius: var(--radius-lg); margin-bottom: var(--sp-4); background: var(--c-surface); overflow: hidden; }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-2) var(--sp-4); background: var(--c-lavender); }
.cl-head h2 { margin: 0; flex: 1 1 260px; font-size: var(--fs-lg); }
.cl-toggle {
  width: 100%; display: flex; align-items: center; gap: var(--sp-3); background: none; border: 0; padding: var(--sp-2) 0;
  font: inherit; font-weight: 700; font-size: var(--fs-lg); color: var(--c-primary); text-align: left; cursor: pointer;
}
.cl-toggle .chev { width: 20px; height: 20px; color: var(--c-primary); transition: transform .15s; flex: none; }
.cl-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.cl-letter { display: inline-flex; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-primary); align-items: center; justify-content: center; font-size: var(--fs-sm); flex: none; }
.cl-meta { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); white-space: nowrap; }
.cl-section.is-complete { border-color: var(--c-success-border); }
.cl-section.is-complete .cl-head { background: var(--c-mint-tint); }
.cl-section.is-complete .cl-letter { background: var(--c-mint-strong); color: var(--c-surface); }
.cl-section.is-complete .cl-meta { color: var(--c-mint-ink); }
.cl-section.is-complete .cl-meta::before { content: "\2713\00a0"; }
.cl-body { padding: var(--sp-2) var(--sp-4) var(--sp-4); }
.cl-items { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.cl-items li { margin: 0; border-bottom: 1px solid var(--c-border); }
.cl-items label { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-2); cursor: pointer; border-radius: var(--radius-sm); }
.cl-items label:hover { background: var(--c-bg-alt); }
.cl-items input { width: 22px; height: 22px; accent-color: var(--c-mint-strong); margin: 1px 0 0; flex: none; cursor: pointer; }
.cl-items input:checked + span { color: var(--c-mint-ink); }
.cl-items input:checked + span::after {
  content: "Done"; display: inline-block; margin-left: var(--sp-2); padding: 0 var(--sp-2); border-radius: var(--radius-pill);
  background: var(--c-mint-tint); border: 1px solid var(--c-success-border); font-size: var(--fs-xs); font-weight: 600; vertical-align: 1px;
}
.cl-items .cl-link { display: inline-block; font-size: var(--fs-xs); margin: -6px 0 var(--sp-2) calc(22px + var(--sp-3) + var(--sp-2)); font-weight: 600; }
.cl-section-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.print-only { display: none; }

/* 9. Content pages ------------------------------------------------------- */
.prose { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-5); }
.prose p, .prose li { max-width: 70ch; }
.owner-note { border: 2px dashed var(--c-warning-border); background: var(--c-warning-bg); color: var(--c-text); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-4); font-size: var(--fs-sm); }
.owner-note strong { color: var(--c-warning); }
.owner-note p:last-child { margin-bottom: 0; }
.updated { font-size: var(--fs-sm); color: var(--c-text-muted); }

.edu-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) { .edu-grid { grid-template-columns: 1fr 1fr; } }
.cost-list { list-style: none; padding: 0; margin: 0; }
.cost-list li { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-border); margin: 0; }
.cost-list li:last-child { border-bottom: 0; }
.cost-list strong { display: block; color: var(--c-primary); }
.cost-list span { color: var(--c-text-muted); font-size: var(--fs-sm); }
.cost-list .icon-badge { width: 40px; height: 40px; }

.checklist-teaser { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 860px) { .checklist-teaser { grid-template-columns: 1fr 1fr; } }
.teaser-list { list-style: none; margin: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5); }
.teaser-list li { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-2) 0; margin: 0; font-weight: 500; }
.teaser-box { width: 20px; height: 20px; border: 2px solid var(--c-border-strong); border-radius: 5px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.teaser-box.done { background: var(--c-mint-strong); border-color: var(--c-mint-strong); color: var(--c-surface); }
.teaser-box svg { width: 14px; height: 14px; }

.seller-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
@media (min-width: 900px) { .seller-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seller-grid h3 { margin-bottom: var(--sp-2); }
.seller-grid p { color: var(--c-text-muted); margin: 0; }
.qa { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
@media (min-width: 900px) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.qa-item h3 { margin: 0 0 var(--sp-1); font-size: 1.02rem; line-height: 1.35; }
.qa-item p { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }

/* 10. Shop --------------------------------------------------------------- */
.product-grid { list-style: none; padding: 0; margin: 0; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--c-border); }
.product-card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-card h3 { margin: 0; }
.product-card p { margin: 0; color: var(--c-text-muted); }
.product-card .card-link { margin-left: auto; }
.product-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: auto; padding-top: var(--sp-3); }
.product-kind { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mint-ink) !important; margin: 0; }
.badge { font-size: var(--fs-xs); font-weight: 700; padding: 2px var(--sp-3); border-radius: var(--radius-pill); background: var(--c-yellow); color: var(--c-yellow-badge-ink); }
.badge-live { background: var(--c-mint-tint); color: var(--c-mint-ink); border: 1px solid var(--c-success-border); }

.price { font-size: 2rem; font-weight: 800; color: var(--c-primary); margin: 0; font-variant-numeric: tabular-nums; line-height: 1.2; }
.price-sm { font-size: 1.3rem; color: var(--c-primary) !important; }
.price-was { font-size: .6em; font-weight: 500; color: var(--c-text-muted); margin-left: var(--sp-2); }

.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.product-media img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--c-lavender-strong); box-shadow: var(--shadow); background: var(--c-surface); }
.product-summary h1 { font-size: var(--fs-2xl); margin: var(--sp-2) 0 var(--sp-3); }
.product-lead { font-size: 1.1rem; color: var(--c-text-muted); }
.product-points { list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.product-points li { display: flex; gap: var(--sp-2); align-items: flex-start; margin: 0 0 var(--sp-2); }
.product-points svg { width: 20px; height: 20px; color: var(--c-mint-strong); flex: none; margin-top: 3px; }
.buy-box { background: var(--c-surface); border: 1px solid var(--c-lavender-strong); border-radius: var(--radius-lg); padding: var(--sp-5); display: grid; gap: var(--sp-3); }
.btn-buy { width: 100%; min-height: 52px; font-size: 1.05rem; }
.buy-pending { margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--c-warning-bg); border: 1px solid var(--c-warning-border); color: var(--c-text); font-size: var(--fs-sm); }
.buy-pending strong { color: var(--c-warning); }
.buy-note { margin: 0; font-size: var(--fs-xs); color: var(--c-text-muted); }
.shop-note { margin-top: var(--sp-5); color: var(--c-text-muted); font-size: var(--fs-sm); }

/* 11. Monetisation components (hidden until enabled in site.js) ---------- */
.ad-slot {
  margin: var(--sp-5) 0; min-height: 120px; border: 1px dashed var(--c-border-strong); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; background: var(--c-surface); position: relative;
}
.ad-slot::before { content: "Advertisement"; position: absolute; top: var(--sp-2); left: var(--sp-3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); }
.affiliate-box, .promo-box { border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); background: var(--c-surface); margin: var(--sp-5) 0; }
.promo-box { background: var(--c-lavender); border-color: var(--c-lavender-strong); display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .promo-box { grid-template-columns: 1fr auto; align-items: center; } }
.promo-box h2, .affiliate-box h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.disclosure { font-size: var(--fs-xs); color: var(--c-text-muted); background: var(--c-bg-alt); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-3); }

/* 12. Utilities ---------------------------------------------------------- */
.text-muted { color: var(--c-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-4); }
.noscript-msg { background: var(--c-warning-bg); border: 1px solid var(--c-warning-border); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); margin: var(--sp-4) 0; }

/* 13. Print -------------------------------------------------------------- */
@media print {
  @page { margin: 16mm; }
  body { font-size: 11pt; color: #000; background: #fff; }
  h1, h2, h3, .cl-toggle { color: #000; }
  .site-header, .site-footer, .skip-link, .no-print, .ad-slot, .affiliate-box, .promo-box,
  .breadcrumbs, .checklist-tools, .save-toggle, .cl-section-actions, .faq, .related, .btn { display: none !important; }
  .print-only { display: block; }
  .tool-hero, .page-hero { background: none; border: 0; padding: 0 0 8mm; }
  .checklist-summary { background: none; border: 1px solid #999; padding: 4mm; margin: 0 0 6mm; }
  .cl-section { border: 0; border-radius: 0; break-inside: avoid; margin-bottom: 6mm; }
  .cl-head, .cl-section.is-complete .cl-head { background: none; padding: 0; }
  .cl-body[hidden] { display: block !important; }
  .cl-toggle .chev { display: none; }
  .cl-body { padding: 0; }
  .cl-items li { border-bottom: 1px solid #ccc; }
  .cl-items input { accent-color: #000; }
  .cl-items input:checked + span { color: #000; }
  .cl-items input:checked + span::after { background: none; border-color: #999; }
  .cl-items .cl-link { display: none; }
  .progress-track { border-color: #999; }
  .progress-fill { background: #444 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
}

/* 14. Homepage cards, related tools and product suggestions ------------- */
.tool-grid { list-style: none; padding: 0; margin: 0; }
.tool-card p.tool-benefit { flex: 0; display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text); }
.tool-benefit svg { width: 18px; height: 18px; color: var(--c-mint-strong); flex: none; margin-top: 3px; }
.platform-note { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm) !important; margin: 0; }
.related a > span:last-child { display: flex; flex-direction: column; }
.related a small { color: var(--c-text-muted); font-weight: 400; font-size: var(--fs-xs); }
.promo-label { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-mint-ink); margin: 0 0 var(--sp-2); }
.promo-label .badge { letter-spacing: 0; text-transform: none; }

/* 15. Product galleries ("Look inside") ---------------------------------- */
.look-inside { border-bottom: 1px solid var(--c-border); background: var(--c-surface); }
.look-inside h3 { margin-top: var(--sp-5); font-size: var(--fs-lg); }
.shots { display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
.shots-wide { grid-template-columns: minmax(0, 1fr); }
.shots-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .shots-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shot { margin: 0; }
.shot a { display: block; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-sm); }
.shot a:hover { border-color: var(--c-primary-soft); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shots-wide .shot img { padding: var(--sp-2); }
.shot figcaption { font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: var(--sp-2); }
.shot-feature { max-width: 560px; margin: var(--sp-4) auto var(--sp-5); }
.bundle-sum { margin-top: var(--sp-5); background: var(--c-yellow-tint); border: 1px solid var(--c-warning-border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.byline { margin-top: var(--sp-3) !important; font-size: var(--fs-sm) !important; }
.byline mark { background: var(--c-yellow); color: var(--c-yellow-badge-ink); padding: 0 4px; border-radius: 4px; }

/* 16. Polish: tool cards and key results -------------------------------- */
#tools .tool-card { padding: var(--sp-5); gap: var(--sp-3); }
#tools .icon-badge { width: 52px; height: 52px; }
#tools .icon-badge svg { width: 28px; height: 28px; }
#tools .tool-card .card-link {
  margin-top: auto; align-self: flex-start; padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border-button); border-radius: var(--radius-sm); background: var(--c-surface);
}
#tools .tool-card:hover .card-link { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-surface); }
#tools .tool-card p.tool-benefit { margin-bottom: var(--sp-1); }
@media (prefers-reduced-motion: no-preference) {
  .tool-card, .product-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
  .tool-card:hover, .product-card:hover { transform: translateY(-2px); }
}
.headline-grid .stat-value { font-size: 1.85rem; }
.results-head h2 { font-size: var(--fs-xl); }
.shots-wide .shot img { width: auto; max-width: 100%; }

/* 17. Guides --------------------------------------------------------------- */
.home-guides { margin-top: var(--sp-6); }
.home-guides h3 { margin-bottom: var(--sp-3); }
.home-guides p { margin: var(--sp-3) 0 0; font-weight: 600; }
.guide-card-title { font-size: var(--fs-lg); margin: 0; }
.guide-card-title a { color: var(--c-primary); text-decoration: none; }
.tool-card .guide-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.tool-card:has(.guide-card-title a:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.prose .related { margin-bottom: var(--sp-5); }

/* ===== 18. Cookie banner (only shown when GA4 is configured) ===== */
.cookie-banner { position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); z-index: 200;
  max-width: 760px; margin: 0 auto; background: var(--c-surface); border: 1px solid var(--c-lavender-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 12px 40px rgba(48, 36, 90, 0.18); padding: var(--sp-4); }
.cookie-banner[hidden] { display: none; }
.cookie-inner p { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cookie-actions .btn { flex: 1 1 180px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { text-decoration-thickness: 2px; }
@media print { .cookie-banner { display: none !important; } }

/* ===== 19. Free downloads and Buy Me a Coffee ===== */
.dl-meta { margin: calc(var(--sp-2) * -1) 0 0; font-size: var(--fs-xs); color: var(--c-text-muted); text-align: center; }
.dl-support { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.coffee-box { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  background: var(--c-yellow-tint); border: 1px solid var(--c-warning-border); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5); }
.coffee-box > div { flex: 1 1 280px; }
.coffee-title { margin: 0 0 var(--sp-1); font-weight: 700; color: var(--c-primary); }
.btn-coffee { background: var(--c-yellow); color: var(--c-yellow-badge-ink); border-color: var(--c-yellow); }
.btn-coffee:hover { background: #ffcc3d; border-color: #ffcc3d; color: var(--c-yellow-badge-ink); }

/* ===== 20. Email sign-up (MailerLite) ===== */
.signup-box { margin-top: var(--sp-6, 2.5rem); display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr);
  background: var(--c-lavender); border: 1px solid var(--c-lavender-strong); border-radius: var(--radius-lg); padding: var(--sp-5); }
@media (min-width: 860px) { .signup-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: var(--sp-6, 2.5rem); } }
.prose .signup-box h2, .signup-title { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); font-size: var(--fs-lg); color: var(--c-primary); }
.signup-title svg { width: 22px; height: 22px; flex: none; color: var(--c-mint-ink); }
.signup-form { margin: 0; }
.signup-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.signup-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; font: inherit; font-size: 1rem; padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm); }
.signup-row input:focus { outline: none; border-color: var(--c-focus); box-shadow: var(--ring); }
.signup-row input[aria-invalid="true"] { border-color: var(--c-danger); background: var(--c-danger-bg); }
.signup-row .btn { flex: 0 0 auto; min-height: 48px; }
.signup-note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: var(--c-text-muted); }
.signup-status { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); font-weight: 600; }
.signup-status:empty { display: none; }
.signup-status.is-ok { color: var(--c-mint-ink); }
.signup-status.is-error { color: var(--c-danger); }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .signup-row .btn { flex: 1 1 100%; } }

/* ===== 21. Product image carousel ===== */
.carousel { display: grid; gap: var(--sp-3); }
.carousel-frame { position: relative; }
.carousel-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  background: var(--c-surface); border: 1px solid var(--c-lavender-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.carousel-slide a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.product-media .carousel-slide img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; background: var(--c-surface); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: var(--c-surface); color: var(--c-primary); border: 1px solid var(--c-lavender-strong); box-shadow: var(--shadow); }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-prev { left: 12px; } .carousel-prev svg { transform: rotate(90deg); }
.carousel-next { right: 12px; } .carousel-next svg { transform: rotate(-90deg); }
.carousel-arrow:hover { background: var(--c-lavender); }
.carousel-arrow:focus-visible { outline: none; box-shadow: var(--ring); }
.carousel-arrow[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) and (min-width: 700px) { .carousel-arrow:not([hidden]) { display: flex; } }
.carousel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.carousel-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.carousel-dot { display: block; width: 24px; height: 24px; position: relative; border-radius: 50%; }
.carousel-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--c-lavender-strong); transition: background .15s, transform .15s; }
.carousel-dot:hover::after { background: var(--c-primary-soft); }
.carousel-dot[aria-current="true"]::after { background: var(--c-primary); transform: scale(1.25); }
.carousel-dot:focus-visible { outline: none; box-shadow: var(--ring); }
.carousel-caption { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
