/* ==========================================================================
   Product pages (feature pages, the feature hub, pricing). Oct 2026.
   Loaded after components.css; uses only its tokens. Markup: tools/lib/product.js.
   ========================================================================== */

/* ---------- full-width hero: headline left, the line and buttons right, the main screen large below ---------- */
.hero--wide { padding-block: clamp(2rem, 1.2rem + 3vw, 4rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); position: relative; }
.hero-wide__head { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); align-items: end; }
.hero-wide__title { display: grid; gap: .9rem; }
.hero--wide .display { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem); letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; max-width: 16ch; }
.hero-wide__aside { display: grid; gap: 1rem; justify-items: start; }
.hero-wide__aside .lead { max-width: 34rem; }
.hero-wide__aside .hero__cta { justify-content: flex-start; }
.hero-wide__credit { max-width: 36rem; line-height: 1.5; }
.hero-wide__credit a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.plus-note {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 600; color: var(--ink);
  background: var(--brand-soft); border: 1px solid var(--line-strong);
}
.hero-wide__stage { position: relative; margin-top: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.hero-wide__stage .device--browser { box-shadow: var(--shadow-device); }
.hero-wide__stage img { width: 100%; height: auto; max-height: min(78vh, 52rem); object-fit: cover; object-position: top left; }
.hero-wide__glow {
  position: absolute; inset: 8% 6% -6%; z-index: -1; pointer-events: none; filter: blur(40px); opacity: .9;
  background: radial-gradient(60% 60% at 30% 40%, color-mix(in srgb, var(--g1) 34%, transparent), transparent 70%),
              radial-gradient(50% 50% at 75% 60%, color-mix(in srgb, var(--g2) 26%, transparent), transparent 70%);
}
.sharecards { display: flex; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); justify-content: center; align-items: flex-end; flex-wrap: wrap; }

@media (min-width: 64rem) {
  .hero-wide__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-wide__aside { padding-bottom: .4rem; }
}

/* ---------- closing line: the last thing on a product page ---------- */
.closing { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); text-align: center; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(90rem, 120%); aspect-ratio: 2.4 / 1; translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 16%, transparent), transparent 75%); pointer-events: none; z-index: -1;
}
.closing__inner { display: grid; justify-items: center; gap: 1rem; }
.closing__line { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; max-width: 22ch; margin: 0; }
.closing__line em { font-style: normal; background: var(--thrust-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing__sub { color: var(--ink-2); max-width: 36rem; margin: 0; }
.closing__cta { justify-content: center; margin-top: .4rem; }

/* ---------- the feature hub: one real screenshot per feature ---------- */
.fgrid { display: grid; gap: clamp(.85rem, .6rem + .9vw, 1.25rem); grid-template-columns: 1fr; margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.fcard-item { min-width: 0; }
.fcard {
  display: grid; height: 100%; color: inherit; text-decoration: none; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.fcard:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-3); }
.fcard:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.fcard__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.fcard__shot .shot, .fcard__shot picture { display: block; width: 100%; height: 100%; }
.fcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform var(--dur-3) var(--ease); }
.fcard:hover .fcard__shot img { transform: scale(1.03); }
.fcard__body { display: grid; gap: .45rem; align-content: start; padding: clamp(1rem, .8rem + .6vw, 1.4rem); }
.fcard__tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.fcard__title { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); margin: 0; }
.fcard__text { color: var(--ink-2); line-height: 1.5; }
.fcard__go { margin-top: .35rem; color: var(--brand); font-weight: 650; display: inline-flex; align-items: center; gap: .35rem; }
.fcard__go .icon { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease); }
.fcard:hover .fcard__go .icon { transform: translate(3px, -3px); }
.only-phone { display: none; }
.only-desk { display: block; }
@media (max-width: 40rem) {
  .only-phone { display: block; }
  .only-desk { display: none; }
  .fcard__shot { aspect-ratio: 4 / 3; }
  .fcard__shot img { object-position: top center; }
}
@media (min-width: 40rem) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fgrid .fcard-item:first-child { grid-column: span 2; }
  .fgrid .fcard-item:first-child .fcard { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .fgrid .fcard-item:first-child .fcard__shot { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
  .fgrid .fcard-item:first-child .fcard__body { align-self: center; padding: clamp(1.4rem, 1rem + 1.2vw, 2.4rem); }
  .fgrid .fcard-item:first-child .fcard__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
}

/* ---------- pricing: two plans ---------- */
.plans { display: grid; gap: clamp(1rem, .7rem + 1vw, 1.5rem); margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.plan {
  position: relative; overflow: hidden; display: grid; gap: .8rem; align-content: start; padding: clamp(1.4rem, 1rem + 1.2vw, 2.4rem);
  border-radius: var(--r-xl); border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
}
.plan--plus {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--thrust-diag) border-box;
  border: 1px solid transparent;
}
.plan--plus::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--g2) 22%, transparent), transparent);
}
.plan__tag { justify-self: start; margin: 0; }
.plan__title { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -.03em; margin: 0; }
.plan__price { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--ink); }
.plan__lead { margin: 0; color: var(--ink-2); }
.plan__list { display: grid; gap: .6rem; margin: .4rem 0 0; padding: 0; }
.plan__list li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.45; }
.plan__list .icon { flex: none; margin-top: .2em; color: var(--pos); width: 1.1em; height: 1.1em; }
.plan__cta { justify-content: flex-start; margin-top: .6rem; }
.plan__note { margin: .4rem 0 0; }
@media (min-width: 52rem) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}

/* ---------- first 500 members: a live count when the app sends one, otherwise no number at all ---------- */
.first500__grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); align-items: center; }
.first500__copy { display: grid; gap: 1rem; }
.first500__copy .cluster { margin-top: .4rem; }
.first500__count {
  display: grid; gap: .5rem; padding: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); border-radius: var(--r-xl);
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-2);
}
.first500__count[hidden] { display: none; }
.first500__n { margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.first500__n b { font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; letter-spacing: -.04em; background: var(--thrust-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.first500__of { color: var(--ink-2); font-size: 1.1rem; font-weight: 600; }
.first500__label { margin: 0; color: var(--ink); font-weight: 600; }
.first500__meter { margin: .4rem 0 .2rem; height: .55rem; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.first500__meter i { display: block; height: 100%; border-radius: inherit; background: var(--thrust); transition: width var(--dur-4) var(--ease); }
@media (min-width: 52rem) {
  .first500__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

/* ---------- section rhythm on product pages: a little more air between the splits and the bento ---------- */
.feature-row + .section, .section + .feature-row { padding-top: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }
.feature-row__copy .lead { max-width: 36rem; }
