/* Thalvora — editorial wellness theme */
:root {
  --cream: #f6efe4;
  --cream-2: #efe5d5;
  --sand: #e4d6c0;
  --card: #fffdf9;
  --ink: #1d2622;
  --ink-2: #4b5650;
  --ink-3: #7d867f;
  --pine: #23463d;
  --pine-2: #2f5d50;
  --sage: #9db8a6;
  --clay: #d2643f;
  --clay-2: #b44f2d;
  --gold: #e3a93a;
  --rule: #d9ccb6;
  --serif: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --sans: "Commissioner", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --col: 42rem;
  --site: 74rem;
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pine-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-2); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pine); color: var(--cream); }
strong, b { font-weight: 700; }

.shell { width: min(var(--site), calc(100% - 40px)); margin-inline: auto; }
@media (max-width: 560px) { .shell { width: calc(100% - 32px); } }

/* ---------- top strip ---------- */
.strip {
  background: var(--pine);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.strip .shell { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.strip span:last-child { opacity: .7; }
@media (max-width: 560px) { .strip span:last-child { display: none; } .strip .shell { justify-content: center; } }

/* ---------- masthead ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.head__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { flex: none; }
.logo__word { font: 700 27px/1 var(--serif); letter-spacing: -.01em; }
.logo__word i { font-style: normal; color: var(--clay); }
.logo__sub { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.topics { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.topics li.on { color: var(--ink); font-weight: 700; position: relative; }
.topics li.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 3px; background: var(--clay); border-radius: 3px; }
@media (max-width: 900px) { .topics { display: none; } }
.head__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.head__cta:hover { background: var(--pine); color: var(--cream); }
@media (max-width: 560px) { .head__cta { display: none; } .logo__word { font-size: 24px; } }
.readbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.readbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pine-2), var(--clay)); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

/* ---------- article header ---------- */
.intro { padding: 56px 0 28px; }
.intro__inner { max-width: 58rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tags li { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); background: var(--card); }
.tags li:first-child { background: var(--clay); color: #fff; border-color: var(--clay); }
.intro h1 {
  margin: 0;
  font: 700 clamp(31px, 4.6vw, 56px)/1.1 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.intro h1 em { font-style: italic; font-weight: 500; color: var(--pine-2); }
.deck { margin: 22px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 46rem; }
.meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }
.author { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; }
.author__pic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); flex: none; }
.author b { display: block; }
.author small { color: var(--ink-3); font-size: 13.5px; }
.author .spon { display: block; color: var(--clay-2); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.share { display: flex; gap: 8px; align-items: center; }
.share span { font-size: 13px; color: var(--ink-3); margin-right: 4px; }
.share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); color: var(--ink); background: var(--card); transition: background .2s, color .2s; }
.share a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.cover { margin: 8px 0 0; }
.cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r); }
.cover figcaption { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.cover figcaption::before { content: ""; width: 26px; height: 2px; background: var(--clay); }
@media (max-width: 640px) { .cover img { aspect-ratio: 4 / 3; border-radius: 16px; } .intro { padding-top: 34px; } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 44px 0 20px; }
@media (min-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
}
.story { min-width: 0; }
.story > * { max-width: var(--col); }
.story > .bleed { max-width: none; }

.story p { margin: 0 0 1.15em; }
.story h2 {
  margin: 2.1em 0 .75em;
  font: 700 clamp(25px, 2.8vw, 33px)/1.2 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.story h2 .num { display: block; font: 600 13px/1 var(--sans); letter-spacing: .18em; color: var(--clay); margin-bottom: 12px; }

.lead { font-size: 20.5px; line-height: 1.62; color: var(--ink); }
.lead::first-letter {
  float: left;
  font: 700 4.4em/.82 var(--serif);
  margin: .06em .1em 0 0;
  color: var(--pine);
}
.lead strong { font-weight: 600; }

.pic { margin: 2em 0; }
.pic img { width: 100%; border-radius: 18px; background: var(--sand); }
.pic figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }

.quote {
  margin: 1.8em 0;
  padding: 6px 0 6px 28px;
  border-left: 4px solid var(--clay);
  font: italic 500 clamp(23px, 2.6vw, 29px)/1.35 var(--serif);
  color: var(--pine);
}
.quote em { font-style: normal; text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; }

.callout {
  display: flex; gap: 14px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
  padding: 18px 20px; margin: 1.6em 0;
}
.callout svg { flex: none; margin-top: 3px; color: var(--clay); }
.callout p { margin: 0; }

/* timeline */
.timeline { list-style: none; margin: 1.6em 0 2em; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--sage) 0 6px, transparent 6px 12px); }
.timeline li { position: relative; padding: 0 0 22px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--pine-2); font: 700 15px/1 var(--sans); color: var(--pine); }
.timeline li:last-child .dot { background: var(--pine); color: var(--cream); }
.timeline .card { background: var(--card); border-radius: 16px; padding: 16px 20px; border: 1px solid var(--rule); }
.timeline h3 { margin: 0 0 4px; font: 700 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-2); }
.timeline p { margin: 0; font-size: 17px; }

/* therapy band */
.band {
  background: var(--pine);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 44px);
  margin: 2.2em 0;
}
.band__title { margin: 0 0 22px; font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.trio { display: grid; gap: 14px; }
.trio article { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 22px; }
.trio article > :not(.ico) { grid-column: 2; }
.trio .ico { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--clay); }
@media (max-width: 480px) { .trio article { grid-template-columns: 1fr; } .trio article > :not(.ico) { grid-column: 1; } .trio .ico { grid-row: auto; margin-bottom: 14px; } }
.trio h3 { margin: 0 0 8px; font: 700 20px/1.25 var(--serif); }
.trio p { margin: 0; font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--cream) 82%, transparent); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 1.8em 0 2.2em; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.review img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.review blockquote { margin: 0; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.review p { margin: 0; font-size: 15.5px; line-height: 1.62; }
.review footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--rule); font-weight: 700; font-size: 15px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
@media (max-width: 860px) {
  .review { flex-direction: row; }
  .review img { width: 38%; aspect-ratio: auto; }
}
@media (max-width: 520px) {
  .review { flex-direction: column; }
  .review img { width: 100%; aspect-ratio: 16 / 9; }
}

/* offer coupon */
.coupon {
  position: relative;
  background: var(--card);
  border: 2px dashed var(--clay);
  border-radius: 24px;
  padding: 30px clamp(20px, 4vw, 34px) 26px;
  margin: 1.6em 0 1.8em;
}
.coupon__tag {
  position: absolute; top: -22px; right: 22px;
  background: var(--clay); color: #fff;
  font: 700 26px/1 var(--serif);
  padding: 10px 16px; border-radius: 14px; transform: rotate(3deg);
  box-shadow: 0 10px 24px -12px rgba(180, 79, 45, .8);
}
.coupon__tag small { display: block; font: 600 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.coupon p:last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 1em 0 1.2em; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ticks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6efe4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  margin: 1.4em 0 2em;
  padding: 18px 24px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font: 700 18px/1.3 var(--sans);
  box-shadow: 0 16px 30px -18px rgba(180, 79, 45, .9), inset 0 -3px 0 rgba(0, 0, 0, .14);
  transition: transform .15s, background .2s;
}
.btn:hover { background: var(--clay-2); color: #fff; transform: translateY(-1px); }
.btn svg { flex: none; }

.notice {
  display: flex; gap: 14px;
  background: #fbe9d0; border-radius: 18px; padding: 18px 20px;
  margin: 1.6em 0; font-size: 16.5px; line-height: 1.6;
}
.notice svg { flex: none; color: var(--clay-2); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- aside ---------- */
.rail { display: none; }
@media (min-width: 1080px) {
  .rail { display: block; }
  .rail__in { position: sticky; top: 100px; display: grid; gap: 22px; }
}
.toc { border-top: 3px solid var(--ink); padding-top: 14px; }
.toc h4, .mini h4 { margin: 0 0 12px; font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; border-bottom: 1px solid var(--rule); }
.toc a { display: flex; gap: 12px; padding: 10px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.toc a::before { content: counter(t, decimal-leading-zero); font-weight: 700; color: var(--ink-3); font-size: 12.5px; padding-top: 2px; }
.toc a:hover, .toc a.is-on { color: var(--ink); }
.toc a.is-on::before { color: var(--clay); }
.mini { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini__body { padding: 16px 18px 18px; }
.mini__body p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.mini__body b { color: var(--clay-2); }
.mini .btn { margin: 0; padding: 13px 16px; font-size: 15px; }

/* ---------- form section ---------- */
.order { background: var(--pine); color: var(--cream); padding: clamp(46px, 7vw, 84px) 0; margin-top: 40px; position: relative; overflow: hidden; }
.order::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); right: -180px; top: -200px; }
.order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; }
@media (max-width: 880px) { .order__grid { grid-template-columns: 1fr; } }
.order__pic { position: relative; }
.order__pic img { border-radius: 24px; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.order__pic .seal {
  position: absolute; left: -10px; bottom: -14px;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--clay); color: #fff; display: grid; place-content: center; text-align: center;
  font: 700 32px/1 var(--serif); transform: rotate(-8deg);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.order__pic .seal small { font: 600 10.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 880px) { .order__pic img { aspect-ratio: 16 / 10; } .order__pic .seal { left: auto; right: 10px; width: 96px; height: 96px; font-size: 27px; } }
.order__perks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.order__perks li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }

.panel { background: var(--card); color: var(--ink); border-radius: 26px; padding: clamp(24px, 4vw, 38px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.panel__eyebrow { margin: 0 0 8px; font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--clay-2); display: flex; align-items: center; gap: 8px; }
.panel__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0 4px rgba(63, 166, 107, .2); }
.panel h2 { margin: 0 0 10px; font: 700 clamp(25px, 3vw, 32px)/1.15 var(--serif); }
.panel__lede { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 15px 16px; font: 500 17px/1.2 var(--sans); color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--rule); border-radius: 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--pine-2); background: #fff; box-shadow: 0 0 0 4px rgba(47, 93, 80, .14); }
.field input[aria-invalid="true"] { border-color: #c0392b; background: #fff6f4; }
.field__err, .form-fail { margin: 6px 0 0; font-size: 13.5px; color: #b03222; font-weight: 600; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pine-2); flex: none; }
.panel button {
  width: 100%; margin-top: 18px; padding: 17px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--clay); color: #fff; font: 700 18px/1.2 var(--sans);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14);
  transition: background .2s;
}
.panel button:hover { background: var(--clay-2); }
.panel button:disabled { opacity: .65; cursor: progress; }
.panel__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }
.done { text-align: center; padding: 20px 0 6px; }
.done:focus { outline: none; }
.done__mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--pine); color: var(--cream); }
.done h3 { margin: 0 0 6px; font: 700 26px/1.2 var(--serif); }
.done p { margin: 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: #18201d; color: #c9cfc9; font-size: 13.5px; line-height: 1.65; padding: 52px 0 110px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot .logo { color: var(--cream); }
.foot .logo__sub { color: #8e978f; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--cream); }
.foot a:hover { color: var(--gold); }
.foot p { margin: 0 0 14px; max-width: 62rem; }
.foot strong { color: var(--cream); letter-spacing: .04em; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 760px) { .foot__cols { grid-template-columns: 1fr; } }
.foot__copy { margin-top: 12px !important; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8e978f; }

/* ---------- sticky bar ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  max-width: 620px; margin-inline: auto;
}
.dock.is-on { transform: none; }
.dock__txt { flex: 1; font-size: 14px; line-height: 1.3; }
.dock__txt b { color: var(--gold); }
.dock a { flex: none; padding: 12px 20px; border-radius: 999px; background: var(--clay); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.dock a:hover { background: var(--clay-2); color: #fff; }
@media (max-width: 420px) { .dock__txt { font-size: 12.5px; } .dock a { padding: 11px 14px; font-size: 14px; } }
@media (min-width: 1080px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock, .btn, .share a { transition: none; }
}
