/* ===== ZenPix Design System ===== */
:root {
  --cream: #F6EFE3;
  --cream-soft: #EFE6D6;
  --espresso: #2B2019;
  --espresso-soft: #4A3C32;
  --clay: #B9835A;
  --clay-dark: #9C6B45;
  --stone: #C9C1B4;
  --stone-line: #DDD4C4;
  --white: #FFFEFB;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--espresso);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { color: var(--espresso-soft); max-width: 62ch; }

.lede {
  font-size: 1.15rem;
  color: var(--espresso-soft);
  max-width: 56ch;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clay-dark);
  letter-spacing: 0.02em;
}

/* ---- Header / Nav ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 227, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-line);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

header.site .logo img { height: 34px; width: auto; }

nav.main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.main a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--espresso-soft);
  transition: color 0.15s ease;
}

nav.main a:hover, nav.main a.active { color: var(--clay-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--espresso);
  color: var(--cream);
}
.btn-primary:hover { background: var(--clay-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--cream); }

.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--espresso);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--stone-line);
}
.mobile-nav a { padding: 0.6rem 0; font-size: 0.95rem; color: var(--espresso-soft); }
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  nav.main, header.site .btn-primary { display: none; }
  .mobile-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--stone-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.stone-stack {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.6rem;
}
.stone-stack .s { border-radius: 999px; background: var(--clay); }
.stone-stack .s1 { width: 54px; height: 16px; }
.stone-stack .s2 { width: 40px; height: 13px; background: var(--espresso); }
.stone-stack .s3 { width: 26px; height: 11px; background: var(--stone); }

.hero h1 { margin-bottom: 1.2rem; }
.hero .lede { margin-bottom: 2rem; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-panel {
  background: var(--espresso);
  color: var(--cream);
  padding: 2.2rem;
  border-radius: 2px;
}
.hero-panel h3 { color: var(--cream); font-family: var(--serif); font-weight: 500; margin-bottom: 1rem; }
.hero-panel ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.hero-panel li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--cream-soft);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(246,239,227,0.14);
}
.hero-panel li:last-child { border-bottom: none; padding-bottom: 0; }
.hero-panel li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); flex: none; }

/* ---- Sections ---- */
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
section.alt { background: var(--cream-soft); border-top: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }
section.dark { background: var(--espresso); color: var(--cream); }
section.dark h2, section.dark h3 { color: var(--cream); }
section.dark p { color: var(--cream-soft); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { margin-top: 0.4rem; }

/* ---- Risk / bullet list with stone marker ---- */
.stone-list { list-style: none; display: grid; gap: 1.6rem; }
.stone-list li { display: flex; gap: 1rem; }
.stone-marker {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clay);
  margin-top: 0.5rem;
}
.stone-list .t { font-weight: 600; font-family: var(--sans); font-size: 0.98rem; color: var(--espresso); }
.stone-list .d { font-size: 0.92rem; color: var(--espresso-soft); margin-top: 0.15rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Lifecycle steps (genuine sequence) ---- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 1.8rem; } }

.step { padding-right: 1.4rem; position: relative; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1rem; right: 0;
  width: calc(100% - 2.6rem);
  height: 1px;
  background: var(--stone-line);
}
@media (max-width: 960px) { .step:not(:last-child)::after { display: none; } }

.step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--clay-dark);
  margin-bottom: 0.6rem;
}
.step h4 { margin-bottom: 0.4rem; }
.step p { font-size: 0.88rem; }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--stone-line);
  padding: 1.8rem;
  background: var(--white);
}
.card h4 { margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: var(--cream-soft);
  border: 1px solid var(--stone-line);
  color: var(--espresso-soft);
}

/* ---- Table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--stone-line); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
th, td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--stone-line); }
th { font-family: var(--sans); font-weight: 600; background: var(--cream-soft); font-size: 0.82rem; }
tr:last-child td { border-bottom: none; }

/* ---- Testimonial / quote style blocks (reused for value prop) ---- */
.value-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--espresso);
}
.value-flow .arrow { color: var(--clay); font-size: 1.1rem; }
section.dark .value-flow { color: var(--cream); }
@media (max-width: 700px) {
  .value-flow { font-size: 1.05rem; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .value-flow .arrow { transform: rotate(90deg); margin-left: 0.2rem; }
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--espresso);
  color: var(--cream);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-banner p { color: var(--cream-soft); margin-inline: auto; margin-bottom: 1.8rem; }
.cta-banner .actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-banner .btn-primary { background: var(--clay); color: var(--espresso); }
.cta-banner .btn-primary:hover { background: var(--cream); }
.cta-banner .btn-outline { border-color: var(--cream-soft); color: var(--cream); }
.cta-banner .btn-outline:hover { background: var(--cream); color: var(--espresso); }

/* ---- Footer ---- */
footer.site {
  background: var(--espresso-soft);
  color: var(--cream-soft);
  padding: 3.5rem 0 2rem;
}
footer.site .logo img { height: 30px; margin-bottom: 1rem; }
footer.site .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { footer.site .grid { grid-template-columns: 1fr; gap: 2rem; } }
footer.site h4 { color: var(--cream); font-family: var(--sans); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0.01em; }
footer.site a, footer.site p { font-size: 0.88rem; color: var(--cream-soft); }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
footer.site a:hover { color: var(--clay); }
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(246,239,227,0.12);
  font-size: 0.78rem;
  color: var(--stone);
}

/* ---- Contact form ---- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--espresso); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--stone-line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--espresso);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; }

.contact-card { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-item .k { font-size: 0.78rem; font-weight: 600; color: var(--clay-dark); margin-bottom: 0.3rem; }
.contact-item .v { font-family: var(--serif); font-size: 1.2rem; }

/* ---- Custom cursor ---- */
@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }

  #zp-dot {
    position: fixed; top: 0; left: 0;
    width: 7px; height: 7px;
    background: var(--espresso);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  #zp-ring {
    position: fixed; top: 0; left: 0;
    width: 38px; height: 38px;
    border: 1.5px solid var(--clay);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--espresso);
    background: transparent;
    transition: width 0.3s cubic-bezier(.2,.9,.3,1), height 0.3s cubic-bezier(.2,.9,.3,1),
                background 0.3s ease, opacity 0.2s ease, border-color 0.3s ease;
  }
  #zp-ring.show { opacity: 1; }
  #zp-dot.show { opacity: 1; }
  #zp-ring.zp-grow {
    width: 70px; height: 70px;
    background: var(--clay);
    border-color: var(--clay);
    color: var(--cream);
  }
  section.dark #zp-ring:not(.zp-grow) { border-color: var(--clay); }
}
@media (pointer: coarse) {
  #zp-dot, #zp-ring { display: none; }
}
