/* =========================================================
   Her Body Club · The 28-Day At-Home Shred
   Phone-first (390px), content max ~1080px.
   ========================================================= */

:root {
  --ink: #1A1311;
  --cream: #F8F1EA;
  --blush: #F4D7D1;
  --pink: #EDBDB5;
  --rose: #D3897F;
  --deep-rose: #A9605A;
  --sand: #EBDDD0;
  --muted: #7D6B65;
  --line: #E8DACF;

  /* Gold: decor, foil, and an AA-safe ink for small text */
  --gold: #C6A15B;
  --gold-ink: #846430;
  --gold-light: #E3C68E;
  --foil: linear-gradient(100deg, #F3E2B8 0%, #C9A45E 32%, #9C7A3C 55%, #E9D3A1 82%);

  /* AA-safe tones */
  --paper: #FFFBF7;
  --text-soft: #5F4F4A;
  --rose-ink: #8F4E49;
  --cream-soft: rgba(248, 241, 234, 0.74);
  --cream-line: rgba(248, 241, 234, 0.14);

  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--deep-rose); }
h2 { font-size: clamp(2.375rem, 10vw, 3.75rem); }
section[id] { scroll-margin-top: 40px; }

:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible, .footer :focus-visible, .announce :focus-visible { outline-color: var(--gold-light); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; position: relative; }
.wrap--mid { width: min(720px, 100% - 48px); }
.wrap--narrow { width: min(520px, 100% - 48px); }

.label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 20px;
}
.label--gold { color: var(--gold-ink); }
.section--ink .label--gold, .footer .label--gold { color: var(--gold-light); }
.spark { display: inline-block; margin-right: 0.35em; letter-spacing: 0; color: var(--gold); }
.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3em;
  min-height: 58px; padding: 0 34px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 700 1rem/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.35);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--rose); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn--wide { width: 100%; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--gold-light); }
.link {
  display: inline-flex; align-items: center; min-height: 48px; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 7px;
}
.link:hover { color: var(--deep-rose); }

/* ---------- Announcement ---------- */
.announce { position: sticky; top: 0; z-index: 60; background: var(--ink); color: var(--cream); font-size: 0.8125rem; }
.announce__text {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 12px;
  min-height: 40px; padding: 8px 16px; text-align: center; line-height: 1.35;
}
.announce__soft { color: var(--cream-soft); }
.announce__ends { display: none; }
.countdown { color: var(--gold-light); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 24px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.wordmark { font-family: var(--serif); font-size: 1.375rem; line-height: 1; text-decoration: none; padding: 12px 0; white-space: nowrap; }
.wordmark em { color: var(--rose-ink); }
.nav__join {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--gold); font-size: 0.875rem; font-weight: 700; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__join:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.hero__grid { display: grid; gap: 56px; padding-top: 48px; }
.hero h1 { font-size: clamp(3rem, 13vw, 5.5rem); }
.hero h1 em { display: block; }
.hero__sub { margin-top: 24px; font-size: 1.125rem; color: var(--text-soft); max-width: 27em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.hero__cta .btn { width: 100%; }
.hero__cta .link { margin-inline: auto; }

/* Visual: member card in front of the phone */
.hero__visual { position: relative; container-type: inline-size; width: 100%; max-width: 500px; margin-inline: auto; aspect-ratio: 100 / 96; }
.hero__glow {
  position: absolute; width: 96cqw; height: 96cqw; left: 2cqw; top: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 60% 40%, rgba(237, 189, 181, 0.85) 0%, rgba(244, 215, 209, 0.45) 40%, rgba(244, 215, 209, 0) 68%),
    radial-gradient(circle at 30% 75%, rgba(227, 198, 142, 0.35) 0%, rgba(227, 198, 142, 0) 45%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__glow { animation: float 16s ease-in-out infinite alternate; }
  .card { animation: bob 7s ease-in-out infinite alternate; }
}
@keyframes float { from { transform: translate3d(-8px, 6px, 0) scale(1); } to { transform: translate3d(10px, -8px, 0) scale(1.05); } }
@keyframes bob { from { transform: rotate(-7deg) translateY(0); } to { transform: rotate(-6deg) translateY(-1.6cqw); } }

.phone {
  position: absolute; right: 8cqw; top: 0; width: 42cqw; aspect-ratio: 9 / 19.2;
  padding: 1.3cqw; border-radius: 7.2cqw; background: var(--ink);
  box-shadow: 0 3cqw 9cqw -3cqw rgba(26, 19, 17, 0.45);
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 6cqw;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background:
    radial-gradient(circle at 70% 66%, rgba(211, 137, 127, 0.75), rgba(211, 137, 127, 0) 48%),
    linear-gradient(180deg, var(--blush), var(--pink));
}
.phone__island { width: 12cqw; height: 3.4cqw; margin-top: 2.2cqw; border-radius: 99px; background: var(--ink); }
.phone__date { margin-top: 4.4cqw; font-size: 2.5cqw; font-weight: 500; }
.phone__time { font-size: 12.5cqw; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.phone__week { margin-top: 10cqw; font-size: 2cqw; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.phone__word { font-family: var(--serif); font-style: italic; font-size: 9.5cqw; line-height: 1.1; }

.card {
  position: absolute; left: 2cqw; bottom: 3cqw; width: 66cqw; aspect-ratio: 1.586;
  display: flex; flex-direction: column; padding: 5cqw 5.4cqw 4.6cqw;
  border-radius: 4.4cqw; border: 0.35cqw solid transparent; color: var(--cream);
  background:
    radial-gradient(circle at 88% 12%, rgba(211, 137, 127, 0.38), rgba(211, 137, 127, 0) 52%) padding-box,
    linear-gradient(150deg, #2B201D, #1A1311 62%) padding-box,
    linear-gradient(135deg, #F1DDAE, #C6A15B 38%, #8E6C34 64%, #E7CF98) border-box;
  box-shadow: 0 4cqw 10cqw -3cqw rgba(26, 19, 17, 0.55);
  transform: rotate(-7deg); z-index: 2;
}
.card__top { display: flex; align-items: center; justify-content: space-between; font-size: 2.5cqw; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.card__mono {
  display: grid; place-items: center; width: 8.6cqw; height: 8.6cqw; border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-size: 5cqw; letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 0 0 0.3cqw rgba(198, 161, 91, 0.8);
}
.card__member { margin-top: auto; font-family: var(--serif); font-style: italic; font-size: 9.5cqw; line-height: 1; }
.card__bottom { display: flex; justify-content: space-between; margin-top: 2.4cqw; font-size: 2cqw; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-soft); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--soft { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2 em { color: var(--pink); }

/* Why */
.points { display: grid; gap: 44px; margin-top: 56px; }
.points li::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-bottom: 20px; }
.points h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.points p { margin-top: 8px; color: var(--text-soft); }

/* Every workout */
.method { display: grid; gap: 36px; margin-top: 56px; }
.method li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 10px; }
.method b { font-family: var(--serif); font-weight: 400; font-size: 1.875rem; line-height: 1; }
.method li > span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); }
.method__bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 99px; width: calc(var(--w) / 8 * 100%); background: var(--pink); }
.method li:nth-child(2) .method__bar { background: var(--rose); }
.method li:nth-child(4) .method__bar { background: var(--sand); }
.method__bar--gold { background: var(--foil) !important; }
.method p { grid-column: 1 / -1; color: var(--text-soft); }

/* The club */
.club__text { margin-top: 28px; max-width: 30em; color: var(--cream-soft); font-size: 1.125rem; }
.club__status { margin-top: 20px; color: var(--gold-light); font-weight: 700; }
.club__status:empty { display: none; }
.weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-top: 64px; }
.weeks li { border-top: 1px solid rgba(198, 161, 91, 0.45); padding-top: 18px; }
.weeks span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); }
.weeks b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2rem; line-height: 1.15; margin-top: 8px; }
.weeks p { color: var(--cream-soft); font-size: 0.9375rem; margin-top: 4px; }

/* What you get */
.list { margin-top: 48px; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 36px 1fr auto; column-gap: 12px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list__no { font-family: var(--serif); font-style: italic; color: var(--gold-ink); font-size: 1.0625rem; }
.list b { font-weight: 700; }
.list p { color: var(--text-soft); font-size: 0.9375rem; line-height: 1.45; margin-top: 4px; }
.list__val {
  align-self: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold);
  background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23846430' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3l2.3 2.2L9.5 3.6'/%3E%3C/svg%3E");
}
.total { margin-top: 40px; font-family: var(--serif); font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.2; text-align: center; }
.total em { color: var(--deep-rose); }

/* Pricing */
#pricing { background: var(--blush); }
.price {
  text-align: center; background: var(--paper); border-radius: 32px; padding: 56px 24px 48px;
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 30px 60px -36px rgba(26, 19, 17, 0.35);
}
.price h2 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
.price__amount { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-top: 24px; font-family: var(--serif); }
.price__amount s { font-size: 1.625rem; color: var(--text-soft); text-decoration-thickness: 1.5px; }
.price__amount > span { font-size: clamp(5.25rem, 26vw, 7.5rem); line-height: 1; letter-spacing: -0.02em; }
.price__meta { margin-top: 8px; color: var(--text-soft); }
.price__timer { display: flex; justify-content: center; gap: 24px; margin: 32px 0 36px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.price__timer span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.price__timer b { font-family: var(--serif); font-weight: 400; font-size: 1.875rem; line-height: 1; letter-spacing: 0; color: var(--ink); }
[data-sale="off"] .price .btn { margin-top: 36px; }
.price__fine { margin-top: 20px; font-size: 0.875rem; color: var(--text-soft); }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 1.0625rem; }
.faq__q {
  width: 100%; min-height: 68px; padding: 20px 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  font: inherit; font-weight: 700; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.faq__q:hover { color: var(--deep-rose); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; color: var(--gold-ink); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s var(--ease), visibility 0s linear 0.35s; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 32px 24px 0; color: var(--text-soft); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.35s var(--ease), visibility 0s; }
html:not(.js) .faq__a { grid-template-rows: 1fr; visibility: visible; }

/* Footer + final CTA */
.footer { background: var(--ink); color: var(--cream); padding: 112px 0 40px; }
.footer__cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer__cta h2 { font-size: clamp(2.75rem, 12vw, 5.5rem); max-width: 10em; margin-bottom: 40px; }
.footer__cta h2 em { color: var(--pink); }
.footer__cta .label { margin-bottom: 24px; }
.footer__note { margin-top: 18px; font-size: 0.875rem; color: var(--cream-soft); }
.footer__base { margin-top: 112px; padding-top: 28px; border-top: 1px solid var(--cream-line); display: grid; gap: 8px; }
.footer .wordmark em { color: var(--gold-light); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 700; text-decoration: none; color: var(--cream-soft); }
.footer__links a:hover { color: var(--cream); }
.footer__fine { font-size: 0.75rem; line-height: 1.6; color: var(--cream-soft); max-width: 52em; margin-top: 8px; }

/* Sticky mobile buy bar */
.buybar {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 6px 6px 24px; border-radius: 999px;
  background: rgba(255, 251, 247, 0.9); border: 1px solid rgba(198, 161, 91, 0.5);
  box-shadow: 0 18px 40px -18px rgba(26, 19, 17, 0.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(160%); transition: transform 0.45s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__price s { color: var(--text-soft); font-size: 0.875rem; }
.buybar__price b { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; }
.buybar .btn { min-height: 50px; padding: 0 26px; }

/* Reveal on scroll */
html.js .reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.6s ease-out var(--d, 0ms), transform 0.6s ease-out var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .buybar, .faq__a, .btn, .faq__icon::after { transition: none; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .announce__ends { display: inline; }
  .hero__cta .btn { width: auto; }
  .hero__cta .link { margin-inline: 0; }
  .btn--wide { width: auto; min-width: 320px; }
  .price { padding: 64px 48px 56px; }
}

@media (min-width: 760px) {
  .section { padding: 160px 0; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 72px; }
  .weeks { grid-template-columns: repeat(4, 1fr); }
  .list li { grid-template-columns: 48px 1fr auto; padding: 24px 0; }
  .footer { padding-top: 160px; }
  .footer__base { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; margin-top: 160px; }
  .footer__links { justify-content: flex-end; }
  .footer__fine { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .buybar { display: none; }
  .hero { padding-bottom: 64px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding-top: 72px; }
  .hero h1 { font-size: clamp(3.75rem, 5.6vw, 5rem); }
  .hero__sub { font-size: 1.25rem; }
}

/* ---------- Legal pages ---------- */
.legal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.legal { padding: 48px 0 104px; }
.legal h1 { font-size: clamp(2.5rem, 9vw, 3.75rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-soft); font-size: 0.875rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.625rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text-soft); margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal a { color: var(--rose-ink); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.page-legal .footer { padding: 0 0 40px; }
.page-legal .footer__base { margin-top: 0; }

/* ---------- Thank-you page ---------- */
.thanks { padding: 40px 0 104px; }
.thanks h1 { font-size: clamp(3rem, 13vw, 5rem); }
.thanks__lede { margin-top: 20px; font-size: 1.125rem; color: var(--text-soft); }
.thanks__steps { margin-top: 40px; counter-reset: s; display: grid; gap: 14px; }
.thanks__steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--text-soft); }
.thanks__steps li::before { content: counter(s); font-family: var(--serif); font-style: italic; color: var(--gold-ink); font-size: 1.25rem; line-height: 1.3; }
.thanks__steps b { color: var(--ink); }
.dl { margin-top: 56px; }
.dl h2 { font-size: clamp(2rem, 8vw, 3rem); }
.thanks__note { margin-top: 12px; color: var(--text-soft); font-size: 0.9375rem; }
.dl__list { margin-top: 28px; border-top: 1px solid var(--line); }
.dl__item {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px;
  min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.dl__no { font-family: var(--serif); font-style: italic; color: var(--gold-ink); }
.dl__label { font-weight: 700; }
.dl__go { font-size: 0.8125rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gold); white-space: nowrap; }
.dl__item:hover .dl__go { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.thanks__help { margin-top: 40px; font-size: 0.9375rem; color: var(--text-soft); }
.thanks__help a { color: var(--rose-ink); }
.page-thanks .footer { padding: 0 0 40px; }
.page-thanks .footer__base { margin-top: 0; }

/* Checkout button busy state + error toast */
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 70; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 16px;
  background: var(--ink); color: var(--cream); font-size: 0.9375rem; box-shadow: 0 18px 40px -18px rgba(26, 19, 17, 0.6);
}
