/* Soma Studio, Kajabi landing page theme.
   Colours and fonts come from theme settings (snippets/css-variables.liquid). Motion lives in scripts.js;
   this file only holds the resting states, hover transitions and the pre-animation states under html.motion. */

/* Tokens */
:root {
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --space-section: clamp(96px, 12vw, 184px);
  --radius-card: 32px;
  --header-h: 84px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.35s;
  --dur-2: 0.7s;
}

/* Section tones: every section sets --bg and --fg, everything else derives from them. */
.tone-base, .soma { --bg: var(--base); --fg: var(--ink); --btn-bg: var(--dark); --btn-fg: var(--base); --pop: var(--dark); }
.tone-tint { --bg: var(--tint); --fg: var(--ink); --btn-bg: var(--dark); --btn-fg: var(--tint); --pop: var(--dark); }
.tone-cream { --bg: var(--cream); --fg: var(--ink); --btn-bg: var(--dark); --btn-fg: var(--cream); --pop: var(--dark); }
.tone-mist { --bg: color-mix(in srgb, var(--base) 84%, var(--stone)); --fg: var(--ink); --btn-bg: var(--dark); --btn-fg: var(--base); --pop: var(--dark); }
.tone-dark { --bg: var(--dark); --fg: var(--base); --btn-bg: var(--tint); --btn-fg: var(--ink); --pop: var(--tint); }
.soma, [class*="tone-"] {
  --muted: color-mix(in srgb, var(--fg) 70%, transparent);
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  --veil: color-mix(in srgb, var(--fg) 5%, transparent);
  background: var(--bg);
  color: var(--fg);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body.soma {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.soma img { display: block; max-width: 100%; height: auto; }
.soma a { color: inherit; }
.soma p { margin: 0 0 1em; }
.soma p:last-child { margin-bottom: 0; }
.soma ul, .soma ol { margin: 0; padding: 0; }
::selection { background: var(--tint); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

/* Film grain, as on the printed brand pieces */
.has-grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Type */
.soma h1, .soma h2, .soma h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6.1vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.soma h2 {
  font-size: clamp(2rem, 3.9vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.soma h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, inherit);
}
.soma .eyebrow { margin: 0 0 1.5rem; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.word__inner { display: inline-block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--dark); color: var(--base); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }

/* Layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 1040px; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head__text { color: var(--muted); max-width: 30em; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 7fr 4fr; align-items: end; gap: var(--gutter); }
  .section-head__text { justify-self: end; }
}

/* Shapes */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; isolation: isolate; background: var(--veil); }
.frame { border-radius: var(--radius-card); overflow: hidden; isolation: isolate; background: var(--veil); }
.arch img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.mark { display: block; width: 1em; height: 1em; }

/* Buttons: pill with a label that rolls up and an arrow that turns on hover */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn-row--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 7px 0 24px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 15px/1 var(--font-body);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.soma .btn { color: var(--btn-fg); }
.btn__roll { display: block; height: 1.2em; overflow: hidden; }
.btn__text { display: block; line-height: 1.2em; transition: transform var(--dur-2) var(--ease-out); }
.btn__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--btn-fg); color: var(--btn-bg);
  transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover .btn__text, .btn:focus-visible .btn__text { transform: translateY(-100%); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: rotate(-45deg); }
.btn:active { transform: scale(0.97); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost .btn__icon { background: var(--fg); color: var(--bg); }
.btn--light { --btn-bg: var(--tint); --btn-fg: var(--ink); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--base) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-header .btn { --btn-bg: var(--dark); --btn-fg: var(--base); height: 44px; font-size: 14px; padding-left: 20px; }
.site-header .btn__icon { width: 32px; height: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { display: block; height: auto; overflow: hidden; }
.wordmark__logo { width: clamp(112px, 10vw, 136px); }
.site-nav { display: none; gap: 32px; margin: 0 auto; }
.site-nav__link { position: relative; font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur-2) var(--ease-out);
}
.site-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__cta { margin-left: auto; }
@media (min-width: 900px) { .site-nav { display: flex; } .site-header__cta { margin-left: 0; } }
@media (max-width: 520px) { .site-header .btn__roll { display: none; } .site-header .btn { padding: 0 6px; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 1040px); padding: calc(var(--header-h) + 24px) 0 40px; display: flex; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 28px; width: 100%; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.hero__meta .eyebrow { margin: 0; }
.hero__hours { display: none; }
.hero__title { position: relative; z-index: 2; font-size: clamp(2.6rem, 10.6vw, 6.75rem); }
.hero__line--3 { color: var(--stone); }
.hero__media { position: relative; margin: 0; width: min(78%, 420px); justify-self: end; }
.hero__arch { aspect-ratio: 3 / 4; }
.hero__mark-wrap { position: absolute; left: -16%; bottom: 12%; font-size: clamp(64px, 8vw, 132px); color: var(--dark); }
.hero__caption { margin: 14px 0 0; text-align: right; }
.hero__text { max-width: 30em; font-size: 18px; color: var(--muted); }
.hero__note { margin-top: 1.25rem; font-size: 13px; color: var(--muted); }
.hero__scroll { display: none; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto; column-gap: var(--gutter); row-gap: 40px; }
  .hero__meta { grid-column: 1 / -1; }
  .hero__hours { display: block; }
  .hero__title { grid-column: 1 / span 8; grid-row: 2; align-self: center; font-size: clamp(3rem, 7.1vw, 8rem); }
  .hero__line { white-space: nowrap; }
  .hero__line--2 { padding-left: 1.1em; }
  .hero__media { grid-column: 9 / -1; grid-row: 2 / span 2; width: 100%; align-self: end; }
  .hero__arch { max-height: min(calc(100svh - var(--header-h) - 120px), 820px); margin-left: auto; }
  .hero__copy { grid-column: 1 / span 5; grid-row: 3; }
  .hero__scroll {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    grid-column: 7 / span 1; grid-row: 3; align-self: end; justify-self: center; text-decoration: none; margin: 0;
  }
  .hero__scroll-line { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
  .hero__scroll-line::after {
    content: ""; position: absolute; inset: 0; background: var(--fg);
    transform: scaleY(0); transform-origin: top; animation: scroll-cue 2.4s var(--ease-in-out) infinite;
  }
}
@keyframes scroll-cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Moving band */
.marquee { overflow: hidden; padding: clamp(20px, 3vw, 36px) 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); }
.marquee__item { font-family: var(--font-heading); font-weight: 300; font-size: clamp(2rem, 5.4vw, 5rem); letter-spacing: -0.04em; line-height: 1; }
.marquee__mark { font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--pop); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Why: numbered rows */
.why { padding: var(--space-section) 0; }
.why__grid { display: grid; gap: clamp(48px, 6vw, 96px); }
.why__head h2 { max-width: 16ch; }
.why__intro { margin-top: 1.75rem; max-width: 30em; color: var(--muted); }
.why__row { position: relative; list-style: none; display: grid; grid-template-columns: 56px 1fr; gap: 8px 24px; padding: 32px 0; }
.why__rule { position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); transform-origin: left; }
.why__num { font-family: var(--font-heading); font-size: 14px; color: var(--stone); padding-top: 4px; }
.why__text { grid-column: 2; color: var(--muted); max-width: 34em; }
@media (min-width: 960px) {
  .why__grid { grid-template-columns: 5fr 7fr; }
  .why__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .why__row { grid-template-columns: 72px 5fr 6fr; padding: 40px 0; }
  .why__text { grid-column: 3; }
}

/* Centered text */
.centered { padding: var(--space-section) 0; text-align: center; }
.centered--large h2 { font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1.18; letter-spacing: -0.035em; }
.centered--small { padding: clamp(72px, 9vw, 128px) 0; }
.centered--small h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.centered__text { max-width: 38em; margin: 1.75rem auto 0; color: var(--muted); }
.centered__text:empty { display: none; }

/* Arch reveal. Static by default; scripts.js adds .is-live on wide screens and pins it. */
.unfold { padding: var(--space-section) 0; overflow: hidden; }
.unfold__stage { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 40px; }
.unfold__intro h2 { max-width: 14ch; }
.unfold__media { position: relative; width: min(100%, 640px); aspect-ratio: 4 / 5; justify-self: center; }
.unfold__window, .unfold__scrim { display: none; }
.unfold__outro { max-width: 40rem; }
.unfold__text { margin-top: 1.5rem; color: var(--muted); }
.unfold.is-live { padding: 0; }
.unfold.is-live .unfold__stage { position: relative; display: block; max-width: none; height: 100svh; padding: 0; overflow: hidden; }
.unfold.is-live .unfold__media { position: absolute; inset: 0; width: 100%; aspect-ratio: auto; border-radius: 0; }
.unfold.is-live .unfold__scrim { display: block; position: absolute; inset: 0; opacity: 0; background: linear-gradient(to top, rgb(28 30 29 / 0.62), rgb(28 30 29 / 0) 58%); }
.unfold.is-live .unfold__window {
  --win-w: min(28vw, 420px);
  display: block; position: absolute; z-index: 1; bottom: 0;
  left: calc(50% - var(--win-w) / 2); width: var(--win-w); height: 66svh;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 64vmax var(--bg);
  transform-origin: 50% 100%;
}
.unfold.is-live .unfold__intro { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); width: calc(50% - min(14vw, 210px) - var(--gutter) * 2); }
.unfold.is-live .unfold__outro { position: absolute; z-index: 2; left: var(--gutter); bottom: 9svh; color: var(--base); opacity: 0; }
.unfold.is-live .unfold__outro .unfold__text { color: color-mix(in srgb, var(--base) 82%, transparent); }

/* Products */
.products { padding: var(--space-section) 0; }
.product-grid { display: grid; gap: 64px; }
.product__media { position: relative; aspect-ratio: 3 / 4; }
.product__media img { transition: transform 1.2s var(--ease-out); }
.product__badge { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0 !important; padding: 8px 16px; border-radius: 999px; background: var(--base); color: var(--ink); white-space: nowrap; }
.product__body { padding-top: 28px; }
.product__title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.product__price { font-family: var(--font-heading); font-size: 15px; white-space: nowrap; margin: 0 !important; }
.product__text { color: var(--muted); font-size: 15px; margin: 16px 0 4px; }
.product__text li { list-style: none; padding: 6px 0; }
.product__text li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--stone); margin: 0 12px 2px 0; }
.product .btn-row, .product .btn { margin-top: 20px; }
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); align-items: start; }
  .product:nth-child(3n + 2) { margin-top: 120px; }
}

/* Image and text */
.media { padding: var(--space-section) 0; }
.media__grid { display: grid; gap: 48px; align-items: center; }
.media__figure { margin: 0; }
.media__figure figcaption { margin-top: 16px; }
.media__frame.arch { aspect-ratio: 4 / 5; max-width: 560px; }
.media__frame.frame { aspect-ratio: 16 / 9; }
.media__text { margin-top: 1.5rem; color: var(--muted); max-width: 32em; }
.media__text li { list-style: none; padding: 12px 0; border-top: 1px solid var(--line); }
.media__text ul { margin-top: 1.5rem; }
.media__video { border-radius: var(--radius-card); overflow: hidden; }
@media (min-width: 960px) {
  .media__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  .media--right .media__copy { grid-column: 1 / span 5; }
  .media--right .media__figure { grid-column: 7 / -1; }
  .media--right .media__frame.arch, .media--left .media__frame.arch { margin-left: auto; }
  .media--left .media__figure { grid-column: 1 / span 6; grid-row: 1; }
  .media--left .media__frame.arch { margin: 0; }
  .media--left .media__copy { grid-column: 8 / -1; grid-row: 1; }
  .media--wide .media__copy { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gutter); align-items: end; }
  .media--wide .media__copy > .eyebrow { grid-column: 1 / -1; }
  .media--wide .media__text { margin: 0; justify-self: end; }
  .media--wide .media__figure { grid-column: 1 / -1; }
}

/* Routines */
.routines { padding: var(--space-section) 0; }
.routine-grid { display: grid; gap: 20px; }
.routine { border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 2.6vw, 40px); background: var(--veil); transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.routine:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--pop) 60%, transparent); }
.routine__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.routine__index { font-family: var(--font-heading); font-weight: 300; font-size: 3.25rem; line-height: 1; letter-spacing: -0.05em; color: var(--pop); }
.routine__meta { margin: 0 !important; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.06em; }
.routine__moves { margin-top: 24px; }
.routine__moves ol { counter-reset: move; }
.routine__moves li { list-style: none; counter-increment: move; position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.routine__moves li::before { content: counter(move); position: absolute; left: 0; top: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--fg); }
.routine__moves strong { display: block; font-weight: 500; color: var(--fg); }
@media (min-width: 960px) { .routine-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }

/* Reviews */
.testimonials { padding: var(--space-section) 0; }
.quote-grid { display: grid; gap: 20px; }
.quote { margin: 0; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-card); background: var(--veil); }
.quote__mark { font-family: var(--font-heading); font-size: 5rem; line-height: 0.7; height: 0.45em; color: var(--accent); }
.quote blockquote { margin: 24px 0 40px; font-family: var(--font-heading); font-weight: 300; font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.45; letter-spacing: -0.02em; }
.quote figcaption { margin-top: auto; display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote__name { font-weight: 500; }
.quote__detail { font-size: 14px; color: var(--muted); }
@media (min-width: 960px) {
  .quote-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
  .quote-grid { align-items: start; }
  .quote:nth-child(3n + 2) { margin-top: 48px; }
}

/* Questions */
.faq { padding: var(--space-section) 0; }
.faq__grid { display: grid; gap: 48px; }
.faq__intro { margin-top: 1.5rem; color: var(--muted); max-width: 26em; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: var(--font-heading); font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: -0.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform var(--dur-2) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item summary:hover .faq__icon { background: var(--tint); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 64px 32px 0; color: var(--muted); max-width: 40em; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: var(--gutter); }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* Sign-up */
.signup { padding: var(--space-section) 0; }
.signup__grid { display: grid; gap: 56px; align-items: center; }
.signup__copy h2 { font-size: clamp(2.4rem, 5.4vw, 5.25rem); }
.signup__text { margin-top: 1.5rem; color: var(--muted); max-width: 30em; }
.signup__form { margin-top: 40px; max-width: 34rem; }
.signup__form-title { margin-bottom: 1rem !important; }
.signup__media { margin: 0; width: min(100%, 460px); }
.signup__media .arch { aspect-ratio: 3 / 4; }
@media (min-width: 960px) {
  .signup__grid { grid-template-columns: 7fr 5fr; gap: var(--gutter); }
  .signup__media { justify-self: end; }
}

/* Forms */
.form-fields { display: grid; gap: 10px; }
.form-fields input, .form-fields textarea, .form-fields select {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--veil); border: 1px solid var(--line); border-radius: 999px;
  padding: 15px 22px; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.form-fields textarea { border-radius: 24px; min-height: 120px; resize: vertical; }
.form-fields input::placeholder, .form-fields textarea::placeholder { color: var(--muted); }
.form-fields input:focus, .form-fields textarea:focus, .form-fields select:focus { outline: none; border-color: var(--fg); background: transparent; }
.form-submit { margin-top: 14px; border: 0; cursor: pointer; padding: 0 26px; }
.form-empty { color: var(--muted); font-size: 14px; }

/* Small print */
.disclaimer { padding: 40px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.disclaimer .wrap > * { max-width: 60em; }

/* Footer */
.site-footer { padding: clamp(72px, 9vw, 128px) 0 0; overflow: hidden; }
.site-footer__grid { display: grid; gap: 40px; }
.site-footer__tagline { font-family: var(--font-heading); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.04em; max-width: 14ch; }
.site-footer__note { margin-top: 1.25rem; color: var(--muted); max-width: 28em; font-size: 15px; }
.site-footer__menu { display: grid; justify-items: start; gap: 6px; align-content: start; }
.site-footer__contact { font-size: 15px; }
.site-footer__wordmark { margin: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); color: var(--dark); }
.site-footer__logo { width: 100%; }
.site-footer__note:empty { display: none; }
.site-footer__menu { grid-template-columns: repeat(2, auto); column-gap: 48px; justify-content: start; }
.site-footer__menu .eyebrow { grid-column: 1 / -1; }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 24px; padding-bottom: 28px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer__top { margin-left: auto; text-decoration: none; }
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 6fr 3fr 3fr; gap: var(--gutter); }
}
/* The Powered by Kajabi strip takes the footer's colour, whichever tone the footer uses. */
.powered-by { background: var(--tint); color: var(--ink); font-size: 12px; padding: 0 0 20px; }
.soma:has(.site-footer.tone-base) .powered-by { background: var(--base); }
.soma:has(.site-footer.tone-cream) .powered-by { background: var(--cream); }
.soma:has(.site-footer.tone-mist) .powered-by { background: color-mix(in srgb, var(--base) 84%, var(--stone)); }
.soma:has(.site-footer.tone-dark) .powered-by { background: var(--dark); color: var(--base); }
.powered-by a { color: inherit; }

/* Inquiry popup */
.inquiry { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--ink); }
.inquiry::backdrop { background: rgb(47 50 49 / 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.inquiry__panel { --bg: var(--base); --fg: var(--ink); --muted: color-mix(in srgb, var(--ink) 70%, transparent); --line: color-mix(in srgb, var(--ink) 16%, transparent); --veil: color-mix(in srgb, var(--ink) 4%, transparent); position: relative; background: var(--base); border-radius: var(--radius-card); padding: clamp(28px, 4vw, 48px); }
.inquiry[open] .inquiry__panel { animation: pop-in var(--dur-2) var(--ease-out); }
.inquiry__panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); padding-right: 48px; }
.inquiry__text { margin: 1rem 0 1.5rem; color: var(--muted); }
.inquiry__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; transition: transform var(--dur-2) var(--ease-out); }
.inquiry__close:hover { transform: rotate(90deg); }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

/* Thank you */
.thanks { min-height: min(100svh, 1040px); padding: calc(var(--header-h) + 48px) 0 80px; display: flex; align-items: center; }
.thanks__grid { display: grid; gap: 48px; align-items: center; }
.thanks__title { font-size: clamp(2.4rem, 5vw, 5rem); }
.thanks__text { margin-top: 1.5rem; color: var(--muted); max-width: 30em; }
.thanks__steps ol { counter-reset: step; margin-top: 2rem; }
.thanks__steps li { list-style: none; counter-increment: step; padding: 16px 0 16px 48px; position: relative; border-top: 1px solid var(--line); color: var(--muted); }
.thanks__steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 17px; font-family: var(--font-heading); font-size: 13px; color: var(--fg); }
.thanks__steps strong { display: block; color: var(--fg); font-weight: 500; }
.thanks__sign { margin-top: 2rem; font-family: var(--font-heading); }
.thanks__media { margin: 0; width: min(100%, 460px); justify-self: end; }
.thanks__media .arch { aspect-ratio: 3 / 4; }
@media (min-width: 960px) { .thanks__grid { grid-template-columns: 7fr 5fr; gap: var(--gutter); } }

/* Text links: underline that withdraws and redraws on hover */
.btn-row { align-items: center; column-gap: 28px; }
.soma .text-link { position: relative; display: inline-block; padding-bottom: 5px; font-size: 14px; font-weight: 500; text-decoration: none; color: inherit; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
a:hover > .text-link::after, .text-link:hover::after { animation: link-redraw 0.9s var(--ease-out); }
@keyframes link-redraw { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* Frosted glass, as on the floating header and cards over photos */
.glass {
  background: color-mix(in srgb, var(--base) 40%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
  color: var(--ink);
}

/* Floating header: a glass pill over a full-image hero */
.site-header--floating { top: 16px; height: 64px; }
.site-header--floating .wrap {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter));
  padding: 0 8px 0 24px; border-radius: 999px;
  background: color-mix(in srgb, var(--base) 55%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
  transition: background-color var(--dur-1) var(--ease-out);
}
.site-header--floating.is-scrolled { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--floating.is-scrolled .wrap { background: color-mix(in srgb, var(--base) 88%, transparent); box-shadow: 0 8px 30px rgb(47 50 49 / 0.08), inset 0 0 0 1px rgb(255 255 255 / 0.5); }
.site-header--floating.is-hidden { transform: translateY(calc(-100% - 24px)); }
.site-header--floating .btn { --btn-bg: var(--tint); --btn-fg: var(--ink); }
.site-header--floating .site-nav__link { font-size: 13px; }

/* Hero, full image */
.hero-full { position: relative; display: flex; align-items: flex-end; min-height: min(100svh, 980px); overflow: hidden; background: var(--dark); color: var(--base); }
.hero-full__media { position: absolute; inset: 0; }
.hero-full__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-full__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(28 30 29 / 0.58), rgb(28 30 29 / 0.08) 62%), linear-gradient(0deg, rgb(28 30 29 / 0.4), rgb(28 30 29 / 0) 45%); }
.hero-full__inner { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: 160px; padding-bottom: clamp(32px, 5vw, 64px); }
.soma .hero-full .eyebrow { color: color-mix(in srgb, var(--base) 86%, transparent); }
.hero-full__title { font-size: clamp(2.5rem, 6.2vw, 6.4rem); }
.hero-full__text { margin-top: 1.5rem; max-width: 26em; color: color-mix(in srgb, var(--base) 86%, transparent); }
.hero-full__card { display: flex; align-items: center; gap: 16px; max-width: 360px; padding: 12px 22px 12px 12px; border-radius: 24px; text-decoration: none; justify-self: start; transition: transform var(--dur-2) var(--ease-out); }
.hero-full__card:hover { transform: translateY(-4px); }
.hero-full__thumb { flex: none; width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.hero-full__card-body { display: grid; gap: 6px; justify-items: start; }
.soma .hero-full__card .eyebrow { margin: 0; font-size: 10px; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.hero-full__card-title { font-family: var(--font-heading); font-size: 15px; letter-spacing: -0.02em; }
.hero-full__card .text-link { font-size: 12px; }
@media (min-width: 960px) {
  .hero-full__inner { grid-template-columns: 1fr auto; align-items: end; }
  .hero-full__title { font-size: clamp(3rem, 5.3vw, 5.9rem); }
  .hero-full__title .line { white-space: nowrap; }
  .hero-full__card { justify-self: end; }
}

/* Still band */
.marquee--still .marquee__track { width: 100%; animation: none; }
.marquee--still .marquee__group { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); justify-content: space-between; flex-wrap: wrap; row-gap: 12px; }
.marquee--still .marquee__item { font-size: clamp(1.4rem, 2.7vw, 2.6rem); }
.marquee--still .marquee__mark { color: color-mix(in srgb, var(--base) 70%, var(--tint)); }
@media (max-width: 640px) { .marquee--still .marquee__group { justify-content: center; column-gap: 16px; } }

/* Offerings */
.offerings { padding: var(--space-section) 0; }
.offer-grid { display: grid; gap: 56px; }
.offer__media { display: block; aspect-ratio: 4 / 3; border-radius: 6px; }
.offer h3 { margin-top: 24px; }
.offer__text { margin: 8px 0 16px; font-size: 15px; color: var(--muted); }
@media (min-width: 960px) {
  .offer-grid { grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; }
  .offer:nth-child(2n) .offer__media { aspect-ratio: 6 / 5; }
}

/* Essentials carousel */
.essentials { padding: var(--space-section) 0; overflow: hidden; }
.essentials h2 { margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); }
.chip { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--tint); color: var(--ink); font: 500 13px/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--dark); color: var(--base); }
.rail {
  --rail-pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--rail-pad); scroll-padding-inline: var(--rail-pad);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.ess { flex: 0 0 clamp(240px, 23vw, 330px); scroll-snap-align: start; }
.ess[hidden] { display: none; }
.ess.is-entering { animation: tab-in var(--dur-2) var(--ease-out) both; }
.ess__link { display: block; text-decoration: none; }
.ess__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--veil); }
.ess__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ess__link:hover img { transform: scale(1.04); }
.soma .ess__name { margin-top: 16px; font-size: 1rem; }
.ess__detail { font-size: 13px; color: var(--muted); }
.essentials__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.rail-nav { display: flex; align-items: center; gap: 10px; }
.soma .rail-nav .eyebrow { margin: 0 10px 0 0; }
.rail-nav__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out); }
.rail-nav__btn:hover { background: var(--tint); }
.rail-nav__btn:disabled { opacity: 0.35; cursor: default; background: transparent; }

/* Image with tabs */
.smoothie__grid { display: grid; }
.smoothie__media { position: relative; margin: 0; min-height: 560px; overflow: hidden; }
.smoothie__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smoothie__card { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); max-width: 420px; display: grid; gap: 6px; padding: 24px 28px; border-radius: 20px; }
.soma .smoothie__card .eyebrow { margin: 0; font-size: 10px; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.smoothie__card-title { font-family: var(--font-heading); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.15; }
.smoothie__card-text { font-size: 13px; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.smoothie__panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 128px) var(--gutter); }
.smoothie__panel h2 { font-size: clamp(2.2rem, 4.2vw, 4.25rem); }
.smoothie__text { margin-top: 1.5rem; max-width: 30em; color: var(--muted); }
.tabs { margin-top: 48px; max-width: 34rem; }
.tabs__list { position: relative; display: flex; gap: 40px; border-bottom: 1px solid var(--line); }
.tabs__tab { padding: 14px 0; border: 0; background: none; color: var(--muted); font: 500 14px/1.2 var(--font-body); cursor: pointer; transition: color var(--dur-1) var(--ease-out); }
.tabs__tab[aria-selected="true"] { color: var(--fg); }
.tabs__ink { position: absolute; left: 0; bottom: -1px; width: 100px; height: 2px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.tabs__panel { padding-top: 28px; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering { animation: tab-in var(--dur-2) var(--ease-out); }
.soma .tabs__panel h3 { font-size: 1.25rem; }
.soma .tabs__ingredients { margin: 12px 0 8px; font-size: 14px; }
.tabs__note { font-size: 12px; color: var(--muted); }
@keyframes tab-in { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 960px) {
  .smoothie__grid { grid-template-columns: 1fr 1fr; }
  .smoothie__media { min-height: 780px; }
}

/* Image and text with a plain photo */
.media__frame.media__frame--photo { aspect-ratio: 6 / 5; max-width: none; border-radius: 6px; }

/* Pre-animation states. Only applied while html.motion is set, so the page is complete without scripts. */
.motion [data-header] { opacity: 0; }
.motion [data-hero-line] { transform: translateY(110%); }
.motion [data-hero-fade] { opacity: 0; }
.motion [data-hero-arch] { opacity: 0; transform: translateY(64px); }
.motion [data-hero-img] { transform: scale(1.22); }
.motion [data-hero-mark] { opacity: 0; transform: scale(0.6) rotate(-120deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .hero__scroll-line::after { animation: none; }
  .btn__text, .btn__icon, .routine, .product__media img, .site-nav__link::after, .tabs__ink, .ess__media img, .chip, .hero-full__card { transition: none; }
  .text-link:hover::after, a:hover > .text-link::after, .tabs__panel.is-entering, .ess.is-entering { animation: none; }
}
