/* ---- design tokens (measured from reference) ---- */
:root {
  --ink: #000;
  --body: #262626;
  --muted: #4a4552;
  --brand: #0b4dff;        /* from the Liftr logo — accents only */
  --brand-soft: #e3ebff;
  --dark: #1e1a24;
  --dark-card: #2d2934;
  --dark-border: #3a3542;
  --line: #e5e7eb;
  --pill-border: #c6c6c68f;
  --accent: #e7000b;
  --success: #38c172;
  --page-w: 1280px;
  --wrap-6xl: 1152px;
  --wrap-3xl: 768px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
/* clear the sticky header when jumping to a section */
#how, #why, #exercises, #reviews, #faq { scroll-margin-top: 96px; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% 8%,  #fffdf7 0%, rgba(255,253,247,0) 60%),
    radial-gradient(1100px 800px at 88% 34%, #f4faf5 0%, rgba(244,250,245,0) 62%),
    radial-gradient(1200px 900px at 10% 58%, #f2f8fd 0%, rgba(242,248,253,0) 60%),
    #fbfcfa;
}

h1, h2, h3, p { margin: 0; }

/* Bricolage Grotesque Variable carries the display type; body copy is SF Pro
   (system stack — Apple doesn't license SF Pro for webfont serving). */
h1, h2, h3, h4, .logo, .badge strong, .t-head b, .faq summary, .pill-link, .cta .scores {
  font-family: "Bricolage Grotesque", "Bricolage Grotesque Variable", sans-serif;
  font-optical-sizing: auto;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--page-w); margin-inline: auto; }
.wrap-6xl { max-width: var(--wrap-6xl); margin-inline: auto; }
.wrap-3xl { max-width: var(--wrap-3xl); margin-inline: auto; }

/* ---- store badges ---- */
.badges { display: flex; gap: 12px; }
.badge {
  display: flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 14px;
  background: #000; color: #fff;
  border-radius: 7px;
  line-height: 1.05;
}
.badge svg { width: 20px; height: 20px; flex: none; }
.badge span { display: block; font-size: 8.5px; letter-spacing: .02em; text-transform: uppercase; opacity: .9; }
.badge strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 20px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--page-w); margin-inline: auto;
  height: 41px;
}
.logo { display: flex; align-items: center; gap: 9px; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav {
  display: flex; align-items: center; gap: 32px;
  font-family: "Bricolage Grotesque", "Bricolage Grotesque Variable", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px; font-weight: 600;
}
.nav a:hover { opacity: .6; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  margin-top: 40px;
}
.hero-copy { display: flex; flex-direction: column; gap: 16px; width: fit-content; margin-inline: auto; margin-top: -40px; }
.rating-pill {
  display: flex; align-items: center; gap: 8px;
  height: 42.5px; width: fit-content;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--pill-border); border-radius: 999px;
  font-size: 15px;
}
.faces { display: flex; }
.faces img {
  width: 30px; height: 30px; border-radius: 999px;
  border: 2px solid #fff; background: #d7d3dc;
  object-fit: cover;
  margin-left: -10px;
}
.faces img:first-child { margin-left: 0; }
.hero h1 { font-size: 52px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
.hero .sub { max-width: 510px; font-size: 16px; line-height: 1.5; opacity: .6; }
.hero .badges { margin-top: 16px; }
.hero-art { margin-inline: auto; }

/* ---- device frame: real iPhone 16 Pro bezel, screenshot seated in the
   transparent screen window (rect measured off the frame's alpha channel) ---- */
.phone {
  position: relative;
  aspect-ratio: 450 / 920;
  filter: drop-shadow(0 24px 44px rgba(16, 12, 24, .22));
}
.phone .bezel  { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone .screen {
  position: absolute;
  left: 5.333%; top: 2.609%;
  width: 89.259%; height: 94.746%;
  object-fit: cover;
  border-radius: 13% / 6%;
}

.hero-art { position: relative; width: 700px; height: 630px; }
.hero-art .phone { position: absolute; height: 560px; width: 274px; }
.hero-art .rear  { left: 20px;  top: 70px; }
.hero-art .front { left: 200px; top: 16px; }

.split .phone     { height: 682px; width: 334px; margin-inline: auto; }
.split-alt .phone { height: 612px; width: 299px; margin-left: auto; }

/* ---- section headings ---- */
.h-xl { font-size: 48px; line-height: 1.5; font-weight: 800; text-align: center; letter-spacing: -.02em; }
/* section headings that sit inside a padded <section> run tight (53px), not 72px */
.h-xl.tight { line-height: 1.1; }
.h-sub { font-size: 18px; line-height: 1.55; color: var(--body); text-align: center; }
.h-sub.gap-lg { margin-bottom: 80px; }
.h-sub.gap-sm { margin-bottom: 48px; }

/* ---- creator grid ---- */
.creators {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px;
  max-width: var(--page-w); margin: 160px auto 0; padding-inline: 16px;
}
.creators .col { display: flex; flex-direction: column; gap: 21px; }
.creators .col:nth-child(2) { transform: translateY(-80px); }
.card-creator {
  position: relative; overflow: hidden; border-radius: 22px;
  height: 571px; background: #d9d5de;
  display: flex; align-items: flex-end;
}
.card-creator.short { height: 543px; }
.card-creator .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 32%, rgba(0,0,0,0) 62%);
}
.card-creator .meta { position: relative; padding: 28px; color: #fff; }
.card-creator .meta h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.card-creator .meta p { font-size: 14px; line-height: 1.5; opacity: .82; }
.tiktok-dot { width: 16px; height: 16px; margin-bottom: 10px; opacity: .9; }

/* ---- feature split ---- */
.split { padding: 96px 16px; }
.split .grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  max-width: var(--wrap-6xl); margin-inline: auto;
}
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature {
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px;
  background: rgba(255,255,255,.55);
  /* clickable: swaps the phone screenshot beside it */
  display: block; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.feature:hover { transform: translateY(-2px); border-color: #cfd3d8; }
.feature:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.phone .screen { transition: opacity .24s ease, transform .24s cubic-bezier(.22,.9,.3,1); }
.phone .screen.swapping { opacity: 0; transform: translateY(12px) scale(.97); }
.dots i { cursor: pointer; transition: background .18s ease; }
.feature.is-active { border-color: var(--brand); background: var(--brand-soft); }
.feature h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.feature p { font-size: 16px; line-height: 1.55; color: var(--muted); }
/* left column totals 714px with the dots included */
.split .grid > div:first-child { height: 714px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: #cfd3d8; }
.dots i.on { background: var(--brand); }

/* ---- why cards ---- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: var(--wrap-6xl); margin: 0 auto; padding-inline: 16px;
}
.why-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; padding: 32px;
  height: 288px;
}
/* icons are tinted, never sat on a coloured tile */
.why-card .ico {
  width: 46px; height: 46px;
  display: flex; align-items: center;
  margin-bottom: 20px; color: var(--ink);
}
.why-card .ico svg { width: 34px; height: 34px; }
.why-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.why-card p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---- new feature split ---- */
.split-alt { overflow: hidden; padding: 256px 16px; }
.split-alt .grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  max-width: var(--wrap-6xl); margin-inline: auto;
}
.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
}
.split-alt h2 { font-size: 52px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.split-alt .note { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; font-size: 16px; color: var(--muted); }

/* ---- testimonials ---- */
.testimonials { background: var(--dark); color: #fff; padding: 160px 16px; }
.testimonials h2 { font-size: 48px; line-height: 1.1; font-weight: 800; text-align: center; letter-spacing: -.02em; margin-bottom: 64px; }
.t-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; max-width: var(--wrap-6xl); margin-inline: auto; }
.t-card {
  width: 320px; height: 194px; padding: 26px;
  background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 18px;
}
.t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.t-head .av { width: 42px; height: 42px; border-radius: 999px; background: #4a4552; flex: none; object-fit: cover; }
.t-head b { font-size: 18px; font-weight: 800; }
.t-card p { font-size: 15px; line-height: 1.55; color: #cfcad6; }

/* ---- faq ---- */
.faq { padding: 128px 16px 32px; }
.faq h2 { color: var(--dark); }
.faq .list { display: flex; flex-direction: column; gap: 12px; max-width: var(--wrap-3xl); margin: 0 auto; }
.faq details {
  background: #fff; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16,12,24,.05), 0 8px 24px rgba(16,12,24,.04);
}
/* 26 + 26 + 26 = 78px single-line row, 104px when it wraps to two lines */
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 28px; cursor: pointer; list-style: none;
  font-size: 17px; line-height: 26px; font-weight: 800; letter-spacing: -.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  flex: none; width: 26px; height: 26px; border-radius: 999px;
  background: #f3f1f8; display: grid; place-items: center;
  transition: transform .2s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 28px 24px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 32px auto 0; padding: 14px 26px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 16px; font-weight: 500;
}
.center { display: flex; justify-content: center; }

/* ---- rating cta ---- */
.cta { position: relative; overflow: hidden; padding: 176px 16px; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 18% 30%, #e8eef1 0%, rgba(232,238,241,0) 65%),
    radial-gradient(700px 460px at 78% 62%, #f6e3e0 0%, rgba(246,227,224,0) 68%),
    linear-gradient(105deg, #eef0ec 0%, #f7efe6 40%, #f8ece9 100%);
}
.cta .inner { position: relative; z-index: 1; max-width: var(--wrap-3xl); margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta .row { display: flex; align-items: center; justify-content: center; gap: 64px; width: 100%; height: 192px; }
.cta .stars { font-size: 26px; letter-spacing: 2px; }
.cta h2 { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 14px; max-width: 460px; }
.cta .scores { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 20px; font-weight: 500; }
.cta .scores svg { width: 20px; height: 20px; }
.cta .scores i { width: 4px; height: 4px; border-radius: 999px; background: #8b8794; }
.cta .badges { margin-top: 40px; }
.wreath { width: 42px; height: 120px; flex: none; }

/* ---- footer ---- */
.site-footer { padding-top: 28px; }
.site-footer .cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: var(--page-w); margin-inline: auto; padding-inline: 16px;
  height: 168px;
}
.site-footer h4 { font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.site-footer ul a:hover { opacity: .6; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand .lede { font-size: 16px; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  height: 41px;
  max-width: var(--page-w); margin: 8px auto 0; padding: 12px 16px 0;
  border-top: 1px solid var(--line);
}
.foot-bottom p { font-size: 14px; color: #6b7280; }
.socials { display: flex; gap: 16px; }
.socials svg { width: 24px; height: 24px; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hero, .split .grid, .split-alt .grid { grid-template-columns: 1fr; }
  .hero-copy { margin-top: 0; padding: 20px; }
  .creators, .why-grid { grid-template-columns: 1fr; }
  .creators .col:nth-child(2) { transform: none; }
  .split-alt { padding: 128px 16px; }
  .testimonials { padding: 64px 16px; }
  .cta .row { gap: 16px; }
  .wreath { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1, .split-alt h2, .cta h2 { font-size: 36px; }
  .h-xl, .testimonials h2 { font-size: 32px; }
  .foot-bottom { flex-direction: column; gap: 16px; }
}


/* ---- legal pages (privacy.html / terms.html) ---- */
.bar {
  display: flex; align-items: center;
  max-width: var(--page-w); margin-inline: auto;
  padding: 20px 16px;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 800;
  font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.legal { max-width: 720px; margin: 24px auto 96px; padding: 0 16px; }
.legal h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-optical-sizing: auto;
  font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px;
}
.legal h2 {
  font-family: "Bricolage Grotesque", sans-serif; font-optical-sizing: auto;
  font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  margin: 40px 0 12px; scroll-margin-top: 96px;
}
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--body); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
