:root {
  --bg: #F5F2EC;
  --bg-raised: #FBF9F5;
  --ink: #1B1A17;
  --ink-soft: #4A4741;
  --muted: #7A756C;
  --line: #DED7CA;
  --accent: #B4502A;
  --accent-soft: #F0DDD3;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo .lyre { color: var(--ink); flex: none; }
.logo .lyre-arms { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.nav .btn { padding: 9px 18px; font-size: 14px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--bg); }

/* Type */
.eyebrow {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(44px, 6.4vw, 80px); }
h2 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 20px; }
h3 { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 640px; }
.section-intro { color: var(--ink-soft); max-width: 620px; font-size: 18px; }

section { padding: 110px 0; border-top: 1px solid var(--line); }

/* Hero */
.hero { padding: 110px 0 90px; border-top: none; }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 28px 34px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-size: clamp(30px, 3.1vw, 44px); white-space: nowrap; line-height: 1; letter-spacing: -0.02em; }
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.stats-band { padding: 0 0 20px; border-top: none; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card .num { font-family: var(--serif); color: var(--accent); font-size: 18px; margin-bottom: 14px; }

/* Product mock */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.mock {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(27, 26, 23, 0.25); overflow: hidden;
}
.mock-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.mock-body { padding: 26px 28px 30px; font-size: 15px; }
.mock-cmd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.mock-cmd b { color: var(--accent); font-weight: 500; }
.mock-title { font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.mock-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.mock-item .n { color: var(--muted); font-size: 13px; }
.mock-item .src { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 6px; }
.tag.red { color: #B23A1E; }
.tag.amber { color: #A86A12; }
.tag.ink { color: var(--ink-soft); }

/* Case study teaser */
.teaser { background: var(--ink); color: var(--bg); border-radius: 22px; padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.teaser h2 { color: var(--bg); }
.teaser p { color: #CFC9BD; }
.teaser .eyebrow { color: #E48A55; }
.teaser-stats { display: grid; gap: 22px; }
.teaser-stats div { border-top: 1px solid #3A3833; padding-top: 16px; }
.teaser-stats strong { font-family: var(--serif); font-weight: 400; font-size: 38px; display: block; line-height: 1.1; }
.teaser-stats span { color: #CFC9BD; font-size: 15px; }
.teaser .btn { border-color: var(--bg); color: var(--bg); margin-top: 30px; }
.teaser .btn:hover { background: var(--bg); color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.step { border-top: 2px solid var(--ink); padding-top: 24px; }
.step .num { font-family: var(--serif); font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 16px; }
.price { margin-top: 18px; font-weight: 600; font-size: 15px; }
.price span { color: var(--accent); }

/* Fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.fit ul { list-style: none; margin-top: 14px; }
.fit li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; color: var(--ink-soft); font-size: 16px; }
.fit li::before { position: absolute; left: 0; top: 11px; font-weight: 600; }
.fit .yes li::before { content: "+"; color: var(--accent); }
.fit .no li::before { content: "\2013"; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.portrait {
  width: 220px; height: 260px; border-radius: var(--radius); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 64px; color: var(--accent);
}
.about p { color: var(--ink-soft); font-size: 18px; margin-bottom: 16px; max-width: 640px; }

/* FAQ */
.faq { margin-top: 48px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 23px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); max-width: 700px; }

/* CTA */
.cta { text-align: center; padding: 130px 0; }
.cta h2 { max-width: 760px; margin: 0 auto 30px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-left: 22px; }

/* Article (case study) */
.article { max-width: 760px; margin: 0 auto; padding: 90px 28px 40px; }
.article h1 { font-size: clamp(40px, 5.2vw, 62px); }
.article .meta { color: var(--muted); font-size: 15px; margin-top: 22px; }
.article h2 { font-size: 34px; margin: 64px 0 18px; }
.article h3 { font-size: 22px; margin: 32px 0 8px; }
.article p { color: var(--ink-soft); font-size: 18px; margin-bottom: 18px; }
.article ul { margin: 0 0 18px 22px; color: var(--ink-soft); font-size: 18px; }
.article li { margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; margin: 40px 0 10px; font-size: 16px; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table td:last-child { color: var(--ink); font-weight: 600; }
.pull { font-family: var(--serif); font-size: 30px; line-height: 1.25; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 24px; margin: 44px 0; }

/* Book */
.region-toggle { display: inline-flex; gap: 6px; margin: 18px 0 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); }
.region-btn { font: inherit; font-size: 15px; font-weight: 500; padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.region-btn:hover { color: var(--ink); }
.region-btn.is-active { background: var(--ink); color: var(--bg); }
.book-embed { min-height: 620px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); overflow: hidden; }
.book-fallback { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .teaser, .steps, .fit, .about { grid-template-columns: 1fr; }
  .teaser { padding: 44px 30px; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .mock-item { grid-template-columns: 22px 1fr; }
  .mock-item .src { display: none; }
}

@media (max-width: 560px) {
  .table { font-size: 14px; }
  .table th, .table td { padding: 10px 6px; }
  .table th { font-size: 11px; }
  .article { padding-top: 60px; }
}
