:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --ink: #16202e;
  --muted: #55606e;
  --line: #e2ded5;
  --brand: #0d6b5f;
  --brand-dark: #08524a;
  --brand-soft: #e3f2ef;
  --accent: #f2a93b;
  --placeholder-bg: #fff4d6;
  --placeholder-ink: #7a5300;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 32 46 / 6%), 0 8px 24px rgb(22 32 46 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 250 247 / 92%);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand-labs { font-weight: 500; color: var(--brand); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 24px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-large { min-height: 56px; padding: 16px 30px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 56px 0 48px; background: radial-gradient(1000px 400px at 85% -10%, var(--brand-soft), transparent 70%); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8em; }
.hero h1 { max-width: 18ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
@media (min-width: 560px) { .cta-row { flex-direction: row; flex-wrap: wrap; } }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.hero-points li { padding-left: 28px; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
@media (min-width: 900px) { .hero { padding: 96px 0 80px; } .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; } }

/* Sections */
section[id] { scroll-margin-top: 64px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 62ch; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.two-col { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

.grid-2, .grid-3 { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }

.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 14px; }
.outcome { font-weight: 600; color: var(--brand-dark); }

/* Calculator */
.calc label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: .95rem; }
.calc input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg);
}
.calc input:focus-visible { border-color: var(--brand); outline-offset: 1px; }
.calc-result { margin: 22px 0 18px; padding: 16px; border-radius: 12px; background: var(--brand-soft); display: grid; gap: 2px; }
.calc-result output { font-size: 2rem; font-weight: 800; color: var(--brand-dark); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 24px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps p { margin: 0; color: var(--muted); }

/* Case studies */
.case-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-head .tag { margin: 0; }
.thumb { flex: none; width: 52px; height: 52px; padding: 10px; border-radius: 14px; color: #fff; box-shadow: 0 6px 14px rgb(22 32 46 / 18%); }
.thumb svg { display: block; width: 100%; height: 100%; }
.thumb-food { background: var(--accent); color: var(--ink); }
.thumb-home { background: var(--brand); }
.thumb-auto { background: #1d4ed8; }
.thumb-salon { background: #be185d; }
.fits-cta, .grid-3 + .center { margin-top: 32px; }

/* Single-row tiles with arrows; still swipes and scrolls without JavaScript */
.carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin: 20px 0 8px; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--brand-dark); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.carousel-btn:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #fff; }
.carousel-btn:disabled { opacity: .4; cursor: default; }
.carousel-track {
  display: flex; gap: 20px; margin: 8px -4px 0; padding: 4px 4px 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .card { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 760px) { .carousel-track > .card { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 900px) { .carousel-track > .card { flex-basis: calc((100% - 40px) / 3); } }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.results div { border-top: 1px solid var(--line); padding-top: 10px; }
.results dt { font-size: .85rem; color: var(--muted); }
.results dd { margin: 4px 0 0; font-weight: 800; font-size: 1.2rem; }
.placeholder { background: var(--placeholder-bg); color: var(--placeholder-ink); border: 1px dashed #e0b44c; border-radius: 8px; padding: 2px 8px; }
p.placeholder { padding: 10px 12px; }
.quote { font-style: italic; }
.demo { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 760px) { .demo { flex-direction: row; align-items: center; justify-content: space-between; } .demo > div { max-width: 640px; } }

/* Packages */
.package { position: relative; }
.package.featured { border: 2px solid var(--brand); }
.badge { position: absolute; top: -13px; left: 20px; margin: 0; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.crosses { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; color: var(--muted); }
.crosses li { padding-left: 28px; position: relative; }
.crosses li::before { content: "–"; position: absolute; left: 4px; font-weight: 800; }
.compare-diy { background: var(--bg-alt); box-shadow: none; }
.compare-us { border: 2px solid var(--brand); }
.guarantee { margin: 24px 0 32px; border-left: 4px solid var(--accent); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 650; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Final CTA */
.final { background: var(--ink); color: #fff; }
.final .lead, .final .muted { color: #c9d1dc; }
.final .lead { margin: 0 auto 28px; }
.final a:not(.btn) { color: #9fe3d8; }
.final .btn-primary { background: var(--accent); color: var(--ink); }
.final .btn-primary:hover { background: #ffbe5c; color: var(--ink); }
.final .muted { margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner p { margin: 0; }

/* Simple content pages */
.page { padding: 48px 0 64px; }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
