:root { --navy: #0f1b33; --ink: #3b4458; --green: #0f8a62; --green-dark: #0b6e4e; --mint: #ebf6f1; --sun: #f5b82e; --cream: #ffffff; --paper: #ffffff; --soft: #f6f7f9; --line: #e3e6ec; --muted: #667085; --red: #c2410c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-padding-top: 20px; }
body { background: var(--cream); color: var(--navy); font: 16px/1.65 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.03em; color: var(--navy); text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { color: var(--green); font-weight: 700; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-color: var(--green); }

/* type */
h1, h2, h3 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(32px, 4.8vw, 50px); margin: 14px 0 14px; }
h1 span, h2 span { color: var(--green); }
h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 12px; }
h3 { font-size: 19px; letter-spacing: -.02em; margin: 28px 0 8px; }
p.lead { font-size: 19px; color: var(--ink); max-width: 38em; margin: 0 0 18px; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); color: var(--green-dark); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid #cde9dc; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 8px; }
.crumbs a { color: var(--muted); }
.page-head { padding-block: 24px 8px; }
.updated { font-size: 14px; color: var(--muted); }

/* cards and grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: #b9dccd; box-shadow: 0 8px 24px -12px rgba(15, 27, 51, .18); }
.card h3 { margin: 6px 0 6px; }
.card p { margin: 0; color: var(--ink); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--mint); color: var(--green-dark); }
.pill.soon { background: var(--soft); color: var(--muted); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--mint); color: var(--green); display: grid; place-items: center; margin-bottom: 6px; }
.icon svg { width: 22px; height: 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font: 600 15px/1 "Inter", sans-serif; padding: 13px 18px; border-radius: 10px; border: 0; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); }

/* calculators and forms */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.panel h2 { margin-top: 0; font-size: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select { font: 500 16px "Inter", sans-serif; color: var(--navy); background: #fff; border: 1px solid #d5d9e1; border-radius: 9px; padding: 11px 12px; width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 138, 98, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 600 14px "Inter", sans-serif; padding: 8px 12px; border-radius: 8px; border: 1px solid #d5d9e1; background: #fff; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.big { font: 800 40px/1.05 "Plus Jakarta Sans", sans-serif; letter-spacing: -.03em; color: var(--green); margin: 4px 0; }
.big.bad { color: var(--red); }
.result-label { font-weight: 600; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.lines { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.lines td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.lines td:last-child { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; }
.lines tr.total td { border-bottom: 0; border-top: 2px solid var(--navy); font-size: 18px; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--soft); margin-top: 14px; }
.bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.note { background: var(--mint); border: 1px solid #d3ebe0; border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-top: 14px; }
.warn { background: #fde9e4; border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-top: 14px; }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--soft); color: var(--navy); font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); }
table.compare tbody th { font-weight: 600; width: 22%; background: #fbfcfd; color: var(--navy); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }

/* checklist */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); cursor: pointer; }
.check label { cursor: pointer; }
.check label small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.check li.done { opacity: .6; }
.check li.done label > span { text-decoration: line-through; }
.phase { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.progress { position: sticky; top: 0; z-index: 5; background: var(--cream); padding: 10px 0; }

/* prose */
.prose p, .prose li { max-width: 40em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.faq details p { margin: 10px 0 0; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { color: var(--muted); word-break: break-word; }

/* cta */
.cta { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 24px; margin: 48px 0 8px; }
.cta img { width: 96px; height: auto; }
.cta h3 { margin: 0 0 6px; color: #fff; }
.cta p { margin: 0 0 12px; color: #d9def0; }
.cta .btn { background: #fff; color: var(--navy); }
.cta .btn:hover { background: var(--mint); }
.cta { grid-template-columns: 1fr !important; } .cta img { display: none; }

/* footer */
.site-foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--soft); }
.site-foot .wrap { padding-block: 26px; color: var(--muted); font-size: 14px; display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 500; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

@media (max-width: 780px) {
  .tool { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; text-align: left; }
  .cta img { width: 72px; }
  .big { font-size: 38px; }
}
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
@media print { .site-head, .site-foot, .cta, .progress { display: none; } body { background: #fff; } .check li { break-inside: avoid; } }

/* home hero */
.hero-home { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 24px 20px; }
.hero-home .btn { margin: 6px 8px 0 0; }
.art { position: relative; aspect-ratio: 1; max-width: 100%; background: var(--mint); border-radius: 20px; display: grid; place-items: center; overflow: hidden; }
.art::before { content: ""; position: absolute; inset: 14% 10% auto auto; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); opacity: .9; }
.art .mascot { position: relative; width: 72%; height: auto; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .art .mascot { animation: none; } a.card { transition: none; } }
@media (max-width: 780px) { .hero-home { grid-template-columns: 1fr; padding-block: 8px 10px; } .hero-home .art { max-width: 380px; } }
.seg-btn { font: 600 14px "Inter", sans-serif; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.seg-btn:hover { border-color: var(--green); }
details.small summary { cursor: pointer; }

/* shipping calculator (/kickstarter-shipping-calculator) */
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dims input, table.regions input { font: 500 16px "Inter", sans-serif; color: var(--navy); background: #fff; border: 1px solid #d5d9e1; border-radius: 9px; padding: 10px 10px; width: 100%; min-width: 0; }
.dims input:focus, table.regions input:focus { outline: none; border-color: var(--green); }
table.regions { border-collapse: collapse; width: 100%; font-size: 15px; }
table.regions th, table.regions td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.regions thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.regions tbody th { font-weight: 600; }
table.regions td:nth-child(2) { width: 38%; } table.regions td:nth-child(3) { width: 26%; }
table.compare.ship-out { min-width: 0; }
.panel .btn { margin-top: 4px; }

/* print run calculator (/kickstarter-print-run-calculator) */
table.compare tr.hl th, table.compare tr.hl td { background: var(--mint); }

/* update templates (/kickstarter-update-templates) */
.tpl-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.tpl-toc a { font-weight: 600; font-size: 14px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; color: var(--ink); }
.tpl-toc a:hover { border-color: var(--green); }
.tpl { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px 22px; margin-top: 22px; }
.tpl h2 { margin-top: 20px; font-size: 26px; }
.tpl .when { color: var(--ink); font-size: 15px; margin: 0 0 12px; }
.tpl pre { white-space: pre-wrap; word-wrap: break-word; font: 500 15px/1.6 "Inter", system-ui, sans-serif; color: var(--navy); background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 16px; margin: 0 0 14px; max-height: 420px; overflow: auto; }
@media print { .tpl .copy, .tpl-toc { display: none; } .tpl pre { max-height: none; } }
/* print run calculator: let wide tables scroll inside the panel instead of widening the page */
.tool > .panel { min-width: 0; }
/* shipping calculator: keep region names on one line in the results table */
table.compare.ship-out tbody th { white-space: nowrap; width: auto; }
/* print run calculator: options table fits the results panel */
table.compare.fit { min-width: 0; }
table.compare.fit th, table.compare.fit td { padding: 10px 10px; }

/* home hero (product preview) */
.hero-band { background: linear-gradient(180deg, #f6faf8 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.hero-band .hero-home { padding-block: 56px 56px; }
.proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.proof li { display: flex; align-items: center; gap: 7px; }
.proof li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.mock { position: relative; padding: 0 0 26px; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(15, 27, 51, .28), 0 2px 6px rgba(15, 27, 51, .05); overflow: hidden; }
.mock-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--soft); }
.mock-dots { display: flex; gap: 5px; } .mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d5d9e1; }
.mock-body { padding: 20px 22px 14px; }
.mock-chip { position: absolute; left: -18px; bottom: 0; background: var(--navy); color: #fff; font-size: 14px; padding: 10px 14px; border-radius: 10px; box-shadow: 0 12px 24px -12px rgba(15, 27, 51, .5); }
.mock-chip b { color: #7fe0b6; font-weight: 600; margin-right: 6px; }
@media (max-width: 780px) { .hero-band .hero-home { padding-block: 28px 32px; } .mock-chip { left: 10px; } }

/* builder-first home */
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(15, 27, 51, .35), 0 2px 6px rgba(15, 27, 51, .05); }
.shot-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.shot img { display: block; width: 100%; height: auto; }
.stepn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; }
.nav a.navcta { background: var(--green); color: #fff; padding: 7px 14px; border-radius: 8px; border: 0; font-weight: 600; }
.nav a.navcta:hover, .nav a.navcta[aria-current="page"] { background: var(--green-dark); color: #fff; }
.hero-band .hero-home { grid-template-columns: 1fr 1.05fr; }
