/* ===== Design tokens — from Sunset Analytics design system ===== */
:root {
  --surface-100: #f7f1e8;
  --surface-200: #efe4d2;
  --surface-300: #d9c9b0;
  --ink: #2b2118;
  --ink-muted: #5c4b3b;
  --terracotta: #a8452b;
  --terracotta-dark: #7e3320;
  --amber: #d9a441;
  --sage: #5f6e54;
  --rust: #8c3b27;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 32px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
  background: var(--surface-100);
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
}

h2 {
  font-size: 26px;
  line-height: 32px;
  margin-bottom: var(--space-4);
}

h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  margin-bottom: var(--space-2);
}

section { padding: 72px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
}

.btn-large {
  font-size: 18px;
  padding: 14px 28px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--surface-100);
  border-bottom: 1px solid var(--surface-300);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-mark {
  height: 36px;
  width: auto;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover {
  color: var(--terracotta);
}

.site-nav a:not(:first-child) {
  position: relative;
  margin-left: var(--space-3);
}
.site-nav a:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: calc(-1 * var(--space-3) / 2 - 4px);
  color: var(--surface-300);
  font-weight: 400;
}

/* ===== Hero ===== */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-inner {
  max-width: 760px;
  text-align: left;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 58px;
  margin-bottom: var(--space-4);
}

.hero-sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: var(--space-4);
}

/* ===== Problem ===== */
.problem {
  background: var(--surface-200);
}

.problem h2 {
  max-width: 640px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.problem-item p {
  color: var(--ink-muted);
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.card {
  background: var(--surface-200);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.card p {
  color: var(--ink-muted);
}

/* ===== Pricing ===== */
.pricing-sub {
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: var(--space-4);
  margin-top: calc(-1 * var(--space-3));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.price-card {
  background: var(--surface-200);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  background: var(--surface-100);
  border: 2px solid var(--terracotta);
}

.price {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.price-unit {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
}

.price-desc {
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.price-card .btn { align-self: flex-start; }

.pricing-footnote {
  color: var(--ink-muted);
  font-size: 13px;
  margin-top: var(--space-4);
}

/* ===== About ===== */
.about {
  background: var(--surface-200);
}

.about-inner {
  max-width: 720px;
}

.about p {
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 720px;
}

.faq-item p {
  color: var(--ink-muted);
}

/* ===== Contact ===== */
.contact {
  background: var(--ink);
  color: var(--surface-100);
  text-align: center;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact h2 {
  color: var(--surface-100);
}

.contact p {
  color: var(--surface-300);
  margin-bottom: var(--space-4);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--surface-300);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-inner a {
  color: var(--ink-muted);
}
.footer-inner a:hover {
  color: var(--terracotta);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .site-nav { gap: var(--space-2); }

  .hero-headline { font-size: 40px; line-height: 44px; }

  .problem-grid,
  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    padding-top: var(--space-2);
    border-top: 1px solid var(--surface-300);
  }

  .site-nav a { font-size: 14px; }
}

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