/* ==========================================================================
   Homepage v2: hero banner, compact sections, single-row categories, member CTA
   ========================================================================== */

/* ---------- Hero banner (rotating) ---------- */
.hy-banner { position: relative; margin-block: 1rem 0; border-radius: var(--hy-r-lg); overflow: hidden; border: 1px solid var(--hy-border); isolation: isolate; }
.hy-banner__track { display: grid; }
.hy-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr; align-items: center; gap: 1.25rem; padding: 1.25rem 1.25rem 4rem; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hy-slide.is-active { opacity: 1; visibility: visible; }
.hy-slide__art { order: -1; block-size: 230px; }
.hy-slide__text > * { transform: translateY(10px); opacity: 0; transition: transform .6s ease, opacity .6s ease; }
.hy-slide.is-active .hy-slide__text > * { transform: none; opacity: 1; }
.hy-slide.is-active .hy-slide__text > :nth-child(2) { transition-delay: .08s; }
.hy-slide.is-active .hy-slide__text > :nth-child(3) { transition-delay: .16s; }
.hy-slide.is-active .hy-slide__text > :nth-child(4) { transition-delay: .24s; }
.hy-slide__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 .75rem; text-wrap: balance; }
h2.hy-slide__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.hy-slide__lead { color: var(--hy-muted); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); margin: 0 0 1.4rem; max-inline-size: 520px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hy-slide__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hy-slide--brand { background: radial-gradient(60% 90% at 100% 0%, rgba(124, 58, 237, .16), transparent 60%), radial-gradient(55% 80% at 0% 100%, rgba(13, 148, 136, .14), transparent 60%), #F7F7FF; }
.hy-slide--news { background: radial-gradient(60% 90% at 100% 100%, rgba(37, 99, 235, .14), transparent 60%), linear-gradient(135deg, #F3F7FF, #F7F5FF); }
.hy-slide--tools { background: radial-gradient(60% 90% at 100% 0%, rgba(124, 58, 237, .16), transparent 60%), linear-gradient(135deg, #F8F5FF, #FDF6FF); }
.hy-slide--prompts { background: radial-gradient(60% 90% at 100% 100%, rgba(13, 148, 136, .16), transparent 60%), linear-gradient(135deg, #F0FBF8, #F3F8FF); }
@media (min-width: 900px) {
	.hy-slide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; padding: 3rem 3.25rem 4.25rem; min-block-size: 450px; }
	.hy-slide__art { order: 0; block-size: 360px; }
}
.hy-banner__nav { position: absolute; inset-inline-start: 1.25rem; inset-block-end: 1rem; display: flex; align-items: center; gap: .5rem; z-index: 2; }
@media (min-width: 900px) { .hy-banner__nav { inset-inline-start: 3.25rem; inset-block-end: 1.5rem; } }
.hy-banner__dots { display: flex; gap: .15rem; }
.hy-banner__dot, .hy-banner__pause { inline-size: 32px; block-size: 32px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; border-radius: 999px; }
.hy-banner__dot span { inline-size: 8px; block-size: 8px; border-radius: 999px; background: rgba(15, 23, 42, .22); transition: inline-size .3s, background .3s; }
.hy-banner__dot.is-active span { inline-size: 26px; background: var(--hy-primary); }
.hy-banner__pause-icon { inline-size: 10px; block-size: 11px; border-inline: 3px solid rgba(15, 23, 42, .45); }
.hy-banner.is-paused .hy-banner__pause-icon { border: 0; inline-size: 0; block-size: 0; border-block: 6px solid transparent; border-inline-start: 10px solid rgba(15, 23, 42, .55); }

/* Generated art */
.hy-art { position: relative; block-size: 100%; inline-size: 100%; }
@keyframes hy-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hy-dash { to { stroke-dashoffset: -64; } }
@keyframes hy-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }
@keyframes hy-shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
@keyframes hy-blink { 50% { opacity: 0; } }
.hy-float, .hy-chipcard, .hy-bubble { animation: hy-float 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hy-net { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.hy-net__line { stroke-width: 1.4; stroke-opacity: .45; stroke-dasharray: 6 10; animation: hy-dash 5s linear infinite; animation-delay: var(--d, 0s); }
.hy-net__node { fill: #fff; stroke: #5B5BF0; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hy-pulse 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hy-net__node.is-hub { fill: #5B5BF0; stroke: #fff; stroke-width: 3; }
.hy-chipcard { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem .6rem .6rem; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .1); font-size: .875rem; line-height: 1.25; }
.hy-chipcard strong { display: block; }
.hy-chipcard small { color: var(--hy-muted); }
.hy-chipcard__icon { inline-size: 34px; block-size: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.hy-chipcard--a { inset-block-start: 6%; inset-inline-start: 2%; --d: 0s; }
.hy-chipcard--a .hy-chipcard__icon { background: var(--hy-news); }
.hy-chipcard--b { inset-block-start: 40%; inset-inline-end: 0; --d: 1.5s; }
.hy-chipcard--b .hy-chipcard__icon { background: var(--hy-tools); }
.hy-chipcard--c { inset-block-end: 4%; inset-inline-start: 18%; --d: 3s; }
.hy-chipcard--c .hy-chipcard__icon { background: var(--hy-prompts); }
@media (max-width: 899px) { .hy-chipcard small { display: none; } .hy-chipcard { padding: .45rem .7rem .45rem .45rem; } .hy-chipcard__icon { inline-size: 28px; block-size: 28px; } }

.hy-art__cover { position: absolute; inset-block-start: 0; inset-inline-end: 0; inline-size: 88%; block-size: 82%; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--tone-a, #5B5BF0), var(--tone-b, #7C3AED)); box-shadow: 0 20px 50px rgba(37, 99, 235, .18); }
.hy-art__img, .hy-rings { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.hy-art__bigicon { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.hy-art__bigicon .hy-icon { inline-size: 72px; block-size: 72px; animation: hy-float 6s ease-in-out infinite; }
.hy-art__card { position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: min(78%, 340px); background: #fff; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); display: flex; flex-direction: column; gap: .25rem; animation: hy-float 7s ease-in-out infinite; }
.hy-art__card strong { font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hy-art__card .hy-label, .hy-art__card .hy-meta { margin: 0; }

.hy-orbits { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.hy-bubble { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem .7rem .55rem; min-inline-size: 84px; background: #fff; border: 1px solid var(--hy-border); border-radius: 16px; box-shadow: 0 10px 28px rgba(124, 58, 237, .12); font-size: .75rem; font-weight: 600; color: var(--hy-text); }
.hy-bubble .hy-logo { border: 0; }
.hy-bubble--1 { inset-block-start: 4%; inset-inline-start: 6%; }
.hy-bubble--2 { inset-block-start: 0; inset-inline-start: 38%; }
.hy-bubble--3 { inset-block-start: 8%; inset-inline-end: 4%; }
.hy-bubble--4 { inset-block-start: 38%; inset-inline-start: 0; }
.hy-bubble--5 { inset-block-start: 34%; inset-inline-start: 38%; }
.hy-bubble--6 { inset-block-start: 42%; inset-inline-end: 0; }
.hy-bubble--7 { inset-block-end: 0; inset-inline-start: 16%; }
.hy-bubble--8 { inset-block-end: 2%; inset-inline-end: 16%; }
@media (max-width: 899px) {
	.hy-bubble { min-inline-size: 0; padding: .45rem; }
	.hy-bubble small { display: none; }
	.hy-bubble .hy-logo { inline-size: 36px !important; block-size: 36px !important; }
}

.hy-art--prompt { display: grid; place-items: center; }
.hy-chat { inline-size: min(100%, 440px); background: #fff; border: 1px solid var(--hy-border); border-radius: 18px; box-shadow: 0 20px 50px rgba(13, 148, 136, .16); overflow: hidden; animation: hy-float 8s ease-in-out infinite; }
.hy-chat__bar { display: flex; align-items: center; gap: .35rem; padding: .65rem .9rem; background: var(--hy-surface); border-block-end: 1px solid var(--hy-border); }
.hy-chat__bar span { inline-size: 9px; block-size: 9px; border-radius: 50%; background: #E2E5EE; flex: none; }
.hy-chat__bar em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--hy-muted); margin-inline-start: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hy-chat__msg { margin: .8rem .9rem; padding: .75rem .85rem; border-radius: 14px; font-size: .875rem; line-height: 1.55; }
.hy-chat__msg p { margin: 0; min-block-size: 4.6em; }
.hy-chat__msg--user { background: var(--hy-primary-soft); margin-inline-start: 2.5rem; border-end-end-radius: 4px; }
.hy-chat__msg--ai { background: var(--hy-surface); margin-inline-end: 2.5rem; border-end-start-radius: 4px; display: grid; gap: .45rem; }
.hy-chat__msg--ai i { display: block; block-size: 9px; border-radius: 99px; background: linear-gradient(90deg, #E5E8F0 0, #F3F4F8 50%, #E5E8F0 100%) 0 0 / 400px 100%; animation: hy-shimmer 1.6s linear infinite; }
.hy-chat__msg--ai i:nth-of-type(2) { inline-size: 85%; }
.hy-chat__msg--ai i:nth-of-type(3) { inline-size: 60%; }
.hy-chat__who { display: inline-flex; align-items: center; gap: .3rem; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hy-muted); margin-block-end: .3rem; }
.hy-typing::after { content: "|"; color: var(--hy-primary); font-weight: 700; margin-inline-start: 1px; animation: hy-blink 1s steps(1) infinite; }
@media (max-width: 899px) {
	.hy-chat__msg p { min-block-size: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.hy-chat__msg--ai i:nth-of-type(3) { display: none; }
}

/* ---------- Compact news (rows) ---------- */
.hy-grid--compact.hy-grid--news { gap: .75rem; }
@media (min-width: 600px) { .hy-grid--compact.hy-grid--news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .hy-grid--compact.hy-grid--news { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.hy-news-card--row { flex-direction: row; align-items: center; gap: .9rem; padding: .65rem; }
.hy-grid--news .hy-news-card--row .hy-news-card__media, .hy-news-card--row .hy-news-card__media { flex: none; inline-size: 104px; block-size: 78px; aspect-ratio: auto; min-block-size: 0; border-radius: 10px; }
.hy-news-card--row .hy-thumb--placeholder .hy-icon { inline-size: 26px; block-size: 26px; }
.hy-grid--news .hy-news-card--row .hy-news-card__body, .hy-news-card--row .hy-news-card__body { padding: 0; min-inline-size: 0; }
.hy-news-card--row .hy-card__title { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hy-news-card--row .hy-meta { margin-block-start: .3rem; }
.hy-news-card--row .hy-card__labels { margin-block-end: .2rem; }

/* ---------- Compact tools (tagline only) ---------- */
.hy-tool-card--compact { padding: 1rem; }
.hy-tool-card--compact .hy-card__foot { padding-block-start: .85rem; }

/* Prompt previews: max 3 lines */
.hy-prompt-card__preview { -webkit-line-clamp: 3; }

/* ---------- Category tiles: single row ---------- */
.hy-tiles--row { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; padding-block-end: .25rem; margin-inline: -16px; padding-inline: 16px; }
.hy-newsletter { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hy-newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hy-tiles--row::-webkit-scrollbar { display: none; }
.hy-tiles--row > li { flex: 0 0 auto; scroll-snap-align: start; }
.hy-tiles--row .hy-tile { flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .85rem .6rem .75rem; min-inline-size: 98px; }
.hy-tiles--row .hy-tile__icon { inline-size: 38px; block-size: 38px; margin-block-end: .25rem; }
.hy-tiles--row .hy-tile__name { font-size: .875rem; white-space: nowrap; }
.hy-tiles--row .hy-tile__count { font-size: .75rem; white-space: nowrap; }
@media (min-width: 1100px) {
	.hy-tiles--row { overflow: visible; margin-inline: 0; padding-inline: 0; }
	.hy-tiles--row > li { flex: 1 1 0; min-inline-size: 0; }
	.hy-tiles--row .hy-tile { min-inline-size: 0; }
}

/* ---------- Newsletter: light variant ---------- */
.hy-newsletter { background: linear-gradient(135deg, #F5F5FF 0%, #F0FBF8 100%); color: var(--hy-text); border: 1px solid var(--hy-border); }
.hy-newsletter .hy-section-title { color: var(--hy-text); }
.hy-newsletter p { color: var(--hy-muted); }
.hy-newsletter__row { border: 1px solid var(--hy-border); }
.hy-consent { color: var(--hy-muted); }
.hy-consent a { color: var(--hy-primary-strong); }

/* ---------- Member CTA (above footer, every page) ---------- */
.hy-member-cta-wrap { margin-block: clamp(2.5rem, 6vw, 4rem) 0; }
.hy-member-cta { position: relative; overflow: hidden; display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--hy-r-lg); color: #E0E7FF; background: radial-gradient(50% 120% at 100% 0%, rgba(45, 212, 191, .35), transparent 60%), linear-gradient(120deg, #312E81 0%, #4338CA 45%, #6D28D9 100%); }
.hy-member-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.hy-member-cta > * { position: relative; }
.hy-member-cta .hy-eyebrow { color: #C7D2FE; }
.hy-member-cta__title { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 .35rem; text-wrap: balance; }
.hy-member-cta__text p:last-child { margin: 0; color: #E0E7FF; }
.hy-member-cta__art { inline-size: 64px; block-size: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.hy-member-cta__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 900px) { .hy-member-cta { grid-template-columns: auto 1fr auto; gap: 1.75rem; } }
.hy-btn--light { background: #fff; color: var(--hy-primary-strong); }
.hy-btn--light:hover { background: #EEF2FF; color: var(--hy-primary-strong); }
.hy-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hy-btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Live news body (full text hosted on HeyAI) ---------- */
.hy-article-body blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.1rem; border-inline-start: 3px solid var(--hy-primary); color: var(--hy-text); font-style: italic; }
.hy-article-body h3 { font-size: 1.25rem; margin-block: 1.75rem .5rem; }
.hy-source-credit { margin-block-start: 2rem; font-size: .875rem; color: var(--hy-muted); }
.hy-article-hero img { inline-size: 100%; block-size: auto; max-block-size: 520px; object-fit: cover; display: block; }

/* ---------- Legal & FAQ pages ---------- */
.hy-legal-note { font-size: .875rem; color: var(--hy-muted); background: var(--hy-surface); border-radius: var(--hy-r-sm); padding: .7rem 1rem; }
.wp-block-details { border: 1px solid var(--hy-border); border-radius: var(--hy-r); padding: 0; margin-block: .6rem; background: #fff; }
.wp-block-details summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; font-weight: 600; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; inset-inline-end: 1.1rem; inset-block-start: 50%; transform: translateY(-50%); font-size: 1.35rem; font-weight: 400; color: var(--hy-primary); line-height: 1; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details[open] summary { border-block-end: 1px solid var(--hy-border); }
.wp-block-details > :not(summary) { padding-inline: 1.1rem; color: var(--hy-muted); }
.wp-block-details > p:last-child { padding-block-end: .5rem; }

@media (prefers-reduced-motion: reduce) {
	.hy-float, .hy-chipcard, .hy-bubble, .hy-chat, .hy-art__card, .hy-art__bigicon .hy-icon, .hy-net__line, .hy-net__node, .hy-chat__msg--ai i { animation: none !important; }
	.hy-slide__text > * { transform: none; opacity: 1; }
}
