:root {
  --teal: #00C896;
  --bg: #F6F9F8;
  --surface: #FFFFFF;
  --ink: #0F2B2A;
  --ink-dim: #5B6B69;
  --primary: #0B7A75;
  --primary-dark: #095F5B;
  --primary-tint: #E6F3F2;
  --accent: #E8A33D;
  --border: #E3EAE9;
  --ceo: #142C3C;
  --radius: 14px;
  --heading: "Roboto", sans-serif;
  --sans: "Roboto", sans-serif;
  --mono: "Roboto", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
}

/* PAGE LOADER */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060608;
  transition: opacity .5s ease, visibility .5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ecg {
  width: 380px;
  height: 100px;
}

.ecg-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecg-track {
  fill: none;
  stroke: rgba(248, 246, 241, 0.1);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ecg-pulse {
  fill: none;
  stroke: url(#ecgFade);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 78;
  stroke-dashoffset: 0;
  animation: ecgSweep 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 200, 150, 0.6));
}

@keyframes ecgSweep {
  to {
    stroke-dashoffset: -100;
  }
}

/* PRIVACY CONTENT */
.privacy-hero-wrap {
  padding: 40px 0 0;
}

.privacy-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 2rem;
  transition: border-color 0.2s;
}

.privacy-back:hover {
  border-color: var(--teal);
}

.privacy-back i {
  display: flex;
  font-size: calc(0.85rem + 7px);
}

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 8px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(28px, 4vw, 38px);
  margin: 14px 0 14px;
}

.meta-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.meta-row b {
  color: var(--ink);
}

.layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 24px 90px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 44px;
}

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

  .toc {
    display: none;
  }
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
}

.toc h4 {
  font-family: var(--heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-dim);
  margin: 0 0 10px;
}

.toc a {
  display: block;
  font-size: 13px;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border);
}

.toc a:hover {
  color: var(--primary-dark);
  border-left-color: var(--primary);
}

.content section {
  margin-bottom: 38px;
  scroll-margin-top: 24px;
}

.content h2 {
  font-family: var(--heading);
  font-size: 19px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content .snum {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: 999px;
  padding: 3px 9px;
}

.content p {
  color: var(--ink);
  font-size: 14.5px;
  margin: 12px 0 0;
}

.content p.dim {
  color: var(--ink-dim);
}

.commit-panel {
  background: var(--primary-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 28px;
}

.commit-panel p {
  margin: 0;
  font-size: 14.5px;
}

.accept-banner {
  margin-top: 10px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--ceo);
  color: #fff;
}

.accept-banner p {
  color: #CFE3DF;
  margin: 0;
  font-size: 14px;
}

.accept-banner b {
  color: #fff;
}

/* FOOTER (matches contact.css/join-team.css/founder.css/home.css) */
footer {
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4.5rem 3rem 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8F6F1;
}

.footer-logo span {
  color: #00C896;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.5);
  line-height: 1.7;
  margin-top: 0.9rem;
}

.footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00C896;
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.5);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #00C896;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(248, 246, 241, 0.25);
}

.footer-paypal-form {
  display: inline-block;
}

.footer-paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8F6F1;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #060608;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-paypal-btn img {
  height: 16px;
  width: auto;
  display: block;
}

.footer-paypal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

.footer-paypal-btn-pro {
  background: #00C896;
  color: #060608;
}

.footer-paypal-btn-pro:hover {
  background: #00b085;
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.25);
}

.footer-paypal-btn-pro.is-unlocked {
  background: rgba(0, 200, 150, 0.15);
  color: #00C896;
  cursor: default;
  box-shadow: none;
}

.footer-paypal-btn-pro.is-unlocked:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  footer {
    padding: 3.5rem 1.5rem 0;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-cols {
    justify-content: center;
  }
}
