/* what-jinn-can-do.css: the feature hub's own sheet (round two U16; signed spec round-two/specs/capabilities-hub.md).
   Linked last in the page's css list (lib/site/pages/what-jinn-can-do.ts). It styles the page's own classes:
   the eight cards in #features and the host's size in #record. The open hero and the shared parts keep their own sheet. */

/* ---- 2. The features: eight paper cards, each with its own 4:3 still (K2: no crops) ---- */
/* Build five U10 (Sarah mZvRzrrVev5r): the section's sub-title and supporting lines run the full width of the content
   column, so the head is shorter and the section fits one screen sooner. The head's one column takes the whole row
   (site.css lets it shrink to its words), and its lines drop site.css's 62ch cap on paragraphs. Only the features head:
   a .hub-start line in any other section head keeps the 62ch cap (the more specific rule above wins in #features). */
.hub-features .section-head > div { flex: 1 1 100%; min-width: 0; }
.hub-features .section-head p { max-width: none; }
.section-head .hub-start { max-width: 62ch; margin-top: 12px; color: var(--muted); }
.section-head .hub-start a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
/* the free audit link sits inside a sentence: no text-CTA arrow mid-line (kit pass two item 9; this page does not load feature.css) */
.section-head .hub-start a::after { content: none; }
/* Build seven U5 (Sarah PJpBMbxOWKOj): her sub-title sits under her title in ink at the lede size; the two lines below it
   step down to supporting copy so the head reads title, sub-title, then the rest. */
.hub-features .section-head .hub-sub { color: var(--ink); }
.hub-features .section-head .lede:not(.hub-sub) { margin-top: 14px; font-size: clamp(1.05rem, 1.2vw, 1.15rem); color: var(--ink-2); }
.hub-features .section-head .lede:not(.hub-sub) + .lede { margin-top: 2px; }
/* Build seven U5 (Sarah kcgKXYPzBdZU, "something that makes it pop"): the price line in semibold, in ink. */
.section-head .hub-prices { font-weight: 600; color: var(--ink); }

/* Build seven U5 (Sarah 3DQRKfzQ197F): two groups of four. "Start it yourself" heads the first, at the card names' face and
   a step above their size; a hairline rule and the section's spacing set the second apart. Build eight P1 (Sarah
   PYT1cvgzDJMy): the second takes its own heading, "Run by our team", in the same style. */
.hub-group__title { margin: 0 0 18px; font-family: var(--head); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.2; color: var(--ink); }
.hub-group + .hub-group { margin-top: clamp(28px, 3.5vw, 48px); padding-top: clamp(28px, 3.5vw, 48px); border-top: 1px solid var(--rule); }

.hub-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1099px) { .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .hub-cards { grid-template-columns: 1fr; } }
.hub-cards > li { display: grid; }

/* The whole card is one link: the name's link is stretched over it, so the link's text stays the feature name. */
.hub-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(21, 23, 28, .04), 0 10px 28px -18px rgba(17, 22, 39, .28); transition: box-shadow .18s ease, transform .18s ease; }
.hub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hub-card:focus-within { outline: 3px solid var(--amber); outline-offset: 3px; }
.hub-card__link { color: inherit; text-decoration: none; }
.hub-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hub-card__link:focus-visible { outline: none; }
.hub-card:hover .hub-card__link { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-card:hover { transition: none; transform: none; } }

/* The still, whole at 4:3; the feature's color is the 4px edge under it. */
.hub-card__pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--studio-2); border-bottom: 4px solid var(--pc); }
.hub-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hub-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.hub-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 1.35rem; color: var(--ink); }
.hub-card__sum { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.hub-card__lead { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding-top: 6px; font-family: var(--ui); font-size: .84rem; font-weight: 700; line-height: 1.35; color: var(--ink-2); }
.hub-card__lead > .uwee { flex: none; }

/* ---- 3. One memory: Pip at about 260px beside the copy, about 160px under it on a phone ---- */
#record figure > .uwee { width: min(260px, 100%); }
/* Build five U10 (Sarah CkQUDBGycYDe, "the extra white space at the bottom of this page"): the last section before the
   closing band keeps the band's full top space but half its foot (site.css .band: up to 120px each way), so Pip's
   caption sits closer to the windows. */
#record.band { padding-bottom: clamp(36px, 4.5vw, 64px); }
@media (max-width: 860px) { #record figure > .uwee { width: 160px; } }
