/* Feature pages (pumping tracker, contraction timer, shared tracker,
   Huckleberry alternative). They load after styles.css, reuse its tokens, nav,
   phone, plan, FAQ, closing and footer, and run without script. Only what the
   homepage does not already have lives here. */

.page main a:not(.button, .store-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.page main a:not(.button, .store-link):hover {
  color: var(--clay-deep);
}
.page [id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* Hero: copy and one upright phone on the page's ground, under the fixed nav. */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  column-gap: 64px;
  padding: calc(var(--nav-h) + 72px) var(--edge) 96px;
  background: var(--ground);
}
.page-hero h1 {
  font-size: clamp(40px, 4.7vw, 68px);
}
.page-hero .lede {
  margin-top: 26px;
  max-width: 27em;
  font-size: 21px;
  color: var(--soft);
}
.page-hero .fine {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.page-hero .phone {
  --phone-w: clamp(250px, 23vw, 316px);
  margin-inline: auto;
}

/* Outcomes are set as type: headline on the shared left edge, paragraph in
   the reading column, a hairline between them. */
.outcomes {
  padding: 112px 0 96px;
}
.outcome {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: 64px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.outcomes .outcome:first-child {
  border-top: 0;
  padding-top: 0;
}
.outcomes .outcome:last-child {
  padding-bottom: 0;
}
.outcome h2 {
  font-size: clamp(28px, 3vw, 42px);
}
.outcome p {
  font-size: 19px;
  color: var(--soft);
  max-width: 30em;
}
.outcome p + p,
.outcome p + .steps {
  margin-top: 16px;
}

/* A full-width band for the one thing a page has to say plainly. */
.statement {
  padding: 96px 0;
  background: var(--ground);
}
.statement .outcome {
  border-top: 0;
  padding: 0;
}
.statement p {
  color: var(--ink);
}

/* The phone band is the homepage's .beat; here it never has a lift-out. */
.page .beat-figure::after {
  content: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  color: var(--soft);
}
.steps li:first-child {
  border-top: 0;
  padding-top: 0;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--clay);
}

.compare {
  padding: 112px 0 96px;
}
.compare h2 {
  font-size: clamp(32px, 3.6vw, 50px);
  margin-bottom: 36px;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.compare th,
.compare td {
  padding: 18px 28px 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  border-bottom-color: var(--ink);
}
.compare tbody th {
  width: 22%;
  font-weight: 700;
}
.compare td {
  width: 39%;
  color: var(--soft);
}
.compare-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* The other pages and a few posts, as two plain lists. */
.more {
  padding: 0 0 120px;
}
.more .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.more h2 {
  font-size: 30px;
  margin-bottom: 14px;
}
.more ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.more li {
  border-bottom: 1px solid var(--line);
}
.page .more li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 12px 2px 12px 0;
  font-weight: 700;
  text-decoration: none;
}
.page .more li a:hover {
  color: var(--clay);
}
.more li a:hover .icon {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero .line,
  .page-hero .lede,
  .page-hero .hero-actions {
    animation: settle 0.9s var(--ease) both;
  }
  .page-hero .line + .line {
    animation-delay: 0.08s;
  }
  .page-hero .lede {
    animation-delay: 0.18s;
  }
  .page-hero .hero-actions {
    animation-delay: 0.26s;
  }
  .page-hero .phone {
    animation: rise 1.2s var(--ease) 0.12s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .more li a:hover .icon {
    transform: none;
  }
}

@media (max-width: 1180px) {
  .page-hero,
  .outcome {
    column-gap: 40px;
  }
  .more .wrap {
    gap: 40px;
  }
}
@media (max-width: 899px) {
  .page-hero {
    display: block;
    padding: calc(var(--nav-h) + 32px) var(--gutter) 64px;
  }
  .page-hero h1 {
    font-size: clamp(32px, 9vw, 52px);
  }
  .page-hero .lede {
    margin-top: 16px;
    font-size: 18px;
  }
  .page-hero .fine {
    font-size: 13px;
  }
  .page-hero .phone {
    --phone-w: min(66vw, 264px);
    margin-top: 40px;
  }
  .outcomes {
    padding: 72px 0 64px;
  }
  .outcome {
    display: block;
    padding: 32px 0;
  }
  .outcome h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .outcome h2 + * {
    margin-top: 14px;
  }
  .outcome p,
  .steps li {
    font-size: 17px;
  }
  .statement {
    padding: 64px 0;
  }
  .compare {
    padding: 72px 0 64px;
  }
  .compare h2 {
    margin-bottom: 20px;
  }
  .more {
    padding-bottom: 80px;
  }
  .more .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .more h2 {
    font-size: 26px;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .page-hero .phone {
    --phone-w: 300px;
  }
}
/* Three columns do not fit a phone: each row becomes a labelled stack. */
@media (max-width: 699px) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }
  .compare tr {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .compare tbody th,
  .compare td {
    width: auto;
    padding: 0;
    border: 0;
  }
  .compare tbody th {
    font-family: var(--display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
  }
  .compare td {
    margin-top: 10px;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
  }
}
