/* BuyMe studio design kit v1 (2026-10-08). One stylesheet for every venture site.
   Served at /_kit/kit.css on every site (the worker copies it in), brand colours come from /_kit/brand.css.
   Mobile first: the base rules are the 375 px phone, wider screens add columns. No web fonts (speed and
   no third-party requests), no JS needed. Component catalogue with copy-ready HTML: BUYME/design/README.md */

:root {
  --accent: #1f6feb;          /* brand.css overrides these three per venture */
  --accent-strong: #1858c0;
  --accent-soft: #eaf1fd;
  --on-accent: #ffffff;
  --ink: #15171c;
  --ink-2: #4b5260;
  --ink-3: #6b7280;
  --line: #e2e5ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ok: #157a3c;
  --warn-bg: #fff8e6;
  --warn-line: #e9c46a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
p { text-wrap: pretty; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.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; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding: 48px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }

/* header: brand wordmark + nav. On phones the nav is a scrollable row under the brand, no JS. */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 10px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; min-height: 44px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .tld { color: var(--ink-3); font-weight: 600; }
.nav { display: flex; gap: 2px; overflow-x: auto; width: 100%; margin: 0 -8px; padding-bottom: 2px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 8px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }

/* hero */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg) 92%); padding: 40px 0 44px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 650 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { background: transparent; color: var(--accent-strong); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.block { width: 100%; }

/* cards */
.card { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .more { display: inline-block; margin-top: 10px; font-weight: 650; color: var(--accent-strong); }
.card.flat { box-shadow: none; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 0 52px; min-height: 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; }

/* check list */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* honesty / info box */
.notice { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 18px; }
.notice.warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.notice p:last-child { margin-bottom: 0; }

/* figures: key numbers in a row */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.stat span { font-size: .875rem; color: var(--ink-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

/* FAQ: every question is a heading (h3) inside the summary */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-strong); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq details > :not(summary) { padding: 0 18px; }
.faq details > :last-child { padding-bottom: 16px; margin-bottom: 0; }

/* forms and calculators */
.form, .calc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 650; margin-bottom: 6px; }
.field .hint { font-size: .875rem; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c9ced6; border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.options { display: grid; gap: 8px; }
.options label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; min-height: 48px; }
.options label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.options input { accent-color: var(--accent); width: 18px; height: 18px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.calc-result { margin-top: 18px; background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px; }
.calc-result[hidden] { display: none; }
.error { color: #b42318; font-size: .9rem; margin-top: 4px; }

/* tool shell: controls + canvas/preview (banner maker, chooser, planner). Stacks on phones. */
.tool { display: grid; gap: 16px; grid-template-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.tool-controls { display: grid; gap: 12px; align-content: start; }
.tool-canvas { background: repeating-conic-gradient(#f1f3f6 0 25%, #fff 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 220px; display: grid; place-items: center; overflow: auto; padding: 12px; }
.tool-canvas canvas, .tool-canvas img { max-width: 100%; height: auto; display: block; }
.tool-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; font: 600 .9rem var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* partner card: an affiliate offer. Links carry rel="sponsored noopener" and the card shows the disclosure. */
.partner { display: grid; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.partner-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.partner-head h3 { margin: 0; }
.partner .price { font-weight: 750; font-size: 1.2rem; }
.partner .checks { margin: 0; }
.disclosure { font-size: .8rem; color: var(--ink-3); margin: 0; }

/* badges */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }

/* footer */
.site-footer { background: #11141a; color: #c9ced6; padding: 40px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .legal { border-top: 1px solid #2a2f39; margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .875rem; }
.site-footer .legal a { color: #c9ced6; }

/* long-form pages (guides, legal) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .35em; }
.page-head { padding: 32px 0 8px; }

/* wider screens */
@media (min-width: 640px) {
  .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .site-header .wrap { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { width: auto; margin: 0 0 0 auto; overflow: visible; }
  .hero { padding: 72px 0 76px; }
  .section { padding: 72px 0; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .tool { grid-template-columns: 320px 1fr; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .actions { display: none; } }
