/* Product showcase sections for the design hub and tool pages: real editor
   screenshots, alternating feature rows, a template gallery and a CTA band.
   Lives in its own file (not an inline <style>) so the related-block
   injector can never strip it. Uses the tokens from shared.css :root. */

/* Hero call-to-action buttons */
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--accent); transition: transform .15s, box-shadow .15s, background .15s; }
.btn-cta:hover { transform: translateY(-1px); text-decoration: none; }
.btn-cta.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px var(--accent-ring); }
.btn-cta.primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn-cta.ghost { background: var(--surface); color: var(--accent-fg); }
.btn-cta.ghost:hover { background: var(--accent-bg); }

/* Screenshot on each hub card */
.hub-card .hub-thumb { display: block; height: auto; width: calc(100% + 36px); max-width: none; margin: -22px -18px 14px; aspect-ratio: 560 / 504; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); background: #fff; }
@media (max-width: 1099px) { .hub-card .hub-thumb { width: calc(100% + 48px); margin: -26px -24px 16px; aspect-ratio: 16 / 9; } }
.hub-card.has-thumb .hub-icon { display: none; }
.hub-card.has-thumb .hub-tag { top: 12px; right: 12px; background: rgba(255,255,255,.94); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Big "studio" band */
.sc-band { margin: 56px 0 0; padding: 52px 20px 0; background: linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #0e7490 100%); color: #fff; text-align: center; overflow: hidden; }
.sc-band h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 12px; color: #fff; }
.sc-band p { max-width: 680px; margin: 0 auto 28px; color: #e0e7ff; line-height: 1.65; font-size: 1.02rem; }
.sc-band .sc-shot { display: block; width: 100%; max-width: 1080px; height: auto; margin: 0 auto -6px; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-bottom: 0; }

/* Alternating feature rows */
.sc-rows { max-width: 1120px; margin: 64px auto 0; padding: 0 20px; display: grid; gap: 64px; }
.sc-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.sc-row:nth-child(even) .sc-media { order: 2; }
.sc-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--row-accent, var(--accent-fg)); margin-bottom: 8px; }
.sc-copy h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.25; margin: 0 0 12px; color: var(--text); }
.sc-copy p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
.sc-copy ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.sc-copy li { position: relative; padding-left: 26px; color: var(--text); line-height: 1.5; }
.sc-copy li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--row-accent, var(--accent)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.sc-link { font-weight: 700; color: var(--row-accent, var(--accent)); text-decoration: none; }
.sc-link:hover { text-decoration: underline; }
.sc-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 260px; padding: 28px; border-radius: 20px; background: color-mix(in srgb, var(--row-accent, var(--accent)) 10%, #fff); }
.sc-media img { display: block; max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 14px 40px rgba(15,15,46,.16); border: 1px solid var(--border); background: #fff; }
.sc-media img.tall { max-height: 440px; width: auto; }

/* Export formats visual */
.sc-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 14px; }
.sc-format { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; text-align: center; box-shadow: var(--shadow); }
.sc-format b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--row-accent, var(--accent)); }
.sc-format span { font-size: .82rem; color: var(--muted); }

/* Privacy visual */
.sc-private { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); min-width: 240px; }
.sc-private .lock { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--row-accent, var(--accent)); margin-bottom: 14px; }
.sc-private .lock svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-private dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: baseline; }
.sc-private dt { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.sc-private dd { margin: 0; color: var(--muted); font-size: .92rem; }

/* Template gallery (tool pages) */
.sc-gallery { max-width: 1120px; margin: 64px auto 0; padding: 0 20px; }
.sc-gallery > h2 { font-size: 1.3rem; margin: 0 0 6px; }
.sc-gallery > p { color: var(--muted); margin: 0 0 22px; line-height: 1.6; }
.sc-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sc-gallery-grid.mobile { margin-top: 16px; }
.sc-tile { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.sc-tile img { display: block; width: 100%; height: auto; border-radius: 8px; background: #f8fafc; }
.sc-gallery-grid.mobile .sc-tile img { max-width: 200px; margin: 0 auto; }
.sc-tile-name { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--text); text-align: center; }
a.sc-tile { text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
a.sc-tile:hover, a.sc-tile:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px var(--accent-ring-soft); text-decoration: none; }
a.sc-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-tile-use { margin-top: -6px; font-size: .8rem; font-weight: 700; color: var(--accent-fg); text-align: center; }
.sc-tile-use::after { content: " →"; }

/* Closing CTA band */
.sc-cta { max-width: 1120px; margin: 64px auto 0; padding: 0 20px; }
.sc-cta-inner { border-radius: 24px; padding: 44px 28px; text-align: center; color: #fff; background: linear-gradient(120deg, #4f46e5 0%, #be185d 50%, #b45309 100%); box-shadow: 0 18px 50px rgba(79,70,229,.28); }
.sc-cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 10px; color: #fff; }
.sc-cta-inner p { margin: 0 auto 22px; max-width: 560px; color: #fdf2f8; line-height: 1.6; }
.sc-cta-inner .btn-cta.primary { background: #fff; color: #312e81; border-color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.sc-cta-inner .btn-cta.primary:hover { background: #eef2ff; border-color: #eef2ff; }
.sc-cta-inner .btn-cta.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.sc-cta-inner .btn-cta.ghost:hover { background: rgba(255,255,255,.12); }

@media (max-width: 860px) {
  .sc-row { grid-template-columns: 1fr; gap: 22px; }
  .sc-row:nth-child(even) .sc-media { order: 0; }
  .sc-media { min-height: 0; padding: 18px; }
  .sc-media img.tall { max-height: 380px; }
  .sc-rows { gap: 48px; }
  .sc-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hub-card .hub-thumb { aspect-ratio: 2 / 1; }
  .sc-band { padding-top: 40px; }
  .sc-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .sc-cta-inner { padding: 34px 18px; }
}
@media print { .sc-band, .sc-rows, .sc-gallery, .sc-cta, .hero-ctas { display: none; } }
