:root {
  --teal: #0F5B5F;
  --mist: #D8E7E4;
  --gold: #F0B23A;
  --charcoal: #263238;
  --ivory: #F8F5EF;
  --gray: #D9D8D2;
  --green: #0F5B5F;
  --green-2: #147378;
  --ink: #263238;
  --muted: #5A6A70;
  --line: #D9D8D2;
  --bg: #F8F5EF;
  --card: #fff;
  --warn: #FFF6E4;
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, .brand, .price, .eyebrow, .btn, .lp-kit-n {
  font-family: Manrope, Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.2em 0 0.4em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.preview-banner { background: var(--gold); color: var(--charcoal); text-align: center; font-weight: 600; padding: 6px 12px; font-size: 0.92rem; }
.site-header { background: var(--teal); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; color: #fff; }
.brand img { height: 44px; width: auto; display: block; }
.site-header nav a { color: var(--mist); text-decoration: none; margin-left: 14px; font-size: 0.95rem; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }
.site-header nav a.nav-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 0; background: var(--gold); color: var(--charcoal); font-weight: 700; font-size: 1rem; padding: 10px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.site-header nav a.nav-btn:hover { filter: brightness(.95); color: var(--charcoal); text-decoration: none; }
.site-header nav a.nav-btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); box-shadow: none; }
.site-header nav a.nav-btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-header nav a.nav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 440px) {
  .site-header .wrap { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand img { height: 34px; }
  .site-header nav a.nav-btn { font-size: .92rem; padding: 8px 13px; gap: 6px; }
}
main { padding: 28px 0 56px; }

.site-footer { border-top: 1px solid var(--line); background: var(--mist); padding: 24px 0; font-size: 0.88rem; color: var(--muted); }
.site-footer p { margin: 4px 0; }

.btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-2); }
.btn.secondary { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn.gold { background: var(--gold); color: var(--charcoal); }
.btn[disabled], .btn.disabled { background: #b8c0bc; cursor: not-allowed; }
.btn.small { padding: 6px 14px; font-size: 0.88rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ob-cta { display: block; margin-top: 16px; text-decoration: none; color: var(--teal); line-height: 1.4; }
.ob-cta:hover { border-color: var(--teal); }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }

.notice { background: var(--warn); border: 1px solid #ecd58c; border-radius: var(--radius); padding: 12px 16px; font-size: 0.93rem; }
.notice.error { background: #fde8e6; border-color: #f0b4ad; }
.notice.ok { background: #e6f4ec; border-color: #a9d6bb; }
.disclaimer { font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--green-2); }

.price-card { position: relative; }
.price-card.featured { border: 3px solid var(--green); box-shadow: 0 8px 24px rgba(31, 78, 61, 0.12); }
.price-card .tag { position: absolute; top: -13px; left: 20px; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; margin: 4px 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price .once { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; background: var(--gold); color: var(--charcoal); padding: 5px 14px; border-radius: 999px; }
ul.checks { padding-left: 0; list-style: none; }
ul.checks li { padding-left: 24px; position: relative; margin: 6px 0; }
ul.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--green-2); font-weight: 800; }
.coming-soon li { color: var(--muted); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.frame { position: relative; overflow: hidden; border-radius: 10px; background: #ddd; aspect-ratio: 4 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .label { position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.frame .sample-badge { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(176, 32, 32, 0.92); color: #fff; font-weight: 800; font-size: 0.85rem; text-align: center; padding: 8px; letter-spacing: 0.02em; }

form.form { display: grid; gap: 14px; }
form.form label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
form.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
form.form .check input { margin-top: 4px; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='tel'], select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #c7cdc9; border-radius: 8px; background: #fff; width: 100%;
}
textarea { min-height: 90px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.code-box { font-size: 2.2rem; font-weight: 800; letter-spacing: 0.3em; background: #fff; border: 2px dashed var(--green); border-radius: 12px; padding: 12px; text-align: center; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.data th { background: var(--mist); font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: #eee; }
.pill.paid { background: #d6f0e0; color: #1c5a39; }
.pill.pending { background: #fff1c7; color: #6a5200; }
.pill.sample { background: #fbd5d5; color: #8a1c1c; }

.locked { position: relative; }
.locked .blur { filter: blur(5px); pointer-events: none; user-select: none; }
.locked .lock-cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.locked .lock-cta > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }

details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { font-weight: 700; cursor: pointer; }

.flyer { background: #fff; border: 1px solid #000; padding: 24px; break-inside: avoid; page-break-after: always; }
.flyer h2 { margin-top: 0; }
.flyer .qr svg { width: 140px; height: 140px; }
.flyer.square { aspect-ratio: 1 / 1; max-width: 520px; display: flex; flex-direction: column; justify-content: space-between; background: var(--green); color: #fff; }
.flyer.square .qr { background: #fff; padding: 8px; align-self: flex-start; border-radius: 6px; }

@media print {
  .preview-banner, .site-header, .site-footer, .no-print { display: none !important; }
  main { padding: 0; }
  .flyer { border: 0; }
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 16px 0 8px; }
.cta-row .click-trigger { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Focus and contrast helpers */
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.btn.gold:focus-visible { outline-color: var(--charcoal); }

/* Landing page */
body.is-landing { background: var(--ivory); }
body.is-landing main { padding: 0 0 56px; }
body.is-landing .site-header { position: sticky; top: 0; z-index: 30; }

.lp-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.lp-inner.narrow { max-width: 760px; }
.lp-band { padding: 56px 0; }
.lp-band.lp-alt { background: var(--mist); }
.lp-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
.lp-intro, .lp-lead { font-size: 1.12rem; max-width: 42rem; }
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 20px 48px;
}
.lp-hero h1 { font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -0.03em; margin: 0.15em 0 0.4em; }
.lp-hero .cta-row { margin-top: 22px; }
.lp-compare .frame { box-shadow: 0 10px 28px rgba(20, 32, 27, 0.16); }
.lp-hero-visual .muted { margin-top: 10px; }

.lp-problem { background: var(--green); color: #f4faf6; }
.lp-problem h2, .lp-problem p { color: #f4faf6; }
.lp-problem p { font-size: 1.08rem; max-width: 42rem; }

.lp-path { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lp-path li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 56px;
  position: relative;
}
.lp-path li::before {
  counter-increment: path;
  content: counter(path);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.lp-path { counter-reset: path; }
.lp-path li strong { display: block; margin-bottom: 4px; }

.lp-steps h3 { margin: 0 0 8px; }
.lp-steps .card { height: 100%; }

.lp-kit {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.lp-kit .card { margin: 0; padding-top: 18px; height: 100%; }
.lp-kit h3 { margin: 8px 0 8px; font-size: 1.15rem; }
.lp-kit p { margin: 0; color: var(--muted); }
.lp-kit-n {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 800;
  font-size: 0.85rem;
}
.lp-kit-hero { margin: 28px 0 0; border: 3px solid var(--gold); background: #fffaf0; }
.lp-kit-hero .eyebrow { margin: 0 0 4px; }
.lp-kit-hero h3 { margin: 0 0 6px; font-size: 1.6rem; }
.lp-kit-big { font-size: 1.2rem; font-weight: 600; margin: 0 0 10px; }
.lp-redo { font-weight: 600; color: var(--teal, #0F5B5F); margin: 0 0 10px; }
.lp-also { margin: 32px 0 0; font-size: 1.15rem; }
.lp-kit-also { margin-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-kit-also h3 { font-size: 1.05rem; margin-top: 0; }
/* Examples of what the kit makes (src/data/examples.ts). */
.lp-examples { margin: 28px 0 0; }
.lp-examples h3 { margin: 0 0 4px; font-size: 1.15rem; }
.lp-examples > p { margin: 0 0 12px; }
.lp-thumb { display: block; margin: 0 0 10px; }
.lp-thumb img { width: 100%; height: 150px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; display: block; background: #fff; }
.lp-video { margin: 16px 0; }
.lp-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #263238; display: block; }
.lp-video figcaption { margin-top: 6px; }
#price-it-right .ex-pir { margin: 16px 0; }
.lp-buy { margin-top: 28px; text-align: center; border: 3px solid var(--green); box-shadow: 0 8px 24px rgba(31, 78, 61, 0.12); }
.lp-buy .price { margin: 0 0 12px; }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.lp-not { padding-left: 1.15rem; }
.lp-not li { margin: 8px 0; }

.lp-close { background: var(--green); color: #f4faf6; text-align: center; }
.lp-close h2, .lp-close p { color: #f4faf6; }
.lp-close .click-trigger { color: #e5efe9; }
.lp-close .cta-row { justify-content: center; }

.lp-sticky {
  display: none;
}

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 24px; gap: 24px; }
  .lp-kit, .lp-split { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  body.is-landing { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .lp-sticky {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--teal);
    color: #fff;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
  }
  .lp-sticky .click-trigger { color: #e5efe9; font-size: 0.88rem; }
  .lp-band { padding: 40px 0; }
  .compare { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .lp-hero .compare { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

@media print {
  .lp-sticky { display: none !important; }
  body.is-landing { padding-bottom: 0; }
}
