/* Feature pages on getpinehold.com (/features, /features/<category>), loaded after guides.css and using its tokens.
   Unlike the guides, these pages lead with a working demo: a clip from public/marketing/motion in an iframe, or an
   interactive demo framed on wide screens and linked from a still on phones. Always light. Generated pages:
   scripts/feature-pages.py. */
main.feature { max-width: 1168px; padding-left: 24px; } /* no guides rail here: undo guides.css's wide-screen left padding */
.feature h1 { max-width: 880px; }
.feature .lead { font-size: 20px; line-height: 1.6; color: var(--soft); max-width: 760px; margin: 0 0 10px; }
.feature .meta { margin-bottom: 30px; }
.crumbs { font-size: 14px; color: var(--soft); margin: 0; }
.crumbs a { color: var(--soft); }
.feature > h2, .feature .qa, .feature .faq, .feature .table-wrap, .feature .note, .feature .offer-link, .feature .sources, .feature .related { max-width: 860px; }

/* A clip: 16:9 stage plus its 40px player bar, sized from the width it is given. */
.clip { container-type: inline-size; margin: 8px 0 12px; }
.clip iframe { display: block; width: 100%; height: calc(56.25cqw + 40px); border: 0; }

/* An interactive demo: framed on wide screens, a still that opens it on phones. */
.app-demo { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px #1f1f1f14; background: #fff; }
.app-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--wash); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.app-bar a { font-weight: 600; text-decoration: none; }
.app-demo iframe { display: block; width: 100%; height: 640px; border: 0; }
.app-poster { display: none; position: relative; text-decoration: none; }
.app-poster img { display: block; width: 100%; height: auto; }
.app-poster span { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; }

/* Tools in the category */
.tools { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tools li { margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tools h3 { margin: 0 0 6px; font-size: 17px; }
.tools p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.qa h2 { margin-top: 48px; }
.qa .clip { max-width: 860px; }

/* Other categories */
.more { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.more ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.more li { margin: 0; }

/* Hub */
.hub .cards { list-style: none; padding: 0; margin: 34px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub .cards li { margin: 0; }
.hub .cards a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.hub .cards a:hover { box-shadow: 0 18px 44px #1f1f1f18; transform: translateY(-2px); }
.hub .cards img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); background: var(--wash); }
.hub .cards h2 { font-size: 21px; margin: 18px 20px 6px; }
.hub .cards p { margin: 0 20px 14px; font-size: 15px; line-height: 1.6; color: var(--soft); flex: 1; }
.hub .cards span { margin: 0 20px 20px; font-size: 14px; font-weight: 600; color: var(--blue); }
.hub .note { margin-top: 24px; }

@media (max-width: 960px) {
  .tools, .hub .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-demo iframe, .app-bar { display: none; }
  .app-poster { display: block; }
}
@media (max-width: 640px) {
  .tools, .hub .cards { grid-template-columns: 1fr; }
  .feature .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hub .cards a { transition: none; } .hub .cards a:hover { transform: none; } }
/* Two-column price tables fit a phone without scrolling. */
.feature table { min-width: 0; }
@media (max-width: 640px) { .feature td.num { white-space: normal; } }
/* /compare hub: each comparison is a link with its one-line summary beneath. */
.compare .guide-list .note { display: block; }
.compare h2 { margin-top: 44px; }
.feature .guide-list .note { display: block; }
