/* Sprout and Spark Digital — brand styles
   Colours and fonts from "BRAND - Sprout and Spark Digital" project knowledge file. */

:root {
  --near-black: #181B19;
  --white: #FFFFFF;
  --grey: #7C898B;
  --green: #6EC792;
  --dark-teal: #253439;
  --grey-on-dark-teal: #9FABAC; /* lightened from brand grey #7C898B: on the dark-teal footer panel the brand grey falls to ~3.6:1 contrast, below WCAG AA's 4.5:1 for body text. This tint keeps the same muted feel at ~5.5:1. Not needed on the near-black background, which the brand grey already passes at ~4.8:1. */

  /* Night Garden tokens (see DESIGN.md at the project root) */
  --night: #181B19;
  --night-raised: #202523;
  --hairline-dark: #33403F;
  --fog: #C3CCCD;          /* body copy on Night, 10.6:1 */
  --mist-dt: #9FABAC;      /* supporting text on Night and Deep Teal */
  --sprout-press: #5FB582;
  --deep-sprout: #2E7D52;  /* green text on light grounds, 5:1 on white */
  --slate: #5E6B6D;
  --seedbed: #F4F6F3;

  --font-heading: 'Space Grotesk', Arial, Helvetica, sans-serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

::selection { background: #6EC792; color: #181B19; }
html { scrollbar-color: #33403F #181B19; accent-color: #6EC792; }
input, textarea { caret-color: #2E7D52; }
.contact-panel input, .contact-panel textarea { caret-color: #6EC792; }
:focus-visible { outline: 2px solid #6EC792; outline-offset: 3px; }
main section:not(.hx-hero):not(.hx-products):not(.hx-cta):not(.pl-section):not(.hx-strip):not(.px-hero) :focus-visible { outline-color: #2E7D52; }

img {
  max-width: 100%;
  display: block;
}

/* Make the HTML "hidden" attribute win over display:grid/flex set elsewhere */
[hidden] {
  display: none !important;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  background: var(--near-black);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green);
}

/* Client portal sign in: a quiet ghost button, so Start a project stays the main action */
.main-nav a.nav-login {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  transition: border-color .15s cubic-bezier(.2,0,0,1), color .15s cubic-bezier(.2,0,0,1);
}

.main-nav a.nav-login:hover {
  border-color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; }
  .main-nav { display: none; }
  .main-nav.open { display: block; width: 100%; }
  .main-nav ul { flex-direction: column; gap: 16px; padding: 16px 0 24px; }
  .nav-toggle { display: block; }
  .main-nav ul { align-items: stretch; }
  .main-nav a.nav-login { display: block; text-align: center; padding: 12px 16px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--near-black);
}

.btn-primary { transition: background .15s cubic-bezier(.2,0,0,1); }
.btn-primary:hover {
  background: var(--sprout-press);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--hairline-dark);
  transition: border-color .15s cubic-bezier(.2,0,0,1);
}

.btn-secondary:hover {
  border-color: var(--green);
}

/* ---- Hero ---- */
.hero {
  background: var(--near-black);
  color: var(--white);
  padding: 96px 0 96px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero h1 .accent {
  color: var(--green);
}

.hero p {
  font-size: 18px;
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section basics ---- */
section {
  padding: 80px 0;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--deep-sprout);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 16px;
}

.section-intro {
  max-width: 640px;
  color: var(--dark-teal);
  margin-bottom: 48px;
}

.section-alt {
  background: var(--seedbed);
}

.section-dark {
  background: var(--near-black);
  color: var(--white);
}

.section-dark .section-intro {
  color: var(--grey);
}

/* ---- Service cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #E3E6E5;
  border-radius: 12px;
  padding: 28px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--dark-teal);
}

.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* ---- SaaS teaser ---- */
.teaser {
  border: 1px dashed var(--green);
  border-radius: 12px;
  padding: 36px;
  background: rgba(110, 199, 146, 0.06);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark-teal);
  color: var(--white);
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid a {
  color: var(--grey-on-dark-teal);
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 14px;
  color: var(--grey-on-dark-teal);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Contact form ---- */
.form-grid {
  display: grid;
  gap: 20px;
  max-width: 560px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #C9CFCE;
  border-radius: 6px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.form-note {
  font-size: 14px;
  color: var(--dark-teal); /* brand grey on white is ~3.6:1, below AA for small text */
}

.form-note a {
  color: var(--dark-teal);
}

/* Spam honeypot: moved off-screen rather than display:none, which some bots detect */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  max-width: 560px;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
}

.form-status-error {
  background: #FBEDEE;
  border: 1px solid #E5767A;
  color: #8E2A2F;
}

.form-status-ok {
  background: rgba(110, 199, 146, 0.10);
  border: 1px solid var(--green);
  color: var(--near-black);
}

button.btn {
  border: none;
  cursor: pointer;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ---- Long-form text (privacy policy) ---- */
.prose h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 36px 0 10px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 14px;
}

/* ---- Contact page: dark zone with green-bordered form panel ---- */
.contact-zone {
  background: var(--near-black);
  color: var(--white);
  padding-top: 40px;
  padding-bottom: 104px;
  color-scheme: dark; /* native dropdowns and scrollbars go dark too */
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-panel { order: -1; } /* form first on phones */
}

.contact-aside h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 24px;
}

.next-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 24px;
}

.next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  color: #C3CCCD;
  font-size: 15px;
}

.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
}

.next-steps strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  margin-bottom: 2px;
}

.contact-direct {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(110, 199, 146, 0.25);
  color: var(--grey-on-dark-teal);
  font-size: 15px;
}

.contact-email {
  color: var(--green);
  font-weight: 600;
  user-select: all;
}

.contact-panel {
  background: #202522;
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 36px;
}

@media (max-width: 560px) {
  .contact-panel { padding: 24px 20px; }
}

.contact-panel .form-grid {
  max-width: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

.contact-panel label {
  color: var(--white);
}

.contact-panel .optional {
  font-weight: 400;
  color: var(--grey-on-dark-teal);
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  background: #131614;
  color: var(--white);
  border: 1px solid rgba(110, 199, 146, 0.55);
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-panel textarea::placeholder {
  color: #9FABAC;
}

.contact-panel input:hover,
.contact-panel select:hover,
.contact-panel textarea:hover {
  border-color: var(--green);
}

.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus {
  border-color: var(--green);
  outline: 2px solid var(--green);
  outline-offset: 0;
}

.contact-panel .btn-primary {
  width: 100%;
  padding: 16px 28px;
  font-size: 16px;
}

.contact-panel .form-note {
  margin-top: 14px;
  color: var(--grey-on-dark-teal);
}

.contact-panel .form-note a {
  color: var(--green);
}

.contact-panel .form-status-ok {
  max-width: none;
  margin-bottom: 0;
  background: rgba(110, 199, 146, 0.10);
  color: #DCE3E3;
}

.contact-panel .form-status-ok h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel input, .contact-panel select, .contact-panel textarea { transition: none; }
}

/* =====================================================================
   Homepage v2: real work in browser frames + sprout/spark illustration
   ===================================================================== */
:root {
  --ink-2: #202522;        /* raised panel on near-black */
  --mist: var(--fog);      /* legacy name: body text on near-black */
  --paper: var(--seedbed); /* light section ground */
  --line: #DDE3DF;
}

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Shared section heading block */
.hx-head { max-width: 640px; margin-bottom: 48px; }
.hx-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hx-head p { color: var(--dark-teal); font-size: 18px; }

/* Browser window frame used for every screenshot */
.hx-window {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 27, 25, 0.12);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px rgba(24, 27, 25, 0.14);
}
.hx-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #EEF1EF;
  border-bottom: 1px solid #E1E6E3;
}
.hx-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD3CF; }
.hx-bar i:first-child { background: var(--green); }
.hx-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: #4F5B5D;
  background: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hx-window img { width: 100%; height: auto; }
.hx-window-dark .hx-bar { background: #2A302D; border-bottom-color: #33403F; }
.hx-window-dark .hx-bar span { background: #1A1E1C; color: #9FABAC; }
.hx-window-dark .hx-bar i { background: #3A4341; }
.hx-window-dark .hx-bar i:first-child { background: var(--green); }

/* ---- Hero ---- */
.hx-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--near-black);
  color: var(--white);
  padding: 72px 0 96px;
}
.hx-sprout {
  position: absolute;
  right: -60px;
  top: 20px;
  width: 420px;
  height: auto;
  opacity: .7;
  pointer-events: none;
}
.hx-sprout .hx-stem, .hx-sprout line {
  fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round;
}
.hx-sprout .hx-leaf { fill: rgba(110,199,146,.10); stroke: var(--green); stroke-width: 2; }
.hx-sprout .hx-spark path { fill: var(--green); }
.hx-stem { stroke-dasharray: 900; stroke-dashoffset: 0; animation: hx-grow 2.4s ease-out both; }
.hx-spark { transform-box: fill-box; transform-origin: center; animation: hx-twinkle 3.2s ease-in-out 1.6s infinite; }
@keyframes hx-grow { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes hx-twinkle { 0%,100% { opacity: 1; transform: translate(330px,120px) scale(1); } 50% { opacity: .55; transform: translate(330px,120px) scale(.86); } }

.hx-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.hx-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mist);
  border: 1px solid rgba(110,199,146,.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hx-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hx-hero h1 .accent { color: var(--green); }
.hx-lede { font-size: 18px; color: var(--mist); max-width: 520px; margin-bottom: 34px; }

/* Stacked screenshots */
.hx-carousel { min-width: 0; }
.hx-stack { position: relative; aspect-ratio: 1.18; max-width: 100%; }
.hx-stack .hx-window {
  position: absolute; top: 0; left: 0; width: 84%;
  transform-origin: center;
  transition: transform .9s cubic-bezier(.22,.8,.24,1), opacity .7s ease, box-shadow .6s ease;
  will-change: transform, opacity;
}
/* Slots: the carousel script moves each screenshot between these */
.hx-stack .is-front  { z-index: 3; opacity: 1;   transform: translate(10%, 62%) rotate(0deg) scale(1);
                       box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px #33403F; }
.hx-stack .is-mid    { z-index: 2; opacity: .95; transform: translate(-2%, 30%) rotate(-2.5deg) scale(.9); }
.hx-stack .is-back   { z-index: 1; opacity: .7;  transform: translate(19%, 0%) rotate(3deg) scale(.86); }
.hx-stack .is-hidden { z-index: 0; opacity: 0;   transform: translate(26%, -8%) rotate(5deg) scale(.8); pointer-events: none; }

.hx-dots { position: relative; z-index: 4; display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.hx-dot-btn {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(195,204,205,.35);
  transition: width .3s ease, background .3s ease;
}
.hx-dot-btn:hover { background: rgba(195,204,205,.7); }
.hx-dot-btn.is-active { width: 28px; background: var(--green); }
.hx-dot-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 900px) {
  .hx-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hx-stack { aspect-ratio: 1.1; }
  .hx-sprout { display: none; }
}

/* ---- Client logo strip ---- */
.hx-strip { background: var(--dark-teal); color: var(--white); padding: 26px 0; }
.hx-strip-inner { display: flex; align-items: center; gap: 20px 36px; flex-wrap: wrap; }
.hx-strip-label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.hx-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.hx-logo {
  display: flex; align-items: center; justify-content: center;
  height: 76px; min-width: 104px; padding: 8px 16px;
  background: #fff; border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color .15s cubic-bezier(.2,0,0,1);
}
.hx-logo-dark { background: #323F48; }
.hx-logo img { max-height: 60px; width: auto; }
.hx-logo:hover, .hx-logo:focus-visible { border-color: var(--green); }
.hx-logo:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 520px) {
  .hx-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hx-logo { height: 64px; min-width: 0; padding: 6px 12px; }
  .hx-logo img { max-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .hx-logo { transition: none; } }

/* ---- Services ---- */
.hx-services { background: var(--paper); }
.hx-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1000px) { .hx-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .hx-svc-grid { grid-template-columns: minmax(0, 1fr); } }
.hx-svc {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  transition: border-color .15s cubic-bezier(.2,0,0,1);
}
.hx-svc:hover, .hx-svc:focus-visible {
  border-color: var(--deep-sprout);
}
.hx-svc:not(.hx-svc-cta) { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hx-svc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.hx-svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hx-svc:hover .hx-svc-media img, .hx-svc:focus-visible .hx-svc-media img { transform: scale(1.05); }
.hx-svc-body { display: block; padding: 0 22px 24px; }
.hx-svc svg {
  width: 44px; height: 44px; padding: 9px;
  border-radius: 12px;
  background: var(--near-black);
  border: 3px solid #fff;
  box-sizing: content-box;
  fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  margin: -25px 0 14px;
  position: relative;
}
.hx-svc-cta { display: flex; flex-direction: column; justify-content: center; }
.hx-svc h3 { font-family: var(--font-heading); font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.hx-svc p { font-size: 14px; color: var(--dark-teal); }
.hx-svc-cta { background: var(--near-black); border-color: var(--near-black); color: var(--white); }
.hx-svc-cta p { color: var(--mist); }
.hx-arrow { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 700; }

/* ---- Selected work ---- */
.hx-work { background: var(--seedbed); border-top: 1px solid var(--line); }
.hx-case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--near-black);
  color: var(--white);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
}
.hx-case-feature .hx-window { border-color: var(--hairline-dark); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.hx-case-feature .hx-case-copy p { color: var(--mist); }
@media (min-width: 901px) { .hx-case-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } .hx-case-flip .hx-window { order: 2; } }
@media (max-width: 900px) { .hx-case-feature { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 28px; } }
.hx-products .hx-case-feature { background: var(--ink-2); border: 1px solid var(--hairline-dark); }
.hx-products .hx-case-feature:last-child { margin-bottom: 0; }

.hx-type {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--deep-sprout); margin: 0 0 12px;
}
.hx-case-feature .hx-type { color: var(--green); margin-top: 0; }
.hx-case h3 { font-family: var(--font-heading); font-size: 24px; margin: 20px 0 4px; }
.hx-case-feature h3 { margin-top: 0; }
.hx-case-feature h3 { font-size: clamp(28px, 3.2vw, 40px); }
.hx-case p { font-size: 16px; color: var(--dark-teal); margin-bottom: 14px; }

.hx-stats { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0 26px; }
.hx-stats strong {
  display: block; font-family: var(--font-heading); font-size: 30px; color: var(--green);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.hx-stats span { font-size: 14px; color: var(--mist); }

.hx-link { font-weight: 700; color: var(--deep-sprout); text-decoration: none; border-bottom: 2px solid rgba(46,125,82,.35); }
.hx-link:hover { border-bottom-color: currentColor; }
.hx-case-feature .hx-link, .hx-products .hx-link { color: var(--green); }

.hx-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hx-concepts .hx-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 960px) { .hx-case-grid, .hx-concepts .hx-case-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
.hx-case-grid .hx-window { transition: border-color .15s cubic-bezier(.2,0,0,1); }
.hx-case-grid .hx-case:hover .hx-window { border-color: var(--deep-sprout); }

/* ---- Products ---- */
.hx-products {
  background-color: var(--near-black);
  color: var(--white);
}
.hx-products .hx-head p, .hx-prod p { color: var(--mist); }
.hx-prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .hx-prod-grid { grid-template-columns: minmax(0, 1fr); } }
.hx-prod {
  background: var(--ink-2);
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 24px;
}
.hx-prod .hx-window { margin-bottom: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.hx-prod h3 { font-family: var(--font-heading); font-size: 24px; margin-bottom: 8px; }
.hx-prod p { font-size: 16px; margin-bottom: 14px; }
.hx-ticks { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.hx-ticks li { position: relative; padding-left: 28px; color: var(--mist); font-size: 15px; }
.hx-ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(110,199,146,.18); box-shadow: inset 0 0 0 1.5px var(--green);
}
.hx-ticks li::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px;
  border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg);
}
.hx-pill {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--green);
  border: 1px solid rgba(110,199,146,.45); border-radius: 999px; padding: 4px 12px;
}

/* ---- Process ---- */
.hx-process { background: var(--paper); }
.hx-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.hx-steps::before {
  content: ""; position: absolute; left: 6%; right: 20%; top: 46px;
  border-top: 2px dashed rgba(46,125,82,.35);
}
@media (max-width: 900px) {
  .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .hx-steps::before { display: none; }
}
@media (max-width: 480px) { .hx-steps { grid-template-columns: minmax(0, 1fr); } }
.hx-steps li { position: relative; }
.hx-steps svg {
  width: 92px; height: 92px; padding: 12px;
  background: var(--near-black); border-radius: 50%;
  border: 2px solid var(--green);
  position: relative; z-index: 1;
  margin-bottom: 18px;
}
.hx-steps .soil { stroke: #3A4341; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.hx-steps .seed { fill: #9FABAC; }
.hx-steps .stem { stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.hx-steps .leaf { fill: rgba(110,199,146,.25); stroke: var(--green); stroke-width: 2; }
.hx-steps .spark { fill: var(--green); }
.hx-step-n {
  position: absolute; top: 0; left: 70px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: var(--near-black);
  font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.hx-steps h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 8px; }
.hx-steps p { font-size: 15px; color: var(--dark-teal); }

/* ---- CTA ---- */
.hx-cta { background: var(--near-black); color: var(--white); padding: 72px 0; }
.hx-cta-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 40px;
  background: var(--ink-2);
}
.hx-cta h2 { font-family: var(--font-heading); font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 6px; }
.hx-cta p { color: var(--mist); }
.hx-cta-spark { width: 64px; height: 64px; fill: var(--green); }
@media (max-width: 760px) {
  .hx-cta-inner { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; gap: 20px; }
  .hx-cta-spark { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-stem, .hx-spark { animation: none; }
  .hx-stack .hx-window, .hx-dot-btn { transition: none; }
  .hx-svc, .hx-case-grid .hx-window, .hx-svc-media img { transition: none; }
}

/* =====================================================================
   Inner pages: shared hero, Services rows, care plans, About
   ===================================================================== */
.px-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--near-black);
  color: var(--white);
  padding: 88px 0 80px;
}
.px-hero-tight {
  padding-bottom: 24px;
}
@media (max-width: 640px) {
  .sv-jump ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .sv-jump a { white-space: nowrap; }
  .sv-jump { margin-bottom: 32px; }
}
.px-hero-inner { position: relative; }
.px-hero h1 { max-width: 780px; }
.px-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.px-lede { font-size: 18px; color: var(--mist); max-width: 600px; margin-bottom: 30px; }
.px-hero-tight .px-lede { margin-bottom: 0; }
.px-sprout {
  position: absolute; right: 4%; top: -30px; width: 300px; height: auto; opacity: .5; pointer-events: none;
}
.px-sprout .hx-stem { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; }
.px-sprout .hx-leaf { fill: rgba(110,199,146,.10); stroke: var(--green); stroke-width: 2; }
.px-sprout .hx-spark path { fill: var(--green); }
@media (max-width: 900px) { .px-sprout { opacity: .18; right: -80px; } }

/* ---- Services page ---- */
.sv-wrap { background: var(--seedbed); padding-top: 40px; }
.sv-jump { margin-bottom: 56px; }
.sv-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.sv-jump a {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600;
  color: var(--near-black); background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; transition: border-color .2s ease, background .2s ease;
}
.sv-jump a:hover, .sv-jump a:focus-visible { border-color: var(--deep-sprout); }

.sv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  scroll-margin-top: 96px;
}
.sv-row + .sv-row { border-top: 1px solid var(--line); }
@media (min-width: 901px) { .sv-flip .sv-media { order: 2; } }
@media (max-width: 900px) { .sv-row { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 32px 0; } }
.sv-media { position: relative; }
.sv-media img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 12px; box-shadow: 0 20px 50px rgba(24,27,25,.14);
}
.sv-badge { position: absolute; left: 24px; bottom: -22px; }
.sv-flip .sv-badge { left: auto; right: 24px; }
.sv-badge svg {
  display: block; width: 46px; height: 46px; padding: 10px; box-sizing: content-box;
  border-radius: 12px; background: var(--near-black); border: 3px solid #fff;
  fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.sv-copy h2 { font-family: var(--font-heading); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; margin-bottom: 12px; }
.sv-lede { font-size: 18px; color: var(--dark-teal); margin-bottom: 4px; }
.sv-copy .hx-ticks li { color: var(--dark-teal); }
.sv-good { font-size: 15px; color: var(--dark-teal); margin-bottom: 16px; }
.sv-good strong { color: var(--near-black); }
.sv-note { font-size: 14px; color: var(--dark-teal); background: var(--white); border: 1px solid var(--line); padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }

/* ---- Care plans ---- */
.pl-section {
  background-color: var(--near-black);
  color: var(--white);
}
.pl-section .hx-head p { color: var(--mist); }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 960px) { .pl-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.pl-card {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--hairline-dark); border-radius: 12px; padding: 30px 28px;
}
.pl-feature { border: 1px solid var(--green); }
.pl-flag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--near-black);
  background: var(--green); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.pl-card h3 { font-family: var(--font-heading); font-size: 30px; margin-bottom: 6px; }
.pl-for { color: var(--mist); font-size: 15px; min-height: 48px; }
.pl-card .hx-ticks { flex: 1; align-content: start; }
.pl-card .btn { text-align: center; margin-top: 8px; }
.pl-foot { margin-top: 32px; color: var(--mist); font-size: 15px; max-width: 720px; }

/* ---- About page ---- */
.ab-story { background: var(--seedbed); }
.ab-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .ab-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.ab-text h2 { font-family: var(--font-heading); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; margin-bottom: 20px; text-wrap: balance; }
.ab-text p { font-size: 18px; color: var(--dark-teal); margin-bottom: 18px; max-width: 62ch; }
.ab-proof {
  background: var(--dark-teal); color: var(--white); border-radius: 12px; padding: 28px;
  box-shadow: 0 20px 50px rgba(24,27,25,.16);
}
.ab-proof h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 18px; }
.ab-proof .hx-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ab-proof .hx-logo { min-width: 0; }
.ab-proof p { margin-top: 18px; font-size: 15px; color: #DCE3E3; }
.ab-proof a { color: var(--green); font-weight: 600; }

.ab-values { background: var(--paper); }
.ab-values + .hx-process { border-top: 1px solid var(--line); }
.ab-val-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .ab-val-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ab-val-grid { grid-template-columns: minmax(0, 1fr); } }
.ab-val { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; }
.ab-val svg {
  width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--near-black);
  fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px;
}
.ab-val h3 { font-family: var(--font-heading); font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.ab-val p { font-size: 15px; color: var(--dark-teal); }

@media (prefers-reduced-motion: reduce) { .sv-jump a { transition: none; } }
