/* ============================================================
   Ease & Empire — Design Tokens
   Brand colors only. No off-palette deviations.
   ============================================================ */
:root {
  --bg: #faf9f7;
  --bg-alt: #f4ede4;
  --border: #d8cfc4;
  --sage: #c9d3ca;
  --gold: #c1a16b;
  --gold-deep: #a4854f;
  --body: #4a4a4a;
  --heading: #2f2f2f;
  --surface: #ffffff;

  /* Type */
  --serif: 'Cormorant Garamond', 'Lora', Georgia, serif;
  --sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.75rem;
  --text-hero: 4.75rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;
  --space-9: 10rem;

  --radius: 2px;
  --radius-lg: 6px;
  --max-w: 1200px;
  --measure: 68ch;

  --ease: cubic-bezier(.2,.7,.2,1);
}

[data-theme="dark"] {
  --bg: #1a1a18;
  --bg-alt: #2b2925;
  --border: #3a3733;
  --sage: #4a5249;
  --gold: #c1a16b;
  --gold-deep: #d4b482;
  --body: #e8e4df;
  --heading: #faf9f7;
  --surface: #221f1c;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, var(--text-hero)); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, var(--text-3xl)); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, var(--text-xl)); }
h4 { font-size: var(--text-lg); font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--heading); }

p { margin: 0 0 var(--space-3); max-width: var(--measure); }
a { color: var(--heading); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

ul { padding-left: 1.25rem; max-width: var(--measure); }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--gold); }

strong { color: var(--heading); font-weight: 600; }
em { font-style: italic; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--heading);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Layout */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

.section { padding: var(--space-6) 0; }
.section--lg { padding: var(--space-7) 0 var(--space-6); }
.section--xl { padding: var(--space-8) 0 var(--space-7); }
.section--tight { padding: var(--space-5) 0; }
.section--alt { background: var(--bg-alt); }

@media (min-width: 768px) {
  .section { padding: var(--space-7) 0 var(--space-6); }
  .section--lg { padding: var(--space-8) 0 var(--space-7); }
  .section--xl { padding: var(--space-9) 0 var(--space-8); }
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 768px) { .site-header__inner { padding: 1.25rem 2.5rem; } }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--heading); text-decoration: none; }
.logo svg { height: 26px; width: auto; }
.logo:hover { color: var(--gold); }

/* Nav */
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: none; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .nav__list { display: flex; } }
.nav__link {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--body);
  padding: 0.4rem 0;
  position: relative;
  letter-spacing: 0.005em;
}
.nav__link:hover { color: var(--heading); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.nav__link[aria-current="page"] { color: var(--heading); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--heading);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 14px; height: 14px; }

.menu-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--heading);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  border-radius: var(--radius);
}
@media (min-width: 900px) { .menu-btn { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.open { display: block; }
.mobile-nav__list { list-style: none; padding: 1rem 1.5rem; margin: 0; }
.mobile-nav__list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.mobile-nav__list li:last-child { border-bottom: 0; }
.mobile-nav__list a { text-decoration: none; color: var(--heading); }

/* Buttons / CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a1a18;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
  letter-spacing: 0.005em;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #faf9f7; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn--ghost:hover { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.btn--sage { background: transparent; border-color: var(--border); color: var(--heading); }
.btn--sage:hover { background: var(--sage); border-color: var(--sage); color: var(--heading); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.text-link {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.text-link:hover { color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
[data-theme="dark"] .eyebrow { color: var(--gold); }

/* Hero */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: var(--space-8) 0 var(--space-7); } }
.hero__inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-6); } }

.hero h1 { margin-bottom: 1.5rem; }
.hero__sub { font-size: clamp(1.05rem, 0.6vw + 1rem, 1.25rem); color: var(--body); max-width: 56ch; margin-bottom: 2.25rem; }

/* Geometric mark — for hero & accent visuals */
.mark {
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin-left: auto;
  color: var(--heading);
}
.mark--small { max-width: 200px; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--gold); }
.card h3 { margin-bottom: 0.75rem; }
.card__meta { font-size: 0.85rem; color: var(--gold-deep); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
[data-theme="dark"] .card__meta { color: var(--gold); }

/* Two-column grid */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Audience track */
.track {
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.track__label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
[data-theme="dark"] .track__label { color: var(--gold); }
.track h3 { font-size: var(--text-2xl); margin-bottom: 1.25rem; }
.track__step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.track__step:first-of-type { border-top: 0; padding-top: 0; }
.track__step-num { font-family: var(--serif); font-size: 1.75rem; color: var(--gold); line-height: 1; min-width: 2rem; }
.track__step h4 { margin-bottom: 0.35rem; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 1.1rem; }
.track__step p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.track__step a { font-size: 0.92rem; }

/* Steps row (3 steps) */
.steps { display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.step {
  border-top: 2px solid var(--gold);
  padding-top: 1.25rem;
}
.step__num { font-family: var(--serif); color: var(--gold-deep); font-size: 0.95rem; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
[data-theme="dark"] .step__num { color: var(--gold); }
.step h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Testimonial card */
.tcard {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
}
.tcard__placeholder {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body);
  background: var(--surface);
  padding: 0.3rem 0.6rem;
  border: 1px dashed var(--border);
  margin-bottom: 1.25rem;
}
.tcard blockquote {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--heading);
  margin: 0 0 1.25rem;
  font-style: italic;
}
.tcard__attr { font-size: 0.9rem; color: var(--body); }
.tcard__attr strong { display: block; color: var(--heading); font-weight: 600; }

/* Demo walkthrough */
.demo-flow {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .demo-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
.demo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.demo-card__time {
  color: var(--gold-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
[data-theme="dark"] .demo-card__time { color: var(--gold); }
.message-stack {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.message {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.45;
  max-width: 92%;
}
.message--system {
  background: var(--secondary);
  color: var(--body);
  justify-self: start;
  border-bottom-left-radius: 6px;
}
.message--client {
  background: var(--sage);
  color: var(--heading);
  justify-self: end;
  border-bottom-right-radius: 6px;
}
[data-theme="dark"] .message--system { background: #2b2925; }
[data-theme="dark"] .message--client { background: rgba(201, 211, 202, 0.16); color: var(--heading); }
.demo-note {
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.demo-note strong { color: var(--heading); }

/* Pull quote */
.pullquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.5vw + 1rem, 1.85rem);
  line-height: 1.4;
  color: var(--heading);
  max-width: 32ch;
  margin: 0 0 1.5rem;
}

/* Lists with check */
.list-clean { list-style: none; padding: 0; }
.list-clean li {
  padding: 0.85rem 0 0.85rem 1.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.list-clean li:last-child { border-bottom: 0; }
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.85rem;
  height: 1px;
  background: var(--gold);
}

/* Callout */
.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.callout p { margin-bottom: 0; }
.callout p + p { margin-top: 1rem; }

/* Price block */
.price {
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.price__amount { font-family: var(--serif); font-size: clamp(2.25rem, 2vw + 1rem, 3rem); color: var(--heading); line-height: 1; margin-bottom: 0.25rem; }
.price__note { font-size: 0.9rem; color: var(--body); margin-bottom: 1.25rem; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-7);
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
.site-footer h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
[data-theme="dark"] .site-footer h4 { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { text-decoration: none; color: var(--body); }
.site-footer a:hover { color: var(--gold); }
.site-footer__about p { font-size: 0.95rem; }
.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--body);
}

/* Forms */
.iframe-wrap {
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: var(--radius-lg);
}
.iframe-wrap__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
  display: block;
}
[data-theme="dark"] .iframe-wrap__label { color: var(--gold); }
.iframe-wrap iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
  background: var(--surface);
  border-radius: var(--radius);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--body);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.tag--gold { color: var(--gold-deep); border-color: var(--gold); }
[data-theme="dark"] .tag--gold { color: var(--gold); }

/* Page lead */
.lead {
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.35rem);
  color: var(--body);
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* Product hero copy */
.product-hero p { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem); }
.product-hero .lead { font-size: clamp(1.15rem, 0.7vw + 1rem, 1.4rem); color: var(--body); }

/* Body content max-width helpers */
.prose { max-width: 65ch; }
.prose p { font-size: 1.0625rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }

/* Audience CTA pair on home */
.audience-pair { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* Subtle background mark */
.bg-mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
[data-theme="dark"] .bg-mark { opacity: 0.3; }
.hero > .container { position: relative; z-index: 1; }

/* Responsive tweaks */
@media (max-width: 480px) {
  .hero { padding: var(--space-6) 0 var(--space-5); }
  .section { padding: var(--space-5) 0; }
  .track { padding: 1.75rem 1.25rem; }
  .price, .card { padding: 1.5rem 1.25rem; }
  .btn { width: 100%; justify-content: center; }
  .audience-pair .btn { width: auto; }
}

/* Print-cleanup */
@media print {
  .site-header, .site-footer, .menu-btn, .theme-toggle { display: none; }
}
