/* ============================================================
   Zoolytix Inc. — ShelterSync marketing site
   Hand-built static rebuild of zoolytix.com
   Brand: DM Sans / deep slate-blue on white  (unslop-ignore: brand)
   ============================================================ */

:root {
  --brand-blue: #314755;   /* Zoolytix blue  (unslop-ignore: brand) */
  --brand-green: #bce384;  /* Zoolytix green (unslop-ignore: brand) */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --primary: 202 26% 26%;
  --primary-dark: 202 28% 19%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --ring: 202 26% 26%;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(16 24 40 / 0.05);
  --shadow-md: 0 4px 10px -2px rgb(16 24 40 / 0.08), 0 2px 4px -2px rgb(16 24 40 / 0.06);
  --shadow-lg: 0 16px 32px -8px rgb(16 24 40 / 0.12), 0 4px 8px -4px rgb(16 24 40 / 0.06);
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(17 24 39);
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { line-height: 1.15; color: hsl(var(--foreground)); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 52rem; }

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-sub { color: hsl(var(--muted-foreground)); font-size: 1.125rem; margin-top: 0.75rem; }

.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: hsl(var(--primary)); margin-bottom: 0.75rem;
}

.bg-muted { background: hsl(210 40% 98%); }
.bg-primary-tint { background: hsl(202 26% 96%); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  border-radius: var(--radius); border: 1px solid transparent;
  padding: 0.7rem 1.5rem; transition: background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn--primary:hover { background: hsl(var(--primary-dark)); color: hsl(var(--primary-foreground)); }

.btn--outline { background: transparent; color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.45); }
.btn--outline:hover { background: hsl(var(--primary) / 0.06); border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

.btn--ghost { background: transparent; color: hsl(var(--primary)); }
.btn--ghost:hover { background: hsl(var(--muted)); color: hsl(var(--primary)); }

.btn--lg { padding: 0.9rem 2rem; font-size: 1.0625rem; }

.btn--on-dark { background: hsl(0 0% 100%); color: hsl(var(--primary)); }
.btn--on-dark:hover { background: hsl(210 40% 94%); color: hsl(var(--primary-dark)); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(49 71 85 / 0.96); /* --brand-blue */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 2.4rem; width: auto; }
.brand-name { font-weight: 700; letter-spacing: 0.14em; font-size: 1.05rem; color: #fff; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: rgb(255 255 255 / 0.85); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.8rem; border-radius: var(--radius);
}
.site-nav a:hover { color: #fff; background: rgb(255 255 255 / 0.1); text-decoration: none; }
.site-nav a.active { color: var(--brand-green); font-weight: 700; }
.site-nav .btn { margin-left: 0.5rem; }

/* Header CTA: Zoolytix green */
.site-header .btn--primary { background: var(--brand-green); color: var(--brand-blue); }
.site-header .btn--primary:hover { background: #abd76f; color: var(--brand-blue); }
.site-header .btn--primary:focus-visible { outline-color: var(--brand-green); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  border-radius: var(--radius); color: #fff;
}
.nav-toggle:focus-visible { outline: 2px solid var(--brand-green); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: var(--brand-blue);
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin-left: 0; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.05rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-lede { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 36rem; }
.hero-note { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.hero-media { position: relative; }
.hero-media > img { border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow-lg); object-fit: cover; }

/* floating stat card over hero image */
.stat-card {
  position: absolute; left: -1.5rem; bottom: -1.75rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.4rem; min-width: 19rem;
}
@media (max-width: 900px) {
  .stat-card { position: static; margin-top: 1rem; min-width: 0; }
}
.stat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.stat-card-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: hsl(var(--muted-foreground)); }
.badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
  border-radius: 999px; padding: 0.15rem 0.6rem;
}
.stat-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; text-align: center; }
.stat-card-grid strong { display: block; font-size: 1.5rem; letter-spacing: -0.02em; color: hsl(var(--primary)); }
.stat-card-grid span { font-size: 0.78rem; color: hsl(var(--muted-foreground)); }

/* feature chips row (hero) */
.chip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
@media (max-width: 900px) { .chip-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chip-row { grid-template-columns: 1fr; } }
.chip {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5); padding: 1rem 1.1rem;
}
.chip .icon-tile { flex: none; }
.chip strong { display: block; font-size: 0.95rem; margin-bottom: 0.1rem; }
.chip span { font-size: 0.85rem; color: hsl(var(--muted-foreground)); line-height: 1.4; display: block; }

/* ---------- Icon tiles ---------- */

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: calc(var(--radius) * 1.25);
  background: hsl(var(--primary) / 0.09); color: hsl(var(--primary));
}
.icon-tile svg { width: 1.35rem; height: 1.35rem; }
.icon-tile--lg { width: 3.25rem; height: 3.25rem; }
.icon-tile--lg svg { width: 1.6rem; height: 1.6rem; }

/* ---------- Grids & cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: hsl(var(--primary) / 0.25); }
.card .icon-tile { margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: hsl(var(--muted-foreground)); font-size: 0.975rem; }

/* research stat cards */
.research-card { text-align: left; }
.research-figure { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: hsl(var(--primary)); line-height: 1; margin-bottom: 0.5rem; }
.research-card h3 { font-size: 1.05rem; }
.sources-note { text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 2rem; }

/* ---------- Split (media + copy) sections ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split-media img { border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow-lg); object-fit: cover; width: 100%; }
.split h2 { margin-bottom: 1rem; }
.split .section-sub { margin-top: 0; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; }
.checklist .check {
  flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem;
  border-radius: 999px; background: hsl(var(--primary) / 0.12); color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
}
.checklist .check svg { width: 0.9rem; height: 0.9rem; }

/* ---------- Testimonial ---------- */

.testimonial {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--primary));
  border-radius: calc(var(--radius) * 2); padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0; font-size: 1.125rem; font-weight: 500; }
.testimonial cite { display: block; margin-top: 0.9rem; font-style: normal; color: hsl(var(--muted-foreground)); font-size: 0.95rem; }

/* ---------- Roadmap ---------- */

.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .roadmap-grid { grid-template-columns: 1fr; } }
.roadmap-card { display: flex; flex-direction: column; }
.roadmap-q {
  align-self: flex-start; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: hsl(var(--primary)); background: hsl(var(--primary) / 0.09);
  border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1rem;
}
.roadmap-card ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.roadmap-card li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.925rem; color: rgb(55 65 81); }
.roadmap-card li::before {
  content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 999px;
  background: hsl(var(--primary) / 0.55);
}

/* ---------- Founders / people ---------- */

.person-card { text-align: center; }
.person-card img {
  width: 9.5rem; height: 9.5rem; object-fit: cover; border-radius: 999px;
  margin: 0 auto 1.25rem; border: 4px solid hsl(var(--muted));
}
.person-role { color: hsl(var(--primary)); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.75rem; }
.person-links { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.person-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: hsl(var(--muted)); color: hsl(var(--primary));
}
.person-links a:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.person-links svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Partners ---------- */

.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; }
.partner-row img { max-height: 7rem; width: auto; }

/* ---------- CTA band ---------- */

.cta-band { background: hsl(var(--primary)); color: hsl(210 40% 96%); }
.cta-band h2 { color: #fff; }
.cta-band .section-sub { color: hsl(210 40% 88%); }
.cta-band-inner { text-align: center; max-width: 46rem; margin-inline: auto; }
.cta-band .hero-note { color: hsl(210 40% 80%); }

.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem;
  margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid hsl(0 0% 100% / 0.18);
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; font-size: 0.975rem; }
.trust-row svg { width: 1.15rem; height: 1.15rem; opacity: 0.85; }

/* ---------- Page hero (subpages) ---------- */

.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); text-align: center; }
.page-hero .hero-lede { margin-inline: auto; }

/* ---------- Forms ---------- */

.form-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2); padding: 2rem; box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: inherit;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 0.65rem 0.85rem; background: #fff; width: 100%;
}
.form-field textarea { min-height: 8.5rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid hsl(var(--ring) / 0.6); outline-offset: 1px; border-color: hsl(var(--ring));
}
.form-note { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ (details/summary) ---------- */

.faq-item {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5); padding: 0; margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; font-weight: 600; padding: 1.1rem 1.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: hsl(var(--primary));
  transition: transform 0.2s; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.25rem; color: hsl(var(--muted-foreground)); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Legal pages ---------- */

.legal-meta { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }
.legal-body { font-size: 0.975rem; }
.legal-body h2 {
  font-size: 1.15rem; margin-top: 2.25rem; margin-bottom: 0.6rem;
  display: flex; gap: 0.75rem; align-items: baseline;
}
.legal-body h2 .sec-num {
  flex: none; font-size: 0.8rem; font-weight: 700; color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.09); border-radius: 999px; padding: 0.2rem 0.7rem;
}
.legal-body p { color: rgb(55 65 81); }
.legal-body .legal-address { background: hsl(var(--muted)); border-radius: var(--radius); padding: 1rem 1.25rem; font-style: normal; }

/* ---------- Footer ---------- */

.site-footer { background: hsl(var(--primary-dark)); color: hsl(210 30% 80%); padding-block: 3.5rem 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 2.4rem; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { margin: 0 0 1rem; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: hsl(0 0% 100% / 0.1); color: #fff; }
.footer-social:hover { background: hsl(0 0% 100% / 0.22); }
.footer-social svg { width: 1.05rem; height: 1.05rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: hsl(210 30% 80%); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(0 0% 100% / 0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-size: 0.875rem;
  color: hsl(210 20% 65%);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.muted { color: hsl(var(--muted-foreground)); }
