/* Miracle Ritual — marketing site, v3.
   v2 went dark-mode for "premium drama" — wrong call, since the app itself
   is light-mode throughout and a website that doesn't match reads as a
   different product. This version keeps the ambition (rich colour,
   gradients, big type) but on a light ground: soft pastel gradient blooms
   instead of glowing orbs on black, colour used as full-blooded section
   treatments, and — new this pass — an actual icon system and a hero
   illustration, since v2 had precisely zero visual elements beyond text and
   colour blocks. Colour mapping stays consistent everywhere: orange = body,
   purple = mind, green = mood. */

:root {
  --bg: #f8f7f4;
  --band: #f1edff;
  --ink: #111111;
  --grey: #2e3137;
  --grey-soft: #6b6f76;
  --hairline: #e7e7e7;
  --white: #ffffff;

  --purple: #4f35d2;
  --purple-bright: #8b6bff;
  --orange: #d95f12;
  --orange-bright: #ff9a4d;
  --green: #168a52;
  --green-bright: #3fe0a0;

  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
}

.mono-label.orange { color: var(--orange); }
.mono-label.green { color: var(--green); }
.mono-label.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }

.grad-text {
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 55%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.c-orange { color: var(--orange); }
.c-purple { color: var(--purple); }
.c-green { color: var(--green); }

/* ---------- Soft colour blooms (light-mode "glow") ---------- */

.orb-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb.purple { background: var(--purple-bright); }
.orb.orange { background: var(--orange-bright); }
.orb.green { background: var(--green-bright); }

/* ---------- Icon system ---------- */

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.icon-badge.orange { background: rgba(217, 95, 18, 0.12); color: var(--orange); }
.icon-badge.purple { background: rgba(79, 53, 210, 0.12); color: var(--purple); }
.icon-badge.green { background: rgba(22, 138, 82, 0.12); color: var(--green); }
.icon-badge.on-color { background: rgba(255, 255, 255, 0.22); color: var(--white); }
.icon-badge.on-ink { background: rgba(17, 17, 17, 0.06); color: var(--ink); }

.icon-badge.sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.icon-badge.sm svg {
  width: 20px;
  height: 20px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--grey);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 100%);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  letter-spacing: -0.01em;
}

.btn-gradient {
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 65%, var(--green) 130%);
  color: var(--white);
  box-shadow: 0 12px 32px -10px rgba(79, 53, 210, 0.5);
}

.btn-gradient:hover {
  box-shadow: 0 16px 40px -10px rgba(79, 53, 210, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: #000;
}

/* App Store / Google Play badges — kept as a solid ink pill regardless of
   what section they sit in, matching the recognisable convention of the
   real badges rather than following the page's own palette. */

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

.store-badge:hover {
  background: #000;
}

.store-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.store-badge .lines {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge .lines small {
  font-weight: 400;
  font-size: 10.5px;
  opacity: 0.7;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--band);
  padding: 84px 0 76px;
  overflow: hidden;
}

.hero .orb.purple { width: 480px; height: 480px; top: -220px; left: -140px; opacity: 0.35; }
.hero .orb.orange { width: 380px; height: 380px; top: -60px; right: -120px; opacity: 0.3; }
.hero .orb.green { width: 340px; height: 340px; bottom: -240px; left: 25%; opacity: 0.3; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero .kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px);
  margin-top: 18px;
  letter-spacing: -0.03em;
}

.hero p.lede {
  font-weight: 400;
  font-size: 18.5px;
  color: var(--grey);
  line-height: 1.55;
  max-width: 560px;
  margin-top: 20px;
}

.hero p.lede strong {
  font-weight: 700;
}

.hero .pitch-q {
  font-weight: 800;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--ink);
  margin-top: 24px;
  letter-spacing: -0.02em;
}

.hero .store-row {
  margin-top: 30px;
}

.hero-fineprint {
  margin-top: 16px;
  color: var(--grey-soft) !important;
}

/* Hero illustration — the app's own onboarding artwork (assets/images/
   slide1.jpg), not a built one, once it turned out the app already had
   professional illustration in the exact brand palette sitting unused. */

.hero-visual {
  position: relative;
}

.hero-illustration {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 40px 70px -30px rgba(79, 53, 210, 0.35);
}

/* ---------- Generic section ---------- */

section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-top: 14px;
}

.section-head p {
  font-weight: 400;
  color: var(--grey);
  font-size: 17px;
  margin-top: 16px;
  line-height: 1.55;
}

/* ---------- Introducing ---------- */

.introducing {
  text-align: center;
  padding: 80px 0 0;
}

.introducing h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  max-width: 760px;
  margin: 14px auto 0;
}

.introducing p {
  font-weight: 400;
  color: var(--grey);
  font-size: 18px;
  max-width: 560px;
  margin: 18px auto 0;
  line-height: 1.55;
}

/* ---------- What you get: three colour pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  border-radius: 24px;
  padding: 32px 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.pillar.orange { background: linear-gradient(160deg, #ef7a2e 0%, #b34c0c 100%); }
.pillar.purple { background: linear-gradient(160deg, #7c5cf0 0%, #3d24a8 100%); }
.pillar.green { background: linear-gradient(160deg, #22c179 0%, #0e6b3b 100%); }

.pillar .icon-badge {
  margin-bottom: 18px;
}

.pillar h3 {
  color: var(--white);
  font-size: 24px;
}

.pillar ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.pillar li {
  font-weight: 600;
  font-size: 15.5px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pillar li:first-child {
  border-top: none;
}

/* ---------- How it works: illustration + three rows ---------- */

.how-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.how-illustration {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(17, 17, 17, 0.3);
}

.ritual-rows {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ritual-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ritual-row .time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ritual-row.orange .time { color: var(--orange); }
.ritual-row.purple .time { color: var(--purple); }
.ritual-row.green .time { color: var(--green); }

.ritual-row .time strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2px;
}

.ritual-row h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--grey);
  margin-top: 8px;
}

/* ---------- Why it works ---------- */

.why-works {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.why-illustration {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 40px 70px -32px rgba(217, 95, 18, 0.32);
}

.why-content h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-top: 12px;
}

.why-lede {
  font-weight: 400;
  color: var(--grey);
  font-size: 16.5px;
  margin-top: 14px;
}

.blueprint {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.blueprint-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.blueprint-step:last-child {
  border-bottom: none;
}

.blueprint-step .step-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.blueprint-step.orange .step-num { color: var(--orange); }
.blueprint-step.purple .step-num { color: var(--purple); }
.blueprint-step.green .step-num { color: var(--green); }

.blueprint-step p {
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.4;
}

.blueprint-note {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--grey-soft);
  margin-top: 22px;
  line-height: 1.5;
}

.callout {
  margin-top: 44px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(217, 95, 18, 0.1), rgba(79, 53, 210, 0.12) 55%, rgba(22, 138, 82, 0.1));
  border: 1px solid rgba(79, 53, 210, 0.14);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
}

.callout .orb.purple { width: 280px; height: 280px; top: -140px; left: -60px; opacity: 0.3; }
.callout .orb.green { width: 240px; height: 240px; bottom: -150px; right: -40px; opacity: 0.3; }

.callout-inner {
  position: relative;
  z-index: 1;
}

.callout-icon {
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  color: var(--white);
}

.callout p.lead {
  color: var(--grey);
  font-size: 16px;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

.callout h3 {
  font-size: clamp(22px, 3vw, 32px);
  margin-top: 16px;
}

/* ---------- Achieve goals grid ---------- */

.achieve-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 52px;
}

.achieve-illustration {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px -28px rgba(79, 53, 210, 0.28);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.goal-card {
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid var(--hairline);
  background: var(--white);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.goal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(17, 17, 17, 0.2);
}

.goal-card .icon-badge {
  margin-bottom: 14px;
}

.goal-card h3 {
  font-size: 16px;
}

.goal-card p {
  font-weight: 400;
  color: var(--grey);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.4;
}

.goals-cta {
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  margin-top: 40px;
}

/* ---------- Group coaching ---------- */

.coaching-section {
  position: relative;
  background: linear-gradient(135deg, rgba(217, 95, 18, 0.07), rgba(22, 138, 82, 0.09));
  overflow: hidden;
}

.coaching-section .orb.orange { width: 340px; height: 340px; top: -160px; right: 8%; opacity: 0.28; }
.coaching-section .orb.green { width: 300px; height: 300px; bottom: -170px; left: 6%; opacity: 0.28; }

.coaching-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.coaching-illustration {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px -28px rgba(22, 138, 82, 0.3);
  position: relative;
  z-index: 1;
}

.coaching-statement {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.coaching-statement .fade {
  color: var(--grey-soft);
}

.coaching-section p.lede {
  color: var(--grey);
  font-size: 17.5px;
  margin-top: 22px;
  line-height: 1.6;
}

.coaching-section .closing-line {
  margin-top: 22px;
  font-weight: 700;
  font-size: 17.5px;
}

.coaching-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.coaching-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- For Teams (corporate) ---------- */

.teams {
  background: var(--white);
}

.teams-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.teams-copy p.lede {
  font-weight: 400;
  color: var(--grey);
  font-size: 17.5px;
  margin-top: 18px;
  line-height: 1.6;
}

.teams-copy .btn {
  margin-top: 30px;
}

.teams-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teams-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--band);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 20px;
}

.teams-list strong {
  display: block;
  font-weight: 700;
  font-size: 15.5px;
}

.teams-list span {
  display: block;
  font-weight: 400;
  color: var(--grey);
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.45;
}

/* ---------- 1:1 coaching, light strip ---------- */

.coaching-1on1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.coaching-1on1-copy h3 {
  font-size: 20px;
  font-weight: 700;
}

.coaching-1on1-copy p {
  font-weight: 400;
  color: var(--grey);
  font-size: 15px;
  margin-top: 6px;
}

/* ---------- Final close ---------- */

.close-cta {
  position: relative;
  background: var(--band);
  text-align: center;
  overflow: hidden;
}

.close-cta .orb.purple { width: 420px; height: 420px; top: -220px; left: -140px; opacity: 0.3; }
.close-cta .orb.orange { width: 360px; height: 360px; bottom: -230px; right: -110px; opacity: 0.3; }

.close-cta .wrap {
  max-width: 720px;
}

.close-cta h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.close-cta p.lede {
  color: var(--grey);
  font-size: 17px;
  margin-top: 18px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.close-cta .store-row {
  justify-content: center;
  margin-top: 34px;
}

/* ---------- Footer ---------- */

footer {
  background: var(--bg);
  color: var(--grey-soft);
  padding: 48px 0 32px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--grey-soft);
  font-size: 13.5px;
  max-width: 260px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--grey);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--grey-soft);
}

.footer-bottom a {
  text-decoration: none;
  color: var(--grey-soft);
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero-visual {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .coaching-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .coaching-illustration {
    order: -1;
  }

  .achieve-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .achieve-illustration {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.22s ease;
  }

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

  .nav-links a {
    font-size: 17px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 56px 0 44px;
  }

  section {
    padding: 64px 0;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }

  .coaching-1on1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    flex-direction: column;
    gap: 28px;
  }
}
