/*
Theme Name: 180 הימים
Theme URI: https://example.com/
Author: 180 הימים
Description: תבנית מקורית לאתר "180 הימים" — בית ספר לשינוי עצמי ולאורח חיים בריא. פלטה רכה (ירקרק ותכלת על לבן), באנר וידאו, מותאמת RTL ומובייל. דורשת את התוסף "180 הימים — ליבת האתר".
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: h180
Tags: rtl-language-support, custom-logo, custom-menu, editor-style, featured-images, block-patterns
*/

:root {
  --cream: #ffffff;
  --paper: #ffffff;
  --sand: #f2f7f4;
  --mist: #eef5ef;
  --sky-mist: #e9f3f8;
  --line: #dde8e3;
  --ink: #1e2b2e;
  --ink-2: #3c4c4f;
  --muted: #5a6b6e;
  --deep: #1f3d3a;
  --action: #2f6f6a;
  --action-hover: #255955;
  --accent: #5fa39a;
  --accent-soft: #ddefea;
  --sage: #7fae8e;
  --sage-soft: #e3f0e7;
  --ochre: #7fb9d6;
  --ochre-soft: #e3f1f8;
  --stone: #4d7fa0;
  --stone-soft: #dbe9f2;

  --font-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-body: "Heebo", "Assistant", Arial, sans-serif;

  --fs-h1: clamp(2.5rem, 1.6rem + 4.6vw, 5.5rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-lead: clamp(1.06rem, 1rem + .35vw, 1.3rem);
  --fs-body: clamp(1rem, .97rem + .15vw, 1.1rem);
  --fs-small: .875rem;

  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --max: 1240px;
  --radius: 20px;
  --radius-lg: 32px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow: 0 1px 2px rgba(30, 43, 46, .06), 0 18px 50px -18px rgba(30, 43, 46, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; overflow-wrap: break-word; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; background: var(--deep); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; color: var(--action);
}
.eyebrow::before { content: ""; width: 22px; height: 11px; border: 2px solid currentColor; border-bottom: 0; border-radius: 22px 22px 0 0; flex: none; }
.eyebrow.on-dark { color: #9fd3c8; }
.h2 { font-size: var(--fs-h2); margin-top: .9rem; }
.h2 .soft { color: var(--muted); font-weight: 500; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.65; }
.mock-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(30, 43, 46, .08); color: var(--muted); padding: .1rem .5rem; border-radius: 99px;
}

/* Buttons */
.btn {
  --bg: var(--action); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem; border-radius: 99px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --bg: var(--action-hover); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light:hover { --bg: #fff; }
.btn-small { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--action); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.text-link svg { width: 16px; height: 16px; }

/* Arch photo — the brand's signature frame */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--sand); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; }
.brand-word small { font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-2); position: relative; padding-block: .4rem; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--action); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { display: none; }
.menu-toggle {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--deep); position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--deep); transition: transform .3s var(--ease); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 72px 0 0 0; z-index: 49; background: var(--cream);
  padding: 1.5rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.menu-open .mobile-panel { opacity: 1; visibility: visible; transform: none; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel li + li { border-top: 1px solid var(--line); }
.mobile-panel a:not(.btn) { display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.mobile-panel .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; }
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.hero-copy > * + * { margin-top: 1.4rem; }
.hero h1 { font-size: var(--fs-h1); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--action); position: relative; white-space: nowrap; }
.hero h1 .swoosh { position: absolute; inset-inline: -2%; bottom: -.12em; width: 104%; height: .32em; color: var(--accent); }
.hero h1 .swoosh path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s .6s var(--ease) forwards; }
.hero .lead { max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-ctas .btn { flex: 1 1 auto; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: var(--fs-small); color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof svg { width: 16px; height: 16px; color: var(--sage); flex: none; }

.hero-visual { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-arc { position: relative; width: 100%; aspect-ratio: 100 / 118; }
.hero-arc svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring .track { stroke: var(--line); }
.ring .progress { stroke: var(--accent); stroke-dasharray: 148; stroke-dashoffset: 148; animation: draw 2.2s .3s var(--ease) forwards; }
.ring .tick { fill: var(--ink); }
.ring text { font-family: var(--font-body); font-size: 3.1px; font-weight: 700; fill: var(--ink-2); }
.hero-photo { position: absolute; top: 9.3%; inset-inline: 10%; bottom: 0; box-shadow: var(--shadow); }
.hero-photo img { object-position: 60% 30%; }

.float-card {
  position: absolute; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow);
  padding: .8rem .95rem; font-size: .8rem; line-height: 1.35; max-width: 64%;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .9rem; }
.float-lesson { inset-inline-end: 0; bottom: 6%; width: 220px; }
.float-lesson .bar { height: 6px; background: var(--sand); border-radius: 9px; margin-top: .55rem; overflow: hidden; }
.float-lesson .bar i { display: block; height: 100%; width: 38%; background: var(--sage); border-radius: inherit; }
.float-lesson .meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); margin-bottom: .35rem; }
.float-chat { inset-inline-start: 0; top: 54%; width: 200px; animation-delay: -3s; }
.nowrap { white-space: nowrap; }
.float-chat .bubble { background: #e3f0e7; border-radius: 14px 14px 14px 4px; padding: .5rem .7rem; margin-top: .35rem; }
.float-chat .who { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.float-chat .who i { width: 8px; height: 8px; border-radius: 50%; background: #3fae5a; }

.hero-strip { margin-top: clamp(3rem, 2rem + 4vw, 5rem); border-top: 1px solid var(--line); padding-top: 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
.hero-strip div { display: flex; flex-direction: column; }
.hero-strip strong { font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 900; line-height: 1; }
.hero-strip span { font-size: var(--fs-small); color: var(--muted); margin-top: .35rem; }

/* ---------- Day in life (problem) ---------- */
.day { background: var(--paper); }
.day-head { display: grid; gap: 1.5rem; align-items: end; }
.day-head .lead { max-width: 36rem; }
.timeline-day { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; gap: 1rem; counter-reset: m; }
.moment {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; align-items: start;
  padding: 1.4rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.moment:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.moment time { grid-row: span 2; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--action); direction: ltr; }
.moment h3 { font-size: 1.2rem; }
.moment p { color: var(--muted); font-size: .97rem; }
.day-close { margin-top: 2.5rem; font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.35; max-width: 46rem; }
.day-close em { font-style: normal; color: var(--action); }

/* ---------- Approach (not a diet, a school) ---------- */
.approach-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.approach-photo { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; margin-inline: auto; }
.compare { margin-top: 2rem; display: grid; gap: .75rem; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.compare-row > div { padding: .9rem 1rem; font-size: .95rem; line-height: 1.45; }
.compare-row .old { background: transparent; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90, 107, 110, .45); }
.compare-row .new { background: var(--paper); font-weight: 600; }
.compare-head { display: grid; grid-template-columns: 1fr 1fr; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); padding-inline: 1rem; }
.compare-head span:last-child { color: var(--action); }

/* ---------- 180° method gauge ---------- */
.method { background: var(--deep); color: #eef5f3; position: relative; overflow: clip; }
.method .lead { color: #c6d6d3; }
.method-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.gauge-wrap { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.gauge { width: 100%; height: auto; overflow: visible; }
.gauge .seg { fill: none; stroke-width: 26; transition: stroke-width .35s var(--ease), opacity .35s; cursor: pointer; }
.gauge .seg.dim { opacity: .3; }
.gauge .seg.on { stroke-width: 34; }
.gauge-center { position: absolute; inset-inline: 0; bottom: 0; text-align: center; }
.gauge-center strong { display: block; font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem); font-weight: 900; line-height: .9; color: #fff; }
.gauge-center span { font-size: var(--fs-small); color: #a9bdb9; }
.pillars { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.pillar {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; padding: 1rem 1.1rem;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; transition: background .3s, border-color .3s;
  text-align: start; background: transparent; width: 100%;
}
.pillar:hover, .pillar.on { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.pillar .dot { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; margin-top: .45rem; }
.pillar strong { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.pillar span { font-size: .93rem; color: #a9bdb9; line-height: 1.5; }
.formula { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .9rem; }
.formula span { padding: .3rem .8rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); color: #e1ebe8; }
.formula b { color: #8fa4a0; font-weight: 400; }
.formula .result { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* ---------- Journey ---------- */
.journey-head { display: grid; gap: 1.2rem; max-width: 46rem; }
.journey-track { position: relative; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; gap: 0; }
.journey-track::before { content: ""; position: absolute; inset-inline-start: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--accent), var(--sage)); }
.stop { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.1rem; padding-bottom: 2rem; }
.stop:last-child { padding-bottom: 0; }
.stop-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--accent); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; position: relative; z-index: 1; }
.stop small { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--action); }
.stop h3 { font-size: var(--fs-h3); margin: .15rem 0 .35rem; }
.stop p { color: var(--muted); }
.journey-rail { margin-top: 2.5rem; display: grid; gap: .75rem; }
.rail-item { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; border-radius: 16px; background: var(--paper); border: 1px dashed var(--line); font-size: .95rem; }
.rail-item svg { width: 22px; height: 22px; color: var(--action); flex: none; }

/* ---------- Courses (bento) ---------- */
.courses { background: var(--paper); }
.courses-head { display: grid; gap: 1.2rem; align-items: end; }
.bento { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; gap: 1rem; }
.course {
  position: relative; display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.4rem, 1.1rem + 1vw, 2.2rem);
  border-radius: var(--radius-lg); overflow: hidden; min-width: 0; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.course-no { font-family: var(--font-display); font-size: clamp(3rem, 2.4rem + 2.5vw, 4.6rem); font-weight: 900; line-height: .8; opacity: .9; }
.course-badge { font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 99px; background: rgba(30, 43, 46, .08); white-space: nowrap; }
.course h3 { font-size: clamp(1.4rem, 1.2rem + .9vw, 2rem); }
.course p { color: var(--ink-2); max-width: 34rem; }
.course-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.course-tags span { font-size: .8rem; padding: .25rem .7rem; border-radius: 99px; background: rgba(255, 255, 255, .6); }
.course-meta { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; align-items: center; border-top: 1px solid rgba(30, 43, 46, .1); font-size: .85rem; color: var(--ink-2); }
.course-meta a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.course-meta a svg { width: 16px; height: 16px; }
.course-1 { background: var(--accent-soft); }
.course-2 { background: var(--sage-soft); }
.course-3 { background: var(--deep); color: #eef5f3; }
.course-3 p { color: #c6d6d3; }
.course-3 .course-tags span { background: rgba(255, 255, 255, .1); }
.course-3 .course-badge { background: rgba(255, 255, 255, .12); }
.course-3 .course-meta { border-top-color: rgba(255, 255, 255, .15); color: #c6d6d3; }
.course-3 .course-meta a { color: #fff; }
.course-4 { background: transparent; border: 2px dashed var(--line); }
.course-4 .course-badge { background: var(--ochre-soft); color: #2a5872; }
.course-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; margin-block: .2rem; }
.course-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course:hover .course-photo img { transform: scale(1.04); }
.sos-cards { display: flex; gap: .5rem; margin-block: .3rem; }
.sos-cards span { flex: 1; min-width: 0; padding: .7rem; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: .8rem; line-height: 1.35; border: 1px solid rgba(255, 255, 255, .1); }
.courses-note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.courses-note svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; }

/* ---------- Support & community ---------- */
.support-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.support-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; padding-bottom: 3rem; }
.support-visual .arch { aspect-ratio: 5 / 6; }
.chat {
  position: absolute; inset-inline-end: 0; bottom: 0; width: min(290px, 78%); background: #eef5f3; border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden; font-size: .85rem;
}
.chat-head { display: flex; align-items: center; gap: .6rem; background: var(--deep); color: #fff; padding: .7rem .9rem; }
.chat-head i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: .75rem; }
.chat-head small { display: block; color: #a9bdb9; font-size: .7rem; }
.chat-body { padding: .8rem; display: grid; gap: .45rem; }
.msg { max-width: 85%; padding: .5rem .7rem; border-radius: 14px; line-height: 1.4; }
.msg.in { background: #fff; justify-self: start; border-start-start-radius: 4px; }
.msg.out { background: #d8efe2; justify-self: end; border-start-end-radius: 4px; }
.includes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.includes li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start; }
.includes .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); }
.includes .ic svg { width: 22px; height: 22px; color: var(--action); }
.includes strong { display: block; font-size: 1.05rem; }
.includes span { color: var(--muted); font-size: .95rem; }
.fine { margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ---------- SOS interactive ---------- */
.sos { background: var(--deep); color: #eef5f3; overflow: clip; }
.sos .lead { color: #c6d6d3; }
.sos-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.sos-list { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.sos-btn {
  padding: .7rem 1.1rem; min-height: 44px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: transparent;
  color: #e1ebe8; cursor: pointer; font-size: .95rem; transition: background .25s, color .25s, border-color .25s;
}
.sos-btn:hover { border-color: rgba(255, 255, 255, .5); }
.sos-btn[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.phone {
  width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 17.5; border-radius: 44px; background: #16302e; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); position: relative;
}
.phone-screen { height: 100%; border-radius: 34px; background: var(--cream); color: var(--ink); padding: 2.2rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .9rem; overflow: hidden; }
.phone-screen .top { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted); }
.phone-screen h3 { font-size: 1.55rem; line-height: 1.15; }
.phone-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: s; }
.phone-steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .6rem; background: var(--paper); border-radius: 14px; padding: .7rem; font-size: .86rem; line-height: 1.4; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.phone-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--action); font-weight: 800; display: grid; place-items: center; font-size: .8rem; }
.phone-foot { margin-top: auto; text-align: center; font-size: .8rem; background: var(--deep); color: #fff; border-radius: 99px; padding: .7rem; font-weight: 700; }
.phone-screen.swap { animation: swap .45s var(--ease); }

/* ---------- Nutrition plate ---------- */
.plate-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.plate { position: relative; width: 100%; max-width: 500px; margin-inline: auto; aspect-ratio: 1; }
.plate-img { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); }
.plate-img img { width: 100%; height: 100%; object-fit: cover; }
/* Animate the dash, not the element: rotating the box would grow its bounds and widen the page. */
.plate svg.orbit { position: absolute; inset: 0; width: 100%; height: 100%; color: #bfd3cc; }
.plate svg.orbit circle { animation: orbit 40s linear infinite; }
.plate-label { position: absolute; background: var(--paper); border-radius: 99px; padding: .4rem .85rem; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; display: flex; align-items: center; gap: .4rem; }
.plate-label i { width: 10px; height: 10px; border-radius: 50%; }
.pl-1 { top: 6%; inset-inline-end: 4%; }
.pl-2 { top: 40%; inset-inline-start: 0; }
.pl-3 { bottom: 10%; inset-inline-end: 0; }
.pl-4 { bottom: 1%; inset-inline-start: 14%; }
.free-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.free-list li { display: flex; gap: .8rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.free-list li b { font-family: var(--font-display); color: var(--action); font-size: 1.1rem; flex: none; }

/* ---------- Founder ---------- */
.founder { background: var(--sand); }
.founder-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.founder-photo { aspect-ratio: 4 / 5; max-width: 400px; width: 100%; margin-inline: auto; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #dbe9e3 0 12px, #e8f1ec 12px 24px); color: var(--muted); text-align: center; padding: 2rem; }
.founder-photo span { font-size: .9rem; font-weight: 600; }
.founder blockquote { margin: 1.6rem 0 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.3; font-weight: 500; }
.placeholder { background: rgba(47, 111, 106, .1); outline: 1px dashed rgba(47, 111, 106, .5); border-radius: 6px; padding: 0 .3rem; }
.founder-bio { margin-top: 1.4rem; color: var(--ink-2); }
.founder-sign { margin-top: 1.4rem; font-weight: 700; }
.founder-sign small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Stories (disabled) ---------- */
.stories-off { padding-block: 2.5rem; }
.stories-off .box { border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; gap: 1rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.stories-off svg { width: 24px; height: 24px; flex: none; color: var(--ochre); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); }
.faq-list { display: grid; gap: .6rem; }
.faq-list details { background: var(--paper); border-radius: 18px; border: 1px solid var(--line); transition: border-color .25s; }
.faq-list details[open] { border-color: var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 12px; height: 12px; flex: none; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); margin-top: -4px; }
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-list details p { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }

/* ---------- Final CTA + form ---------- */
.join { background: var(--action); color: #fff; position: relative; overflow: clip; }
.join .eyebrow { color: #d5f0ea; }
.join-bg { position: absolute; inset-inline-start: 0; bottom: 0; width: min(70%, 900px); color: rgba(255, 255, 255, .1); pointer-events: none; }
.join-grid { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.join h2 { font-size: var(--fs-h2); margin-top: .9rem; }
.join .lead { color: #e3f4f0; margin-top: 1.2rem; }
.price-card { margin-top: 2rem; border-radius: 22px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 1.3rem 1.4rem; }
.price-card small { opacity: .85; font-size: .82rem; }
.price-card strong { display: block; font-family: var(--font-display); font-size: 1.6rem; margin-top: .2rem; }
.price-card ul { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .93rem; }
.price-card li::before { content: "✓"; margin-inline-end: .5rem; font-weight: 700; }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45); }
.form-card h3 { font-size: 1.8rem; }
.form-card > p { color: var(--muted); margin-top: .3rem; }
.form { margin-top: 1.4rem; display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field label span { color: var(--action); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 50px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  padding: .75rem .95rem; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(30, 43, 46, .08); }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--action); flex: none; }
.form .btn { width: 100%; }
.form-status { font-size: .9rem; padding: .8rem 1rem; border-radius: 12px; background: var(--sage-soft); display: none; }
.form-status.show { display: block; }
.form small.hint { color: var(--muted); font-size: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #c6d6d3; padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand-word strong { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; font-size: .95rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .06em; color: #8fa4a0; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #8fa4a0; }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; inset-inline: .75rem; bottom: .75rem; z-index: 40; display: flex; gap: .5rem;
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; }
.js .reveal-d2 { transition-delay: .2s; }
.js .reveal-d3 { transition-delay: .3s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes orbit { to { stroke-dashoffset: -301.6; } }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-card { font-size: .85rem; }
}

@media (min-width: 768px) {
  .timeline-day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cta { display: none; }
  .free-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle, .mobile-panel { display: none; }
  .header-actions .btn { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .day-head, .courses-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .timeline-day { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .moment { grid-template-columns: minmax(0, 1fr); padding: 1.6rem; }
  .moment time { grid-row: auto; margin-bottom: 1.2rem; font-size: 2.2rem; }
  .moment:nth-child(even) { transform: translateY(2.5rem); }
  .moment:nth-child(even):hover { transform: translateY(calc(2.5rem - 4px)); }
  .day-close { margin-top: 5rem; }
  .approach-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .method-grid, .sos-grid, .plate-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .support-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .founder-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .faq-grid > div:first-child { position: sticky; top: 110px; align-self: start; }
  .join-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  /* journey becomes horizontal */
  .journey-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .journey-track::before { inset-inline: 24px; top: 23px; bottom: auto; width: auto; height: 2px; background: linear-gradient(to left, var(--accent), var(--sage)); }
  .stop { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }

  /* asymmetric bento */
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .course-1 { grid-column: span 7; grid-row: span 2; }
  .course-2 { grid-column: span 5; }
  .course-3 { grid-column: span 5; }
  .course-4 { grid-column: span 12; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .course-4 > * { flex: 1 1 260px; }
  .course-4 .course-meta { flex-basis: 100%; }
  .course-1 .course-photo { aspect-ratio: 16 / 11; }
}

@media (min-width: 1280px) {
  .float-lesson { inset-inline-end: -4%; }
  .float-chat { inset-inline-start: -6%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   WordPress layer: markup adjustments, inner pages, editor content
   ========================================================================== */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
svg.icon { width: 1.15em; height: 1.15em; flex: none; }
.space-top { margin-top: 1.2rem; }
.space-bottom { margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.h3 { font-size: var(--fs-h3); }
.center { text-align: center; margin-inline: auto; }
.custom-logo-link { display: inline-flex; flex: none; }
.custom-logo { max-height: 52px; width: auto; }

/* Admin bar keeps the sticky header visible */
.admin-bar .site-header { top: 46px; }
.admin-bar .mobile-panel { top: calc(72px + 46px); }
@media (min-width: 783px) {
  .admin-bar .site-header { top: 32px; }
  .admin-bar .mobile-panel { top: calc(72px + 32px); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* Menus from wp_nav_menu */
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--ink); }
.nav .current-menu-item > a::after { transform: scaleX(1); }
.mobile-panel .current-menu-item > a { color: var(--action); }

/* Hero markup */
.hero h1 { overflow-wrap: normal; }
.hero-proof { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.hero-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof svg { width: 16px; height: 16px; color: var(--sage); flex: none; }
.ring .end { fill: var(--accent); }
.hero-strip { margin-bottom: 0; }
.hero-strip dt { font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 900; line-height: 1; }
.hero-strip dd { margin: .35rem 0 0; font-size: var(--fs-small); color: var(--muted); }

/* Day moments */
.moment .moment-time { grid-row: span 2; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--action); }
@media (min-width: 1024px) {
  .moment .moment-time { grid-row: auto; margin-bottom: 1.2rem; font-size: 2.2rem; }
}

/* Compare table */
table.compare { display: table; width: 100%; margin-top: 2rem; border-collapse: separate; border-spacing: 0 .6rem; table-layout: fixed; }
.compare th { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-align: start; padding: 0 1rem; }
.compare th:last-child { color: var(--action); }
.compare td { padding: .9rem 1rem; font-size: .95rem; line-height: 1.45; border-block: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.compare td.old { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90, 107, 110, .45); border-inline-start: 1px solid var(--line); border-start-start-radius: 16px; border-end-start-radius: 16px; }
.compare td.new { background: var(--paper); font-weight: 600; border-inline-end: 1px solid var(--line); border-start-end-radius: 16px; border-end-end-radius: 16px; }

/* Lists reset */
.journey-track, .journey-rail, .pillars, .includes, .free-list, .phone-steps { list-style: none; padding: 0; margin-inline: 0; }
.journey-track { margin-bottom: 0; }

/* Course bento — position 4 / in-development card */
.course h3 a { text-decoration: none; }
.course h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 1024px) {
  .course-4 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); column-gap: 2.5rem; align-items: start; flex-direction: column; }
  .course-4 > * { grid-column: 1; }
  .course-4 > p, .course-4 > .course-tags { grid-column: 2; grid-row: 1 / span 2; }
  .course-4 .course-meta { grid-column: 1 / -1; }
}
.bento > .course:nth-child(n+5) { grid-column: span 12; }

/* SOS phone: one panel per card */
.phone-screen[hidden] { display: none; }
.text-link.on-dark { color: #9fd3c8; }
.sos-single { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

/* Founder real photo */
.founder-photo-real { aspect-ratio: 4 / 5; max-width: 400px; width: 100%; margin-inline: auto; }
.founder-bio p + p { margin-top: .8rem; }

/* Stories */
.stories { background: var(--paper); }
.stories-grid { margin-top: 2.5rem; display: grid; gap: 1rem; }
.story { margin: 0; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.2rem; }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; }
.story figcaption { display: flex; gap: .8rem; align-items: center; margin-top: auto; }
.story figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.story figcaption small { display: block; color: var(--muted); }
@media (min-width: 768px) { .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FAQ answers from the editor */
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }
.faq-answer p + p { margin-top: .7rem; }

/* Forms */
.h180-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { background: #fbe1d8; color: #7a2a10; }
.form-status.is-info { background: var(--ochre-soft); }
.form .btn svg { width: 18px; height: 18px; }
.form-card-flat { box-shadow: var(--shadow); border: 1px solid var(--line); }
.legal-note { font-size: .8rem; color: var(--muted); padding-block: 1.5rem; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4.2rem); font-weight: 900; margin-top: .9rem; max-width: 18ch; }
.page-hero .lead { margin-top: 1.1rem; max-width: 40rem; }
.page-hero-arc { position: absolute; inset-inline-start: 0; bottom: 0; width: min(46%, 520px); color: var(--line); pointer-events: none; }
.article-hero h1 { max-width: 24ch; }
.article-meta { margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.article-cover { margin-top: 2rem; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 8; object-fit: cover; }
.section-tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* Editor content */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--action); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin-inline: 0; padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.3rem; }
.prose .alignwide { max-width: min(1240px, calc(100vw - 2 * var(--gutter))); }
.prose.on-dark { color: #e1ebe8; }
.wp-block-button__link { padding: .85rem 1.5rem; min-height: 50px; display: inline-flex; align-items: center; }
.h180-note { padding: 1rem 1.2rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.h180-cta-block { padding: 2rem; border-radius: var(--radius-lg); background: var(--accent-soft); }
.wp-block-image figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; }

/* Cards (blog, recipes) */
.card-grid { display: grid; gap: 1.2rem; }
.card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); min-width: 0; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-type { font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--action); }
.card-title { font-size: 1.35rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--muted); font-size: .95rem; }
.card-meta { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.empty-state { padding: 2rem 0; }
.pagination, .navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--deep); color: #fff; border-color: var(--ink); }

/* Filter chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-chips a { padding: .5rem 1rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); }
.filter-chips a[aria-current] { background: var(--deep); color: #fff; border-color: var(--ink); }

/* SOS library */
.sos-grid-cards { display: grid; gap: 1rem; }
.sos-card { position: relative; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.sos-card .card-title a { text-decoration: none; }
@media (min-width: 768px) { .sos-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sos-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Recipe */
.recipe-meta { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.recipe-meta li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; }
.recipe-meta a { text-decoration: none; }

/* Course page */
.course-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem); position: relative; overflow: clip; }
.course-hero.course-4 { background: var(--paper); border-bottom: 2px dashed var(--line); }
.course-hero-grid { display: grid; gap: 2rem; align-items: center; }
.course-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.8rem); font-weight: 900; margin-top: .8rem; }
.course-hero .lead { margin-top: 1rem; max-width: 40rem; }
.course-hero-meta { margin-top: 1.2rem; }
.course-hero .hero-ctas { margin-top: 1.6rem; }
.course-hero-no { font-family: var(--font-display); font-weight: 900; font-size: clamp(6rem, 4rem + 10vw, 14rem); line-height: .8; opacity: .14; justify-self: end; }
.course-hero.course-3 .eyebrow { color: #9fd3c8; }
.course-hero.course-3 .lead { color: #c6d6d3; }
.course-hero.course-3 .btn-ghost { --fg: #fff; border-color: #fff; }
@media (min-width: 1024px) { .course-hero-grid { grid-template-columns: minmax(0, 1fr) auto; } }

/* Contact / fit check */
.contact-grid, .fit-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 1024px) {
  .contact-grid, .fit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--action); flex: none; }
.contact-list small { display: block; color: var(--muted); }
.fit-list + .fit-list { margin-top: 2rem; }
.fit-list ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.fit-list li { display: flex; gap: .7rem; align-items: flex-start; }
.fit-list li svg { margin-top: .3rem; }
.fit-yes svg { color: var(--sage); }
.fit-no svg { color: var(--ochre); }
.price-inline { margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--deep); color: #fff; display: flex; flex-direction: column; gap: .15rem; }
.price-inline strong { font-family: var(--font-display); font-size: 1.6rem; }
.price-inline small { color: #c6d6d3; }
.price-card .btn { margin-top: 1.2rem; }

/* Schooler page */
.school-main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.8rem; border-radius: var(--radius-lg); background: var(--deep); color: #fff; text-decoration: none; transition: transform .3s var(--ease); }
.school-main:hover { transform: translateY(-3px); }
.school-main small { display: block; color: #a9bdb9; }
.school-main strong { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.school-main svg { width: 28px; height: 28px; flex: none; }
.school-links { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .6rem; }
.school-links a, .school-links .is-disabled { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.school-links .course-no { font-size: 1.6rem; flex: none; }
.school-links a > span:nth-child(2), .school-links .is-disabled > span:nth-child(2) { flex: 1; min-width: 0; }
.school-links .is-disabled { opacity: .65; }
.school-links small { color: var(--muted); }
@media (min-width: 768px) { .school-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.soon-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 99px; background: var(--ochre-soft); color: #2a5872; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--action); color: #fff; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); }
.cta-band p { color: #e3f4f0; margin-top: .4rem; }

/* 404 / thanks */
.error-404 { padding-block: clamp(4rem, 3rem + 5vw, 8rem); text-align: center; }
.error-404 .container { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.error-arc { width: min(260px, 70%); }
.error-404 h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 900; max-width: 20ch; }
.error-404 .lead { max-width: 36rem; }
.error-404 .hero-ctas { justify-content: center; }
.error-search { width: 100%; max-width: 480px; margin-top: 1rem; }
.search-form { display: flex; gap: .5rem; width: 100%; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--line); border-radius: 99px; padding: .6rem 1.1rem; font: inherit; background: #fff; }

/* Footer extras */
.site-footer .brand-word strong { color: #fff; }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: #8fa4a0; margin-bottom: .8rem; }
.footer-contact { margin-top: 1.2rem !important; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-social { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social a { display: inline-flex; padding: .45rem 1rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); }
.footer-disclaimer { margin-top: 2.5rem; font-size: .8rem; color: #8fa4a0; max-width: 60rem; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-legal a { font-size: .82rem; }
.site-footer ul a { display: inline-flex; min-height: 32px; align-items: center; }


/* ==========================================================================
   v1.1 — site layer: video hero, dropdown menus, homepage hub sections
   ========================================================================== */

/* ---------- Dropdown navigation ---------- */
.nav .menu-item-has-children { position: relative; }
.nav .menu-item-has-children > a { padding-inline-end: 1.1rem; }
.nav .menu-item-has-children > a::before {
  content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.nav .sub-menu {
  position: absolute; top: 100%; inset-inline-start: -1rem; min-width: 230px; margin: 0; padding: .6rem; list-style: none;
  display: grid; gap: .1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 60;
}
.nav .menu-item-has-children:hover > .sub-menu, .nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: .55rem .8rem; border-radius: 10px; white-space: nowrap; }
.nav .sub-menu a::after { display: none; }
.nav .sub-menu a:hover { background: var(--mist); color: var(--action); }
.mobile-panel .sub-menu { list-style: none; margin: 0 0 .8rem; padding: 0 1rem 0 0; }
.mobile-panel .sub-menu li + li { border-top: 0; }
.mobile-panel .sub-menu a:not(.btn) { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; padding: .45rem 0; color: var(--ink-2); }
.site-header { background: rgba(255, 255, 255, .94); }

/* ---------- Video hero ---------- */
.hero-video { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: flex-end; overflow: clip; background: var(--deep); color: #fff; }
.hv-media, .hv-media video, .hv-media img, .hv-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-media video, .hv-media img { object-fit: cover; }
.hv-media video { opacity: 0; transition: opacity 1.2s ease; }
.hv-media video.is-active { opacity: 1; }
.hv-shade { background: linear-gradient(to top, rgba(18, 42, 40, .85) 0%, rgba(18, 42, 40, .45) 45%, rgba(18, 42, 40, .1) 100%); }
.hv-content { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem); }
.hv-content .eyebrow { color: #d5f0ea; }
.hero-video h1 { font-size: clamp(2.4rem, 1.5rem + 4.4vw, 5.2rem); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; max-width: 15ch; margin-top: 1rem; text-wrap: balance; }
.hero-video h1 .accent { color: #bfe7dd; white-space: nowrap; }
.hero-video .lead { color: #eaf5f2; max-width: 36rem; margin-top: 1.2rem; }
.hero-video .hero-ctas { margin-top: 1.8rem; }
.hero-video .btn-ghost { --fg: #fff; border-color: rgba(255, 255, 255, .85); }
.hero-video .btn-ghost:hover { --bg: #fff; --fg: var(--ink); }
.hero-video .hero-proof { color: #d9ebe7; margin-top: 1.4rem; }
.hero-video .hero-proof svg { color: #9fd3c8; }
.hv-toggle {
  position: absolute; inset-inline-end: var(--gutter); bottom: clamp(1rem, .5rem + 2vw, 2rem); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(18, 42, 40, .35);
  color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px);
}
.hv-toggle[hidden] { display: none; }
.hv-toggle svg { width: 16px; height: 16px; }
.hv-credit { position: absolute; inset-inline-start: var(--gutter); bottom: .6rem; font-size: .7rem; color: rgba(255, 255, 255, .6); z-index: 2; }
@media (min-width: 768px) {
  .hero-video { align-items: center; }
  .hv-shade { background: linear-gradient(to left, rgba(18, 42, 40, .8) 0%, rgba(18, 42, 40, .5) 42%, rgba(18, 42, 40, .05) 75%); }
}

/* ---------- Trust strip under hero ---------- */
.trust-strip { background: var(--mist); border-bottom: 1px solid var(--line); }
.trust-strip dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; padding-block: 1.6rem; }
.trust-strip dt { font-family: var(--font-display); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 900; line-height: 1; color: var(--action); }
.trust-strip dd { margin: .3rem 0 0; font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 768px) { .trust-strip dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 46rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .lead { margin-top: 1rem; }
.section-head.center .eyebrow { justify-content: center; }
.section-foot { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.section-head.center + * + .section-foot, .section-foot.center { justify-content: center; }
.bg-mist { background: var(--mist); }
.bg-sky { background: var(--sky-mist); }

/* ---------- Benefits ---------- */
.benefits { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: 1rem; }
.benefit {
  position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem 1.4rem; border-radius: 24px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.benefit .b-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--action); }
.benefit:nth-child(2) .b-icon { background: var(--ochre-soft); color: var(--stone); }
.benefit:nth-child(3) .b-icon { background: var(--sage-soft); color: #3f7a5c; }
.benefit:nth-child(4) .b-icon { background: var(--stone-soft); color: var(--stone); }
.benefit .b-icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.25rem; }
.benefit p { color: var(--muted); font-size: .97rem; }
.benefit .b-more { margin-top: auto; padding-top: .4rem; font-weight: 700; color: var(--action); display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; }
.benefit .b-more svg { width: 15px; height: 15px; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Program teaser ---------- */
.program-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.program-photo { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.program-photo .arch { aspect-ratio: 5 / 6; }
.program-photo .badge-float { position: absolute; inset-inline-start: -4%; bottom: 8%; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: .9rem 1.1rem; max-width: 220px; }
.program-photo .badge-float strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--action); }
.program-photo .badge-float span { font-size: .85rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li svg { width: 22px; height: 22px; flex: none; color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; margin-top: .15rem; }
.program-price { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.program-price strong { font-family: var(--font-display); font-size: 1.5rem; }
.program-price small { color: var(--muted); }
@media (min-width: 1024px) { .program-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }

/* ---------- Compact course cards ---------- */
.course-row { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: 1rem; }
.course-tile { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: 24px; background: #fff; border: 1px solid var(--line); min-width: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.course-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-tile .ct-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.course-tile .ct-no { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; line-height: .9; color: var(--accent); }
.course-tile:nth-child(2) .ct-no { color: var(--ochre); }
.course-tile:nth-child(3) .ct-no { color: var(--sage); }
.course-tile:nth-child(4) .ct-no { color: var(--stone); }
.course-tile h3 { font-size: 1.2rem; }
.course-tile h3 a { text-decoration: none; }
.course-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.course-tile p { color: var(--muted); font-size: .95rem; }
.course-tile .course-badge { background: var(--mist); color: var(--action); }
.course-tile.is-dev { border-style: dashed; background: transparent; }
.course-tile .ct-meta { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
@media (min-width: 640px) { .course-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .course-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Magazine ---------- */
.magazine .card-grid { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.magazine .card { background: #fff; }

/* ---------- Home FAQ (compact) ---------- */
.faq-compact .faq-list { max-width: 820px; margin: 2rem auto 0; }
.faq-compact details { background: #fff; }

/* ---------- CTA band (soft) ---------- */
.cta-band { background: var(--action); }
.cta-band p { color: #e3f4f0; }

/* Footer softer */
.site-footer { background: var(--deep); }
