/* CoreBits — factory catalog websites */
:root {
  --paper: #f5f3ee;
  --card: #ffffff;
  --ink: #12161c;
  --steel: #232b36;
  --muted: #5d6673;
  --line: #dedad1;
  --accent: #e8590c;
  --accent-ink: #b84408;
  --ok: #1f8a4c;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
section { padding: 84px 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: 44px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 10px; border: 0;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #f9b384; outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.full { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--accent); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: .95rem; font-weight: 600; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }

/* Hero */
.hero { padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 52px; align-items: start; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.price-line { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price-line b { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; }
.price-line span { color: var(--muted); font-weight: 600; }

/* Form card */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 50px -24px rgba(18, 22, 28, .35); }
.form-card h2, .form-card h3 { font-size: 1.45rem; font-weight: 800; }
.form-card .sub { color: var(--muted); margin-top: 6px; font-size: .98rem; }
.fields { display: grid; gap: 12px; margin: 20px 0 16px; }
label.f { display: grid; gap: 5px; font-size: .88rem; font-weight: 700; }
label.f small { font-weight: 500; color: var(--muted); }
.f input { height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; font-weight: 500; background: #fcfbf8; color: var(--ink); width: 100%; }
.f input::placeholder { color: #a3a9b2; font-weight: 400; opacity: 1; }
.f input:focus { border-color: var(--accent); background: #fff; outline: 0; box-shadow: 0 0 0 3px #fbd9c4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-size: .86rem; color: var(--muted); text-align: center; }
.form-error { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #a12a1b; font-size: .92rem; font-weight: 600; }

/* Dark band */
.band { background: var(--steel); color: #f3f1ec; }
.band .lead { color: #b9c0ca; }
.band .eyebrow { color: #ffa46b; }

/* Pain list */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pain { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; }
.pain h3 { font-size: 1.12rem; }
.pain p { color: #b9c0ca; font-size: .98rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stat b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.stat p { margin-top: 12px; font-weight: 600; }
.stat cite { display: block; margin-top: 10px; font-size: .8rem; font-style: normal; color: var(--muted); }
.stat cite a { color: inherit; }

/* Desire → solution rows */
.pairs { display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: minmax(0, .9fr) 40px minmax(0, 1.1fr); align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pair > div { padding: 24px 26px; display: grid; gap: 8px; align-content: start; }
.pair .want { background: #fbf9f4; }
.pair .tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pair .get .tag { color: var(--ok); }
.pair .arrow { padding: 0; display: grid; place-items: center; align-content: center; color: var(--accent); font-size: 1.5rem; font-weight: 800; background: #fbf9f4; }
.pair p { color: var(--muted); font-size: .98rem; }

/* Cards grid */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: .98rem; }
.ico { width: 44px; height: 44px; border-radius: 10px; background: #fdeadd; color: var(--accent-ink); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.band .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.band .card p { color: #b9c0ca; }

/* Catalog mock-up */
.mock { border-radius: 16px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: 0 30px 70px -36px rgba(18, 22, 28, .45); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ece9e1; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c4b8; }
.mock-bar span { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 10px; font-size: .74rem; color: var(--muted); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .95rem; }
.mock-head small { font-weight: 600; color: var(--muted); }
.mock-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; font-size: .74rem; }
.mock-item .ph { aspect-ratio: 4/3; border-radius: 6px; background: linear-gradient(135deg, #dfe4ea, #c3ccd6); display: grid; place-items: center; color: #6c7887; }
.mock-item .ph svg { width: 34px; height: 34px; }
.mock-item b { font-size: .8rem; }
.mock-item span { color: var(--muted); }
.mock-item u { text-decoration: none; display: block; text-align: center; background: var(--accent); color: #fff; font-weight: 700; border-radius: 6px; padding: 5px 0; }
.mock-ping { display: flex; gap: 10px; align-items: center; background: #eaf6ee; border: 1px solid #bfe3cc; border-radius: 10px; padding: 10px 12px; font-size: .8rem; font-weight: 600; color: #17603a; }
.mock-ping time { margin-left: auto; font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 10px; align-content: start; counter-increment: s; }
.step::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step p { color: var(--muted); font-size: .98rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; gap: 16px; align-content: start; }
.price.main { border: 2px solid var(--ink); }
.price .amt { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .amt small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price li { padding-left: 28px; position: relative; font-size: .98rem; }
.price li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.price li.no::before { content: "–"; color: var(--muted); }
.price li.no { color: var(--muted); }
.fine { max-width: 900px; margin: 22px auto 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* Founder */
.founder { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 900px; margin: 0 auto; }
.founder img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.founder p { color: var(--muted); margin-top: 10px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; font-weight: 500; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* Final CTA */
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 52px; align-items: center; }
.final-grid .form-card { color: var(--ink); }

footer { padding: 34px 0 44px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer a { color: inherit; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-grid, .final-grid { grid-template-columns: 1fr; gap: 34px; }
  .nav ul { display: none; }
  .nav .btn { margin-left: auto; }
  .pains, .stats, .grid3, .grid2, .steps, .price-grid { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .pair .arrow { padding: 0; height: 30px; transform: rotate(90deg); background: transparent; }
  .founder { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sticky-cta { display: block; transition: transform .2s; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 243, 238, .96); border-top: 1px solid var(--line); }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta.away { transform: translateY(110%); }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
