/* ==========================================================================
   DEPOWL.LEGAL — TEMPLATE STYLESHEET
   Layout patterns inspired by consumer-health landing pages; palette and
   type inherited from depowl.ai, brightened one step.

   HOW TO EDIT IN CURSOR
   - 00. TOKENS is the only place you should need to touch for rebranding.
   - Each section below matches a SECTION comment in index.html.
   - Media queries live at the END of each section block, so a section's
     desktop + mobile rules travel together.
   ========================================================================== */

/* ============================ 00. TOKENS ================================ */
:root {
  /* Color — brightened from depowl.ai (originals in README) */
  --bg:          #FFFDF2;                    /* page background (cream)     */
  --bg-tint:     #F7F2DC;                    /* alternate section band      */
  --bg-card:     #D6CCAB;                    /* khaki feature panels        */
  --bg-raised:   #FFFFFF;                    /* form + white cards          */
  --border:      rgba(14, 20, 18, .12);
  --accent:      #1E4D28;                    /* forest green (brightened)   */
  --accent-ink:  #143A1C;                    /* hover/darker green          */
  --cta:         #2E7A3F;                    /* brighter CTA green          */
  --cta-hover:   #276A37;
  --accent-dim:  rgba(30, 77, 40, .10);
  --accent-glow: rgba(30, 77, 40, .22);
  --text-1:      #0B1B3A;                    /* navy — same as depowl.ai    */
  --text-2:      rgba(11, 27, 58, .65);
  --text-3:      rgba(11, 27, 58, .40);
  --on-accent:   #FFFDF2;                    /* text on green               */
  --blue:        #1D4287;                    /* secondary highlight — same  */
  --blue-dim:    rgba(29, 66, 135, .12);     /* hue as depowl.ai's navy     */
                                             /* text (#0B1B3A), brightened  */

  /* Type — identical families to depowl.ai for cross-site cohesion */
  --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body:    'Outfit', 'Segoe UI', Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.7rem, 6.2vw, 4.7rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 2.9rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.7rem);
  --fs-body:    1.02rem;
  --fs-small:   .88rem;

  /* Shape + depth */
  --radius:     12px;
  --radius-lg:  20px;
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --shadow:     0 24px 80px rgba(20, 40, 25, .10);
  --shadow-sm:  0 8px 30px rgba(20, 40, 25, .08);

  /* Layout */
  --container:  1180px;
  --sec-pad:    clamp(4.5rem, 9vw, 7.5rem);
  --header-h:   72px;
}

/* ============================ 01. BASE ================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent-glow); }

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: .6rem 1.2rem; border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ============================ 02. TYPE ================================== */
.display {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
}
.display em, .h2 em {
  font-style: normal; 
  color: var(--accent);
}

.h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.12;
}

.h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.25;
}

.lede {
  font-size: 1.14rem;
  font-weight: 300;
  color: var(--text-2);
  max-width: 52ch;
}

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.tag-blue { background: var(--blue-dim); color: var(--blue); }

.text-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.text-link:hover { color: var(--text-1); }

/* ============================ 03. LAYOUT ================================ */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section { padding-block: var(--sec-pad); }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ============================ 04. BUTTONS =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: .95rem;
  transition: transform .2s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-dark { background: var(--accent); color: var(--on-accent); }
.btn-dark:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--accent); }
.btn-ghost:hover { background: rgba(30, 77, 40, .05); border-color: var(--accent-ink); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==================== 05. IMAGE PLACEHOLDERS (.ph) ======================
   Swap each .ph <div> for a real <img> or set a background-image on it.
   The label inside tells you the intended asset + suggested size.        */
.ph {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(30, 77, 40, .08), rgba(30, 77, 40, .03)),
    var(--bg-tint);
  border: 1.5px dashed rgba(30, 77, 40, .3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ph span {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--text-3);
  text-align: center;
  padding: 1rem;
}
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3  { aspect-ratio: 4 / 3; }
.ph-4x5  { aspect-ratio: 4 / 5; }
.ph-1x1  { aspect-ratio: 1 / 1; }

/* ====================== 06. ANNOUNCEMENT BAR ============================ */
.announce {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-size: .85rem;
  font-weight: 400;
  padding: .55rem 1rem;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* ========================= 07. HEADER / NAV ============================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 253, 242, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2.00rem;
  color: var(--accent);
  margin-right: auto;
}
.nav-links {
  display: flex;
  gap: 1.7rem;
  font-size: .93rem;
  font-weight: 400;
}
.nav-links a { color: var(--text-2); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text-1); }
.nav-login { font-size: .93rem; font-weight: 500; color: var(--blue); }
.nav-links a.active { color: var(--text-1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-1);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: calc(var(--header-h)) 0 auto 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem 1.75rem;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1.05rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .btn { width: fit-content; }

@media (max-width: 900px) {
  .nav-links, .nav-login, .nav .btn { display: none; }
  .hamburger { display: flex; }
}

/* ======================= 08. HERO CAROUSEL ==============================
   Full-bleed rotating hero. Each .hero-slide has a background media layer
   (.hero-media — swap for a real photo) with content overlaid on a cream
   scrim, exactly like a photo-led consumer hero. With only ONE
   .hero-slide in the HTML, the JS hides all controls and it behaves as a
   static hero.                                                           */
.hero { position: relative; overflow: hidden; }
.hero-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: center;
}
.hero-media { position: absolute; inset: 0; border-radius: 0; border: 0; background: none; }
.hero-media span { position: absolute; inset: 0; padding: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--bg) 0%, rgba(255, 253, 242, .92) 34%,
    rgba(255, 253, 242, .55) 58%, rgba(255, 253, 242, 0) 82%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding-block: 5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 2.1rem; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
  font-size: .84rem;
  color: var(--text-2);
}
.hero-chips li { display: flex; align-items: center; gap: .45rem; }
.hero-chips li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cta);
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.hero-dots { display: flex; gap: .55rem; }
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(11, 27, 58, .22);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
.hero-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .75);
  color: var(--text-1);
  font-size: 1rem;
  line-height: 1;
  transition: background .2s var(--ease);
}
.hero-arrow:hover { background: #fff; }

@media (max-width: 900px) {
  .hero-slide { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; height: 42vh; }
  .hero-media span { inset: 0; padding: 0; }
  .hero-scrim { display: none; }
  .hero-content { padding: 2.4rem 0 4.6rem; max-width: 100%; }
}

/* ========================= 09. STATS BAND =============================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 2.6rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--accent);
  line-height: 1.1;
}
.stat span { font-size: var(--fs-small); color: var(--text-2); }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ========================= 10. INTRO / MEET ============================= */
.meet {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.meet .h3 { font-weight: 600; color: var(--text-1); max-width: 30ch; }
.meet .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

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

/* ====================== 11. STEPS CAROUSEL ============================== */
.steps-wrap { position: relative; }
.steps {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step .ph {
  margin-bottom: 1.2rem;
  border: 0;
  background: none;
  border-radius: var(--radius);
  aspect-ratio: 951 / 600;
}
.step .ph a {
  display: block;
  width: 100%;
  height: 100%;
}
.step .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.step-num {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.step h4 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: .35rem 0 .5rem;
}
.step p { font-size: .93rem; color: var(--text-2); margin: 0; }
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .9rem;
}
.step-tags span {
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.3;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}

.steps-arrows {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  margin-top: .25rem;
}
.steps-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.steps-arrow:hover { background: var(--accent); color: var(--on-accent); }

/* ========================= 12. PRICING ================================== */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.pricing .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.price-figure {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--accent);
  line-height: 1;
  margin: .4rem 0 1.4rem;
}
.price-figure small {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text-2);
}
.checklist { margin-bottom: 1.8rem; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
  color: var(--text-2);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 1.25rem; height: 1.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
}
.fine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.3rem;
  margin-top: 1.4rem;
  font-size: .84rem;
  color: var(--text-2);
}

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

/* ================== 13. VOICES (TESTIMONIAL MASONRY) ==================== */
.voices {
  columns: 3;
  column-gap: 1.4rem;
}
.voice {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.voice-body { padding: 1.4rem 1.5rem 1.5rem; }
.voice blockquote {
  margin: 0 0 1.1rem;
  font-family: var(--ff-display);
  font-size: 1.28rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
}
.voice-who { display: flex; align-items: center; gap: .8rem; }
.voice-avatar {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
}
.voice-who b { display: block; font-weight: 500; font-size: .95rem; }
.voice-who span { font-size: .8rem; color: var(--text-2); }
.voice .ph { border-radius: 0; border: 0; border-bottom: 1.5px dashed rgba(30, 77, 40, .3); }
.voice-video { position: relative; }
.voice-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.voice-play i {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 242, .9);
  color: var(--accent);
  font-style: normal;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) { .voices { columns: 2; } }
@media (max-width: 640px)  { .voices { columns: 1; } }

/* ==================== 14. COMPATIBILITY STRIP =========================== */
.compat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
}
.compat li {
  padding: .55rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-2);
}

/* ===================== 15. GUARANTEE BANNER ============================= */
.guarantee {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.guarantee-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.5rem;
}
.guarantee .h2 { margin-bottom: .5rem; }
.guarantee p { margin: 0; color: rgba(11, 27, 58, .72); max-width: 52ch; }

@media (max-width: 900px) {
  .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ======================= 16. SECURITY GRID ============================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.security-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
}
.security-card img {
  width: 42px;
  height: 42px;
  display: block;
  margin-bottom: .9rem;
  padding: 6px;
  box-sizing: border-box;
  object-fit: contain;
  border-radius: 10px;
  background: #d6d0be;
  border: 1px solid rgba(14, 20, 18, .2);
}
.security-card h4 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.security-card p { font-size: .92rem; color: var(--text-2); margin: 0; }

@media (max-width: 1024px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .security-grid { grid-template-columns: 1fr; } }

/* ======================= 17. DEMO STATEMENT ============================= */
.demo-band { text-align: center; }
.demo-band .h2 { max-width: 22ch; margin-inline: auto; }
.demo-band .lede { margin-inline: auto; margin-bottom: 2rem; }

/* ============================ 18. FAQ ===================================
   Two-level accordion: category, then question. Mirrors depowl.ai’s
   grouping; colors and type stay on this site’s tokens.                 */
#faq .section-head { max-width: 46rem; }
#faq .lede { margin-inline: auto; }

.faq-cats {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-cat {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq-cat.open { border-color: rgba(14, 20, 18, .28); }
.faq-cat-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  transition: background .15s var(--ease);
}
.faq-cat-head:hover { background: rgba(14, 20, 18, .05); }
.faq-cat-count {
  margin-left: auto;
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(30, 77, 40, .2);
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: .7rem;
  line-height: 1;
  color: var(--text-2);
  transition: transform .25s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.faq-cat-head .faq-chevron { width: 26px; height: 26px; font-size: .8rem; }
.faq-cat.open > .faq-cat-head .faq-chevron,
.faq-q.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.faq-cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-cat-inner {
  padding: 0 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.faq-q {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq-q.open { border-color: rgba(14, 20, 18, .28); }
.faq-q-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.2rem;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: var(--ff-body);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-a-inner {
  padding: 0 1.2rem 1.15rem;
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.75;
}
.faq-a-inner p { margin: 0; }
.faq-a-inner p + p { margin-top: .85rem; }
.faq-a-inner b, .faq-a-inner em { color: var(--text-1); }
.faq-a-inner .btn { margin-top: .35rem; }

html:not(.js) .faq-cat-body,
html:not(.js) .faq-a { max-height: none; }

@media (prefers-reduced-motion: reduce) {
  .faq-cat-body, .faq-a, .faq-chevron { transition: none; }
}
@media (max-width: 600px) {
  .faq-cat-head { padding: 1.1rem 1.15rem; font-size: 1.2rem; gap: .7rem; }
  .faq-cat-inner { padding: 0 .85rem 1rem; }
  .faq-q-head { padding: .85rem 1rem; font-size: .88rem; }
  .faq-a-inner { padding: 0 1rem 1rem; }
}

/* ================= 19. NEWSLETTER (NETLIFY FORM) ======================== */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.newsletter form { display: flex; gap: .7rem; }
.newsletter input[type="email"] {
  flex: 1;
  padding: .78rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raised);
  font: inherit;
  color: var(--text-1);
}
.newsletter small { display: block; margin-top: .7rem; color: var(--text-3); }

@media (max-width: 900px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .newsletter form { flex-direction: column; }
  .newsletter .btn { justify-content: center; }
}

/* ================= 20. CONTACT / DEMO REQUEST FORM ====================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-points li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .9rem;
  color: var(--text-2);
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cta);
}
.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .72rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font: inherit;
  color: var(--text-1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(46, 122, 63, .18);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--text-3); margin: .9rem 0 0; }
.hidden { display: none; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================ 21. FOOTER ================================ */
.footer {
  background: var(--accent);
  color: rgba(255, 253, 242, .78);
  padding: 4.5rem 0 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 253, 242, .16);
}
.footer .brand { color: var(--bg); margin: 0 0 .8rem; display: inline-block; }
.footer h5 {
  color: var(--bg);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer li { margin-bottom: .6rem; }
.footer a:hover { color: var(--bg); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: .8rem;
  color: rgba(255, 253, 242, .55);
}
.footer-bottom ul { display: flex; gap: 1.5rem; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================= 22. SCROLL REVEAL (progressive) ======================
   Only active when JS adds .js to <html>; without JS everything is
   visible. Respects prefers-reduced-motion.                              */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ==================== 23. TEAM PAGE (team.html) =========================
   Member rows: image left / text right on desktop (460px image) and
   tablet (300px image), stacked image-over-text on phones.              */
.page-head {
  text-align: center;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.page-head .lede { margin-inline: auto; }

.member {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.member + .member {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--border);
}
.member-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.member-body .h2 { margin-bottom: .6rem; }
.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  font-size: .9rem;
  margin-top: .5rem;
}

@media (max-width: 1024px) { .member { grid-template-columns: 300px 1fr; } }
@media (max-width: 640px)  { .member { grid-template-columns: 1fr; } }

/* Group photo + tagline */
.group-wrap { text-align: center; }
.group-img {
  display: block;
  width: min(100%, 540px);
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.group-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  max-width: 44ch;
  margin: 2rem auto 0;
}
.group-sub { color: var(--text-2); font-size: .92rem; margin-top: .5rem; }

/* ==================== 24. RECORD STANDARD (standard.html) =============== */
.standard {
  max-width: 42rem;
  margin-inline: auto;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.standard-meta {
  color: var(--text-2);
  font-size: .92rem;
  margin: 0 0 1.6rem;
}
.standard .lede { margin-bottom: 1.6rem; }
.standard-signoff {
  margin: 0 0 2.4rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
}
.standard-signoff p { margin: 0 0 .8rem; }
.standard-signoff cite {
  display: block;
  font-style: normal;
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--text-2);
}
.standard h2 {
  font-family: var(--ff-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 2.4rem 0 .7rem;
}
.standard ul { margin: 0 0 1rem 1.2rem; list-style: disc; }
.standard li { margin-bottom: .45rem; color: var(--text-2); }
.standard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .4rem;
  font-size: .95rem;
}
.standard-table th,
.standard-table td {
  text-align: left;
  padding: .7rem .5rem .7rem 0;
  border-bottom: 1px solid var(--border);
}
.standard-table th {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
