/* hub-page.css — /apps and /growth-ads (2026-10-02, brand sheet step 2).
 *
 * Loaded after store-mgmt.css (the .smp tokens, type, buttons, track, FAQ,
 * phone rules) and ai-page.css (build rows, two-ways split, own-product
 * cards, the stat line). This file adds what those key to their own ids:
 * the section grounds, the hero padding, and the one shape only these
 * pages have, the platform index in the ads hero. No :root, reset or
 * body{}.
 *
 * Rhythm, per the brand sheet: cream hero, white and cream alternating,
 * one dark band in the middle, dark final ask.
 */

/* ── Section grounds ───────────────────────────────────────────────── */
.smp #ap-hero,
.smp #ga-hero { background: var(--sm-cream); padding: 8.5rem 0 4.5rem; overflow: hidden; }
.smp #ap-builds,
.smp #ap-faq,
.smp #ga-cert,
.smp #ga-faq { background: var(--sm-cream); }
.smp #ap-ways,
.smp #ap-cta,
.smp #ga-ways,
.smp #ga-cta { background: var(--sm-dark); color: #F5F2ED; }

/* Tarly's dashboard is a wide 2.2:1 capture; full width it made a short
   window the phone covered half of. Cropped to 16:10 from the top left,
   it shows the sidebar and the attention list at a readable size. */
.smp #ap-hero .sm-board img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }

/* ── Own products: the "see it" line under each card ───────────────── */
.smp .hp-own-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sm-accent);
}
.smp .ai-own-card:hover .hp-own-link { color: var(--sm-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ── The ads hero's platform index ─────────────────────────────────── */
.smp .hp-index {
  align-self: center;
  background: var(--sm-paper);
  border-radius: 14px;
  box-shadow: 0 40px 80px -40px rgba(22, 19, 15, .35), 0 0 0 1px rgba(22, 19, 15, .08);
  padding: 8px 26px 12px;
}
.smp .hp-index-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--sm-line);
  font-size: 13px;
  line-height: 1.3;
  color: var(--sm-muted);
}
.smp .hp-index-head span:first-child { color: var(--sm-ink); font-weight: 600; }
.smp .hp-index ol { list-style: none; margin: 0; padding: 0; }
.smp .hp-index li + li { border-top: 1px solid var(--sm-line); }
.smp .hp-index a {
  display: grid;
  grid-template-columns: 30px minmax(0, 0.9fr) minmax(0, 1.3fr) 16px;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  color: var(--sm-ink);
  text-decoration: none;
}
.smp .hp-index-n { font-size: 13px; color: var(--sm-accent); font-variant-numeric: tabular-nums; }
.smp .hp-index-name { font-family: 'Sora', sans-serif; font-size: 1.02rem; letter-spacing: -0.015em; }
.smp .hp-index-name em {
  margin-left: 8px;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 12.5px;
  color: var(--sm-accent);
}
.smp .hp-index-role { font-size: 14px; line-height: 1.4; color: var(--sm-muted); }
.smp .hp-index-go { color: var(--sm-muted); transition: transform .2s ease, color .2s ease; }
.smp .hp-index a:hover .hp-index-name { text-decoration: underline; text-underline-offset: 3px; }
.smp .hp-index a:hover .hp-index-go { color: var(--sm-accent); transform: translateX(3px); }
.smp .hp-index a:focus-visible { outline: 2px solid var(--sm-accent); outline-offset: 2px; border-radius: 4px; }

/* "Certified" set at the stat line's size would wrap; a word gets less
   room than a figure. */
.smp .hp-stat-word { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.smp .ai-stat-t a { color: var(--sm-ink); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .smp .hp-index-go { transition: none; }
}

@media (max-width: 1024px) {
  .smp .hp-index { max-width: 720px; }
}

/* ── Phone ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .smp #ap-hero,
  .smp #ga-hero { padding-top: 6.5rem !important; padding-bottom: 2.25rem !important; }
  /* The sticky bar is the phone's call to action, as on /ai. */
  .smp #ap-hero .sm-split,
  .smp #ga-hero .sm-split,
  .smp #ap-ways .sm-cta,
  .smp #ga-ways .sm-cta { display: none; }
  .smp #ap-hero .sm-cta,
  .smp #ga-hero .sm-cta { margin-top: 18px; }
  /* The next section opens on the same Tarly screen, so on a phone the
     hero picture would be the same image twice in a row. */
  .smp #ap-hero .sm-hero-art { display: none; }
  /* Nine one-line rows: the platform's own role line waits for its row
     below, where each group says what the channel is for. */
  .smp .hp-index { padding: 2px 16px 4px; }
  .smp .hp-index-head span:last-child { display: none; }
  .smp .hp-index a { grid-template-columns: 24px minmax(0, 1fr) 14px; gap: 10px; padding: 10px 0; min-height: 44px; align-items: center; }
  .smp .hp-index-role { display: none; }
  .smp .hp-stat-word { font-size: 2.4rem; }
}
