/* ==========================================================================
   Gradia — /features

   Rivet's features architecture: hero, jump chips, numbered sections of ruled
   rows inside a panel, one inverted band for platform integration, a closing
   section. Gradia's version inverts the band to daylight, because this site
   is nocturne-led, and replaces Rivet's Free/Pro plans table — there are no
   tiers here to compare.
   ========================================================================== */

.features-hero {
  padding: 152px 0 10px;
}

.features-hero h1 {
  max-width: 16ch;
  margin-bottom: 22px;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.03;
}

.features-hero .lede {
  max-width: 58ch;
  margin-bottom: 34px;
}

.features-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
}

.features-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--hairline-quiet);
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.features-jump a:hover {
  border-color: var(--hairline);
  color: var(--ink);
}

/* ==========================================================================
   Proof row — the numbers, stated once, near the top.
   Every figure here is counted from the shipped seed data.
   ========================================================================== */

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--hairline-quiet);
  border-radius: var(--radius);
  background: var(--night-surface);
}

.proof-cell {
  padding: 28px 26px;
  border-right: 1px solid var(--hairline-quiet);
}

.proof-cell:last-child {
  border-right: 0;
}

.proof-cell strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.proof-cell span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 20px;
}

/* ==========================================================================
   Numbered sections of ruled rows
   ========================================================================== */

.features-section {
  padding: 74px 0 6px;
  scroll-margin-top: 96px;
}

.features-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 24px;
}

.features-head h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
}

.features-head p {
  margin: 0 0 4px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 25px;
}

.features-list {
  padding: 4px 28px;
  border: 1px solid var(--hairline-quiet);
  border-radius: var(--radius);
  background: var(--night-surface);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  align-items: baseline;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-quiet);
}

.feature-row:last-child {
  border-bottom: 0;
}

/* 17px — the app's `rowTitle`, which is standard, not rounded. */
.feature-row h3 {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

.feature-row p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 23px;
}

/* A count sitting with a row title — the proof inline, where it applies. */
.row-count {
  display: inline-block;
  margin-left: 9px;
  padding: 3px 8px;
  border: 1px solid var(--hairline-quiet);
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}

/* ==========================================================================
   Platform band — the one daylight surface, matching the home page's
   connections band so the two pages break in the same place.
   ========================================================================== */

.platform-band {
  margin-top: 88px;
  padding: 104px 0;
  color: var(--ink-day);
  scroll-margin-top: 0;
}

.platform-band .features-head p {
  color: var(--ink-day-soft);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--hairline-day);
  border-radius: var(--radius);
}

.platform-cell {
  min-height: 128px;
  padding: 26px 28px;
  border-right: 1px solid var(--hairline-day);
  border-bottom: 1px solid var(--hairline-day);
}

.platform-cell:nth-child(3n) { border-right: 0; }
.platform-cell:nth-last-child(-n + 3) { border-bottom: 0; }

.platform-cell h3 {
  margin: 0 0 7px;
  color: var(--ink-day);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.platform-cell p {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-day-soft);
  font-size: 14px;
  line-height: 21px;
}

.platform-band .privacy-panel {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   Closing section — one subscription, no table to compare
   ========================================================================== */

.included-list {
  overflow: hidden;
  border: 1px solid var(--hairline-quiet);
  border-radius: var(--radius);
  background: var(--night-surface);
}

.included-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--hairline-quiet);
}

.included-row:last-child {
  border-bottom: 0;
}

.included-name {
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
}

.included-val {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 22px;
}

.included-val::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  margin-right: 10px;
  background: var(--ink-quiet);
  vertical-align: middle;
}

.features-page .footer-close {
  margin-top: 96px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .features-hero { padding-top: 132px; }
  .features-head { grid-template-columns: 1fr; gap: 14px; }
  .proof-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-cell:nth-child(2n) { border-right: 0; }
  .proof-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--hairline-quiet); }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .platform-cell:nth-child(3n) { border-right: 1px solid var(--hairline-day); }
  .platform-cell:nth-child(2n) { border-right: 0; }
}

@media (max-width: 680px) {
  .features-hero { padding-top: 118px; }
  .features-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .features-section { padding: 58px 0 4px; }
  .features-list { padding: 2px 20px; }
  .feature-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .proof-row { grid-template-columns: 1fr; }
  .proof-cell { border-right: 0; border-bottom: 1px solid var(--hairline-quiet); }
  .proof-cell:last-child { border-bottom: 0; }
  .platform-band { margin-top: 64px; padding: 84px 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-cell { min-height: 0; border-right: 0; }
  .platform-cell:nth-child(3n) { border-right: 0; }
  .included-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
}
