/* Stackleaf Studio. Brand-fronted multi-page site. */

:root {
  --blue: #1F4E79;
  --blue-soft: #2E6FAF;
  --blue-deep: #163756;
  --sage: #1F7A4D;
  --sage-soft: #E8F1ED;
  --sage-line: #C5DDD0;
  --ink: #1B1B1B;
  --ink-soft: #4A4A4A;
  --ink-mute: #6B6B6B;
  --line: #E6E6E6;
  --line-soft: #F0EFE9;
  --paper: #FFFFFF;
  --bg: #FAFAF7;
  --bg-warm: #F5F2EB;
  --gradient: linear-gradient(90deg, #1F4E79 0%, #1F7A4D 100%);
  --shadow-sm: 0 1px 2px rgba(15, 30, 50, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 30, 50, 0.06);
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1100px;
  --narrow: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--sage); }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-block;
  padding: 6px 14px;
  background: var(--sage-soft);
  border-radius: 999px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h4 { font-size: 18px; font-weight: 600; color: var(--ink); }
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.55;
}
.gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.italic-note {
  font-style: italic;
  color: var(--ink-mute);
  font-size: 14px;
  margin-top: 14px;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.brand-name { font-size: 19px; }
.brand-sub {
  font-size: 13px;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-leaf {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  color: var(--sage);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--blue-soft); color: white; }
.nav-burger {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}
.nav-burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
  left: 3px;
}
.nav-burger span:nth-child(1) { top: 8px; }
.nav-burger span:nth-child(2) { top: 13px; }
.nav-burger span:nth-child(3) { top: 18px; }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg); top: 13px; }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg); top: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: var(--blue-soft); color: white; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  padding: 14px 12px;
  font-weight: 500;
}
.btn-secondary:hover { color: var(--sage); }
.btn-white {
  background: white;
  color: var(--blue);
}
.btn-white:hover { background: var(--bg-warm); color: var(--blue-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn .arrow {
  width: 16px;
  height: 11px;
  transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .lede {
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}
section.tight { padding: 60px 0; }
section.dark {
  background: var(--blue);
  color: white;
}
section.dark h1, section.dark h2, section.dark h3 { color: white; }
section.dark .lede { color: rgba(255, 255, 255, 0.85); }
section.dark .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}
section.warm { background: var(--bg-warm); }

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- The Why narrative cards ---------- */
.why-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, 1fr);
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-line);
}
.why-card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Transition slab ---------- */
.transition-slab {
  text-align: center;
  padding: 100px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.transition-slab h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
}
.transition-slab .brand-large {
  margin-top: 20px;
  font-size: 20px;
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Outcome cards (The What) ---------- */
.outcome-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.outcome-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.2s ease;
}
.outcome-card:hover {
  border-color: var(--sage-line);
  box-shadow: var(--shadow-md);
}
.outcome-icon {
  width: 44px;
  height: 44px;
  background: var(--sage-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  margin-bottom: 18px;
}
.outcome-icon svg { width: 22px; height: 22px; }
.outcome-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--ink);
}
.outcome-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Industry cards ---------- */
.industry-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.industry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  transition: all 0.2s ease;
}
.industry-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}
.industry-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  color: var(--sage);
}
.industry-icon svg { width: 100%; height: 100%; }
.industry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Stats / Boutique by design ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
  margin-top: 40px;
}
.stat {
  padding: 0 20px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.stat-number {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 0%, #C5DDD0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* ---------- Process steps (The How) ---------- */
.process {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  transition: all 0.2s ease;
}
.step:hover {
  border-color: var(--sage-line);
  box-shadow: var(--shadow-md);
}
.step-num {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.step-body h3 {
  font-size: 19px;
  margin-bottom: 4px;
}
.step-meta {
  font-size: 13px;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-body p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Belief list (About) ---------- */
.belief-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.belief-list li {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.55;
}
.belief-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  margin-top: 10px;
}

/* ---------- Won't-do list ---------- */
.wont-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.wont-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}
.wont-list li::before {
  content: '×';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  color: #C8513E;
  line-height: 1;
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  padding: 32px 36px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 32px 0;
}
.price-card .amount {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-card .amount-note {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}
.price-table {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.price-row:last-child { border-bottom: none; }
.price-row .label { color: var(--ink-soft); }
.price-row .value { font-weight: 600; color: var(--ink); }

/* ---------- FAQ accordion ---------- */
.faq {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover { border-color: var(--sage-line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  color: var(--sage);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 280px;
  padding: 0 24px 22px;
}

/* ---------- Big CTA strip ---------- */
.cta-strip {
  background: var(--blue);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin: 48px auto;
}
.cta-strip h2 {
  color: white;
  margin-bottom: 12px;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
}
.cta-strip .italic-note { color: rgba(255, 255, 255, 0.7); }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-top: 32px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.field input, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .req { color: #C8513E; font-weight: 600; }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 4px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 14px;
  color: var(--ink);
}
.checkbox-item:hover { border-color: var(--sage-line); }
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.checkbox-item input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--blue);
}
.checkbox-item:has(input:checked) {
  border-color: var(--sage);
  background: var(--sage-soft);
}
@media (max-width: 600px) {
  .checkbox-group { grid-template-columns: 1fr; }
}
.contact-side h3 { margin-bottom: 8px; font-size: 18px; }
.contact-side .email-box {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.contact-side .email-box a {
  font-weight: 600;
  font-size: 17px;
}
.contact-side .meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Next-steps mini list ---------- */
.next-steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: nx;
}
.next-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  counter-increment: nx;
}
.next-step::before {
  content: counter(nx, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--sage); }
.footer-brand p {
  margin-top: 12px;
  max-width: 280px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.footer-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 14px;
}
.footer-form button {
  padding: 10px 16px;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.footer-form button:hover { background: var(--blue-soft); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-200%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; font-size: 16px; }
  .nav-cta { display: none; }
  .hero { padding: 56px 0 40px; }
  section { padding: 56px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .stat:not(:last-child)::after { display: none; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .step-num { font-size: 28px; }
  .wont-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-strip { padding: 40px 24px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
