/* ==========================================================================
   mynd — design tokens
   Concept: the page itself mirrors the product. It opens dense and dark
   (mental fog / the caffeine crash) and visually clears to light, airy,
   mint-fresh ground as you scroll — the "dissolve" into clarity.
   This is one committed visual world, not a light/dark toggle.
   ========================================================================== */

:root {
  /* -- fog (dark) surfaces, used by hero + problem sections -- */
  --fog-bg: #0b1e1b;
  --fog-bg-raised: #122e29;
  --fog-ink: #eaf3ee;
  --fog-ink-soft: #a9c4bc;
  --fog-line: rgba(234, 243, 238, 0.14);
  --fog-mint: #4fd1ae;
  --fog-blue: #6fb8d8;

  /* -- clarity (light) surfaces, used from the product section on -- */
  --clarity-bg: #f3f6ef;
  --clarity-surface: #ffffff;
  --clarity-ink: #12241f;
  --clarity-ink-soft: #4b5f58;
  --clarity-line: rgba(18, 36, 31, 0.12);
  --clarity-mint: #2fa084;
  --clarity-mint-strong: #1f7a63;
  --clarity-blue: #2d7fa3;

  /* -- shared accent, used sparingly (subscribe CTA) -- */
  --amber: #e7a15c;
  --amber-strong: #c97f3a;

  /* -- type -- */
  --font-display: "Bricolage", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-h1: clamp(2.1rem, 5.5vw + 0.8rem, 3.6rem);
  --fs-h2: clamp(1.9rem, 4.5vw + 1rem, 3.1rem);
  --fs-h3: clamp(1.2rem, 2vw + 0.8rem, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.4vw + 0.85rem, 1.3rem);
  --fs-body: clamp(1rem, 0.6vw + 0.85rem, 1.1rem);
  --fs-small: 0.875rem;

  /* -- rhythm -- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: clamp(4rem, 10vw, 7rem);
  --section-pad-y: clamp(4.5rem, 12vw, 8rem);
  --container-w: 1120px;
  --container-pad-x: clamp(1.25rem, 6vw, 3rem);

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   self-hosted type (latin subset, variable fonts — ~125kb combined, one
   request each, cached across the whole site)
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--fog-bg);
  color: var(--fog-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--clarity-mint);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
}

.section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.section--fog {
  background: var(--fog-bg);
  color: var(--fog-ink);
}

.section--clarity {
  background: var(--clarity-bg);
  color: var(--clarity-ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section--fog .eyebrow {
  color: var(--fog-mint);
}

.section--clarity .eyebrow {
  color: var(--clarity-mint-strong);
}

.eyebrow::before {
  content: "";
  width: 1.5em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease-cinematic), box-shadow 0.35s var(--ease-cinematic), background-color 0.35s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--fog-mint);
  color: #08211c;
  box-shadow: 0 8px 30px -10px rgba(79, 209, 174, 0.55);
}

.btn--primary:hover {
  box-shadow: 0 12px 36px -8px rgba(79, 209, 174, 0.65);
}

.btn--ghost {
  background: transparent;
  border-color: var(--fog-line);
  color: var(--fog-ink);
}

.section--clarity .btn--primary {
  background: var(--clarity-mint-strong);
  color: #f3f6ef;
  box-shadow: 0 8px 30px -10px rgba(31, 122, 99, 0.4);
}

.section--clarity .btn--ghost {
  border-color: var(--clarity-line);
  color: var(--clarity-ink);
}

/* ==========================================================================
   scroll reveal (cinematic pop-in / fade-out)
   Elements fade + rise in on entry, and fade back out on exit, so the page
   feels like it is continuously blending between what's on screen.
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 1.6s var(--ease-cinematic), transform 1.6s var(--ease-cinematic);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="fade"].is-visible {
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="right"].is-visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   hero — see public/css/hero.css
   ========================================================================== */
