/* QI FOR LIFE — Daniel Samelson
   Soft palette: the logo's teal and ochre, washed out toward mist and sand. */
:root {
  --ink: #3B4446;        /* body text: soft slate, not black */
  --teal: #6E9590;       /* muted sage-teal: links, accents */
  --teal-deep: #4D716D;  /* headings and buttons (white text passes AA) */
  --ochre: #D9BC93;      /* pale sand: frames, markers */
  --ochre-deep: #8C6A3F; /* sand text on light bg (prices) */
  --mist: #F3EBDF;       /* warm sand section background */
  --paper: #FAF6EF;       /* light warm sand page background */
  --line: #E8DDCC;
  --wa: #3E7A5C;         /* WhatsApp button, softened */

  --f-head: "Assistant", "Arial", sans-serif;
  --f-body: "Assistant", "Arial", sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 20px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-head); color: var(--teal-deep); line-height: 1.25; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
strong, b { font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 80px 0; }
.section--mist { background: var(--mist); }
.section--teal { background: #EEE2D0; color: var(--ink); }
.section--teal h2 { color: var(--teal-deep); }
.lead { font-size: 1.2rem; color: #4E5F60; max-width: 40em; }
.muted { color: #52656A; font-size: .9rem; }

.skip { position: absolute; right: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { right: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 62px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.02rem; border-radius: var(--radius); }
.nav a:hover { background: var(--mist); color: var(--teal-deep); }
.nav a[aria-current="page"] { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--ochre); border-radius: 0; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .site-header .wrap { min-height: 68px; }
  .brand img { height: 46px; }
  .nav { display: none; }
  .menu-toggle { display: block; position: relative; }
  .menu-toggle summary {
    list-style: none; cursor: pointer; font-weight: 600; color: var(--teal-deep);
    border: 2px solid var(--teal-deep); border-radius: var(--radius); padding: 6px 16px; font-size: 1.05rem;
  }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle[open] summary { background: var(--teal-deep); color: #fff; }
  .menu-toggle ul {
    position: absolute; left: 0; top: calc(100% + 10px); width: min(300px, 86vw);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(30, 61, 66, .16); list-style: none; margin: 0; padding: 8px;
  }
  .menu-toggle a { display: block; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--radius); }
  .menu-toggle a:hover { background: var(--mist); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 30px; border-radius: var(--radius);
  font-family: var(--f-body); font-size: 1.15rem; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn--pay { background: var(--teal-deep); color: #fff; }
.btn--pay:hover { background: var(--ink); color: #fff; }
.btn--wa { background: #fff; color: var(--wa); border-color: var(--wa); }
.btn--wa:hover { background: var(--wa); color: #fff; }
.btn--light { background: var(--teal-deep); color: #fff; }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn svg { width: 24px; height: 24px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- The ochre frame (from the logo) ---------- */
.framed { position: relative; margin: 14px 0 0 14px; }
.framed::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 3px solid var(--ochre); border-radius: 3px 9px 4px 11px / 10px 3px 8px 4px;
  z-index: 0;
}
.framed img { position: relative; z-index: 1; border-radius: 2px; }

/* ---------- Home hero ---------- */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.6em; }
.hero .framed { max-width: 480px; justify-self: start; }
.hero .framed img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 860px) {
  .hero { padding: 28px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .framed { order: -1; max-width: 100%; }
}

/* ---------- Workshops, events, promotions ---------- */
.event-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 0 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-meta div { margin: 0; }
.event-meta dt { font-size: .9rem; color: #52656A; font-weight: 600; }
.event-meta dd { margin: 0; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.price del { font-size: .6em; color: #52656A; font-weight: 500; margin-left: 6px; }

/* Home: upcoming workshops strip (only when there is an event) */
.events { padding: 36px 0; background: #FBF6EE; border-top: 1px solid #EFE3CF; border-bottom: 1px solid #EFE3CF; }
.events h2 { font-size: 1.4rem; margin: 0 0 16px; }
.events ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.events li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; background: #fff; border: 1px solid #EFE3CF; border-radius: var(--radius); padding: 16px 20px; }
.events .when { color: var(--ochre-deep); font-weight: 600; display: block; font-size: .98rem; }
.events a.title { font-family: var(--f-head); font-size: 1.3rem; color: var(--teal-deep); text-decoration: none; }
.events a.title:hover { text-decoration: underline; }
.events .btn { min-height: 48px; padding: 8px 22px; font-size: 1.02rem; }

/* ---------- Blog ---------- */
.blog-head { padding: 56px 0 24px; }
.post-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; }
.post-cards a { text-decoration: none; color: inherit; display: block; }
.post-cards img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; margin-bottom: 14px; }
.post-cards h3 { font-size: 1.3rem; color: var(--teal-deep); margin: 0 0 .35em; font-weight: 600; }
.post-cards a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post-cards p { margin: 0; font-size: 1rem; color: #4E5F60; }

.post { padding-top: 48px; }
.post .crumbs { margin: 0 0 18px; font-size: 1rem; }
.post h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .7em; }
.post-body { font-size: 1.12rem; line-height: 1.8; overflow-wrap: anywhere; }
.post-body h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.post-body h3, .post-body h4 { font-size: 1.3rem; margin: 1.4em 0 .4em; }
.post-body ul, .post-body ol { padding-right: 1.3em; margin: 0 0 1em; }
.post-body li { margin-bottom: .35em; }
.post-body .video { margin: 28px 0 32px; }
.post-body .photo-wide { margin: 24px 0 28px; }
.post-cta {
  margin: 48px 0 0; padding: 26px 28px; background: var(--mist);
  border-right: 3px solid var(--ochre); border-radius: var(--radius);
}
.post-cta p { margin: 0 0 18px; font-size: 1.12rem; }
.post-cta--mid { margin: 28px 0 36px; padding: 22px 24px; }
.post-cta--mid p { margin-bottom: 14px; }
.video-link { margin: 12px 0 24px; }
.video-link a { font-weight: 600; }

/* Keyword tags (strong page) */
.tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--ochre); color: var(--ochre-deep); background: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 1rem; }

/* Photo placed inside a text column */
.photo-wide { width: 100%; border-radius: 3px; margin: 8px 0 32px; }
p + .photo-wide { margin: 24px 0 0; }

/* About teaser: small portrait beside the text */
.split--about { grid-template-columns: 380px 1fr; gap: 48px; }
.split--about .framed { max-width: 380px; }
@media (max-width: 860px) { .split--about { grid-template-columns: 1fr; } .split--about .framed { max-width: 340px; } }

/* ---------- Program chooser (home) ---------- */
.chooser { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--teal); }
.chooser li {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.chooser img { width: 180px; height: 130px; object-fit: cover; border-radius: 3px; }
.chooser .ask { font-size: 1.05rem; color: #4D6A6E; margin: 0 0 .2em; }
.chooser h3 { margin: 0 0 .25em; font-size: 1.55rem; font-weight: 600; }
.chooser h3 a { color: var(--teal-deep); text-decoration: none; }
.chooser h3 a:hover { text-decoration: underline; }
.chooser .facts { margin: 0; font-size: 1rem; color: var(--ink); }
.chooser .side { text-align: center; min-width: 170px; }
.price { font-family: var(--f-head); color: var(--ochre-deep); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.price small { display: block; font-family: var(--f-body); font-size: .9rem; color: #4D6A6E; font-weight: 400; margin-top: 2px; }
.chooser .btn { margin-top: 10px; min-height: 50px; padding: 8px 22px; font-size: 1.05rem; }
@media (max-width: 760px) {
  .chooser li { grid-template-columns: 1fr; gap: 14px; }
  .chooser img { width: 100%; height: 190px; }
  .chooser .side { text-align: right; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .chooser .btn { margin-top: 0; }
}

/* ---------- WhatsApp band ---------- */
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { margin: 0 0 .2em; }
.band p { margin: 0; font-size: 1.15rem; }

/* ---------- Split (about teaser, product intro) ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split--rev { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #0f2427; border-radius: 3px; overflow: hidden; }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video button {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: transparent;
}
.video button::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232B5F66' d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat 56% 50% / 44px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.video button:hover::after { background-color: #fff; }
.video-caption { margin: 10px 0 0; font-weight: 600; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */
.p-hero { padding: 56px 0 72px; }
.p-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.p-hero .framed img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.p-hero .who { font-weight: 600; color: var(--ochre-deep); font-size: 1.1rem; margin-bottom: .6em; }
.facts-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 6px; }
.facts-list li { padding-right: 30px; position: relative; }
.facts-list li::before {
  content: ""; position: absolute; right: 0; top: .55em; width: 16px; height: 16px; border-radius: 50%;
  border: 4px solid var(--ochre);
}
@media (max-width: 860px) {
  .p-hero { padding: 32px 0 56px; }
  .p-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .p-hero .framed { order: -1; }
}

.buy {
  background: var(--mist); border-right: 3px solid var(--ochre); padding: 22px 26px; border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
}
.buy .price { font-size: 2.2rem; }
.buy .note { flex-basis: 100%; margin: 0; font-size: .95rem; color: #4D6A6E; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { padding-right: 38px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; right: 0; top: .3em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 16px;
}
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 48px; margin-top: 32px; }
.cols h3 { color: var(--teal-deep); font-weight: 600; margin-bottom: .3em; }
.cols p { margin: 0; }
.cols--marked > div { border-top: 4px solid var(--ochre); padding-top: 18px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.steps li::before {
  content: counter(step); font-family: var(--f-head); font-weight: 600; font-size: 1.5rem; color: var(--teal-deep);
  width: 54px; height: 54px; border: 3px solid var(--ochre); border-radius: 50%; display: grid; place-items: center;
}
.steps strong { display: block; font-size: 1.1rem; }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0 20px 44px; font-weight: 600; font-size: 1.12rem; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; font-weight: 400; color: var(--teal-deep); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; max-width: 46em; }

.disclaimer { font-size: .9rem; color: #4D6A6E; max-width: 52em; }

/* ---------- Gift pages (hidden, reached only by a shared link) ---------- */
.gift-head { background: var(--paper); border-bottom: 1px solid var(--line); text-align: center; padding: 14px 0; }
.gift-head img { height: 60px; width: auto; margin: 0 auto; }
.gift { padding: 48px 0 72px; text-align: center; }
.gift .wrap { max-width: 760px; }
.gift-tag { display: inline-block; border: 1px solid var(--ochre); color: var(--ochre-deep); background: #fff; border-radius: 999px; padding: 4px 16px; font-weight: 600; font-size: 1rem; margin: 0 0 16px; }
.gift h1 { margin-bottom: 14px; }
.gift .lead { margin: 0 auto 32px; }
.gift .video { margin: 0 auto; box-shadow: 0 0 0 3px var(--ochre); }
.gift-note { color: #52656A; margin: 14px 0 0; }
.gift-text { max-width: 40em; margin: 36px auto 0; font-size: 1.12rem; }
.gift-who { display: flex; align-items: center; gap: 18px; text-align: start; max-width: 34em; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.gift-who img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; border: 2px solid var(--ochre); }
.gift-who p { margin: 0; }
.gift-cta { background: var(--mist); border: 1px solid var(--line); border-radius: 10px; padding: 32px 28px; margin: 40px auto 0; max-width: 34em; }
.gift-cta h2 { font-size: 1.6rem; margin: 0 0 10px; }
.gift-cta p { margin: 0 0 22px; }
.gift-cta .btn { display: flex; width: 100%; margin-top: 12px; }
.gift-cta .direct { display: inline-block; margin-top: 16px; font-weight: 600; }
.gift-sign { margin: 36px 0 0; font-size: 1.12rem; }
.gift-foot { border-top: 1px solid var(--line); padding: 24px 0 32px; text-align: center; }

/* Thank-you pages (Stripe sends buyers here after payment) */
.thanks-mark { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid var(--ochre);
  background: var(--teal-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='2.6' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 40px; }
.thanks-steps { text-align: start; max-width: 34em; margin: 8px auto 0; }
.thanks-steps .steps { margin-top: 0; }
.gift-foot p { margin: 0 auto; }
@media (max-width: 600px) {
  .gift { padding: 32px 0 56px; }
  .gift-cta { padding: 26px 18px; }
  .gift-who { gap: 14px; }
  .gift-who img { width: 68px; height: 68px; }
}

/* Mobile sticky pay bar */
.paybar { display: none; }
@media (max-width: 760px) {
  .paybar {
    display: flex; position: fixed; bottom: 0; right: 0; left: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30,61,66,.12);
    padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px;
  }
  .paybar .price { font-size: 1.4rem; }
  .paybar .btn { min-height: 50px; padding: 8px 20px; font-size: 1.05rem; }
  body.has-paybar { padding-bottom: 76px; }
}

/* ---------- Photo focus: keep Daniel's face inside every crop ---------- */
img[src$="start-mountain.jpg"]   { object-position: 50% 8%; }
img[src$="club-laptop.jpg"]      { object-position: 52% 0%; }
img[src$="community-group.jpg"]  { object-position: 50% 30%; }
img[src$="strong-collage.jpg"]   { object-position: 33% 0%; }
/* Strong collage: six photos, show it whole on the product page */
.p-hero .framed img[src$="strong-grid.jpg"] { aspect-ratio: auto; object-fit: contain; }
.p-hero .wrap:has(img[src$="strong-grid.jpg"]) { align-items: center; }
img[src$="hero-lake.jpg"]        { object-position: 40% 30%; }
@media (max-width: 760px) {
  .chooser img { height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Footer ---------- */
.site-footer { background: #4A5D5E; color: #E6ECEA; padding: 56px 0 28px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-family: var(--f-body); color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 8px 0; line-height: 1.4; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; margin-top: 12px; font-size: .9rem; color: #B9CCCA; }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: var(--radius); display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 52px; width: auto; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
