/* PDF editor — page-specific layout. Values from Figma frame "Notate — PDF editor" (10268:46045, 1440 wide). */

/* Hero: shared .fig-hero + .p-hero (styles.css); breadcrumb trail: product.css */

/* ---------- Feature grid (Capabilities) ---------- */
.feats { padding: 96px 0; }
.feat-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.feat > div { display: flex; flex-direction: column; gap: 8px; }
a.feat:hover { box-shadow: var(--shadow-card-hover); }
a.feat:hover .icon-88 { transform: translateY(-4px) scale(1.06); }
.feat .title-sm { transition: color .25s var(--ease-out); }

/* ---------- Story cards (Repositories and offline) ---------- */
.stories { position: relative; isolation: isolate; padding: 96px 0; }
.stories__bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; }
.stories__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.story { border-radius: var(--r-xl); padding: 32px 32px 40px; display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.story__media { aspect-ratio: 502 / 300; border-radius: var(--r-lg); flex: none; }
.story__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.story .title-lg { transition: color .25s var(--ease-out); }
.story:hover .title-lg { color: var(--accent); }
.story:hover .link { background-size: 100% 1.5px; }
.story:hover .link .arrow { transform: translateX(5px); }
.story:active { transform: translateY(-2px) scale(.99); transition-duration: .2s; }

/* ---------- Comparison (dark card + table) ---------- */
.compare-sec { padding: 96px 0; }
.cmp { background: var(--navy); border-radius: var(--r-xl); padding: 64px; display: flex; flex-direction: column; gap: 48px; overflow: hidden; }
.cmp__head { width: min(760px, 100%); display: flex; flex-direction: column; gap: 16px; }
.cmp__head .h3 { color: #fff; }
.cmp__head .lead { color: rgba(255, 255, 255, 0.75); }
.cmp-table { width: min(1024px, 100%); }
.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 320fr) minmax(0, 352fr) minmax(0, 352fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color .35s var(--ease-out);
}
.cmp-body .cmp-row:last-child { border-bottom: 0; }
.cmp-cell { padding: 24px; }
.cmp-row--head .cmp-cell { padding: 16px 24px; }
.cmp-q { font-weight: 500; font-size: 17px; line-height: 1.4; letter-spacing: -0.085px; color: #fff; transition: color .3s var(--ease-out); }
.cmp-check { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.cmp-cell--notate { position: relative; font-size: 15px; line-height: 1.55; color: #fff; background: rgba(255, 255, 255, 0.07); transition: background-color .35s var(--ease-out); }
.cmp-row--head .cmp-cell--notate { border-radius: 12px 12px 0 0; color: var(--sky); font-size: 13px; }
.cmp-body .cmp-row:last-child .cmp-cell--notate { border-radius: 0 0 12px 12px; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; }
.faq__acc { width: min(760px, 100%); margin: 64px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feat { padding: 24px; }
  .cmp { padding: 48px 32px; }
  .cmp-cell { padding: 20px 16px; }
  .cmp-row--head .cmp-cell { padding: 14px 16px; }
}
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stories__grid { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 1619 / 800; }
}

/* Tablet (≤ 1023px): shorter section rhythm */
@media (max-width: 1023px) {
  .feats, .stories, .compare-sec, .faq { padding: 80px 0; }
  .feat-grid, .faq__acc { margin-top: 48px; }
}

/* Phone (≤ 767px) */
@media (max-width: 767px) {
  .feats, .stories, .compare-sec, .faq { padding: 64px 0; }
  .feat-grid, .faq__acc { margin-top: 32px; }

  /* feature cards: one column, icon beside the title, text full width below */
  .feat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feat { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 20px; }
  .feat > div { display: contents; }
  .feat .icon-88 { width: 56px; height: 56px; border-radius: var(--r-lg); }
  .feat .body { grid-column: 1 / -1; }

  /* story cards */
  .stories__grid { gap: 16px; }
  .story { padding: 20px 20px 28px; gap: 20px; }
  .story__media { aspect-ratio: 5 / 3; }
  .story__text { gap: 12px; }
  .story .title-lg { font-size: 24px; }
  .story .body-lg { font-size: 16px; }
  .story .link { display: inline; }

  /* comparison: each row becomes a stacked card (question as title, labelled answers);
     the column-header row stays for screen readers only */
  .cmp { padding: 32px 20px 20px; gap: 28px; }
  .cmp__head { gap: 12px; }
  .cmp-body { display: flex; flex-direction: column; gap: 12px; }
  .cmp-body .cmp-row, .cmp-body .cmp-row:last-child { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.03); }
  .cmp-row--head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp-body .cmp-cell { padding: 0; }
  .cmp-q { font-size: 18px; }
  .cmp-body .cmp-cell--notate, .cmp-body .cmp-row:last-child .cmp-cell--notate { padding: 16px; border-radius: var(--r-md); }
  .cmp-cell[data-label]::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block; margin-bottom: 6px;
    font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 1.55; letter-spacing: 0.52px; text-transform: uppercase; color: var(--sky);
  }
  .cmp-check[data-label]::before { color: rgba(255, 255, 255, 0.55); }
}
