:root {
  --color-ink: #1a1f1d;
  --color-muted: #4e5754;
  --color-bg: #ffffff;
  --color-surface: #f6f4ef;
  --color-line: #e2ddd3;
  --color-primary: #0f5a4a;
  --color-primary-dark: #0a4236;
  --color-on-primary: #ffffff;
  --color-accent: #f2c14e;
  --color-on-accent: #1a1f1d;
  --color-focus: #1b6fd1;

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --container: 1120px;
  --gutter: 20px;
  --section: 72px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.05);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.75rem, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-dark); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--color-ink); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Founding Client bar */
.founding-bar {
  background: var(--color-ink);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  padding: 10px var(--gutter);
}
.founding-bar p { margin: 0; }
.founding-bar a { color: var(--color-accent); white-space: nowrap; }
.founding-bar a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  touch-action: manipulation;
}
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-dark); color: var(--color-on-primary); }
.btn--secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--secondary:hover { background: var(--color-primary); color: var(--color-on-primary); }

.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-accent); color: var(--color-on-accent); }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.center .actions, .actions.center { justify-content: center; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--color-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--color-ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--color-ink); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px;
  position: relative; transition: transform 200ms ease, background-color 200ms ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--color-line);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.06);
}
.nav-menu.is-open { display: block; }
.nav-menu ul { list-style: none; margin: 0 0 12px; padding: 0; }
.nav-menu li a {
  display: block; padding: 12px 0; font-weight: 550;
  color: var(--color-ink); text-decoration: none; border-bottom: 1px solid var(--color-line);
}
.nav-menu li a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
.nav-menu .btn { width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex; align-items: center; gap: 28px;
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav-menu ul { display: flex; gap: 26px; margin: 0; }
  .nav-menu li a { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; }
  .nav-menu li a:hover { color: var(--color-primary); }
  .nav-menu li a[aria-current="page"] { border-bottom-color: var(--color-primary); }
  .nav-menu .btn { width: auto; min-height: 44px; padding: 10px 18px; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section--surface { background: var(--color-surface); }
.section--dark { background: var(--color-primary); color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section--tight { padding: 28px 0; }
.section-lead { font-size: 1.15rem; color: var(--color-muted); max-width: 680px; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.hero { padding: 64px 0 72px; }
.hero h1 { max-width: 880px; }
.hero__lead { font-size: 1.2rem; color: var(--color-muted); max-width: 680px; }
.hero__note { margin-top: 28px; color: var(--color-muted); font-size: 0.98rem; }
.page-hero { padding: 56px 0 40px; }
.page-hero p { font-size: 1.2rem; color: var(--color-muted); max-width: 680px; }

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 96px; }
  .hero { padding: 96px 0 104px; }
  .page-hero { padding: 80px 0 48px; }
}

/* Grids & cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 26px;
}
.card p:last-child { margin-bottom: 0; }
.section--surface .card { border-color: transparent; box-shadow: var(--shadow); }

.point strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }

/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff; font-weight: 700;
}
.steps li strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }

/* Pricing cards */
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-line); border-radius: 14px; padding: 28px;
}
.plan--popular { border: 2px solid var(--color-primary); box-shadow: var(--shadow); }
.plan__badge {
  align-self: flex-start;
  background: var(--color-accent); color: var(--color-on-accent);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.plan__name { margin-bottom: 4px; }
.plan__price { font-size: 2rem; font-weight: 800; margin-bottom: 8px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.plan__price span { font-size: 1rem; font-weight: 500; color: var(--color-muted); letter-spacing: 0; }
.plan__tagline { color: var(--color-muted); }
.plan__features { margin: 8px 0 24px; flex: 1; }
.plan__features div { padding: 12px 0; border-top: 1px solid var(--color-line); }
.plan__features dt { font-size: 0.85rem; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.plan__features dd { margin: 2px 0 0; }
.plan .btn { width: 100%; }

.small-print { font-size: 0.95rem; color: var(--color-muted); font-style: italic; margin-top: 24px; max-width: 820px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 420px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-line); }
thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); }
.section--surface table { background: #fff; border-radius: var(--radius); overflow: hidden; }

/* Lists */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 14px; height: 8px;
  border-left: 3px solid var(--color-primary); border-bottom: 3px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* Services */
.service { padding: 56px 0; border-top: 1px solid var(--color-line); scroll-margin-top: 90px; }
.service:first-child { border-top: 0; }
.service .lead { font-size: 1.15rem; color: var(--color-muted); }
.service .note { color: var(--color-muted); }

/* One-time services */
.offer { display: flex; flex-direction: column; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer__price { font-weight: 700; color: var(--color-primary); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--color-primary);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; margin: 0; color: var(--color-muted); }

/* Placeholders */
.placeholder {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--color-line); border-radius: var(--radius);
  background: var(--color-surface); color: var(--color-muted);
  padding: 32px; min-height: 220px; font-size: 0.95rem;
}
.placeholder--photo { aspect-ratio: 4 / 5; min-height: 0; max-width: 420px; }
.placeholder--calendar { min-height: 420px; }
.placeholder-text { background: #fff3cd; color: #6b4e00; padding: 0 4px; border-radius: 3px; }

.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 380px; gap: 64px; } }

/* Form */
.form { display: grid; gap: 18px; max-width: 720px; }
@media (min-width: 640px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field .req { color: var(--color-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--color-ink);
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #b9b3a7; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-focus); }
.form .btn { justify-self: start; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 8px; background: #dff1ea; color: var(--color-primary-dark); font-weight: 600; }
.form-status.is-error { background: #fdecea; color: #8a1c12; }

/* Footer */
.site-footer { background: var(--color-ink); color: #d9ddd9; padding: 56px 0 40px; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent); }
.footer { display: grid; gap: 28px; }
.footer__name { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.footer__links { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { display: inline-block; padding: 4px 0; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: 20px; }
.footer__legal p { margin: 0; color: #aab1ad; }
.footer .placeholder-text { color: #6b4e00; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 0.5em; }
.page-hero .legal__effective { font-size: 1rem; color: var(--color-muted); }

/* Cal.com booking embed */
.cal-embed { width: 100%; min-height: 640px; overflow: auto; border-radius: var(--radius); }
.cal-fallback { margin-top: 16px; text-align: center; }
