:root {
  --bg: #F5F0E8;
  --bg-accent: #EDE7DD;
  --line: rgba(28, 25, 23, 0.1);
  --line-strong: rgba(28, 25, 23, 0.18);
  --text: #1C1917;
  --muted: #635B55;
  --accent: #2D6A4F;
  --max-width: 1180px;
  --header-height: 72px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Accessibility ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button:focus-visible {
  outline-offset: 2px;
}

.nav-toggle:focus-visible {
  outline-offset: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

/* ── Layout ── */

.site-shell {
  position: relative;
}

.section-inner,
.hero-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-height);
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 200ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

/* ── Mobile nav toggle ── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-body {
  max-width: 34rem;
  margin-top: 2.5rem;
}

.hero-text,
.support-copy p,
.support-list p,
.workflow-step p,
.proof-grid p,
.cta-panel > p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button:active {
  transform: scale(0.98);
}

/* ── Shared section styles ── */

.hero,
.support-section,
.workflow-section,
.proof-section,
.faq-section,
.cta-section {
  position: relative;
}

.support-section,
.workflow-section,
.proof-section,
.faq-section,
.cta-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.support-section::before,
.workflow-section::before,
.proof-section::before,
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}

.section-heading {
  max-width: 50rem;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ── Services ── */

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 2.6rem;
}

.support-intro {
  padding-right: 1rem;
}

.support-list {
  display: grid;
  gap: 1.6rem;
}

.support-list > div,
.workflow-step,
.proof-grid article {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
}

.list-label,
.proof-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Workflow ── */

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}

.step-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Proof ── */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}

/* ── FAQ ── */

.faq-list {
  max-width: 42rem;
  margin-top: 2.8rem;
}

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.7;
}

/* ── CTA ── */

.cta-section {
  background: var(--bg-accent);
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 8vw, 8rem);
}

.cta-panel {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}

.cta-panel h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.cta-panel > p {
  max-width: 38rem;
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.site-footer p,
.footer-link {
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-link:hover {
  color: var(--text);
}

/* ── Privacy page ── */

.privacy-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.privacy-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.privacy-updated {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 0.75rem;
}

.privacy-content {
  max-width: 42rem;
  margin-top: 3rem;
}

.privacy-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-content ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.privacy-content li {
  margin-bottom: 0.4rem;
}

.privacy-content a {
  color: var(--accent);
}

.privacy-content a:hover {
  color: var(--text);
}

/* ── Reveal ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 15;
    flex-direction: column;
    gap: 0;
    padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
    background: var(--bg);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .site-nav a {
    display: block;
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .support-layout,
  .workflow-rail,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: clamp(2rem, 6vw, 4rem);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .hero-inner {
    width: min(100% - 1.5rem, var(--max-width));
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
}

@media (max-width: 400px) {
  .brand-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
