:root {
  --espresso: #161009;
  --espresso-2: #1e1710;
  --espresso-3: #2a2118;
  --cream: #f5efe3;
  --cream-2: #e6dfd0;
  --paper: #fafaf8;
  --copper: #c9752b;
  --copper-hot: #d78338;
  --copper-deep: #8c4a2a;
  --ash: #8a8378;
  --ink: #1a1410;
  --hair: rgba(245, 239, 227, 0.12);
  --rule: rgba(22, 16, 9, 0.12);
  --font-display: "Shippori Mincho", "Iowan Old Style", Palatino, serif;
  --font-body: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.1rem, 1rem + 0.55vw, 1.28rem);
  --step-3: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  --wrap: min(1180px, calc(100% - 2rem));
  --header-h: 4rem;
  --section: clamp(3.75rem, 8vw, 6.5rem);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--espresso);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}
p { margin: 0; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(245, 239, 227, 0.08);
  padding: 0.1em 0.35em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--copper);
  color: var(--espresso);
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.section-head { max-width: 34rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: var(--step-3); }
.section-lede { margin-top: 1rem; color: var(--ash); font-size: var(--step-1); max-width: 32rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.btn-sm { min-height: 2.35rem; padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-lg { min-height: 3.15rem; padding: 0.85rem 1.4rem; }
.btn-copper { background: var(--copper); color: var(--espresso); }
.btn-copper:hover { background: var(--copper-hot); }
.btn-cream { background: var(--cream); color: var(--espresso); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(245, 239, 227, 0.35); }
.btn-outline:hover { background: rgba(245, 239, 227, 0.06); }
.btn-outline-cream { background: transparent; color: var(--cream); border-color: rgba(245, 239, 227, 0.28); }
.btn-outline-dark { background: transparent; color: var(--espresso); border-color: rgba(22, 16, 9, 0.28); }
.tel-plain {
  color: var(--cream-2);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(22, 16, 9, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--cream);
}
.nav-desk { display: none; gap: 1.5rem; margin-left: 0.5rem; }
.nav-desk a {
  color: var(--cream-2);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-desk a:hover { color: var(--cream); }
.header-actions { display: none; margin-left: auto; align-items: center; gap: 1rem; }
.menu-btn {
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--hair);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
}
.menu-btn span:not(.sr-only) {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--cream);
}
.nav-mobile {
  display: grid;
  padding: 0.35rem 1rem 1rem;
  border-top: 1px solid var(--hair);
  background: var(--espresso);
}
.nav-mobile a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.75rem 0.1rem;
  border-bottom: 1px solid var(--hair);
}

.hero {
  padding: 2.75rem 0 3.25rem;
  min-height: calc(100svh - var(--header-h) - 4rem);
  display: flex;
  align-items: flex-end;
}
.hero-grid { width: var(--wrap); margin-inline: auto; display: grid; gap: 2.5rem; }
.hero h1 {
  display: grid;
  font-size: clamp(2.6rem, 11vw, 5.4rem);
}
.hero h1 .line { display: block; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--cream-2); }
.lede { margin-top: 1.25rem; max-width: 28rem; color: var(--cream-2); font-size: var(--step-1); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1rem; color: var(--ash); font-size: 0.9rem; }

.book {
  border: 1px solid var(--hair);
  background: var(--espresso-2);
  padding: 1.15rem 1.1rem 1.2rem;
}
.book-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.book-head .eyebrow { margin: 0; }
.book-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.book table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.book th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0.4rem 0.35rem 0.5rem 0;
  border-bottom: 1px solid var(--hair);
}
.book td {
  padding: 0.55rem 0.35rem 0.55rem 0;
  border-bottom: 1px solid var(--hair);
  color: var(--cream);
}
.book tr.on td { color: var(--copper); }
.book-foot { margin-top: 0.85rem; color: var(--ash); font-size: 0.82rem; }

.strip {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.strip-inner {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 0;
  color: var(--cream-2);
  font-size: 0.92rem;
}
.strip-inner p + p { padding-top: 0.85rem; border-top: 1px solid var(--hair); }

.products {
  background: var(--paper);
  color: var(--ink);
  padding: var(--section) 0;
}
.products .section-lede { color: #5c5348; }
.product-list { list-style: none; margin: 0; padding: 0; }
.product {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.product:last-child { border-bottom: 1px solid var(--rule); }
.num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--copper-deep);
  margin-bottom: 0.45rem;
}
.product h3 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 0.55rem; }
.product p { color: #5c5348; max-width: 32rem; }
.product-frame { border: 1px solid var(--rule); overflow: hidden; }

.how {
  background: var(--cream);
  color: var(--ink);
  padding: var(--section) 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.steps li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper-deep);
  letter-spacing: 0.1em;
}
.steps h3 { margin: 0.4rem 0 0.5rem; font-size: 1.55rem; }
.steps p { color: #5c5348; max-width: 28rem; }

.demo {
  background: var(--espresso);
  color: var(--cream);
  padding: var(--section) 0;
  border-top: 1px solid var(--hair);
}
.demo h2 { font-size: var(--step-3); max-width: 16ch; }
.demo-lede { margin: 1.1rem 0 2rem; max-width: 38rem; color: var(--cream-2); }
.demo-actions { display: grid; gap: 0; }
.demo-tile {
  padding: 1.4rem 0;
  border-top: 1px solid var(--hair);
}
.demo-tile:last-of-type { border-bottom: 1px solid var(--hair); }
.demo-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}
.demo-tile h3 { font-size: 1.55rem; margin-bottom: 0.45rem; }
.demo-tile p { color: var(--cream-2); margin-bottom: 1.1rem; }
.demo-tile .btn { width: 100%; }
.creds { margin: 0 0 1.1rem; display: grid; gap: 0.5rem; }
.creds div { display: grid; gap: 0.15rem; }
.creds dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.creds dd { margin: 0; }
.creds code { color: var(--cream); }
.demo-foot { margin-top: 1.5rem; color: var(--ash); }
.demo-foot a { color: var(--cream); }

.faq {
  background: var(--paper);
  color: var(--ink);
  padding: var(--section) 0;
}
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--copper);
  font-weight: 500;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  padding: 0 0 1.15rem;
  color: #5c5348;
}

.close {
  background: var(--cream);
  color: var(--ink);
  padding: var(--section) 0 calc(var(--section) + 2rem);
}
.close-inner { max-width: 36rem; }
.close h2 { font-size: var(--step-3); }
.close p { margin: 1rem 0 0; color: #5c5348; }

.site-footer {
  background: var(--espresso);
  color: var(--cream-2);
  padding: 3rem 0 6.75rem;
  border-top: 1px solid var(--hair);
}
.footer-grid { display: grid; gap: 2rem; }
.footer-tag { margin-top: 0.7rem; max-width: 22rem; }
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.7rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 0.4rem;
  color: var(--ash);
  font-size: 0.85rem;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--espresso);
  border-top: 1px solid var(--hair);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a {
  text-align: center;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.95rem 0.2rem;
}
.dock-sales { background: var(--copper); color: var(--espresso) !important; }

.legal { padding: 7rem 0 4rem; color: var(--ink); background: var(--paper); }
.legal h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.legal p { max-width: 40rem; margin-bottom: 0.9rem; color: #5c5348; }

@media (min-width: 820px) {
  .menu-btn, .nav-mobile, .dock { display: none; }
  .nav-desk, .header-actions { display: flex; }
  .hero {
    padding: 5rem 0 5.5rem;
    min-height: calc(100svh - var(--header-h));
    align-items: center;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
  }
  .strip-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding: 1.2rem 0;
  }
  .strip-inner p + p {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--hair);
    padding-left: 2rem;
  }
  .product {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: center;
    padding: 2.75rem 0;
  }
  .product:nth-child(even) .product-copy { order: 2; }
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .steps li {
    border: 0;
    padding: 2rem 0;
  }
  .demo-actions {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
  }
  .demo-tile {
    border: 0;
    padding: 2rem 0;
  }
  .demo-tile .btn { width: auto; }
  .faq-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 4rem;
    align-items: start;
  }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .site-footer { padding-bottom: 2.5rem; }
  .close { padding-bottom: var(--section); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
