/* ==========================================================================
   HeyAI v3: navy-led theme, brand logo, clearly separated homepage bands.
   Loaded last; overrides earlier component styles where needed.
   ========================================================================== */
:root {
	--hy-navy-950: #070E26;
	--hy-navy-900: #0B1533;
	--hy-navy-800: #12204A;
	--hy-navy-700: #1B2D63;
	--hy-amber: #FFB547;
	--hy-on-navy: #FFFFFF;
	--hy-on-navy-muted: #B9C3E3;
	--hy-brand-grad: linear-gradient(120deg, #FFB547 0%, #FF6B7A 50%, #7C5CFF 100%);
}

/* ---------- Logo ---------- */
.hy-logo-link { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none !important; color: inherit; }
.hy-logo-mark { flex: none; display: block; filter: drop-shadow(0 4px 10px rgba(255, 107, 122, .35)); transition: transform .2s ease; }
.hy-logo-link:hover .hy-logo-mark { transform: rotate(-6deg) scale(1.04); }
.hy-wordmark { font-weight: 800; font-size: 1.5rem; letter-spacing: -.045em; line-height: 1; color: var(--hy-on-navy); }
.hy-wordmark span { background: var(--hy-brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-inline-start: .02em; }

/* ---------- Header (navy) ---------- */
.hy-header { background: rgba(11, 21, 51, .97); border-block-end: 1px solid rgba(255, 255, 255, .08); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.hy-header .wp-block-navigation a, .hy-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--hy-on-navy-muted); }
.hy-header .wp-block-navigation a:hover { color: #fff; }
.hy-header .wp-block-navigation .current-menu-item > a, .hy-header .wp-block-navigation a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--hy-amber); }
.hy-header .wp-block-navigation__responsive-container-open, .hy-header .wp-block-navigation__responsive-container-close { color: #fff; }
.hy-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--hy-navy-900) !important; color: #fff !important; }
.hy-header .wp-block-navigation__responsive-container.is-menu-open a { color: #fff !important; font-size: 1.25rem; }
.hy-header .wp-block-search__button { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.hy-header .wp-block-search__button svg { fill: currentColor; }
.hy-header .wp-block-search__input { background: #fff; }
.hy-account .hy-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hy-account .hy-btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Buttons on dark surfaces ---------- */
.hy-band--hero .hy-btn--ghost, .hy-band--navy .hy-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hy-band--hero .hy-btn--ghost:hover, .hy-band--navy .hy-btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Homepage bands ---------- */
.hy-home { padding: 0; }
.hy-home > .hy-band { margin-block: 0 !important; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hy-band > .hy-section { margin-block: 0; }
.hy-band > .hy-section + .hy-section { margin-block-start: clamp(2.25rem, 5vw, 3.25rem); }
.hy-band--white { background: #fff; }
.hy-band--soft { background: var(--wp--preset--color--surface); border-block: 1px solid var(--wp--preset--color--border); }
.hy-band--navy { background: radial-gradient(70% 120% at 100% 0%, rgba(79, 107, 255, .22), transparent 60%), var(--hy-navy-900); color: var(--hy-on-navy); }
.hy-band--navy .hy-section-title { color: #fff; }
.hy-band--navy .hy-eyebrow { color: var(--hy-amber); }
.hy-band--navy .hy-section-head .hy-link-arrow { color: #C7D0FF; }
.hy-band--navy .hy-card, .hy-band--navy .hy-tile { border-color: transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.hy-band--cta { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.hy-band--cta .hy-member-cta { margin: 0; }
.hy-section-head { padding-block-end: .25rem; }
.hy-eyebrow { color: var(--wp--preset--color--primary-strong); }

/* Hero band: dark navy with glow; the slider sits on it without its own border */
.hy-band--hero { background: radial-gradient(60% 90% at 85% 10%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(255, 181, 71, .16), transparent 60%), var(--hy-navy-950); padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.75rem, 4vw, 2.5rem) !important; }
.hy-band--hero .hy-banner { margin: 0; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }
.hy-band--hero .hy-slide { background: transparent; }
.hy-band--hero .hy-slide__title { color: #fff; }
.hy-band--hero .hy-slide__lead { color: var(--hy-on-navy-muted); }
.hy-band--hero .hy-slide .hy-eyebrow { color: var(--hy-amber); }
.hy-band--hero .hy-banner__dot span { background: rgba(255, 255, 255, .3); }
.hy-band--hero .hy-banner__dot.is-active span { background: var(--hy-amber); }
.hy-band--hero .hy-banner__pause-icon { border-inline-color: rgba(255, 255, 255, .6); }
.hy-band--hero .hy-banner.is-paused .hy-banner__pause-icon { border-inline-start-color: rgba(255, 255, 255, .75); }
.hy-band--hero .hy-net__node { fill: var(--hy-navy-900); stroke: #8EA2FF; }
.hy-band--hero .hy-net__node.is-hub { fill: var(--hy-amber); stroke: var(--hy-navy-900); }
.hy-band--hero .hy-chipcard { background: rgba(255, 255, 255, .96); }
.hy-chipcard--d { inset-block-start: 66%; inset-inline-end: 2%; --d: 4.5s; }
.hy-chipcard--d .hy-chipcard__icon { background: #B45309; }
.hy-chipcard--c { inset-inline-start: 6%; }

/* News art (static headline cards) */
.hy-art--news { display: grid; place-items: center; }
.hy-newsart__badge { position: absolute; inset-block-start: 2%; inset-inline-end: 4%; display: inline-flex; gap: .4rem; align-items: center; font-size: .8125rem; font-weight: 700; color: var(--hy-navy-900); background: var(--hy-amber); border-radius: 999px; padding: .35rem .75rem; z-index: 2; }
.hy-newsart__card { position: absolute; display: flex; gap: .85rem; align-items: center; inline-size: min(84%, 380px); padding: .8rem; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); animation: hy-float 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hy-newsart__card--1 { inset-block-start: 12%; inset-inline-start: 4%; }
.hy-newsart__card--2 { inset-block-start: 40%; inset-inline-start: 16%; }
.hy-newsart__card--3 { inset-block-start: 68%; inset-inline-start: 6%; }
.hy-newsart__thumb { flex: none; inline-size: 72px; block-size: 56px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tone-a, #2563EB), var(--tone-b, #5B5BF0)); }
.hy-newsart__lines { flex: 1; display: grid; gap: .4rem; }
.hy-newsart__lines em { font-style: normal; font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hy-news); }
.hy-newsart__lines i, .hy-newsart__lines b { display: block; block-size: 8px; border-radius: 99px; background: #E4E8F3; }
.hy-newsart__lines i:nth-of-type(2) { inline-size: 80%; }
.hy-newsart__lines b { inline-size: 40%; background: #EEF1F8; }

/* Tools art: category bubbles + pricing chips */
.hy-bubble__icon { inline-size: 40px; block-size: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tile, var(--hy-primary)); background: color-mix(in srgb, var(--tile, var(--hy-primary)) 13%, #fff); }
.hy-band--hero .hy-bubble { border-color: transparent; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.hy-pricechips { position: absolute; inset-block-end: 0; inset-inline-start: 50%; transform: translateX(-50%); display: flex; gap: .4rem; padding: .45rem .6rem; background: rgba(255, 255, 255, .95); border-radius: 999px; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
@media (max-width: 899px) { .hy-bubble__icon { inline-size: 32px; block-size: 32px; } .hy-pricechips { display: none; } }

/* Prompt + academy art on navy */
.hy-band--hero .hy-chat { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border-color: transparent; }
.hy-band--hero .hy-stack__card { border-color: transparent; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.hy-band--hero .hy-stack__cap { color: rgba(255, 181, 71, .25); }

/* ---------- Footer (deep navy) ---------- */
.hy-footer { background: var(--hy-navy-950); color: var(--hy-on-navy-muted); border-block-start: 0; }
.hy-footer h2 { color: #8EA2FF; }
.hy-footer a { color: #fff; }
.hy-footer a:hover { color: var(--hy-amber); }
.hy-footer__claim { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 1rem 0 .35rem; }
.hy-footer__fine { color: var(--hy-on-navy-muted); }
.hy-footer__cta { display: inline-flex; gap: .4rem; margin-block-start: .9rem; padding: .6rem 1rem; border-radius: 999px; background: var(--hy-amber); color: var(--hy-navy-950) !important; font-weight: 700; text-decoration: none !important; }
.hy-footer__cta:hover { background: #FFC76E; color: var(--hy-navy-950) !important; }
.hy-footer__legal { margin-block-start: 2.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.hy-footer__legal p { margin: 0 0 .35rem; color: var(--hy-on-navy-muted); }
.hy-footer__legal p:first-child { color: #fff; font-weight: 600; }

/* Inner pages: breathing room before the footer */
main.wp-block-group:not(.hy-home) { padding-block-end: clamp(2.5rem, 6vw, 4.5rem); }

/* Member CTA tuned to the navy palette */
.hy-member-cta { background: radial-gradient(50% 120% at 100% 0%, rgba(255, 181, 71, .30), transparent 60%), linear-gradient(120deg, var(--hy-navy-900) 0%, var(--hy-navy-700) 55%, #3B2A8C 100%); }

/* ---------- Spacing fixes (v3 QA) ---------- */
/* No gaps between header / main / footer: bands touch each other and the chrome. */
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Old v1 band rule added extra padding to the first/last section: bands own the spacing now. */
.hy-home .hy-band > .hy-section,
.hy-home .hy-band > .hy-section:first-child,
.hy-home .hy-band > .hy-section:last-child { padding-block: 0; margin-block-start: 0; margin-block-end: 0; }
.hy-home .hy-band > .hy-section + .hy-section { margin-block-start: clamp(2rem, 4.5vw, 3rem); }
.hy-home > .hy-band { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
/* Academy: the band is the section — no second frame inside it. */
.hy-band .hy-academy-teaser { background: none; border: 0; padding: 0; border-radius: 0; }
.hy-band--soft .hy-academy-teaser .hy-course-card { background: #fff; }

/* Full-width bands keep the 16px side gutter on small screens. */
main.hy-home > .wp-block-group.hy-band.alignfull { padding-inline: 16px !important; margin-inline: 0 !important; max-width: none; }

/* ==========================================================================
   v4: compact, seamless hero (no buttons), tighter Trending, no header search
   ========================================================================== */
/* Seamless header → hero: same navy, no light borders, no card frame around the slider */
.hy-header { background: var(--hy-navy-950); border-block-end: 1px solid rgba(255, 255, 255, .06); }
.hy-home > .hy-band--hero, .hy-home > .hy-band--navy { border-block: 0 !important; }
.hy-home > .hy-band--hero { padding-block: 0 !important; }
.hy-band--hero .hy-banner { border: 0; background: none; border-radius: 0; }
.hy-band--hero .hy-slide { padding: 1.5rem 0 3rem; gap: 1rem; }
.hy-band--hero .hy-slide__art { block-size: 180px; }
.hy-band--hero .hy-slide__title { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); margin-block-end: .6rem; }
.hy-band--hero .hy-slide__lead { margin-block-end: 0; font-size: clamp(.98rem, .94rem + .25vw, 1.0625rem); }
.hy-band--hero .hy-banner__nav { inset-inline-start: 0; inset-block-end: .9rem; }
@media (min-width: 900px) {
	.hy-band--hero .hy-slide { min-block-size: 320px; padding: 2rem 0 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
	.hy-band--hero .hy-slide__art { block-size: 270px; }
	.hy-band--hero .hy-banner__nav { inset-block-end: 1.1rem; }
}
/* Art scaled to the shorter banner */
.hy-band--hero .hy-chipcard { padding: .45rem .7rem .45rem .45rem; font-size: .8125rem; }
.hy-band--hero .hy-chipcard__icon { inline-size: 28px; block-size: 28px; }
.hy-band--hero .hy-newsart__card { padding: .6rem; inline-size: min(80%, 340px); }
.hy-band--hero .hy-newsart__thumb { inline-size: 58px; block-size: 44px; }
.hy-band--hero .hy-bubble { padding: .5rem .5rem .4rem; min-inline-size: 74px; }
.hy-band--hero .hy-bubble__icon { inline-size: 34px; block-size: 34px; }
.hy-band--hero .hy-chat { inline-size: min(100%, 400px); }
.hy-band--hero .hy-chat__msg { margin: .55rem .75rem; padding: .6rem .75rem; font-size: .8125rem; }
.hy-band--hero .hy-chat__msg p { min-block-size: 0; }
.hy-band--hero .hy-stack__card { padding: .6rem .8rem; inline-size: min(74%, 300px); }
.hy-band--hero .hy-stack__icon { inline-size: 34px; block-size: 34px; }

/* Trending: smaller footprint */
.hy-trending__grid { gap: 1rem; }
@media (min-width: 960px) { .hy-trending__grid { grid-template-columns: 1.35fr 1fr; } }
.hy-trending__main .hy-news-card--hero .hy-news-card__media { aspect-ratio: auto !important; inline-size: 100%; block-size: clamp(190px, 20vw, 270px); min-block-size: 0 !important; }
.hy-trending__main .hy-news-card--hero .hy-news-card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hy-trending__main .hy-news-card--hero .hy-news-card__body { padding: .9rem 1.1rem 1rem; }
.hy-trending__main .hy-news-card--hero .hy-card__title { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); }
.hy-trending__main .hy-news-card--hero .hy-card__text { -webkit-line-clamp: 2; font-size: .9375rem; }
.hy-trending__list { gap: .6rem; }
.hy-trending__list li { padding-block-end: .6rem; }
.hy-trending__list .hy-news-card--compact .hy-news-card__media { inline-size: 84px; }
.hy-trending__list .hy-card__title { font-size: .9375rem; }
.hy-trending__num { font-size: 1.25rem; }

/* Footer v4: sections + legal links only */
.hy-footer__top { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 900px) { .hy-footer__top { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.hy-footer__nav { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .hy-footer__nav { grid-template-columns: 1fr 1fr; } }
.hy-footer__nav ul { display: grid; gap: .55rem; }
.hy-footer__nav a { font-weight: 600; }

/* ---------- Guest-only UI (hide once the subscription module marks the visitor as a member) ----------
   Hooks: .hy-guest-only (shared) · header: .hy-header-auth, .hy-header-auth__login, .hy-header-auth__signup
          homepage CTA: .hy-membership-band (band), .hy-membership-cta (banner), .hy-membership-cta__join, .hy-membership-cta__login
   PHP: add_filter( 'heyai_is_member', ... ) → elements are not rendered + <body class="heyai-is-member">. */
body.heyai-is-member .hy-guest-only { display: none !important; }
.hy-membership-band:not(:has(.hy-membership-cta)) { display: none; }

/* Header v5: logo + Log in / Sign up only (no navigation) — buttons visible at every width */
.hy-header .hy-account { display: inline-flex; }
@media (max-width: 480px) { .hy-header .hy-account .hy-btn { padding-inline: .8rem; } }

/* ---------- Language switcher (header, multilingual sites only) ---------- */
.hy-lang ul { display: flex; gap: 2px; margin: 0; padding: 2px; list-style: none; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.hy-lang a { display: block; padding: .3rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2; color: var(--hy-on-navy-muted); text-decoration: none; }
.hy-lang a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hy-lang a[aria-current="true"] { color: var(--hy-navy-900); background: #fff; }
.hy-lang a:focus-visible { outline: 2px solid var(--hy-amber); outline-offset: 2px; }
