/* ============================================================
   Fresh Mind — main.css
   Bulma 0.9.4 base + Integral.me palette + Fresh Mind styles
   ============================================================ */

:root {
  /* Integral.me palette */
  --ice: #F1F7FE;
  --water: #99BAE8;
  --sky: #4D86D7;
  --purpose: #0153C6;
  --possibility: #FCFCFC;
  --cloud: #E7E7E8;
  --dust: #A2A2A5;
  --silver: #5B5B60;
  --universe: #16161D;
  --people: #FF9900;
  --systems: #CC0000;
  --innovation: #4DAE7E;
  --products: #00FFE0;
  --money: #FFF42E;
  --growth: #FF0062;

  /* Shapes */
  --tear: 0 50% 50% 50%;
  --tear2: 50% 0 50% 50%;
  --tear3: 50% 50% 0 50%;
  --tear4: 50% 50% 50% 0;

  /* Type */
  --font-headings: "Josefin Sans", sans-serif;
  --font-body: "Pontano Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 14px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--possibility);
  color: var(--silver);
  line-height: 1.75;
  font-size: 1.0625rem; /* 17px — never below 16px */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--universe);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--growth); transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ---------- Top bar ---------- */
.fm-topbar {
  background: var(--universe);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.fm-topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.fm-topbar .brand img {
  height: 2.1rem;
  width: auto;
  filter: brightness(0) invert(1); /* monochrome → white on dark */
}
.fm-topbar .brand .brand-word {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--possibility);
  letter-spacing: 0.02em;
}
.fm-topbar .brand .brand-word span { color: var(--growth); }
.fm-topbar nav a {
  color: var(--cloud);
  text-decoration: none;
  font-size: 1rem;
  margin-left: 1.4rem;
}
.fm-topbar nav a:hover { color: var(--growth); }

/* ---------- Hero ---------- */
.fm-hero {
  background: var(--universe);
  color: var(--possibility);
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  border-bottom: 4px solid var(--growth);
}
.fm-hero .logo {
  width: 5rem;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.6rem;
}
.fm-hero h1 {
  color: var(--possibility);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.2rem;
}
.fm-hero h1 em { color: var(--growth); font-style: normal; }
.fm-hero .hero-sub {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--cloud);
}
.fm-hero .hero-cta {
  display: inline-block;
  background: var(--growth);
  color: var(--universe);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 0, 98, 0.35);
}
.fm-hero .hero-cta:hover { opacity: 0.92; color: var(--universe); }

/* ---------- Sections ---------- */
.fm-section { padding: 4rem 1.5rem; }
.fm-section.is-cloud { background: var(--cloud); }
.fm-section.is-universe { background: var(--universe); color: var(--cloud); }

.fm-section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-align: center;
  margin: 0 auto 1rem;
  max-width: 44rem;
}
.fm-section.is-universe h2 { color: var(--possibility); }
.fm-section .section-lede {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
  color: var(--silver);
}
.fm-section.is-universe .section-lede { color: var(--cloud); }

/* ---------- Purpose ---------- */
.fm-purpose { text-align: center; }
.fm-purpose p {
  max-width: 44rem;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* ---------- Three steps ---------- */
.fm-steps {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .fm-steps { grid-template-columns: repeat(3, 1fr); }
}
.fm-step {
  background: #fff;
  border: 1px solid var(--cloud);
  border-top: 4px solid var(--growth);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.fm-step .step-num {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  color: var(--growth);
  letter-spacing: 0.04em;
}
.fm-step h3 {
  font-size: 1.35rem;
  margin: 0.4rem 0 0.6rem;
}
.fm-step p { font-size: 1rem; color: var(--silver); margin: 0; }

/* ---------- Who it's for ---------- */
.fm-audience { max-width: 44rem; margin: 0 auto; }
.fm-audience ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .fm-audience ul { grid-template-columns: 1fr 1fr; }
}
.fm-audience li {
  background: #fff;
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: 1.05rem;
  color: var(--silver);
}
.fm-audience li strong { color: var(--universe); font-weight: 600; }

/* ---------- CTA band ---------- */
.fm-cta-band {
  background: var(--universe);
  border-top: 4px solid var(--growth);
  text-align: center;
  padding: 4rem 1.5rem;
}
.fm-cta-band h2 { color: var(--possibility); font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 0.8rem; }
.fm-cta-band p { color: var(--cloud); max-width: 36rem; margin: 0 auto 1.8rem; font-size: 1.15rem; }
.fm-cta-band .hero-cta {
  display: inline-block;
  background: var(--growth);
  color: var(--universe);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
}

/* ---------- Footer ---------- */
.fm-footer {
  background: var(--universe);
  color: var(--dust);
  padding: 2.4rem 1.5rem 1.8rem;
  text-align: center;
}
.fm-footer img {
  height: 2.4rem;
  width: auto;
  filter: brightness(0) invert(1); /* monochrome → white on dark */
  margin-bottom: 0.8rem;
}
.fm-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: 1rem 0 1.4rem;
}
.fm-footer .footer-links a {
  color: var(--cloud);
  text-decoration: none;
  font-size: 1rem;
}
.fm-footer .footer-links a:hover { color: var(--growth); }
.fm-footer p { margin: 0; font-size: 1rem; color: var(--dust); }
.fm-footer a { color: var(--growth); text-decoration: none; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .fm-topbar nav a { margin-left: 0.9rem; font-size: 1rem; }
  .fm-hero { padding: 3.4rem 1.2rem 3rem; }
  .fm-section { padding: 3rem 1.2rem; }
  .fm-hero .hero-sub { font-size: 1.1rem; }
}
