:root {
  --espresso: #3d2b1f;
  --sand: #f5f5dc;
  --gold: #d2b48c;
  --off-white: #faf9f6;
  --ink: #2e2118;
  --muted: #6f5a49;
  --border-soft: rgba(61, 43, 31, 0.18);
  --shadow-soft: 0 20px 48px rgba(40, 28, 18, 0.08);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--off-white) 0%, #f6f1ea 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.15rem, 8vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 4vw, 1.65rem);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
}

.section-pad {
  padding: 4.5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2rem;
  max-width: 760px;
}

.section-head p {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--espresso);
  color: var(--off-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}

.skip-link:focus-visible {
  left: 1rem;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(2px);
}

.shape-one {
  width: 300px;
  aspect-ratio: 1;
  top: 6%;
  right: -100px;
  background: radial-gradient(circle, rgba(210, 180, 140, 0.4), rgba(210, 180, 140, 0));
}

.shape-two {
  width: 220px;
  aspect-ratio: 1;
  top: 48%;
  left: -60px;
  background: radial-gradient(circle, rgba(61, 43, 31, 0.18), rgba(61, 43, 31, 0));
}

.shape-three {
  width: 360px;
  aspect-ratio: 1;
  bottom: -100px;
  right: 14%;
  background: radial-gradient(circle, rgba(245, 245, 220, 0.85), rgba(245, 245, 220, 0));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(61, 43, 31, 0.75);
  border-bottom: 1px solid rgba(245, 245, 220, 0.2);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--off-white);
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 1rem;
  right: 1rem;
  background: rgba(44, 31, 21, 0.96);
  border: 1px solid rgba(245, 245, 220, 0.2);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  box-shadow: 0 16px 32px rgba(20, 13, 8, 0.3);
  display: none;
}

.site-nav ul {
  list-style: none;
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
}

.site-nav.is-open {
  display: block;
}

.site-nav a {
  color: var(--off-white);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.site-nav a.is-current {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.site-header .btn-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(245, 245, 220, 0.45);
  background: rgba(245, 245, 220, 0.08);
  color: var(--off-white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle span::before {
  top: -0.35rem;
}

.nav-toggle span::after {
  top: 0.35rem;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(0.35rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-0.35rem) rotate(-45deg);
}

.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  transform: translate3d(var(--mx), var(--my), 0);
  will-change: transform;
}

.btn:hover,
.btn:focus-visible {
  box-shadow: 0 12px 24px rgba(61, 43, 31, 0.18);
}

.btn-primary {
  background: var(--gold);
  color: var(--espresso);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c8ab84;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--espresso);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(210, 180, 140, 0.2);
}

.btn-cta {
  background: var(--gold);
  color: var(--espresso);
  border-color: transparent;
}

.hero {
  padding-top: 5.5rem;
}

.page-hero {
  padding-bottom: 2rem;
}

.page-hero .lead {
  max-width: 72ch;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.3rem;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-proof {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-proof li {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-proof strong {
  color: var(--espresso);
  font-size: 1rem;
}

.hero-visual {
  background: linear-gradient(155deg, rgba(245, 245, 220, 0.85), rgba(210, 180, 140, 0.2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-soft);
  background: rgba(250, 249, 246, 0.85);
}

.performance {
  background: linear-gradient(180deg, rgba(245, 245, 220, 0.7), rgba(250, 249, 246, 0.35));
}

.speed-tool {
  background: var(--off-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.slider-label {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--espresso);
}

#complexity-label {
  color: var(--muted);
}

#complexity-slider {
  width: 100%;
  margin-top: 0.8rem;
  accent-color: var(--espresso);
}

.slider-hint {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.comparison-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.score-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: linear-gradient(160deg, rgba(250, 249, 246, 0.95), rgba(245, 245, 220, 0.75));
}

.stack-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--espresso);
}

.stack-state {
  margin-top: 0.45rem;
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.is-slow {
  background: rgba(110, 56, 41, 0.14);
  color: #6e3829;
}

.is-fast {
  background: rgba(66, 96, 65, 0.13);
  color: #426041;
}

.stack-score {
  margin-top: 0.65rem;
  font-size: 1.4rem;
  font-family: var(--font-heading);
}

.meter {
  margin-top: 0.65rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #ece5d9;
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 280ms ease;
}

.wp-fill {
  background: linear-gradient(90deg, #a87761, #7a4a37);
}

.jaex-fill {
  background: linear-gradient(90deg, #d2b48c, #7e6548);
}

.services {
  background: rgba(250, 249, 246, 0.62);
}

.feature-grid {
  display: grid;
  gap: 0.9rem;
}

.feature-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  background: var(--off-white);
  box-shadow: 0 10px 25px rgba(45, 32, 22, 0.05);
}

.feature-card p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.local-link-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.local-link-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--off-white);
  padding: 1rem;
}

.local-link-card h3 {
  font-size: 1.1rem;
}

.local-link-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.local-link-card a {
  margin-top: 0.7rem;
  display: inline-flex;
  font-weight: 700;
  color: var(--espresso);
  text-decoration: underline;
}

.pricing-shell {
  margin-top: 2rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: linear-gradient(170deg, rgba(245, 245, 220, 0.65), rgba(250, 249, 246, 0.95));
}

.pricing-toggle {
  display: inline-flex;
  gap: 0.4rem;
  background: rgba(61, 43, 31, 0.08);
  border-radius: 999px;
  padding: 0.28rem;
}

.toggle-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--espresso);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toggle-btn.is-active {
  background: var(--espresso);
  color: var(--off-white);
}

.popular-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.pricing-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.pricing-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: var(--off-white);
  display: grid;
  gap: 0.7rem;
}

.pricing-card.is-spotlight {
  border-color: rgba(210, 180, 140, 0.9);
  box-shadow: 0 16px 34px rgba(61, 43, 31, 0.12);
}

.badge {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 0.24rem 0.68rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--espresso);
  color: var(--off-white);
}

.pricing-value {
  font-size: 2rem;
  font-family: var(--font-heading);
}

.pricing-cycle {
  color: var(--muted);
  font-size: 0.85rem;
}

.pricing-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pricing-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.57rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--gold);
}

.about-grid {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.about-copy p {
  color: var(--muted);
}

.about-visuals {
  display: grid;
  gap: 0.75rem;
}

.about-visuals img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.contact-card,
.contact-side {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.contact-card h2,
.contact-side h3 {
  margin-bottom: 0.4rem;
}

.contact-card p,
.contact-side p {
  color: var(--muted);
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.form-success {
  margin-top: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(66, 96, 65, 0.35);
  background: rgba(66, 96, 65, 0.08);
  color: #345133;
  font-weight: 600;
  font-size: 0.88rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  color: var(--espresso);
  font-weight: 600;
  font-size: 0.86rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(61, 43, 31, 0.25);
  border-radius: 0.7rem;
  background: #fffdf9;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 0.7rem 0.8rem;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(210, 180, 140, 0.55);
  border-color: var(--gold);
}

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.84rem;
}

.consent input {
  margin-top: 0.12rem;
}

.contact-steps {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.contact-note a {
  color: var(--espresso);
  text-decoration: underline;
}

.process-grid,
.principles-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.faq-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--off-white);
  padding: 0.9rem 1rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--espresso);
}

.faq-item p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.process-card,
.principle-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--off-white);
}

.process-card p,
.principle-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: linear-gradient(140deg, rgba(61, 43, 31, 0.92), rgba(50, 35, 24, 0.86));
  color: var(--off-white);
  display: grid;
  gap: 0.9rem;
}

.cta-panel .eyebrow {
  color: #dfceb1;
}

.cta-panel p {
  color: rgba(250, 249, 246, 0.87);
  max-width: 62ch;
}

.cta-panel .btn {
  width: max-content;
}

.thanks-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
  max-width: 760px;
}

.thanks-panel p {
  color: var(--muted);
  margin-top: 0.9rem;
}

.thanks-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-footer {
  background: #24180f;
  color: #efe7da;
  border-top: 1px solid rgba(245, 245, 220, 0.13);
  padding-top: 2.2rem;
}

.footer-grid {
  display: grid;
  gap: 1.7rem;
  align-items: start;
}

.site-footer .brand {
  color: #f4ead9;
}

.footer-copy {
  margin-top: 0.55rem;
  color: rgba(239, 231, 218, 0.84);
  max-width: 30ch;
}

.perf-badge {
  margin-top: 0.9rem;
  width: max-content;
  border: 1px solid rgba(210, 180, 140, 0.55);
  color: #e7d2b3;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.32rem 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.footer-links a {
  color: rgba(239, 231, 218, 0.84);
  font-size: 0.9rem;
}

.social-wrap {
  display: flex;
  gap: 0.65rem;
}

.social-wrap a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 180, 140, 0.45);
  color: #e9d6ba;
}

.social-wrap svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 245, 220, 0.1);
  margin-top: 1.6rem;
  padding: 1rem 0 1.4rem;
}

.footer-bottom p {
  color: rgba(239, 231, 218, 0.72);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .section-pad {
    padding: 6rem 0;
  }

  body.menu-open {
    overflow: auto;
  }

  .site-nav ul {
    display: flex;
    gap: 1.3rem;
    overflow-x: auto;
  }

  .site-nav {
    position: static;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: block;
  }

  .site-header .btn-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.88rem;
    padding: 0.8rem 1.3rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.8rem;
  }

  .hero-proof {
    grid-template-columns: repeat(3, max-content);
    gap: 1rem;
  }

  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-visuals {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1.3rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid,
  .principles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.25fr auto auto;
    justify-content: space-between;
  }
}

@media (min-width: 1040px) {
  .pricing-shell,
  .speed-tool {
    padding: 1.5rem;
  }

  .feature-card,
  .pricing-card {
    padding: 1.4rem;
  }
}
