:root {
  --bg-1: #f1efe8;
  --bg-2: #dce9ec;
  --text: #142025;
  --muted: #4f6067;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(20, 32, 37, 0.12);
  --accent: #0f7a65;
  --accent-2: #dd6b2d;
  --shadow: 0 16px 40px rgba(20, 32, 37, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 15% 12%, #f8f5ee 0, #f0ede2 32%, #dce9ec 100%);
  line-height: 1.55;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23142025' stroke-opacity='0.3'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='88' cy='54' r='1'/%3E%3Ccircle cx='136' cy='112' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  margin-top: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 0.8rem;
  aspect-ratio: 1;
  border-radius: 2px;
  rotate: 45deg;
  background: linear-gradient(135deg, var(--accent), #2e9eb7);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0.45rem 0.9rem;
  font: inherit;
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

.cta-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  color: var(--text);
}

main {
  padding-block: 4.8rem 2rem;
}

section + section {
  margin-top: 4.5rem;
}

.hero h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.05rem + 4.1vw, 4.2rem);
}

.hero h1 span {
  color: var(--accent);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 700;
}

.lead {
  max-width: 65ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.68rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.75;
}

.btn-primary {
  background: linear-gradient(125deg, var(--accent), #1a8ca3);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 122, 101, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 28px rgba(15, 122, 101, 0.3);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.panel,
.split,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.panel,
.split {
  padding: clamp(1.25rem, 0.75rem + 1.8vw, 2.2rem);
}

.section-head h2 {
  max-width: 20ch;
  font-size: clamp(1.5rem, 1.15rem + 1.25vw, 2.4rem);
}

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

.card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.3rem;
}

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

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.steps li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.steps li span {
  display: inline-block;
  margin-right: 0.45rem;
  font-weight: 700;
  color: var(--text);
}

.about-copy {
  max-width: 72ch;
  color: var(--muted);
}

.outcomes-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.outcome {
  margin: 0;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
}

.contact-card {
  padding: clamp(1.3rem, 0.8rem + 1.8vw, 2.3rem);
}

.contact-card h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.2rem);
}

.contact-card p {
  color: var(--muted);
  max-width: 60ch;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 0.9rem;
  padding: clamp(0.85rem, 0.5rem + 1vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.64rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(15, 122, 101, 0.35);
  outline-offset: 1px;
  border-color: transparent;
}

/* Fallback styling if older form markup is still served (labels/inputs as direct children). */
.contact-form > label,
.contact-form > input,
.contact-form > textarea,
.contact-form > button,
.contact-form > p {
  grid-column: 1 / -1;
}

.contact-form > label {
  margin-bottom: -0.35rem;
}

.contact-form > input,
.contact-form > textarea {
  margin-bottom: 0.2rem;
}

.contact-form input[name="_gotcha"],
.contact-form #company-website,
.contact-form label[for="company-website"] {
  display: none !important;
}

.form-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.94rem;
}

.form-status.ok {
  color: #1a6f2d;
}

.form-status.error {
  color: #8f1f1f;
}

.site-footer {
  padding: 0.65rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  animation: rise 0.62s ease forwards;
}

.delay-1.in {
  animation-delay: 0.1s;
}

.delay-2.in {
  animation-delay: 0.2s;
}

.delay-3.in {
  animation-delay: 0.3s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 930px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcomes-list {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(220px, 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.42rem 0.6rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 3.7rem;
  }
}
