/* The front page (templates/store.html): the brand hero, then the hub (four doors: the styles, the guides, the updates,
   the free tutorial), then the free tutorial itself. Its own file so the shared style.css keeps its room for launches. */

/* the hub: four image cards. Phones: two by two, all four on one screen. Desktop: one row, the styles card a little wider */
.hub { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 14px; margin: 8px 0 0; }
.hcard { position: relative; display: block; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hair); background: var(--panel); text-decoration: none; color: var(--white); isolation: isolate; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease); }
.hcard:hover, .hcard:active, .hcard:focus-visible { transform: translateY(-3px); border-color: var(--glow); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px var(--glow-soft); color: var(--white); text-shadow: none; }
.hcard-media { position: absolute; inset: 0; z-index: -1; }
.hcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease), filter .4s var(--ease); filter: saturate(1.05) brightness(.9); }
.hcard:hover .hcard-media img { transform: scale(1.05); filter: saturate(1.15) brightness(1); }
.hcard-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--bg); }
.hcard-mosaic img { min-height: 0; }
.hcard-free .hcard-media img { object-position: 50% 72%; }
@media (min-width: 721px) { .hcard-free .hcard-media img { position: absolute; left: 0; bottom: 0; height: 132%; } }   /* tall cards: crop the phone's own controls off the top */
.hcard-guides img { object-position: 92% 50%; }
.hcard-text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 64px 18px 18px; background: linear-gradient(to top, rgba(7, 8, 12, .94), rgba(7, 8, 12, .62) 58%, transparent); }
.hcard-kicker { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent-2); text-shadow: 0 0 12px var(--glow); }
.hcard-title { font-family: var(--display); font-weight: 800; font-style: italic; font-stretch: 105%; font-size: 28px; line-height: 1.02; letter-spacing: -.015em; text-shadow: 0 0 18px var(--glow-soft); padding-right: 28px; }
.hcard-sub { font-size: 13px; line-height: 1.45; color: var(--text); padding-right: 22px; }
.hcard-go { position: absolute; right: 16px; bottom: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair-2); font-size: 15px; color: var(--white); background: rgba(7, 8, 12, .4); transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.hcard:hover .hcard-go { border-color: var(--accent); box-shadow: 0 0 18px var(--glow); transform: translateX(2px); }
.hcard-free:hover .hcard-go { transform: translateY(2px); }
.hcard .newflag { position: absolute; top: 12px; left: 12px; z-index: 1; }

/* the free tutorial: the DM route as three numbered steps, then the phone walkthrough (.how in style.css) */
.freeprompt { margin: 72px 0 0; padding-top: 40px; border-top: 1px solid var(--hair); scroll-margin-top: 24px; }
.fp-head h2 { margin: 0 0 10px; }
.dm-steps { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dm-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--hair); background: linear-gradient(180deg, var(--panel), rgba(15, 17, 24, .4)); }
.dm-steps p { margin: 0; color: var(--text); line-height: 1.5; }
.dm-steps b { color: var(--white); }
.dm-n { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 17px; color: #0a1230; background: linear-gradient(180deg, #ffffff, #c7d8ff); box-shadow: 0 0 18px var(--glow); }
.freeprompt .actions { margin: 0; }
.freeprompt + .how { margin-top: 40px; }

/* after the walkthrough: on to the styles */
.more { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 56px 0 0; padding: 28px; border-radius: var(--radius); border: 1px solid var(--hair-2); background: radial-gradient(600px 220px at 15% 0%, var(--glow-soft), transparent 70%), var(--panel); }
.more h2 { margin: 0 0 6px; }
.more .lede { margin: 0; }
.more .actions { flex: 0 0 auto; margin: 0; }

@media (max-width: 1000px) {
  .hub { grid-template-columns: 1fr 1fr; }
  .hcard { min-height: 300px; }
}
@media (max-width: 720px) {
  .hub { gap: 10px; margin-top: 0; }
  .hcard { min-height: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-s); }
  .hcard-text { padding: 40px 12px 12px; gap: 2px; }
  .hcard-kicker { font-size: 11px; }
  .hcard-title { font-size: 21px; padding-right: 0; }
  .hcard-sub { display: none; }
  .hcard-go { width: 26px; height: 26px; right: 10px; top: 10px; bottom: auto; font-size: 13px; }
  .hcard .newflag { top: 10px; left: 10px; }
  .freeprompt { margin-top: 48px; padding-top: 28px; }
  .dm-steps { grid-template-columns: 1fr; gap: 10px; }
  .dm-steps li { padding: 16px; }
  .more { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .more .actions { display: flex; flex-direction: column; gap: 10px; }
  .more .btn { text-align: center; }
}
