/* zefro.app home page: a product page in the apple.com manner.
 *
 * Light only. White and #F2F2F7 grounds, ink #1C1C1E, secondary #3C3C43 at 60%, hairlines #E5E5EA.
 * Violet and teal appear only in the logo and the Zefro+ mark (.plus-mark, styles.css).
 * Every animation moves transform or opacity only. Without JavaScript, or with reduced
 * motion, every section renders complete and static (motion.js adds .hx-motion to <html>).
 *
 * Screen images live in /home/screens/ as 720x1560 (9:19.5) captures with the status bar,
 * the shape of a real iPhone screenshot; a new capture replaces a file 1:1.
 */

.home {
  --hx-ink: #1c1c1e;
  --hx-ink-2: rgba(60, 60, 67, 0.6);
  --hx-grey: #f2f2f7;
  --hx-hair: #e5e5ea;
  --hx-max: 1200px;
  --hx-gutter: clamp(20px, 5vw, 56px);
  --hx-nav: 52px;
  /* Devices never outgrow the window: at most 78% of the height below the nav. */
  --hx-fit: calc((100svh - var(--hx-nav)) * 0.78);
  --hx-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hx-std: cubic-bezier(0.25, 0.1, 0.25, 1);
  color: var(--hx-ink);
  background: #fff;
}

.home main > section {
  border-top: 0;
  scroll-margin-top: var(--hx-nav);
}

.home main {
  overflow-x: clip;
}

.hx-wrap {
  max-width: var(--hx-max);
  margin-inline: auto;
  padding-inline: var(--hx-gutter);
}

/* ------------------------------------------------------------------ type --- */

.home h1,
.home h2,
.home h3 {
  color: var(--hx-ink);
  text-wrap: balance;
}

.home h2 {
  font-size: clamp(2.375rem, 5.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 700;
}

.hx-head {
  max-width: var(--hx-max);
  margin-inline: auto;
  padding-inline: var(--hx-gutter);
  text-align: center;
}

.hx-head h2 {
  max-width: 15ch;
  margin-inline: auto;
}

.hx-lead {
  max-width: 34ch;
  margin: clamp(16px, 1.8vw, 24px) auto 0;
  font-size: clamp(1.1875rem, 1.75vw, 1.5rem);
  line-height: 1.34;
  letter-spacing: -0.016em;
  font-weight: 500;
  color: var(--hx-ink-2);
  text-wrap: balance;
}

/* ----------------------------------------------------------------- nav --- */

.home .site-header {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.home .site-header .wrap {
  height: var(--hx-nav);
  max-width: var(--hx-max);
}

.home .wordmark .mark {
  height: 28px;
}

.home .nav {
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
}

.home .nav a {
  color: var(--hx-ink);
  opacity: 0.8;
  transition: opacity 240ms var(--hx-std);
}

.home .nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.home .nav a.nav-signin {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.home .nav a.nav-signin:hover {
  background: none;
}

.home .nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 13px;
  border-radius: 980px;
  background: var(--hx-ink);
  color: #fff;
  opacity: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.home .nav a.nav-cta:hover {
  background: var(--hx-ink);
  opacity: 0.88;
}

/* A phone keeps the wordmark, Sign in, the pill and the menus. */
@media (max-width: 760px) {
  .home .nav a.nav-cta {
    display: inline-flex;
  }
}

/* ------------------------------------------------------------- buttons --- */

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 240ms var(--hx-std),
    transform 240ms var(--hx-std);
}

.hx-btn:hover {
  text-decoration: none;
}

.hx-btn:active {
  transform: scale(0.98);
}

.hx-btn--primary {
  background: var(--hx-ink);
  color: #fff;
}

.hx-btn--primary:hover {
  background: var(--hx-ink);
  opacity: 0.88;
}

.hx-btn--secondary {
  background: var(--hx-hair);
  color: var(--hx-ink);
}

.hx-btn--secondary:hover {
  background: #d1d1d6;
}

/* ---------------------------------------------------------------- hero --- */

.hx-hero {
  position: relative;
  min-height: calc(100svh - var(--hx-nav));
  padding: clamp(40px, 6vh, 80px) var(--hx-gutter) 0;
  text-align: center;
  overflow: clip;
}

.hx-hero-copy {
  max-width: var(--hx-max);
  margin-inline: auto;
}

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  font-weight: 650;
  letter-spacing: -0.024em;
  line-height: 1;
}

.hx-eyebrow img {
  width: clamp(38px, 3.4vw, 48px);
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.14));
}

.hx-hero h1 {
  font-size: clamp(2.625rem, 7.2vw, 6rem);
  line-height: 1;
  letter-spacing: -0.048em;
  font-weight: 700;
}

.hx-line {
  display: block;
}

.hx-sub {
  max-width: 30ch;
  margin: clamp(20px, 2.2vw, 28px) auto 0;
  font-size: clamp(1.1875rem, 1.75vw, 1.5rem);
  line-height: 1.34;
  letter-spacing: -0.016em;
  font-weight: 500;
  color: var(--hx-ink-2);
  text-wrap: balance;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 40px);
}

.hx-hero .stores {
  justify-content: center;
  margin-top: 24px;
}

.hx-hero-stage {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vh, 56px);
  padding-bottom: clamp(72px, 10vw, 140px);
}

.iphone--hero {
  --w: min(clamp(280px, 27vw, 392px), calc(var(--hx-fit) / 2.11));
}

/* ---------------------------------------------------------- photo story --- */

.hx-story {
  padding: clamp(120px, 14vw, 200px) 0 0;
  background: var(--hx-grey);
}

.hx-story--white {
  padding-bottom: clamp(96px, 12vw, 160px);
  background: #fff;
}

.hx-story-scene {
  max-width: var(--hx-max);
  margin: clamp(56px, 7vw, 96px) auto 0;
  padding-inline: var(--hx-gutter);
}

/* Static (reduced motion, or a window too short to pin): each step is its own row. */
.hx-story-steps {
  list-style: none;
  display: grid;
  gap: clamp(64px, 9vw, 120px);
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
}

.hx-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  margin: 0;
}

.hx-step-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
  font-weight: 700;
}

.hx-step-copy p {
  max-width: 30ch;
  margin-top: 14px;
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--hx-ink-2);
}

.iphone--step {
  --w: min(clamp(220px, 22vw, 300px), calc(var(--hx-fit) / 2.11));
}

.iphone--pinned,
.hx-story-rail {
  display: none;
}

.hx-notes {
  max-width: 62ch;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--hx-gutter) clamp(96px, 12vw, 160px);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--hx-ink-2);
}

.hx-notes .hx-credit {
  margin-top: 8px;
  font-size: 0.75rem;
}

/* Pinned: the phone holds still while the steps change. The layout is the same with or
   without JavaScript, so nothing moves when the script arrives; the script only marks the
   active step from the scroll position. About half a window of scroll per step. */
@media (prefers-reduced-motion: no-preference) and (min-height: 460px) {
  .hx-story-scene {
    height: 170svh;
    margin-top: 0;
  }

  .hx-story-pin {
    position: sticky;
    top: var(--hx-nav);
    height: calc(100svh - var(--hx-nav));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
  }

  .hx-story-steps {
    max-width: none;
    margin: 0;
    gap: clamp(14px, 3.4vh, 44px);
  }

  /* Four steps share one window, so the type follows the window's height. */
  .hx-step-copy h3 {
    font-size: clamp(1.375rem, 4.4vh, 2.75rem);
  }

  .hx-step-copy p {
    margin-top: clamp(6px, 1.2vh, 14px);
    font-size: clamp(0.9375rem, 2.5vh, 1.3125rem);
  }

  .hx-step {
    display: block;
    transition: opacity 380ms var(--hx-std);
  }

  .hx-motion .hx-step {
    opacity: 0.22;
  }

  .hx-motion .hx-step.is-active {
    opacity: 1;
  }

  .iphone--step {
    display: none;
  }

  .iphone--pinned {
    --w: min(340px, calc((100svh - var(--hx-nav) - 112px) / 2.11));
    display: block;
    justify-self: center;
  }
}

.iphone--pinned .iphone-shot {
  opacity: 0;
  transition: opacity 380ms var(--hx-std);
}

.iphone--pinned .iphone-shot:first-child {
  opacity: 1;
}

.hx-motion .iphone--pinned .iphone-shot:first-child {
  opacity: 0;
}

.hx-motion .iphone--pinned .iphone-shot.was-on {
  z-index: 1;
  opacity: 1;
  transition: none;
}

.hx-motion .iphone--pinned .iphone-shot.is-on {
  z-index: 2;
  opacity: 1;
}

/* A phone: the screen above, the active step's words under it. */
@media (prefers-reduced-motion: no-preference) and (min-height: 460px) and (max-width: 859px) {
  .hx-story-pin {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 0;
    padding-bottom: 28px;
  }

  .iphone--pinned {
    --w: min(256px, calc((100svh - var(--hx-nav) - 236px) / 2.11));
    grid-row: 1;
    align-self: center;
  }

  .hx-story-steps {
    grid-row: 2;
    display: grid;
    text-align: center;
  }

  .hx-step,
  .hx-motion .hx-step {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity 450ms var(--hx-std),
      transform 650ms var(--hx-out);
  }

  .hx-step:first-child,
  .hx-motion .hx-step.is-active {
    opacity: 1;
    transform: none;
  }

  .hx-motion .hx-step:first-child:not(.is-active) {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  .hx-step-copy h3 {
    font-size: 1.75rem;
  }

  .hx-step-copy p {
    margin: 8px auto 0;
    font-size: 1.0625rem;
  }

  .hx-story-rail {
    grid-row: 3;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
  }

  .hx-story-rail i {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: #d1d1d6;
    transition: background-color 400ms var(--hx-std);
  }

  .hx-story-rail i.is-on {
    background: var(--hx-ink);
  }
}

/* ---------------------------------------------------------------- bento --- */

.hx-bento-section {
  padding: clamp(120px, 14vw, 200px) 0 clamp(64px, 8vw, 120px);
}

.hx-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: var(--hx-max);
  margin: clamp(56px, 6vw, 88px) auto 0;
  padding-inline: var(--hx-gutter);
}

.hx-tile {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: min(clamp(540px, 46vw, 620px), calc(100svh - var(--hx-nav) - 48px));
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  border-radius: 30px;
  background: var(--hx-grey);
  isolation: isolate;
}

.hx-tile--wide {
  grid-column: span 4;
}

.hx-tile--text {
  grid-column: span 3;
  justify-content: flex-end;
}

.hx-tile h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.034em;
  font-weight: 700;
}

.hx-tile p {
  max-width: 32ch;
  margin-top: 10px;
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--hx-ink-2);
}

.hx-tile .hx-tile-figure {
  max-width: none;
  margin: 0 0 clamp(28px, 3.6vw, 48px);
  font-size: clamp(3rem, 5.6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: var(--hx-ink);
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

.hx-tile--text {
  min-height: clamp(320px, 30vw, 400px);
}

/* The phone rises out of the tile's lower edge; the tile crops it. */
.hx-tile-copy {
  position: relative;
  z-index: 1;
}

.hx-tile .iphone--tile {
  --w: clamp(240px, 21vw, 290px);
  position: absolute;
  top: clamp(200px, 17vw, 236px);
  left: calc(50% - var(--wc) / 2);
  transition: transform 900ms var(--hx-out);
}

.hx-tile--wide {
  display: flex;
}

.hx-tile--wide .hx-tile-copy {
  max-width: 30%;
}

.hx-tile--wide .iphone--tile {
  --w: clamp(280px, 25vw, 350px);
  top: clamp(64px, 6vw, 88px);
  left: auto;
  right: 9%;
}

@media (hover: hover) {
  .hx-tile:hover .iphone--tile {
    transform: translateY(-10px);
  }
}

/* ------------------------------------------------------------ statement --- */

.hx-statement {
  padding: clamp(140px, 18vw, 260px) var(--hx-gutter);
  text-align: center;
}

.home .hx-statement-text {
  max-width: var(--hx-max);
  margin-inline: auto;
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.052em;
  font-weight: 700;
  view-timeline: --hx-statement block;
}

.hx-statement-line {
  display: block;
}

.hx-statement-line + .hx-statement-line {
  margin-top: 0.12em;
}

/* motion.js wraps each word; the scroll lights them in reading order. */
.hx-w {
  display: inline-block;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hx-w {
      animation: hx-ink linear both;
      animation-timeline: --hx-statement;
      animation-range: cover var(--a, 20%) cover var(--b, 30%);
    }
  }
}

@keyframes hx-ink {
  from {
    opacity: 0.14;
  }
  to {
    opacity: 1;
  }
}

/* Without scroll-driven animation the script lights the words instead. */
.hx-ink-js .hx-w {
  opacity: 0.14;
  transition: opacity 450ms var(--hx-std);
}

.hx-ink-js .hx-w.is-lit {
  opacity: 1;
}

/* ------------------------------------------------------- everything else --- */

.hx-more {
  padding: 0 0 clamp(120px, 14vw, 200px);
}

.hx-more h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  text-align: center;
}

.hx-more-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
}

.hx-more-list li {
  margin: 0;
  padding: 26px 0 30px;
  border-top: 1px solid var(--hx-hair);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--hx-ink-2);
}

.hx-more-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
}

/* -------------------------------------------------------------- Zefro+ --- */

.hx-plus {
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--hx-grey);
}

.hx-plus h2 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hx-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 780px;
  margin: clamp(56px, 6vw, 80px) auto 0;
}

.hx-plan {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--hx-hair);
  border-radius: 28px;
  background: #fff;
}

.hx-plan--best {
  padding: calc(clamp(28px, 3vw, 40px) - 1px);
  border: 2px solid var(--hx-ink);
}

.hx-plan-name {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.hx-plan-price {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--hx-ink-2);
}

.hx-plan-price span {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(2.75rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--hx-ink);
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

.hx-plan-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hx-hair);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--hx-ink-2);
}

.hx-terms {
  max-width: 70ch;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--hx-ink-2);
}

.hx-saves {
  max-width: 720px;
  margin: clamp(96px, 11vw, 150px) auto 0;
  text-align: center;
}

.hx-saves h3 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.044em;
  font-weight: 700;
}

.hx-saves p {
  margin-top: 14px;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.4;
  color: var(--hx-ink-2);
  text-wrap: balance;
}

.home .perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: var(--hx-max);
  margin: clamp(48px, 5vw, 72px) auto 0;
  padding: 0;
}

.home .perks li {
  margin: 0;
  padding: clamp(26px, 2.6vw, 36px);
  border-radius: 26px;
  background: #fff;
}

.home .perks svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--hx-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home .perks h3 {
  margin-top: 22px;
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.024em;
  font-weight: 650;
}

.home .perks p {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.47;
  color: var(--hx-ink-2);
}

/* ------------------------------------------------------------- coaching --- */

.hx-coaching {
  padding: clamp(120px, 14vw, 200px) 0;
}

.hx-kicker {
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hx-ink-2);
}

.hx-head .hx-actions {
  margin-top: clamp(28px, 3vw, 36px);
}

/* A laptop with the web app and a phone in front of it. */
.hx-continuity {
  --cap: calc(var(--hx-fit) * 1.5);
  position: relative;
  max-width: min(1080px, calc(var(--cap) / 0.86 + 2 * var(--hx-gutter)));
  margin: clamp(56px, 7vw, 96px) auto 0;
  padding: 0 var(--hx-gutter) clamp(24px, 4vw, 48px);
}

.macbook {
  width: 86%;
  margin: 0;
}

.hx-continuity--solo {
  max-width: min(1080px, calc(var(--cap) + 2 * var(--hx-gutter)));
}

.hx-continuity--solo .macbook {
  width: 100%;
}

.macbook-lid {
  padding: 1.5% 1.5% 2.4%;
  border-radius: 18px 18px 6px 6px;
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 1px #3a3a3c,
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 40px 80px -40px rgba(0, 0, 0, 0.32);
}

.macbook-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: #ece9e3;
}

.macbook-screen img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top left;
}

/* The browser window's title bar, with the macOS light-mode traffic lights. */
.mac-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hx-hair);
  background: #f2f2f7;
}

.mac-bar i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px #e0443e;
}

.mac-bar i:nth-child(2) {
  background: #febc2e;
  box-shadow: inset 0 0 0 0.5px #dea123;
}

.mac-bar i:nth-child(3) {
  background: #28c840;
  box-shadow: inset 0 0 0 0.5px #1aab29;
}

.macbook-base {
  position: relative;
  height: clamp(10px, 1.3vw, 18px);
  margin: 0 -5.5%;
  border-radius: 2px 2px 18px 18px / 2px 2px 100% 100%;
  background: linear-gradient(#e8e8ed, #c7c7cc 55%, #a1a1a6);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.35);
}

.macbook-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 42%;
  width: 16%;
  height: 45%;
  border-radius: 0 0 10px 10px;
  background: #b4b4b9;
}

.iphone--float {
  --w: min(clamp(116px, 19vw, 230px), calc(var(--hx-fit) * 0.75 / 2.11));
  position: absolute;
  right: var(--hx-gutter);
  bottom: 0;
}

.hx-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 40px);
  max-width: var(--hx-max);
  margin: clamp(64px, 8vw, 104px) auto 0;
  padding: 0 var(--hx-gutter);
}

.hx-facts li {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--hx-hair);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--hx-ink-2);
}

.hx-facts strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
}

.hx-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.hx-links a {
  color: var(--hx-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.hx-links a::after {
  content: '\203A';
  display: inline-block;
  margin-inline-start: 6px;
  transition: transform 300ms var(--hx-out);
}

.hx-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hx-links a:hover::after {
  transform: translateX(3px);
}

/* ---------------------------------------------------- the coaches page --- */

.coaches .nav a.nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 13px;
  border-radius: 980px;
  background: var(--hx-ink);
  color: #fff;
  opacity: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.coaches .nav a.nav-signin:hover {
  background: var(--hx-ink);
  opacity: 0.88;
  text-decoration: none;
}

.hx-hero .hx-continuity {
  margin-top: 0;
  text-align: start;
}

.hx-hero-stage--wide {
  display: block;
}

.cx-client {
  padding: clamp(120px, 14vw, 200px) 0 clamp(96px, 12vw, 160px);
  background: var(--hx-grey);
}

.cx-tiles {
  padding: 0 0 clamp(120px, 14vw, 200px);
}

.hx-tile--third {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  /* Five text tiles: three on the first row, two halves on the second. */
  .cx-tiles .hx-tile--third:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
}

.cx-plans-section {
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--hx-grey);
}

.cx-plans {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 1080px;
  margin: clamp(56px, 6vw, 80px) auto 0;
  padding: 0;
}

.cx-plan {
  margin: 0;
  padding: clamp(26px, 2.8vw, 36px);
  border: 1px solid var(--hx-hair);
  border-radius: 28px;
  background: #fff;
}

.cx-plan-name {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.cx-plan-price {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--hx-ink-2);
}

.cx-plan-price span {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(2rem, 2.9vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--hx-ink);
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

.hx-wrap .hx-head {
  padding-inline: 0;
}

.cx-plan-clients {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hx-hair);
  font-size: 0.9375rem;
  color: var(--hx-ink-2);
}

.cx-plans-note {
  max-width: 62ch;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hx-ink-2);
}

.cx-plans-note a {
  color: var(--hx-ink);
  text-underline-offset: 3px;
}

.cx-plans-section .hx-actions {
  margin-top: clamp(36px, 4vw, 52px);
}

.cx-plans-section .stores,
.hx-hero .stores {
  justify-content: center;
}

.cx-faq {
  padding: clamp(120px, 14vw, 200px) 0;
}

.cx-faq h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  text-align: center;
}

.cx-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
}

.cx-faq-item {
  padding: 28px 0 32px;
  border-top: 1px solid var(--hx-hair);
}

.cx-faq-item h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.022em;
  font-weight: 650;
}

.cx-faq-item p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hx-ink-2);
}

.cx-close-note {
  margin-top: 28px;
  font-size: 1.0625rem;
  color: var(--hx-ink-2);
}

.cx-close-note a {
  color: var(--hx-ink);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------ closing --- */

.hx-get {
  padding: clamp(120px, 14vw, 200px) 0 clamp(110px, 13vw, 180px);
  background: var(--hx-grey);
  text-align: center;
}

.hx-get-icon {
  width: clamp(112px, 12vw, 160px);
  height: auto;
  margin: 0 auto clamp(32px, 4vw, 48px);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.18));
}

.hx-get h2 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.home .waitlist {
  max-width: 480px;
  margin: clamp(36px, 4vw, 52px) auto 0;
  text-align: start;
}

.home .waitlist label {
  display: block;
  margin-bottom: 14px;
  text-align: center;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
}

.home .wl-row {
  display: flex;
  gap: 10px;
}

.home .wl-row input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #d1d1d6;
  border-radius: 980px;
  background: #fff;
  color: var(--hx-ink);
  font: inherit;
  font-size: 1.0625rem;
}

.home .wl-row input:focus-visible {
  outline: 2px solid var(--hx-ink);
  outline-offset: 2px;
}

.home .wl-row button {
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 980px;
  background: var(--hx-ink);
  color: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 240ms var(--hx-std);
}

.home .wl-row button:hover {
  background: var(--hx-ink);
  opacity: 0.88;
}

.home .wl-row button:disabled {
  opacity: 0.6;
}

.home .wl-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--hx-ink-2);
}

.home .wl-note a {
  color: inherit;
  text-underline-offset: 3px;
}

.home .wl-status {
  min-height: 1.4em;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

.home .wl-status[data-state]:not([data-state='ok']) {
  color: var(--danger);
}

.hx-beta {
  margin-top: 8px;
  font-size: 1.0625rem;
  color: var(--hx-ink-2);
}

.hx-beta strong {
  font-weight: 600;
  color: var(--hx-ink);
}

.hx-beta a {
  color: var(--hx-ink);
  font-weight: 600;
  text-underline-offset: 4px;
}

.hx-get .stores {
  justify-content: center;
  margin-top: 28px;
}

/* --------------------------------------------------------------- motion --- */

/* Load: the coaches hero copy rises in, then the product. Pure CSS, so nothing waits for a script.
   The home hero shows at once: its headline and phone are the first thing a visitor and a search
   engine's speed check see, so only the sections below it move. */
@media (prefers-reduced-motion: no-preference) {
  .coaches .hx-hero-copy > * {
    animation: hx-rise 900ms var(--hx-out) both;
  }

  .coaches .hx-hero-copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .coaches .hx-hero-copy > :nth-child(3) {
    animation-delay: 160ms;
  }

  .coaches .hx-hero-copy > :nth-child(4) {
    animation-delay: 240ms;
  }

  .coaches .hx-hero-stage {
    animation: hx-stage 1100ms var(--hx-out) 280ms both;
  }
}

@keyframes hx-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
}

@keyframes hx-stage {
  from {
    opacity: 0;
    transform: translate3d(0, 96px, 0);
  }
}

/* Scroll-driven, on the compositor where the browser supports it: the hero product settles
   over the first 600px, and tiles rise in as they enter. motion.js covers other browsers. */
.hx-lift {
  transform-origin: 50% 20%;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hx-lift {
      animation: hx-lift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 600px;
      will-change: transform;
    }
  }
}

@keyframes hx-lift {
  from {
    transform: scale(0.92);
  }
  to {
    transform: translate3d(0, -48px, 0) scale(1);
  }
}

@keyframes hx-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 56px, 0);
  }
}

/* Reveal, set up by motion.js: a timed rise once the element is well in view. */
.hx-io [data-hx-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition:
    opacity 800ms var(--hx-std) var(--hx-delay, 0ms),
    transform 900ms var(--hx-out) var(--hx-delay, 0ms);
}

.hx-io [data-hx-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 1023px) {
  .hx-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-tile,
  .hx-tile--text,
  .hx-tile--third {
    grid-column: span 1;
  }

  .hx-tile--wide,
  .hx-bento > .hx-tile:last-child:nth-child(even),
  .home .perks > li:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .home .perks,
  .hx-more-list,
  .hx-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cx-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .hx-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hx-step-copy p {
    margin-inline: auto;
  }

  .cx-faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hx-bento {
    grid-template-columns: 1fr;
  }

  .hx-tile,
  .hx-tile--wide,
  .hx-tile--text,
  .hx-tile--third,
  .hx-bento > .hx-tile:last-child:nth-child(even),
  .home .perks > li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .hx-tile {
    min-height: 0;
    border-radius: 28px;
  }

  .hx-tile--text {
    min-height: 0;
  }

  .hx-tile--wide .hx-tile-copy {
    max-width: none;
  }

  .hx-tile--wide .iphone--tile,
  .hx-tile .iphone--tile {
    --w: min(66vw, 270px);
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 36px auto calc(var(--wc) * -1.02 - 28px);
  }

  .home .perks,
  .hx-more-list,
  .hx-facts,
  .cx-plans {
    grid-template-columns: 1fr;
  }

  .hx-plans {
    grid-template-columns: 1fr;
  }

  .hx-actions {
    flex-direction: column;
    align-items: center;
  }

  .hx-btn {
    min-width: 220px;
  }

  .home .wl-row {
    flex-direction: column;
  }

  .macbook {
    width: 92%;
  }

  .iphone--float {
    --w: 31vw;
    right: calc(var(--hx-gutter) - 6px);
  }
}
