/* ============================================================
   styles.css — Pure^e Profit | Landing Page v1

   VISIBILITY MODEL: everything is visible by default. Pre-animation
   hidden states apply ONLY under .js-enabled (set by an inline script
   in <head>), so the page is fully readable with JavaScript off.
   ============================================================ */

/* ---------- Brand variables ---------- */
:root {
  --green: #376c52;
  --green-bright: #5fae87;   /* lighter green for small text on dark backgrounds (WCAG AA) */
  --cream: #a08f7b;
  --cream-bright: #b8a892;   /* lighter cream for small text on dark backgrounds */
  --black: #0a0a0a;
  --off-white: #f5f5f0;
  --white: #ffffff;
  --card-dark: #141414;
  --muted-dark: #8a8a86;     /* muted text on dark — 5.7:1, passes WCAG AA */
  --muted-light: #56504a;    /* muted text on light backgrounds */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

sup {
  color: var(--green);
  font-size: 0.5em;
}

.green-sup {
  color: var(--green);
}

.section-dark sup,
.section-dark .green-sup {
  color: var(--green-bright);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* Keeps anchor-linked headings clear of the sticky nav */
#hero,
#what-we-do,
#faq,
#about,
#closing-cta {
  scroll-margin-top: 100px;
}

.section-light {
  background: var(--off-white);
  color: var(--black);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.section-lede {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2a2a2a;
  max-width: 760px;
  margin: -24px 0 48px;
}

.section-dark .section-lede {
  color: #c9c9c4;
}

/* ---------- Fade-in on scroll (JS-gated) ---------- */
.js-enabled .fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .fade-section.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
#announcement-bar {
  position: relative;
  background: var(--green);
  text-align: center;
  padding: 9px 48px;
}

.announcement-link {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.announcement-link:hover,
.announcement-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#announcement-dismiss {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition);
}

#announcement-dismiss:hover,
#announcement-dismiss:focus-visible {
  opacity: 1;
}

/* ============================================================
   HEADER / NAV (sticky)
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

#main-nav.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.92);
  padding: 14px 32px;
}

#logo-area .nav-logo-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

#logo-area sup {
  color: var(--green-bright);
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-cta-button {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 10px 22px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.nav-cta-button:hover,
.nav-cta-button:focus-visible {
  background: #2c5742;
  border-color: #2c5742;
}

/* Hamburger (hidden on desktop) */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

#main-nav.nav-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#main-nav.nav-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

#main-nav.nav-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Locks background scroll while the mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: calc(100vh - 120px);   /* fallback first */
  min-height: calc(100svh - 120px);  /* avoids the mobile URL-bar jump */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
  padding: 60px 24px 90px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(55, 108, 82, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 860px;
}

.hero-logo {
  width: clamp(96px, 13vw, 140px);
  margin: 0 auto 28px;
}

.js-enabled .hero-logo {
  opacity: 0;
  transform: scale(0.96);
}

/* Resting state is set here too, so a skipped or unsupported
   animation still leaves the logo visible. */
.js-enabled .hero-logo.animate {
  opacity: 1;
  transform: none;
  animation: logoReveal 0.4s ease;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(55, 108, 82, 0.25));
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-bright);
  margin-bottom: 18px;
}

.hero-eyebrow sup {
  color: var(--green-bright);
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero-tagline {
  font-family: var(--font-body);
  color: var(--cream-bright);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  max-width: 640px;
  margin: 22px auto 0;
}

.hero-cta {
  display: inline-block;
  margin-top: 40px;
  font-size: 1.1rem;
  padding: 18px 44px;
  letter-spacing: 0.04em;
}

.hero-trust {
  color: var(--muted-dark);
  font-size: 0.9rem;
  margin-top: 18px;
}

/* Pre-animation states — JS only, so the CTA is always present without JS */
.js-enabled .hero-tagline,
.js-enabled .hero-cta,
.js-enabled .hero-trust {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              background var(--transition), color var(--transition), border-color var(--transition);
}

.js-enabled .hero-tagline.visible,
.js-enabled .hero-cta.visible,
.js-enabled .hero-trust.visible {
  opacity: 1;
  transform: none;
}

/* ---------- CTA buttons ---------- */
.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green-bright);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--green);
  color: var(--white);
}

.cta-solid {
  background: var(--green);
  color: var(--white);
}

.cta-solid:hover,
.cta-solid:focus-visible {
  background: #2c5742;
  border-color: #2c5742;
}

.text-cta {
  display: inline-block;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.text-cta:hover,
.text-cta:focus-visible {
  opacity: 0.75;
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.1);
  transform: translateY(-3px);
}

.feature-numeral {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: #3d3d3d;
  font-size: 0.97rem;
}

.what-closing {
  text-align: center;
  margin-top: 48px;
}

.what-closing-line {
  color: var(--muted-light);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-container {
  max-width: 780px;
}

.faq-item {
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(55, 108, 82, 0.6);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-bright);
  font-size: 1.4rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus sign */
}

.faq-item p {
  color: #c9c9c4;
  font-size: 0.97rem;
  padding: 0 24px 22px;
}

/* ============================================================
   ABOUT OUR FOUNDERS
   ============================================================ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.founder-card {
  background: var(--white);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: 36px 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.founder-card:hover {
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.1);
  transform: translateY(-3px);
}

.founder-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--black);
  margin-bottom: 4px;
}

.founder-title {
  color: var(--green);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.founder-bio {
  color: #3d3d3d;
  font-size: 0.97rem;
  line-height: 1.75;
}

.founders-closing {
  max-width: 780px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted-light);
}

/* Portrait: photo on top, initials underneath as the fallback if the
   image file isn't there yet (scripts.js hides a failed image). */
.founder-portrait {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 22px;
}

.founder-photo,
.avatar-initials {
  position: absolute;
  inset: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

.founder-photo {
  object-fit: cover;
  z-index: 1;
}

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.1rem;
}

.avatar-green {
  background: var(--green);
  color: var(--white);
}

.avatar-cream {
  background: var(--cream);
  color: var(--black);
}

/* ============================================================
   CLOSING CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--green);
  text-align: center;
  padding: 88px 0;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.cta-banner-button {
  background: var(--white);
  border-color: var(--white);
  color: var(--green);
  font-size: 1.05rem;
  padding: 17px 42px;
  letter-spacing: 0.04em;
}

.cta-banner-button:hover,
.cta-banner-button:focus-visible {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.cta-banner-small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 28px;
}

.footer-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-logo sup {
  color: var(--green-bright);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--cream-bright);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
}

.footer-email {
  color: var(--green-bright);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-email:hover,
.footer-email:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cream-bright);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bar sup {
  color: var(--green-bright);
}

.footer-disclaimer {
  max-width: 820px;
  margin: 18px auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--muted-dark);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-disclaimer sup {
  color: var(--green-bright);
}

/* ============================================================
   LEGAL PAGES (privacy.html / terms.html / accessibility.html)
   ============================================================ */
.legal-page {
  background: var(--off-white);
  min-height: 70vh;
}

.legal-page .container {
  max-width: 780px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 28px;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 44px 0 16px;
}

.legal-page h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  margin: 26px 0 10px;
}

.legal-page p {
  color: #2a2a2a;
  margin-bottom: 18px;
}

.legal-page ul {
  margin: 0 0 20px 22px;
  padding: 0;
}

.legal-page li {
  color: #2a2a2a;
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-page a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover,
.legal-page a:focus-visible {
  color: #2c5742;
}

.legal-page strong {
  font-weight: 700;
  color: var(--black);
}

.legal-updated {
  color: var(--muted-light);
  font-size: 0.9rem;
}

/* Legal/error pages show the dark nav immediately (no transparent state) */
.legal-page-body #main-nav {
  background: rgba(10, 10, 10, 0.96);
}

/* ============================================================
   404 ERROR PAGE
   ============================================================ */
.error-page {
  background: var(--black);
  color: var(--white);
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--green-bright);
}

.error-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
  margin: 12px 0 16px;
}

.error-text {
  color: var(--cream-bright);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ============================================================
   CTA CONSENT NOTICE (near booking CTAs)
   ============================================================ */
.cta-consent-note {
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin-top: 14px;
}

.cta-consent-note a {
  color: var(--green-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-consent-note-light {
  color: rgba(255, 255, 255, 0.85);
}

.cta-consent-note-light a {
  color: var(--white);
}

/* ============================================================
   APPLY / LEAD FORM
   ============================================================ */
.apply-container {
  max-width: 760px;
}

.apply-lede {
  color: #c9c9c4;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: -24px 0 40px;
}

.lead-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label,
.form-fieldset legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-bright);
  margin-bottom: 8px;
}

.req { color: var(--green-bright); }
.optional { color: var(--muted-dark); font-weight: 400; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 13px 15px;
  transition: border-color var(--transition);
}

.form-field textarea { resize: vertical; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235fae87' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.form-field select:invalid { color: var(--muted-dark); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-bright);
}

.form-fieldset {
  border: none;
  padding: 0;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 400;
  color: #d6d6d2;
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 9px 16px;
  margin-bottom: 0;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.checkbox-pill:hover { border-color: rgba(55, 108, 82, 0.7); }

.checkbox-pill input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}

.checkbox-pill:focus-within {
  border-color: var(--green-bright);
}

/* SMS consent — small print, unchecked by default */
.sms-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-dark);
  margin: 4px 0 24px;
  cursor: pointer;
}

.sms-consent input {
  margin-top: 3px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.lead-submit {
  display: inline-block;
  font-size: 1.05rem;
  padding: 15px 40px;
}

.lead-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  font-size: 0.95rem;
  margin-top: 16px;
  min-height: 1.4em;
}

.form-status-ok { color: var(--green-bright); }
.form-status-error { color: #e0736b; }

.apply-alt {
  font-size: 0.9rem;
  color: var(--muted-dark);
  margin-top: 22px;
}

.apply-alt a {
  color: var(--green-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Honeypot — hidden from people, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  /* Nav collapses to hamburger */
  #hamburger {
    display: flex;
  }

  #nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;   /* fallback first */
    height: 100svh;  /* avoids the mobile URL-bar jump */
    width: min(78vw, 320px);
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  #main-nav.nav-open #nav-links {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-cta-button {
    font-size: 1.1rem;
    padding: 14px 32px;
  }

  /* Grids stack */
  .feature-grid,
  .founders-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  #announcement-bar {
    padding: 9px 44px 9px 14px;
    text-align: left;
  }
}

/* ---------- Reduced motion ----------
   scripts.js also checks this: it skips the reveal delays, the
   IntersectionObserver fade, and smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-enabled .hero-logo,
  .js-enabled .hero-logo.animate {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js-enabled .fade-section,
  .js-enabled .hero-tagline,
  .js-enabled .hero-cta,
  .js-enabled .hero-trust {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-card:hover,
  .founder-card:hover {
    transform: none;
  }

  #cookie-banner {
    transition: none;
  }
}

/* ============================================================
   COOKIE CONSENT — banner + preferences panel
   ============================================================ */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(55, 108, 82, 0.5);
  transform: translateY(0);
  animation: cookieSlideUp 0.4s ease;
}

#cookie-banner[data-reduced-motion="true"] {
  animation: none;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  color: #d6d6d2;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.cookie-banner-text a {
  color: var(--green-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions .cta-button,
.cookie-panel-actions .cta-button {
  font-size: 0.85rem;
  padding: 9px 20px;
}

.cookie-btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.cookie-btn-ghost:hover,
.cookie-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ---------- Preferences panel ---------- */
#cookie-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#cookie-panel-overlay[hidden] {
  display: none;
}

body.cookie-panel-open {
  overflow: hidden;
}

#cookie-panel {
  position: relative;
  background: var(--card-dark);
  border: 1px solid rgba(55, 108, 82, 0.5);
  border-radius: 12px;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px 28px;
  animation: cookiePanelIn 0.3s ease;
}

@keyframes cookiePanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

#cookie-panel-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
  padding-right: 32px;
}

.cookie-panel-lede {
  color: #c9c9c4;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.cookie-option {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.cookie-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.cookie-option-locked .cookie-option-head {
  cursor: default;
}

.cookie-option-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.cookie-always {
  font-size: 0.78rem;
  color: var(--green-bright);
  font-weight: 500;
}

.cookie-option-desc {
  color: #a8a8a3;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* Toggle switch */
.cookie-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #3a3a38;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--transition);
}

.cookie-toggle:checked {
  background: var(--green);
}

.cookie-toggle:checked::after {
  transform: translateX(20px);
}

.cookie-toggle:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

.cookie-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cookie-panel-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--cream-bright);
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: color var(--transition);
}

.cookie-panel-close:hover,
.cookie-panel-close:focus-visible {
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  #cookie-panel,
  #cookie-banner {
    animation: none;
  }
  .cookie-toggle,
  .cookie-toggle::after {
    transition: none;
  }
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .cta-button {
    flex: 1;
  }
}
