/* LiftLab relaunch site. Tokens mirror brand/tokens.json in the app repo. */
:root {
  --background: #FFF6F0;
  --surface: #FFFFFF;
  --surface-tint: #FFEDE4;
  --hairline: #F1DED6;
  --ink: #2A1328;
  --ink-secondary: #6B5060;
  --coral: #FF6B4A;
  --coral-pressed: #F2563A;
  --coral-text: #C2401F;
  --plum: #2A1328;
  --on-plum: #FFF6F0;
  --on-plum-secondary: #E7CFC6;
  --lilac: #B9A7FF;
  --sage: #5BBF8A;
  --error: #C42B2B;
  --success: #2E7D55;
  --radius-chip: 16px;
  --radius-card: 24px;
  --radius-sheet: 28px;
  --display: "Outfit", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  overflow-x: clip;
}

body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--coral-text); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -1.5px; }
h2 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -0.8px; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }

.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.lede { font-size: 19px; color: var(--ink-secondary); margin: 18px 0 0; max-width: 34em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.button:hover { background: var(--coral-pressed); color: var(--ink); }
.button:disabled { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(42, 19, 40, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #3D2A39;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--on-plum); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: #FF8F75; }
.site-nav .button { min-height: 42px; padding: 0 18px; font-size: 15px; color: var(--ink); }
.site-nav .button:hover { color: var(--ink); }
.site-nav .nav-link { display: none; }

/* Character hero: image on top on phones, plum panel beside the image on desktop */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-photo { position: relative; background: var(--plum); color: var(--on-plum); }
.hero-photo__media { position: relative; height: clamp(240px, 34vh, 420px); overflow: hidden; }
.hero-photo__media picture, .hero-photo__media img { display: block; width: 100%; height: 100%; }
.hero-photo__media img { object-fit: cover; object-position: 50% 4%; }
.hero-photo__panel { position: relative; padding: 22px var(--gutter) 44px; display: flex; flex-direction: column; gap: 14px; }
.hero-photo .pill { align-self: flex-start; }
.hero-photo h1 { max-width: 14em; }
.hero-photo h1 { color: var(--on-plum); font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -1.5px; }
.hero-photo .lede { color: var(--on-plum-secondary); margin: 0; }

.signup.signup--hero { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; max-width: 560px; }
.signup.signup--hero input[type="email"] { background: var(--background); border-color: transparent; }
.signup--hero .consent { color: var(--on-plum-secondary); }
.signup--hero .consent a { color: #FF8F75; }
.signup--hero .form-note { color: var(--on-plum-secondary); }
.signup--hero .form-note.error { color: #FF8A80; }
.signup--hero .form-note.success { color: #7FD8A8; }

.trust-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--on-plum-secondary); }
.trust-row li::before { content: "✓ "; color: var(--sage); font-weight: 700; }

/* On phones and tablets the form comes first so it stays near the fold; the countdown follows it. */
.countdown { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-photo .trust-row { order: 2; }
/* Invisible until countdown.js fills it, so the layout does not shift when it appears */
.countdown__clock { display: flex; gap: 8px; visibility: hidden; }
.countdown__clock.is-live { visibility: visible; }
.countdown__clock span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; padding: 9px 10px 8px;
  border-radius: var(--radius-chip); background: #3A2236; border: 1px solid #4A2E45;
}
.countdown__clock b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--on-plum); font-variant-numeric: tabular-nums; }
.countdown__clock small { font-size: 12px; line-height: 1.2; margin-top: 4px; color: var(--on-plum-secondary); }
.countdown__text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--on-plum-secondary); }
.countdown__text b { color: var(--on-plum); font-weight: 600; }
.countdown__offer { color: #FF8F75; font-weight: 600; }

/* Signup form */
.signup {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 18px;
  max-width: 520px;
}
.signup label.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.signup-row { display: flex; flex-direction: column; gap: 10px; }
.signup input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: var(--background);
}
.signup input[type="email"]:focus { border-color: var(--coral); outline: none; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--coral-text); }
.form-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-secondary); min-height: 1.4em; }
.form-note.error { color: var(--error); font-weight: 600; }
.form-note.success { color: var(--success); font-weight: 600; }
/* Sections */
[id] { scroll-margin-top: 80px; }
.section { padding: 64px 0; }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--ink-secondary); margin: 14px 0 0; font-size: 18px; }

.features { display: grid; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 24px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-tint); display: grid; place-items: center; margin-bottom: 14px; }
.feature p { color: var(--ink-secondary); margin: 8px 0 0; font-size: 16px; }

.programs { display: grid; gap: 14px; }
.program { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { background: var(--surface-tint); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.program p { margin: 0; color: var(--ink-secondary); font-size: 15px; }
.program.featured { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.program.featured h3 { color: var(--on-plum); }
.program.featured p { color: var(--on-plum-secondary); }
.program.featured .meta span { background: #4A2E45; color: var(--on-plum); }
.crew { display: grid; gap: 16px; }
.crew-card--lucia { --crew-color: var(--lilac); }
.crew-card--carmen { --crew-color: var(--coral); }
.crew-card--nerea { --crew-color: var(--sage); }
.crew-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.crew-card__media { display: block; aspect-ratio: 3 / 2; background: var(--surface-tint); border-bottom: 4px solid var(--crew-color); }
.crew-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.crew-card__body { flex: 1; padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.crew-card__who { margin: 0; font-size: 14px; color: var(--ink-secondary); }
.crew-card__who b { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--ink); margin-right: 2px; }
.crew-card__who span::before { content: "· "; }
.crew-card__line { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.crew-card__program { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.crew-card__program p { margin: 0; color: var(--ink-secondary); font-size: 15px; }

/* Phones: compact card with a round face avatar next to the name */
@media (max-width: 719px) {
  .crew-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 18px 18px 20px; }
  .crew-card__media { width: 76px; height: 76px; aspect-ratio: 1; border: 3px solid var(--crew-color); border-radius: 50%; overflow: hidden; }
  .crew-card__body { display: contents; }
  .crew-card__who { grid-column: 2; }
  .crew-card__who b { display: block; }
  .crew-card__who span { display: block; }
  .crew-card__who span::before { content: none; }
  .crew-card__line, .crew-card__program { grid-column: 1 / -1; }
  .crew-card__program { padding-top: 12px; }
}

.more-programs__title { font-size: 20px; margin: 40px 0 14px; }
.programs--compact .program { padding: 16px 20px; }
.programs-note { margin: 18px 0 0; color: var(--ink-secondary); font-size: 15px; }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 20px 22px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--on-plum);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 18px;
}
.step p { margin: 6px 0 0; color: var(--ink-secondary); font-size: 16px; }

.trial { background: var(--surface-tint); border-radius: var(--radius-sheet); padding: 28px 22px; display: grid; gap: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { background: var(--surface); border-radius: 18px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.timeline b { font-family: var(--display); font-size: 15px; min-width: 64px; }
.timeline span { color: var(--ink-secondary); font-size: 15px; }

.pricing { display: grid; gap: 16px; }
.price { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.price.featured { border: 2px solid var(--coral); }
.price .tag { align-self: flex-start; background: var(--coral); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.price .amount { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-top: 6px; }
.price .amount small { font-size: 17px; font-weight: 600; color: var(--ink-secondary); letter-spacing: 0; }
.price p { margin: 4px 0 0; color: var(--ink-secondary); font-size: 15px; }
.founder-box { background: var(--plum); color: var(--on-plum); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.founder-box b { font-family: var(--display); font-size: 40px; line-height: 1; }
.founder-box p { margin: 0; color: var(--on-plum-secondary); font-size: 15px; }
.price-footnote { margin: 16px 0 0; font-size: 13px; color: var(--ink-secondary); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--coral-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-secondary); font-size: 16px; }

.final-cta { background: var(--plum); color: var(--on-plum); border-radius: 32px; padding: 36px 22px; display: grid; gap: 20px; }
.final-cta h2 { color: var(--on-plum); }
.final-cta p.lede { color: var(--on-plum-secondary); }
.final-cta .signup { background: #3A2236; border-color: #4A2E45; }
.final-cta .signup label.field-label, .final-cta .consent { color: var(--on-plum); }
.final-cta .consent a { color: #FF8F75; }
.final-cta .signup input[type="email"] { background: var(--background); border-color: transparent; }
.final-cta .form-note { color: var(--on-plum-secondary); }
.final-cta .form-note.error { color: #FF8A80; }
.final-cta .form-note.success { color: #7FD8A8; }

.site-footer { padding: 40px 0 56px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; border-top: 1px solid var(--hairline); padding-top: 28px; }
.site-footer img { height: 26px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink); font-size: 14px; }
.site-footer small { color: var(--ink-secondary); font-size: 13px; }

/* Legal page */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 6vw, 48px); }
.legal h2 { font-size: 24px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal .updated { color: var(--ink-secondary); font-size: 14px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .site-nav .nav-link { display: inline; }
  .signup-row { flex-direction: row; }
  .signup-row .button { flex-shrink: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crew-card__body { padding: 16px 18px 20px; }
  .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trial { padding: 40px; }
  .final-cta { padding: 56px; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .programs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trial { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .final-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}

@media (min-width: 1200px) {
  .hero-photo { display: grid; grid-template-columns: clamp(500px, 46vw, 680px) minmax(0, 1fr); min-height: 720px; }
  .hero-photo__media { grid-column: 2; grid-row: 1; height: auto; }
  .hero-photo__media::before {
    content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 72px;
    background: linear-gradient(90deg, var(--plum), rgba(42, 19, 40, 0));
  }
  .hero-photo__media img { object-position: 90% 18%; }
  .hero-photo__panel {
    grid-column: 1; grid-row: 1;
    justify-content: center;
    gap: 22px;
    padding: 56px 48px 56px clamp(32px, 5vw, 96px);
  }
  .hero-photo h1 { font-size: clamp(44px, 4.3vw, 66px); }
  .countdown, .hero-photo .trust-row { order: 0; }
  .signup--hero .signup-row { background: var(--background); border-radius: 999px; padding: 6px; }
  .signup.signup--hero .signup-row input[type="email"] { border: 0; background: transparent; }
}

/* Blog: listing, article and 404 */
.wrap--narrow { max-width: 760px; }
.blog-page, .article-page { padding: 32px 0 64px; }
.blog-head { margin-bottom: 20px; }
.blog-head h1 { font-size: clamp(36px, 6vw, 56px); margin-top: 8px; }
.breadcrumb { font-size: 14px; color: var(--ink-secondary); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral-text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--coral); color: var(--ink); }
.chip--active { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.chip--active:hover { color: var(--on-plum); }

.post-grid { display: grid; gap: 14px; }
.post-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { font-size: 21px; line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--coral-text); }
.post-card p { margin: 0; color: var(--ink-secondary); font-size: 15px; }
.post-card__cluster { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--coral-text); text-decoration: none; }
.post-card__meta { font-size: 13px; color: var(--ink-secondary); }
.empty { color: var(--ink-secondary); }

.article-head h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.06; }
.article-meta { margin: 14px 0 0; color: var(--ink-secondary); font-size: 14px; }
.toc { margin: 28px 0; background: var(--surface-tint); border-radius: 20px; padding: 18px 22px; }
.toc p { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-secondary); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--coral-text); }

.prose { font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: clamp(26px, 3.6vw, 32px); margin: 40px 0 14px; line-height: 1.15; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--coral-text); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th { text-align: left; background: var(--surface-tint); font-weight: 700; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.callout { margin: 0 0 22px; background: var(--surface); border: 1px solid var(--hairline); border-left: 0; border-radius: 16px; padding: 16px 18px; box-shadow: inset 4px 0 0 var(--coral); }
.callout p { margin: 0; font-size: 16px; }

.article-cta { margin: 40px 0; background: var(--plum); color: var(--on-plum); border-radius: var(--radius-sheet); padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.article-cta h2 { color: var(--on-plum); font-size: clamp(24px, 3.6vw, 30px); }
.article-cta p { margin: 0; color: var(--on-plum-secondary); }
.article-faq { margin: 0 0 40px; }
.article-faq h2, .related h2 { font-size: clamp(24px, 3.6vw, 30px); margin-bottom: 14px; }

.not-found { padding: 96px 0; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button--ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--on-plum); }

@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .blog-page .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
