/* =====================================================================
   HVALABS — dark & premium theme
   1. Tokens   2. Reset   3. Layout   4. Header   5. Buttons
   6. Hero     7. Sections 8. App grid/cards 9. Single app landing
   10. Blog    11. Contact/forms 12. Footer 13. Utilities/responsive
   ===================================================================== */

/* 1. Tokens ---------------------------------------------------------- */
:root {
	--bg:        #06080f;
	--bg-2:      #090d18;
	--surface:   rgba(255,255,255,.035);
	--surface-2: rgba(255,255,255,.06);
	--border:    rgba(255,255,255,.09);
	--border-2:  rgba(255,255,255,.14);
	--text:      #eaf0fb;
	--muted:     #98a4bd;
	--muted-2:   #6d7791;

	--brand:     #35e0c0;
	--brand-2:   #5b8cff;
	--accent:    #5b8cff;          /* overridden per app via inline style */

	--grad-brand: linear-gradient(120deg, #35e0c0 0%, #5b8cff 60%, #8a7bff 100%);
	--grad-accent: linear-gradient(120deg, color-mix(in srgb, var(--accent) 78%, #35e0c0) 0%, var(--accent) 100%);

	--radius:    18px;
	--radius-sm: 12px;
	--radius-lg: 28px;
	--shadow:    0 24px 60px -24px rgba(0,0,0,.75);
	--glow:      0 0 0 1px var(--border), 0 30px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent);

	--container: 1200px;
	--gutter:    clamp(20px, 5vw, 48px);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-hero: clamp(2.4rem, 6vw, 4.6rem);
	--fs-h2:   clamp(1.9rem, 4vw, 3rem);
	--fs-h3:   clamp(1.25rem, 2.4vw, 1.6rem);
}

/* 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand-2) 40%, transparent); }

/* Ambient page glow */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 50% at 15% 0%, rgba(53,224,192,.10), transparent 60%),
		radial-gradient(55% 45% at 90% 5%, rgba(91,140,255,.14), transparent 60%),
		radial-gradient(70% 60% at 50% 100%, rgba(138,123,255,.08), transparent 65%);
	pointer-events: none;
}
body::after {
	content: ""; position: fixed; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 42px 42px;
	-webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
	        mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}

/* 3. Layout ---------------------------------------------------------- */
.hva-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.hva-section { padding-block: clamp(64px, 10vw, 130px); position: relative; }
.hva-section--tight { padding-block: clamp(40px, 6vw, 72px); }
.hva-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brand); margin-bottom: 18px;
}
.hva-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.hva-section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.hva-section__head h2 { font-size: var(--fs-h2); }
.hva-section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.hva-section__head--center { margin-inline: auto; text-align: center; }
.hva-gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Skip link */
.hva-skip { position: absolute; left: -9999px; top: 0; }
.hva-skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--surface-2); padding: 10px 16px; border-radius: 8px; }

/* 4. Header ---------------------------------------------------------- */
.hva-header {
	position: sticky; top: 0; z-index: 100;
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	background: color-mix(in srgb, var(--bg) 72%, transparent);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease, background .3s ease;
}
.hva-header.is-stuck { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.hva-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.hva-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.hva-brand img { height: 30px; width: auto; }
.custom-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.custom-logo { height: 34px !important; width: auto !important; max-width: 190px; object-fit: contain; }
.hva-brand__mark {
	width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
	background: var(--grad-brand); color: #04111a; font-weight: 800; font-size: .95rem;
}
.hva-nav { margin-left: auto; }
.hva-nav ul { display: flex; align-items: center; gap: 6px; }
.hva-nav a { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-size: .96rem; font-weight: 500; }
.hva-nav a:hover, .hva-nav .current-menu-item > a { color: var(--text); background: var(--surface); }
.hva-header__cta { display: inline-flex; align-items: center; gap: 14px; }
.hva-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; place-items: center; padding: 0; }
.hva-burger svg { width: 24px; height: 24px; }
.hva-burger__close { display: none; }
body.nav-open .hva-burger__menu { display: none; }
body.nav-open .hva-burger__close { display: block; }

/* 5. Buttons --------------------------------------------------------- */
.hva-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
	border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, background .25s ease; white-space: nowrap;
}
.hva-btn svg { width: 18px; height: 18px; }
.hva-btn--primary { background: var(--grad-accent); color: #04111a; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.hva-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px color-mix(in srgb, var(--accent) 85%, transparent); }
.hva-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.hva-btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.hva-btn--sm { padding: 10px 18px; font-size: .9rem; }

/* App Store badge */
.hva-appstore-badge {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 11px 22px 11px 18px; border-radius: 14px;
	background: #fff; color: #000; font-weight: 500; transition: transform .15s ease, box-shadow .25s ease;
	box-shadow: 0 12px 30px -14px rgba(0,0,0,.7);
}
.hva-appstore-badge:hover { transform: translateY(-2px); }
.hva-appstore-badge svg { color: #000; }
.hva-appstore-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.hva-appstore-badge small { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.hva-appstore-badge strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }

/* 6. Hero ------------------------------------------------------------ */
.hva-hero { position: relative; padding-top: clamp(60px, 9vw, 110px); padding-bottom: clamp(40px, 7vw, 90px); overflow: hidden; }
.hva-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hva-hero__inner > * { min-width: 0; }
.hva-hero__badge {
	display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--border); font-size: .84rem; color: var(--muted); margin-bottom: 26px;
}
.hva-hero__badge b { color: var(--text); font-weight: 600; }
.hva-hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.hva-hero h1 { font-size: var(--fs-hero); margin-bottom: 22px; letter-spacing: -.03em; }
.hva-hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 44ch; margin-bottom: 34px; }
.hva-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hva-hero__stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hva-stat b { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }
.hva-stat span { color: var(--muted); font-size: .9rem; }

/* Hero phone showcase */
.hva-hero__art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hva-phones { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1/1; }
.hva-phone {
	position: absolute; width: 46%; border-radius: 30px; overflow: hidden;
	border: 6px solid #10151f; background: #10151f;
	box-shadow: 0 40px 80px -30px rgba(0,0,0,.85);
}
.hva-phone img { display: block; width: 100%; }
.hva-phone--1 { left: 6%;  top: 12%; transform: rotate(-8deg); z-index: 2; }
.hva-phone--2 { left: 30%; top: 0;   transform: rotate(0deg);  z-index: 3; }
.hva-phone--3 { right: 4%; top: 14%; transform: rotate(8deg);  z-index: 1; }
.hva-hero__glow { position: absolute; inset: -20% -10%; z-index: -1; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 62%); filter: blur(20px); }

/* Marquee of app icons */
.hva-marquee { margin-top: clamp(40px, 6vw, 70px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); overflow: hidden; }
.hva-marquee__track { display: flex; gap: 20px; width: max-content; animation: hva-scroll 40s linear infinite; }
.hva-marquee:hover .hva-marquee__track { animation-play-state: paused; }
.hva-marquee__item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.hva-marquee__item img { width: 40px; height: 40px; border-radius: 10px; }
.hva-marquee__item b { font-size: .95rem; white-space: nowrap; }
@keyframes hva-scroll { to { transform: translateX(-50%); } }

/* 7. Sections (values / features) ------------------------------------ */
.hva-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.hva-value {
	padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
	transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.hva-value:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.hva-value__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: var(--brand); }
.hva-value__icon svg { width: 26px; height: 26px; }
.hva-value h3 { font-size: 1.2rem; }
.hva-value p { color: var(--muted); margin: 0; font-size: .98rem; }

.hva-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hva-split__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* 8. App grid + cards ------------------------------------------------ */
.hva-apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.hva-app-card {
	position: relative; border-radius: var(--radius); overflow: hidden;
	background: var(--surface); border: 1px solid var(--border);
	transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hva-app-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--accent) 60%, black); }
.hva-app-card__link { display: block; height: 100%; }
.hva-app-card__shot { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), var(--bg-2)); }
.hva-app-card__shot img { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); width: 58%; border-radius: 20px 20px 0 0; box-shadow: 0 20px 40px -18px rgba(0,0,0,.8); }
.hva-app-card__body { display: flex; align-items: center; gap: 15px; padding: 18px 20px 6px; }
.hva-app-card__icon { width: 60px; height: 60px; border-radius: 15px; flex-shrink: 0; box-shadow: 0 6px 18px -6px rgba(0,0,0,.6); }
.hva-app-card__text { min-width: 0; flex: 1; }
.hva-app-card__title { font-size: 1.14rem; margin: 0 0 2px; }
.hva-app-card__slogan { color: var(--muted); font-size: .9rem; margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hva-app-card__cta { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex-shrink: 0; transition: transform .25s ease, background .25s ease; }
.hva-app-card:hover .hva-app-card__cta { transform: translateX(3px); background: color-mix(in srgb, var(--accent) 24%, transparent); }
.hva-app-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px 18px; }
.hva-app-card__cats { color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.hva-app-card__cats a { color: inherit; }
.hva-pill { font-size: .74rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 82%, white); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

/* filter bar */
.hva-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hva-filter button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 500; cursor: pointer; transition: .2s; }
.hva-filter button:hover { color: var(--text); }
.hva-filter button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.hva-app-card.is-hidden { display: none; }

/* 9. Single app landing --------------------------------------------- */
.hva-app-hero { position: relative; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(30px, 4vw, 50px); overflow: hidden; }
.hva-app-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hva-app-hero__inner > * { min-width: 0; }
.hva-app-hero__copy { position: relative; z-index: 2; }
.hva-app-hero__art { position: relative; z-index: 1; }
.hva-app-hero h1 { overflow-wrap: anywhere; }
.hva-app-hero__head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.hva-app-hero__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--glow); flex-shrink: 0; }
.hva-app-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0 0 4px; }
.hva-app-hero__slogan { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); margin: 0 0 30px; max-width: 40ch; }
.hva-app-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hva-app-hero__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }

/* device screenshot row */
.hva-shots { position: relative; display: flex; gap: 18px; justify-content: center; max-width: 100%; }
.hva-shots__frame {
	flex: 1 1 0; min-width: 0; max-width: 200px; border-radius: 30px; overflow: hidden;
	border: 6px solid #0e131d; background: #0e131d; box-shadow: 0 40px 80px -34px rgba(0,0,0,.85);
}
.hva-shots__frame:nth-child(even) { transform: translateY(-22px); }
.hva-app-hero__glow { position: absolute; inset: -10% 0; z-index: -1; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 60%); filter: blur(30px); }

/* gallery strip */
.hva-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 24vw, 270px); gap: 22px; overflow-x: auto; padding-bottom: 18px; scroll-snap-type: x mandatory; }
.hva-gallery::-webkit-scrollbar { height: 8px; }
.hva-gallery::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.hva-gallery figure { margin: 0; scroll-snap-align: center; border-radius: 26px; overflow: hidden; border: 6px solid #0e131d; background: #0e131d; box-shadow: var(--shadow); }

/* feature checklist */
.hva-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 34px; }
.hva-features li { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.hva-features li .hva-svg { flex-shrink: 0; width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.hva-features li span { color: var(--muted); }

/* long description prose */
.hva-prose { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.hva-prose h2, .hva-prose h3 { color: var(--text); margin-top: 1.6em; }
.hva-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.hva-prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.2em; }
.hva-prose li { margin-bottom: .4em; }

/* download CTA block with QR */
.hva-download {
	display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center;
	padding: clamp(30px, 4vw, 50px); border-radius: var(--radius-lg);
	background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 20%, var(--surface)), var(--surface));
	border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
}
.hva-download h2 { font-size: var(--fs-h3); margin-bottom: 8px; }
.hva-download p { color: var(--muted); margin-bottom: 22px; }
.hva-download__qr { text-align: center; }
.hva-download__qr img { width: 140px; height: 140px; border-radius: 16px; background: #fff; padding: 10px; }
.hva-download__qr span { display: block; margin-top: 10px; font-size: .8rem; color: var(--muted); }

/* related apps */
.hva-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }

/* 10. Blog ----------------------------------------------------------- */
.hva-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.hva-post-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s ease; }
.hva-post-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.hva-post-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.hva-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hva-post-card:hover .hva-post-card__thumb img { transform: scale(1.05); }
.hva-post-card__body { padding: 22px 24px 26px; }
.hva-post-card__meta { font-size: .8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.hva-post-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.hva-post-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.hva-article { max-width: 760px; margin-inline: auto; }
.hva-article__header { text-align: center; margin-bottom: 40px; }
.hva-article__header h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hva-article__meta { color: var(--muted); font-size: .92rem; }
.hva-article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; border: 1px solid var(--border); line-height: 0; font-size: 0; }
.hva-article__cover img { display: block; width: 100%; height: auto; }
.hva-content { color: var(--text); font-size: 1.08rem; line-height: 1.75; }
.hva-content > * { margin-bottom: 1.3em; }
.hva-content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.hva-content h3 { font-size: 1.35rem; margin-top: 1.5em; }
.hva-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.hva-content img { border-radius: var(--radius); }
.hva-content blockquote { border-left: 3px solid var(--accent); padding-left: 22px; margin-inline: 0; color: var(--muted); font-style: italic; }
.hva-content ul { list-style: disc; padding-left: 1.3em; } .hva-content ol { list-style: decimal; padding-left: 1.3em; }
.hva-content pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; }
.hva-content code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* pagination */
.hva-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.hva-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; }
.hva-pagination .page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.hva-pagination a.page-numbers:hover { color: var(--text); border-color: var(--border-2); }

/* 11. Forms / contact ------------------------------------------------ */
.hva-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 60px); }
.hva-contact__info li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.hva-contact__info .hva-svg { color: var(--brand); flex-shrink: 0; }
.hva-contact__info b { display: block; }
.hva-contact__info span { color: var(--muted); font-size: .95rem; }
input, textarea, select { font-family: inherit; font-size: 1rem; width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s ease, background .2s ease; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: var(--surface-2); outline: none; }
label { font-size: .9rem; color: var(--muted); display: block; margin-bottom: 8px; }
.hva-field-row { margin-bottom: 18px; }

/* 12. Footer --------------------------------------------------------- */
.hva-footer { border-top: 1px solid var(--border); margin-top: clamp(60px, 8vw, 110px); padding-block: clamp(50px, 7vw, 80px) 40px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-2) 6%, transparent)); }
.hva-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
.hva-footer__brand p { color: var(--muted); max-width: 34ch; margin-top: 16px; font-size: .95rem; }
.hva-footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; }
.hva-footer__col li { margin-bottom: 10px; }
.hva-footer__col a { color: var(--muted); font-size: .95rem; }
.hva-footer__col a:hover { color: var(--text); }
.hva-socials { display: flex; gap: 10px; margin-top: 20px; }
.hva-socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: .2s; }
.hva-socials a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.hva-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .88rem; flex-wrap: wrap; }
.hva-footer__bottom nav { display: flex; gap: 20px; }

/* 13. Utilities + responsive ---------------------------------------- */
.hva-cta-band {
	text-align: center; padding: clamp(40px, 6vw, 72px); border-radius: var(--radius-lg);
	position: relative; overflow: hidden; color: var(--text);
	background:
		radial-gradient(120% 160% at 50% -20%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 60%),
		linear-gradient(160deg, #101a30, #0b1120);
	border: 1px solid var(--border-2);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px -40px rgba(0,0,0,.8);
}
.hva-cta-band::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background: radial-gradient(60% 80% at 80% 120%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
}
.hva-cta-band > * { position: relative; z-index: 1; }
.hva-cta-band h2 { font-size: var(--fs-h2); color: var(--text); }
.hva-cta-band p { color: var(--muted); max-width: 46ch; margin-inline: auto; margin-bottom: 28px; }
.hva-cta-band .hva-btn--primary { background: var(--grad-brand); color: #04111a; }

.hva-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hva-js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hva-js .reveal { opacity: 1; transform: none; } .hva-marquee__track { animation: none; } * { scroll-behavior: auto !important; } }

@media (max-width: 960px) {
	.hva-hero__inner, .hva-app-hero__inner, .hva-split, .hva-contact { grid-template-columns: 1fr; }
	.hva-app-hero__inner { text-align: left; }
	.hva-hero__art { order: -1; min-height: 340px; }
	.hva-footer__top { grid-template-columns: 1fr 1fr; }
	.hva-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.hva-nav, .hva-header__cta .hva-btn { display: none; }
	.hva-header__cta { margin-left: auto; }
	.hva-burger { display: grid; place-items: center; }
	.hva-nav.is-open {
		display: block; position: fixed; inset: 72px 0 auto; background: color-mix(in srgb, var(--bg) 97%, transparent);
		backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
		border-bottom: 1px solid var(--border); padding: 14px var(--gutter) 22px;
		box-shadow: 0 24px 40px -24px rgba(0,0,0,.8);
	}
	.hva-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
	.hva-nav.is-open li { border-bottom: 1px solid var(--border); }
	.hva-nav.is-open li:last-child { border-bottom: none; }
	.hva-nav.is-open a {
		display: block; margin: 6px 0; padding: 14px 16px; font-size: 1.05rem;
		border-radius: 12px; line-height: 1.2;
	}
	.hva-nav.is-open a:hover,
	.hva-nav.is-open .current-menu-item > a { background: var(--surface-2); color: var(--text); }
	.hva-hero__stats { gap: 24px; }
	.hva-download { grid-template-columns: 1fr; text-align: center; }
	.hva-download__qr { display: none; }
	.hva-footer__top { grid-template-columns: 1fr; }
	.hva-footer__bottom { justify-content: center; text-align: center; }
}

/* 14. Contact aside, form, comments, post nav (added) --------------- */
.hva-contact__aside { display: flex; flex-direction: column; gap: 30px; }
.hva-contact__info b { display: block; }
.hva-contact__info a { color: var(--muted); }
.hva-contact__info a:hover { color: var(--text); }
.hva-contact__socials b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }

/* Themed Kadence / native form inside contact */
.hva-contact__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.hva-contact__form .kadence-blocks-field.verify,
.hva-contact__form .kb-field-desk-only { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden; }
.hva-contact__form .kadence-blocks-form-field,
.hva-contact__form .kb-form-field,
.hva-contact__form p { margin-bottom: 18px; }
.hva-contact__form label { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.hva-contact__form input[type=text],
.hva-contact__form input[type=email],
.hva-contact__form input[type=tel],
.hva-contact__form input[type=url],
.hva-contact__form textarea,
.hva-contact__form select {
	width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
	background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
}
.hva-contact__form input:focus,
.hva-contact__form textarea:focus { border-color: var(--accent); background: var(--surface-2); outline: none; }
.hva-contact__form input::placeholder,
.hva-contact__form textarea::placeholder { color: var(--muted-2); }
.hva-contact__form button,
.hva-contact__form .kb-forms-submit,
.hva-contact__form input[type=submit] {
	appearance: none; cursor: pointer; border: none; border-radius: 999px;
	padding: 14px 28px; font-weight: 600; font-size: 1rem;
	background: var(--grad-brand); color: #04111a;
}
.hva-contact__form button:hover { transform: translateY(-2px); }

/* Comments */
.hva-comments { max-width: 760px; margin-inline: auto; }
.hva-comments__title { font-size: 1.5rem; margin-bottom: 24px; }
.hva-comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.hva-comment-list .comment-body { padding: 20px 0; border-top: 1px solid var(--border); }
.hva-comment-list .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hva-comment-list .comment-author .avatar { border-radius: 50%; }
.hva-comment-list .fn { font-weight: 600; }
.hva-comment-list .comment-metadata,
.hva-comment-list .says { color: var(--muted-2); font-size: .85rem; }
.hva-comment-list .children { list-style: none; margin-left: 34px; }
.hva-comment-form { display: flex; flex-direction: column; gap: 16px; }
.hva-comment-form input[type=text],
.hva-comment-form input[type=email],
.hva-comment-form input[type=url],
.hva-comment-form textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.hva-comment-form .submit { align-self: flex-start; background: var(--grad-brand); color: #04111a; border: none; border-radius: 999px; padding: 13px 26px; font-weight: 600; cursor: pointer; }

/* Post navigation (prev / next) */
.hva-postnav { max-width: 760px; margin: 60px auto 0; display: flex; justify-content: space-between; gap: 16px; }
.hva-postnav__link { flex: 1 1 0; min-width: 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.hva-postnav__link:hover { border-color: var(--border-2); transform: translateY(-3px); }
.hva-postnav__link--next { text-align: right; }
.hva-postnav__link span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 6px; }
.hva-postnav__link b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 620px) { .hva-postnav { flex-direction: column; } .hva-postnav__link--next { text-align: left; } }

/* 15. Follow-up tweaks --------------------------------------------- */
/* App hero QR (compact, next to the App Store badge) */
.hva-app-hero__qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.hva-app-hero__qr img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 6px; }
.hva-app-hero__qr span { font-size: .72rem; color: var(--muted); }
.hva-app-hero__actions { align-items: center; }

/* Footer logo (real wordmark instead of the H mark) */
.hva-footer__logo .custom-logo { height: 34px; width: auto; max-width: 190px; }
.hva-footer__logo .custom-logo-link { display: inline-flex; }

/* Blog archive: hide excerpt, give post titles more breathing room */
.hva-posts--compact .hva-post-card p { display: none; }
.hva-posts--compact .hva-post-card__body { padding-bottom: 24px; }
.hva-post-card h3 { line-height: 1.32; }

/* 16. Single post: TOC sidebar layout ------------------------------- */
.hva-single { max-width: 760px; margin-inline: auto; }
.hva-single--toc { max-width: 1080px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.hva-single__main { min-width: 0; }
.hva-single--toc .hva-single__main { max-width: 760px; }
.hva-article__header { max-width: 760px; margin-inline: auto; }
.hva-article__header--left { text-align: left; max-width: 1080px; }
.hva-article__header--left .hva-eyebrow { justify-content: flex-start; }
.hva-article__cover { max-width: 1080px; margin-inline: auto; }

.hva-single__side { position: sticky; top: 96px; }
.hva-toc__title { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 14px; }
.hva-toc ul { border-left: 1px solid var(--border); }
.hva-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .9rem; line-height: 1.35; transition: color .2s ease, border-color .2s ease; }
.hva-toc a:hover { color: var(--text); }
.hva-toc__item--h3 a { padding-left: 30px; font-size: .84rem; }
.hva-toc__item.is-active > a { color: var(--brand); border-left-color: var(--brand); }
.hva-content h2, .hva-content h3 { scroll-margin-top: 96px; }

@media (max-width: 960px) {
	.hva-single--toc { grid-template-columns: 1fr; gap: 0; }
	.hva-single__side { position: static; margin-bottom: 28px; }
	.hva-single--toc .hva-single__main { max-width: none; }
	.hva-toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; background: var(--surface); }
	.hva-toc ul { border-left: none; }
	.hva-toc a { padding-left: 0; border-left: none; }
	.hva-toc__item--h3 a { padding-left: 14px; }
}

/* 17. Native contact form ------------------------------------------- */
.hva-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hva-form button[type="submit"] { margin-top: 6px; }
.hva-formnote { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .95rem; line-height: 1.4; }
.hva-formnote .hva-svg { width: 22px; height: 22px; flex-shrink: 0; }
.hva-formnote--ok { background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); color: color-mix(in srgb, var(--brand) 88%, white); }
.hva-formnote--ok .hva-svg { color: var(--brand); }
.hva-formnote--err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.42); color: #fca5a5; }

/* 18. Contact inquiry-type selector + conditional fields ------------ */
.hva-segment { display: flex; gap: 8px; flex-wrap: wrap; }
.hva-segment__opt { position: relative; }
.hva-segment__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.hva-segment__opt span { display: block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .92rem; font-weight: 500; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.hva-segment__opt:hover span { color: var(--text); }
.hva-segment__opt.is-active span,
.hva-segment__opt input:checked + span { background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
.hva-segment__opt input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* Conditional rows: hidden by default only when JS is available (no-JS shows all). */
.hva-js .hva-cond { display: none; }
.hva-js .hva-cond.is-shown { display: block; }

/* 19. Contact select: match the text inputs (custom chevron, dark scheme) */
.hva-contact__form select {
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	color-scheme: dark;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a4bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 46px;
	cursor: pointer;
	text-overflow: ellipsis;
}
.hva-contact__form select:focus { border-color: var(--accent); background-color: var(--surface-2); }
.hva-contact__form input,
.hva-contact__form textarea { color-scheme: dark; }

/* Turnstile widget spacing */
.hva-turnstile { margin-bottom: 10px; }
