/* Office files and notes — page-specific layout. Values from Figma frame "Notate — Office files and notes" (10268:46413, 1440 wide). */

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

/* ---------- Steps (Office files) ---------- */
.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); }

/* ---------- Digital paper ---------- */
.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:not(.story--static):hover .title-lg { color: var(--accent); }

a.story:hover .link { background-size: 100% 1.5px; }
a.story:hover .link .arrow { transform: translateX(5px); }
.story:not(.story--static):active { transform: translateY(-2px) scale(.99); transition-duration: .2s; }

/* photo with the app screen already composited onto the phone (Figma 10287:2499: image + "Screen (handwritten note, iPhone)") */
.notes-shot { aspect-ratio: 502 / 300; }

/* checklist card */
.check-card { border-radius: var(--r-xl); padding: 32px 32px 40px; display: flex; flex-direction: column; gap: 28px; box-shadow: 0 8px 12px rgba(12, 26, 43, 0.06); }

/* Figma 10347:5204: feature illustration, full card width, 184 tall, 16px corners */
.check-card__art { flex: none; width: 100%; height: 184px; border-radius: var(--r-lg); }
.check-card__art img { width: 100%; height: 100%; object-fit: cover; }
.check-list li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--ink); }
.check-list li span { flex: 1 1 0; min-width: 0; transition: transform .5s var(--spring-bouncy); }
.check-list li img { flex: none; width: 28px; height: 28px; transition: transform .55s var(--spring-bouncy); }

/* ---------- One place to come back to (accordion) ---------- */
.faq { padding: 96px 0; }
.faq__acc { width: min(760px, 100%); margin: 64px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feat { padding: 24px; }
}
@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:not(.notes-shot) { aspect-ratio: 1619 / 800; }
}

/* Tablet (≤ 1023px): shorter section rhythm */
@media (max-width: 1023px) {
  .feats, .stories, .faq { padding: 80px 0; }
  .feat-grid, .faq__acc { margin-top: 48px; }
}
/* ≤ 900px: the three steps read as one numbered column (icon beside the text) instead of 2 + 1;
   the single-column checklist card shows the whole feature illustration */
@media (max-width: 900px) {
  .steps.feat-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps .feat { flex-direction: row; align-items: center; gap: 24px; }
  .steps .icon-88 { flex: none; width: 72px; height: 72px; border-radius: var(--r-lg); }
  .check-card__art { height: auto; aspect-ratio: 1792 / 768; }
}

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

  /* step cards: one column, icon beside the numbered 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; }

  /* note card + checklist card */
  .stories__grid { gap: 16px; }
  .story, .check-card { padding: 20px 20px 28px; gap: 20px; }
  .story__text { gap: 12px; }
  .story .title-lg { font-size: 24px; }
  .story .body-lg { font-size: 16px; }
  .check-list li { gap: 12px; padding: 14px 0; font-size: 16px; }
  .check-list li img { width: 24px; height: 24px; }
  .check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
}
