/* resources.css: the Resources page (plan.md, "Resources"): the header with the tablet whose screen turns the guides,
   the six guides and the subscribe line, the close. */

/* Header: the words and the topics at the left; the tablet on its stand at the right, framed. */
.res-hero { padding-block: clamp(3.5rem, 2rem + 4vw, 6rem); }
.res-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 78% 45%, var(--c-glow-soft), transparent 70%); }
.res-hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.res-hero__copy { display: grid; justify-items: start; gap: var(--space-4); }
.res-hero__title { max-width: 14ch; }
.res-hero__copy .lead { max-width: 34rem; }
.res-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-2); }
.res-chips .chip { min-height: 2.5rem; padding: 0.45rem 0.9rem; font-weight: 600; text-decoration: none; }
.res-hero__stage { position: relative; }
.res-hero__photo { height: 40rem; border-radius: var(--radius-l); border: 1px solid var(--c-line); box-shadow: var(--shadow-l); }
.res-hero__photo > img { object-position: 50% 50%; filter: brightness(0.9) saturate(0.9); }
.res-hero__stop { top: var(--space-3); right: var(--space-3); bottom: auto; left: auto; z-index: 3; }

/* The six guides: each its photo over its topic, its title and "coming soon"; the subscribe line under them. */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem); }
.res-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; scroll-margin-top: 6rem; border-radius: var(--radius-l); background: var(--c-ink-soft); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); }
.res-card:target { border-color: color-mix(in srgb, var(--c-brand) 70%, var(--c-line)); box-shadow: var(--shadow-m), 0 0 40px -12px var(--c-glow); }
.res-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.res-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(0.9) saturate(0.92); }
#websites .res-card__media > img { object-position: 50% 62%; }
#ai-automation .res-card__media > img { object-position: 60% 30%; }
.res-card__body { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-5); }
.res-card__topic { margin: 0; font: 600 var(--fs-eyebrow)/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-brand-on-ink); }
.res-card__title { font-size: var(--fs-h3); line-height: 1.2; }
.res-card__soon { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; color: var(--c-muted); font-size: var(--fs-small); line-height: 1.5; }
.res-card__soon svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; fill: none; stroke: var(--c-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.res-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-4) var(--space-5); align-items: center; margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-l); background: radial-gradient(ellipse 60% 120% at 100% 50%, var(--c-glow-soft), transparent 70%), var(--c-ink-soft); border: 1px solid var(--c-line-strong); }
.res-sub__title { margin: 0; font: 700 var(--fs-h3)/1.25 var(--font-display); color: var(--c-paper); }
.res-sub__row { display: flex; gap: var(--space-3); align-items: flex-start; }
.res-sub__field { flex: 1; display: grid; gap: 0.4rem; }
.res-sub__field input { box-sizing: border-box; width: 100%; min-height: 3rem; padding: 0.7rem 1rem; border-radius: var(--radius-m); background: var(--c-ink); border: 1px solid var(--c-line-strong); color: var(--c-paper); font: inherit; }
.res-sub__field input::placeholder { color: var(--c-muted); }
.res-sub__field input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-color: var(--c-brand); }
.res-sub__field[data-kit-invalid] input { border-color: var(--c-brand); }
.res-sub__error { margin: 0; font-size: var(--fs-small); color: var(--c-brand-on-ink); }
.res-sub .btn { min-height: 3rem; }
.res-sub[data-kit-sending] .btn { opacity: 0.7; }

/* Close: the strategist on her video call at the middle-right; the words at the left. */
.res-close { --pos: 50% 40%; --pos-n: 50% 25%; --close-top-n: 16rem; }

@media (max-width: 1023px) {
  .res-hero__in { grid-template-columns: minmax(0, 1fr); }
  .res-hero__photo { height: 33rem; }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-sub { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .res-grid { grid-template-columns: minmax(0, 1fr); }
  .res-sub__row { flex-direction: column; align-items: stretch; }
}
