/* Life Coaching Diploma: bright, friendly, mobile first.
   Colours come from the Wheel of Life in the hero: one colour per module. */
:root {
  --ink: #1b1f4b;          /* text and dark surfaces */
  --ink-soft: #4a4f7a;     /* secondary text */
  --paper: #ffffff;
  --sky: #f1f5ff;          /* alternate section background */
  --line: #dfe5f7;
  --sun: #ffb703;          /* module 1: values */
  --pink: #ff4f8b;         /* module 2: identity */
  --teal: #00a99d;         /* module 3: change */
  --cobalt: #3a5bff;       /* module 4: alignment */
  --violet: #8b5cf6;       /* module 5: practical application */
  --wa: #25d366;
  --radius: 22px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
.m1 { --c: var(--sun); --c-ink: #7a5200; } .m2 { --c: var(--pink); --c-ink: #b0174f; } .m3 { --c: var(--teal); --c-ink: #006b63; }
.m4 { --c: var(--cobalt); --c-ink: #2238c4; } .m5 { --c: var(--violet); --c-ink: #5b2fc9; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right)); }
.narrow { max-width: 46rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 12px; }
section { padding: 56px 0; }
section.alt { background: var(--sky); }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand b { font: 800 1.12rem/1.1 var(--font-display); letter-spacing: -.01em; }
.brand small { display: block; font-size: .8rem; color: var(--ink-soft); }
.menu-btn { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: #fff; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.site-head.open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-head.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-head.open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.tabs { display: none; }
.site-head.open .tabs { display: grid; gap: 4px; padding: 6px 0 16px; }
.tabs a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.tabs a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--line)); }
.tabs a[aria-current="page"] { background: var(--sky); }
.tabs a.wa-tab { background: var(--wa); color: #06270f; }
.tabs a.wa-tab::before { background: #06270f; }

/* ---------- buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); }
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #06270f; }
.btn.wa:hover { background: #1fb457; border-color: #1fb457; color: #06270f; }
.btn svg { flex: none; }

/* ---------- hero with the wheel of life */
.hero { padding: 18px 0 44px; overflow: hidden; }
/* Phone order: title, wheel, WhatsApp, Start module 1, then the text, so the wheel and both buttons show without scrolling */
.hero-grid { display: grid; gap: 16px; }
.hero h1 { max-width: 12ch; margin: 0; }
.hero .lead { max-width: 36ch; margin: 8px 0 0; }
.hero .btns { flex-direction: column; margin: 0; }
.hero .btns .btn { width: 100%; }
.hero .facts { margin-top: 0; }
.wheel { width: min(100%, 300px, 42svh); margin: 0 auto; }
.wheel a { outline: none; }
.wheel .seg path { transition: transform .25s ease; transform-origin: 200px 200px; }
.wheel a:focus-visible .seg path, .wheel a:hover .seg path { transform: scale(1.04); }
.wheel text { font-family: var(--font-display); font-weight: 800; fill: #fff; pointer-events: none; }
.wheel .num { font-size: 15px; opacity: .9; }
.wheel .lbl { font-size: 19px; }
.wheel .hub-t { fill: var(--ink); font-size: 22px; }
.wheel .hub-s { fill: var(--ink-soft); font-family: var(--font-body); font-weight: 600; font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .wheel .seg { animation: segIn .6s cubic-bezier(.2,.8,.3,1.2) both; transform-origin: 200px 200px; }
  .wheel a:nth-of-type(2) .seg, .wheel .sl:nth-of-type(2) .seg { animation-delay: .1s; } .wheel a:nth-of-type(3) .seg, .wheel .sl:nth-of-type(3) .seg { animation-delay: .2s; }
  .wheel a:nth-of-type(4) .seg, .wheel .sl:nth-of-type(4) .seg { animation-delay: .3s; } .wheel a:nth-of-type(5) .seg, .wheel .sl:nth-of-type(5) .seg { animation-delay: .4s; }
  @keyframes segIn { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
}
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* ---------- steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; display: grid; place-content: center; font: 800 1.2rem var(--font-display); color: #fff; background: var(--c, var(--ink)); }
.steps b { display: block; font-size: 1.08rem; }
.steps span { color: var(--ink-soft); }

/* ---------- module list on the home page */
.mods { display: grid; gap: 12px; margin-top: 20px; }
.mod-link { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.mod-link:hover { border-color: var(--c); color: var(--ink); }
.mod-link .n { width: 56px; height: 56px; border-radius: 16px; background: var(--c); color: #fff; display: grid; place-content: center; font: 800 1.5rem var(--font-display); }
.mod-link b { display: block; font: 700 1.15rem/1.2 var(--font-display); }
.mod-link span { color: var(--ink-soft); font-size: .97rem; }

/* ---------- videos */
.vid { position: relative; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; }
.vid img { width: 100%; height: 100%; object-fit: cover; }
.vid button { position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, transparent 50%, rgba(27,31,75,.35)); cursor: pointer; display: grid; place-content: center; }
.vid button span { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-content: center; box-shadow: 0 10px 30px rgba(27,31,75,.35); transition: transform .2s; }
@media (hover: hover) { .vid button:hover span { transform: scale(1.08); } }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcards { display: grid; gap: 22px; margin-top: 18px; }
.vcard { border-radius: var(--radius); overflow: hidden; background: #fff; border: 2px solid var(--line); scroll-margin-top: 84px; }
.vcard .top { height: 8px; background: var(--c, var(--ink)); }
.vcard .in { padding: 18px 18px 20px; }
.vcard .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-weight: 700; font-size: .95rem; color: var(--c-ink, var(--ink-soft)); margin-bottom: 4px; }
.vcard .meta span { color: var(--ink-soft); font-weight: 600; }
.vcard h3 { font-size: 1.5rem; }
.vcard ul { margin: .4em 0 1em; padding-left: 1.2em; }
.vcard li { margin-bottom: .35em; }
.vcard .pdf { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-ink, var(--ink)); }

/* ---------- resources */
.res { display: grid; gap: 16px; margin-top: 18px; }
.res-card { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 16px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); }
.res-card .cover { width: 84px; aspect-ratio: 210/297; border-radius: 8px; background: var(--c, var(--ink)); color: #fff; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; font: 800 .78rem/1.1 var(--font-display); box-shadow: 4px 4px 0 var(--ink); }
.res-card .cover i { font-style: normal; font-size: 1.6rem; }
.res-card h3 { font-size: 1.15rem; margin-bottom: .25em; }
.res-card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: .6em; }
.res-card .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; }

/* ---------- meet us + form */
.place { display: grid; gap: 14px; margin: 18px 0 24px; }
.place .panel { padding: 18px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); }
.form-frame { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); background: #fff; }
.form-frame iframe { width: 100%; height: 1650px; border: 0; }
.exam-frame iframe { height: 9800px; }
.feedback-frame iframe { height: 3600px; }

/* ---------- join */
.join-card { text-align: center; padding: 28px 18px; border-radius: 28px; background: #fff; border: 2px solid var(--line); }
.join-card .qr { width: 220px; margin: 18px auto 8px; padding: 10px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.check { list-style: none; padding: 0; margin: 18px auto 0; max-width: 30rem; text-align: left; display: grid; gap: 10px; }
.check li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.check li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--wa); color: #06270f; display: grid; place-content: center; font-weight: 800; font-size: .85rem; }

/* ---------- quotes */
.quotes { display: grid; gap: 14px; margin-top: 18px; }
.quote { margin: 0; padding: 18px; border-radius: var(--radius); background: #fff; border-left: 6px solid var(--c); }
.quote p { font-size: 1.05rem; margin-bottom: .5em; }
.quote figcaption { font-weight: 700; color: var(--c-ink); }

/* ---------- hidden /free landing page */
.page-hero.free { padding-top: 22px; text-align: center; }
.page-hero.free h1 { margin-inline: auto; }
.page-hero.free .lead { margin: 18px auto 0; max-width: 34rem; }
.free-video { margin: 18px 0; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); }
.vid-slot { aspect-ratio: 16/9; display: grid; place-content: center; justify-items: center; gap: 10px; background: linear-gradient(135deg, #fff6dc, #ffe8f0 35%, #e0f6f4 70%, #e8edff); color: var(--ink-soft); font-weight: 700; }
.free-btns { justify-content: center; }
.free-btns .btn { width: 100%; max-width: 26rem; min-height: 58px; font-size: 1.08rem; }

/* ---------- home page (/): one WhatsApp button, first thing on screen */
.gate { padding: max(16px, env(safe-area-inset-top)) 0 40px; text-align: center; }
.gate-btn { width: 100%; max-width: 28rem; min-height: 62px; font-size: 1.12rem; }
.gate-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font: 800 1.15rem var(--font-display); }
.gate h1 { margin: 14px auto 0; max-width: 14ch; }
.gate .lead { margin: 16px auto 0; max-width: 34rem; }
.gate .muted { margin: 10px auto 0; }
.gate-btn-end { margin-top: 26px; }
.gate .wheel { display: block; width: min(100%, 320px); margin: 18px auto 0; }

/* ---------- band + footer */
.band { background: var(--ink); color: #fff; border-radius: 28px; padding: 28px 22px; }
.band h2 { color: #fff; }
.band p { color: #d6daf5; }
.band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.page-hero { padding: 38px 0 8px; }
.page-hero p { max-width: 40rem; }
.site-foot { margin-top: 40px; padding: 34px 0 110px; background: var(--sky); color: var(--ink-soft); font-size: .97rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font-weight: 600; }
.site-foot a { color: var(--ink); }
.join-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 35%); transition: transform .25s; }
.join-bar .btn { width: 100%; }
.join-bar.hide { transform: translateY(110%); }

/* ---------- larger screens */
@media (min-width: 40rem) {
  .res { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .place { grid-template-columns: 1fr 1fr; }
  .join-bar { left: auto; right: 18px; bottom: 18px; padding: 0; background: none; }
  .wheel { width: min(100%, 380px); }
  .hero .btns { flex-direction: row; }
  .hero .btns .btn { width: auto; }
  .join-bar .btn { width: auto; box-shadow: 0 12px 30px -10px rgba(27,31,75,.45); }
  .site-foot { padding-bottom: 40px; }
}
@media (min-width: 48rem) {
  section { padding: 76px 0; }
  .mods { grid-template-columns: 1fr 1fr; }
  .vcards.two { grid-template-columns: 1fr 1fr; }
  .band { padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
  .band > div { max-width: 36rem; }
  .form-frame iframe { height: 1500px; }
  .exam-frame iframe { height: 8600px; }
  .feedback-frame iframe { height: 3200px; }
}
@media (min-width: 64rem) {
  .menu-btn { display: none; }
  .tabs, .site-head.open .tabs { display: flex; gap: 2px; padding: 0; }
  .tabs a { min-height: 42px; padding: 0 12px; font-size: .97rem; }
  .tabs a::before { width: 8px; height: 8px; }
  .head-in { flex-wrap: nowrap; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "title wheel" "lead wheel" "btns wheel" "facts wheel"; column-gap: 40px; row-gap: 18px; align-content: center; }
  .hero h1 { grid-area: title; align-self: end; }
  .hero .lead { grid-area: lead; }
  .hero .btns { grid-area: btns; }
  .hero .facts { grid-area: facts; align-self: start; }
  .wheel { grid-area: wheel; align-self: center; width: 100%; max-width: 480px; }
  .vcard.wide { display: grid; grid-template-columns: 1.15fr 1fr; }
  .vcard.wide .vid { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .vcard.wide .top { display: none; }
  .vcard.wide { border-top: 8px solid var(--c); }
  .res { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
