/* ===== Fonts =====
   Drop the real files from your app's assets/fonts/ folder into
   this site's /fonts/ directory, named exactly as below.
   Until then, this falls back to a clean system sans. */
@font-face {
  font-family: 'Criativa Sans';
  src: url('fonts/CriativaSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Criativa Sans';
  src: url('fonts/CriativaSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Criativa Sans';
  src: url('fonts/CriativaSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #252525;
  --surface: #1e1e1e;
  --border: #333333;
  --text: #c0c0c0;
  --text-muted: rgba(192, 192, 192, 0.6);
  --verified: #4a9a4a;
  --error: #994a4a;

  --c-physical: #22C55E;
  --c-mental: #F97316;
  --c-career: #EC4899;
  --c-finances: #A855F7;
  --c-environment: #EF4444;
  --c-social: #3B82F6;

  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Criativa Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; }

em, .aside {
  font-style: italic;
  color: var(--text-muted);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-social);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Header / Nav ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(37, 37, 37, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 6px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn:hover span { background: #fff; }

.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav-panel {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  flex-direction: column;
}
.nav-panel.open { display: flex; }

.nav-panel-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}

.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.nav-panel a {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  padding: 10px 0;
  display: inline-block;
}

.nav-panel a:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  padding: 90px 0 70px;
}

.hero p.lede {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 46ch;
}

.btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { background: #fff; color: var(--bg); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  padding: 13px 27px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-outline:hover { border-color: var(--text); color: #fff; }

/* ===== Hexagon hero device ===== */
.hex-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}
.hex-wrap svg { width: 100%; max-width: 460px; height: auto; }

.hex-dot {
  transform-origin: center;
  animation: hexPop 0.6s ease forwards;
  opacity: 0;
}
@keyframes hexPop {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hex-dot { animation: none; opacity: 1; }
}

/* ===== Sections ===== */
section { padding: 70px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 640px) {
  .grid-6 { grid-template-columns: 1fr; }
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 10px;
}

.steps {
  counter-reset: step;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.step .num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 32px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Simple page content (legal, contact, etc.) ===== */
.page-body {
  padding: 60px 0 90px;
}
.page-body h2 { margin-top: 1.4em; }
.page-body h2:first-child { margin-top: 0; }

.badge-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.badge-row img { height: 52px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin-top: 28px;
}
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
