:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #1A1915;
  --ink-muted: #5C5A52;
  --accent: #D97706;
  --accent-hover: #B45309;
  --rule: #E8E4D9;
  --tint: #F5F2EA;
  --maxw: 1120px;
  --textw: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif { font-family: 'Fraunces', 'Iowan Old Style', 'Georgia', serif; font-weight: 400; }

a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(250, 250, 247, 0.92);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 0 rgba(26,25,21,0.04);
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217,119,6,0.18);
}
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn-nav { padding: 10px 18px; font-size: 14px; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.btn-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 120px 0; }
section.tight { padding: 80px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 6.8vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: 24px;
}
.h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 10px;
}
.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--textw);
}
.muted { color: var(--ink-muted); }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 100px;
  padding-bottom: 140px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero h1 { margin-bottom: 28px; }
.hero p.lead { margin-bottom: 40px; color: var(--ink-muted); }
.hero-ctas { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #F1ECDF 0%, #EAE3D2 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-art svg { width: 100%; height: 100%; display: block; }

/* ---------- Problem section ---------- */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.problem-lead {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 880px;
  margin-bottom: 40px;
}
.problem-body {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: var(--textw);
}
.problem-body p + p { margin-top: 18px; }

/* ---------- Plan ---------- */
.plan-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.plan-step {
  position: relative;
  padding-top: 16px;
}
.plan-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--accent);
}
.plan-num {
  font-family: 'Fraunces', serif;
  font-size: 54px;
  line-height: 1;
  color: var(--ink-muted);
  opacity: 0.45;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.plan-step p { color: var(--ink-muted); font-size: 16px; line-height: 1.55; }

/* ---------- Authority ---------- */
.authority {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.quote {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.quote-text {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--ink);
}
.quote-person { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.quote-person strong { color: var(--ink); font-weight: 500; display: block; }

.stat-line {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.stat-big {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.stat-big span { color: var(--accent); }

/* ---------- Guarantee ---------- */
.guarantee {
  background: var(--tint);
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.guarantee ul { list-style: none; }
.guarantee li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(26,25,21,0.1);
  font-size: 18px;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
}
.guarantee li::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 10px;
}
.guarantee li:last-child { border-bottom: 0; }

/* ---------- Stakes ---------- */
.stakes {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stakes-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.stake-item {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.stake-item:nth-child(even) { padding-right: 0; padding-left: 40px; border-left: 1px solid var(--rule); }
.stake-num {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.stake-text {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- Vision ---------- */
.vision {
  background: var(--tint);
}
.vision-lead {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.3;
  max-width: 880px;
  margin-top: 40px;
}

/* ---------- Final CTA ---------- */
.final {
  text-align: center;
  padding: 160px 0;
}
.final h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 48px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #C8C4B8;
  padding: 72px 0 48px;
}
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
footer h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #8E8B81; margin-bottom: 18px; font-weight: 500; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #E8E4D9; text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--accent); }
footer .tagline {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  line-height: 1.4;
  color: #E8E4D9;
  max-width: 380px;
  margin-bottom: 16px;
}
footer .fine {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #8E8B81;
}

/* ---------- Lead magnet popup ---------- */
.popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(26,25,21,0.18);
  padding: 28px;
  z-index: 80;
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}
.popup.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.popup-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.popup h4 { font-family: 'Fraunces', serif; font-size: 22px; line-height: 1.25; margin-bottom: 10px; font-weight: 400; }
.popup p { font-size: 14px; color: var(--ink-muted); margin-bottom: 18px; line-height: 1.5; }
.popup form { display: flex; gap: 8px; }
.popup input[type=email] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 2px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.popup input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.popup .close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 20px; color: var(--ink-muted); line-height: 1;
  padding: 4px 8px;
}
.popup .close:hover { color: var(--ink); }

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Case study / Service page shared ---------- */
.page-hero {
  padding-top: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 24px;
}
.page-hero .lead { color: var(--ink-muted); }

.case-card {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
.case-card:last-child { border-bottom: 0; }
.case-meta .eyebrow { margin-bottom: 12px; }
.case-meta h3 { margin-bottom: 8px; }
.case-meta .muted { font-size: 14px; }
.case-body dl { display: grid; grid-template-columns: 140px 1fr; gap: 20px 32px; font-size: 16px; }
.case-body dt { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); padding-top: 3px; }
.case-body dd { color: var(--ink); line-height: 1.55; }

.service-card {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.service-card:last-of-type { border-bottom: 0; }
.service-card .price { font-family: 'Fraunces', serif; font-size: 20px; color: var(--ink); margin-top: 8px; }
.service-card ul { padding-left: 20px; color: var(--ink-muted); font-size: 16px; line-height: 1.7; }

/* ---------- Forms (contact, guide) ---------- */
.form-block {
  max-width: 560px;
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.form-block label { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-muted); margin-bottom: 6px; display: block; }
.form-block input, .form-block textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
}
.form-block input:focus, .form-block textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .hero { padding-top: 60px; padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; max-height: 360px; }
  .plan-steps { grid-template-columns: 1fr; gap: 40px; }
  .testimonials { grid-template-columns: 1fr; gap: 20px; }
  .guarantee-grid { grid-template-columns: 1fr; gap: 32px; }
  .stakes-list { grid-template-columns: 1fr; }
  .stake-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .case-card { grid-template-columns: 1fr; gap: 24px; }
  .case-body dl { grid-template-columns: 1fr; gap: 4px 0; }
  .case-body dt { margin-top: 16px; }
  .service-card { grid-template-columns: 1fr; gap: 16px; }
  footer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .nav-links li.nav-about, .nav-links li.nav-cases { display: none; }
  .nav-inner { padding: 16px 20px; }
}
