:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-alt: #f2f2ed;
  --text: #1b1d1c;
  --muted: #5a605d;
  --line: #e3e3dc;
  --accent: #0d6b5c;
  --accent-hover: #0a5a4d;
  --accent-ink: #ffffff;
  --accent-soft: #e3f1ed;
  --focus: #0d6b5c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 4px 16px rgb(0 0 0 / 4%);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111413;
    --surface: #181c1b;
    --surface-alt: #141817;
    --text: #e9eeec;
    --muted: #a2aaa6;
    --line: #2a302e;
    --accent: #3bbfa3;
    --accent-hover: #5ccfb6;
    --accent-ink: #0b1411;
    --accent-soft: #16302a;
    --focus: #5ccfb6;
    --shadow: none;
  }
}

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

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

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.025em; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 720px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 750; font-size: 1rem;
}
.brand-sub { color: var(--muted); font-weight: 500; margin-left: 4px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
nav a:hover { color: var(--text); background: var(--surface-alt); }
nav .nav-cta { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
nav .nav-cta:hover { color: var(--accent-ink); background: var(--accent-hover); }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  nav a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px); }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 58ch; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }

/* Sections */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card h3 { margin-bottom: 12px; }
.price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.1; color: var(--text); }
.card .price { color: var(--text); }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.card .price-alt { color: var(--muted); margin: 6px 0 16px; font-size: 0.95rem; }
.price-card ul { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; font-size: 0.95rem; }
.price-card li { padding-left: 24px; position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.featured { border-color: var(--accent); border-width: 2px; padding: 23px; }
.badge {
  position: absolute; top: -12px; left: 22px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-ink); background: var(--accent);
  padding: 3px 10px; border-radius: 999px; margin: 0;
}
.card .badge { color: var(--accent-ink); margin: 0; }

.fixed { margin-top: 40px; max-width: 640px; }
.fixed table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.fixed th, .fixed td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.fixed td { text-align: right; color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Points */
.point p { color: var(--muted); margin: 0; }

/* Contact */
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .fine { margin: 0; }
.hp { display: none; }

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

/* Simple pages */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 20px; }
.simple p { color: var(--muted); }
