/* =============================================================================
   Kavi website design system
   Matches the Kavi web app (listen.kavi.audio): near-black canvas, lavender accent,
   Anek Telugu, rounded cards and pill buttons.

   Accessibility targets: WCAG 2.2 Level AA.
   - Text contrast >= 4.5:1 (large text >= 3:1) on --bg; every text colour below is
     checked against #060508 (ratios noted).
   - UI components and focus indicators >= 3:1 (1.4.11).
   - Visible focus everywhere (2.4.7) that sticky UI never fully covers (2.4.11):
     scroll-padding-top matches the header height.
   - Pointer targets >= 24x24 CSS px (2.5.8); buttons and nav links are 44 px tall.
   - Reflows to 320 CSS px without horizontal scrolling (1.4.10); no fixed widths.
   - Survives text-spacing overrides (1.4.12): no fixed heights on text containers.
   - Honours prefers-reduced-motion.
   ============================================================================= */

/* Self-hosted Anek Telugu. The stock font reserves a deep descender area for Telugu, which lifts
   Latin text ~0.17em above centre in every button, chip and icon row. The AnekTeluguKavi-*.ttf
   files are the same fonts with only their vertical metrics changed (ascent 1.09em, descent
   0.41em; SIL OFL, see /fonts/AnekTelugu-OFL.txt), so text centres in every browser. CSS
   ascent-override is not used because Safari ignores it. */
@font-face { font-family: 'Ms Madi'; src: url('/fonts/MsMadi-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; } /* SIL OFL, see /fonts/MsMadi-OFL.txt */
@font-face { font-family: 'Anek Telugu'; src: url('/fonts/AnekTeluguKavi-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Anek Telugu'; src: url('/fonts/AnekTeluguKavi-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Anek Telugu'; src: url('/fonts/AnekTeluguKavi-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Anek Telugu'; src: url('/fonts/AnekTeluguKavi-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Anek Telugu'; src: url('/fonts/AnekTeluguKavi-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
	--bg: #060508;
	--bg-raised: #0e0b13;
	--surface: rgba(255, 255, 255, 0.05);
	--surface-hover: rgba(255, 255, 255, 0.09);
	--border: rgba(255, 255, 255, 0.12);       /* decorative only */
	--border-strong: rgba(255, 255, 255, 0.38); /* 3.6:1 - for component edges */

	--text: #ffffff;               /* 20.5:1 */
	--text-muted: #c4c0cb;         /* 11.6:1 */
	--text-subtle: #9a95a3;        /* 6.9:1 - smallest copy, captions */

	--accent: #d5b9f1;             /* 12.0:1 on bg */
	--accent-strong: #b892e6;      /* 8.0:1 on bg - hover */
	--accent-ink: #1a102a;         /* 12.7:1 on --accent */
	--focus: #e4cffb;              /* 14:1 on bg, 3:1+ against every surface */

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	--font: 'Anek Telugu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--header-h: 74px;
	--page-max: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section-gap: clamp(64px, 9vw, 120px);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px); /* 2.4.11: focus never hides under the header */
	background: var(--bg);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text-muted);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }

/* Visible, high-contrast focus for every interactive element (2.4.7, 1.4.11). */
:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: first focusable element on every page (2.4.1). */
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--accent); color: var(--accent-ink); font-weight: 700;
	padding: 12px 18px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* Telugu subtitles under English headings; marked lang="te" in the markup (3.1.2). */
.te { display: block; font-weight: 500; color: var(--text-subtle); font-size: 0.55em; letter-spacing: 0; margin-top: 0.35em; }

/* ---------- header / navigation ---------- */

/* Floating pill header, matching the web app's floating player bar: centred, only as wide as
   its contents, and it floats over the top of the page (main reserves its height). */
.site-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h); margin-bottom: calc(-1 * var(--header-h));
	padding: 12px var(--gutter) 0; pointer-events: none;
}
.site-header__inner {
	pointer-events: auto;
	display: flex; align-items: center; gap: 16px;
	width: fit-content; max-width: 100%; min-height: 52px; margin: 0 auto; padding: 5px 5px 5px 22px;
	border-radius: var(--radius-pill);
	background: rgba(48, 40, 58, 0.92);
	backdrop-filter: saturate(140%) blur(18px);
	-webkit-backdrop-filter: saturate(140%) blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.site-header + main { padding-top: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.site-logo img { height: 26px; width: auto; }

.site-nav { margin-left: 56px; display: flex; align-items: center; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
	color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1;
	border-radius: var(--radius-pill);
}
.site-nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.site-nav__actions { display: flex; align-items: center; gap: 6px; margin-left: 48px; }
.site-nav__actions .btn--sm { min-height: 40px; }

.nav-toggle {
	display: none; margin-left: auto; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Phone menu: a full-screen sheet behind the header bar. It fades in while the links rise
   in one after another; the bar goes clear so the logo and close button sit on the sheet.
   Hidden with visibility (not display) so it can animate out too. */
.nav-toggle svg path { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; transform-box: fill-box; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .nav-toggle__top { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bot { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.site-header__inner {
		width: 100%; justify-content: space-between; padding-left: 18px; position: relative;
		/* backdrop-filter would make the bar the containing block for the fixed sheet. */
		backdrop-filter: none; -webkit-backdrop-filter: none; background: #30283a;
		transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	}
	.site-header__inner:has(.site-nav[data-open="true"]) { background: transparent; border-color: transparent; box-shadow: none; }
	.site-nav__actions .btn--sm { min-height: 52px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 0; z-index: -1; margin: 0;
		display: flex; flex-direction: column; align-items: stretch;
		padding: calc(var(--header-h) + 32px) calc(var(--gutter) + 8px) max(32px, env(safe-area-inset-bottom));
		background:
			radial-gradient(70% 45% at 50% 0%, rgba(131, 92, 188, 0.28), transparent 70%),
			#060508;
		overflow-y: auto; overscroll-behavior: contain;
		opacity: 0; visibility: hidden;
		transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	}
	.site-nav[data-open="true"] { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
	.site-nav__link {
		display: flex; min-height: 64px; padding: 0 4px; font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 800;
		color: var(--text); border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	.site-nav__link:hover { background: transparent; color: var(--accent); }
	.site-nav__actions { margin: auto 0 0; padding-top: 32px; flex-direction: column; align-items: stretch; gap: 10px; }
	.site-nav__actions .btn { width: 100%; font-size: 1.0625rem; }
	.site-nav__list > li, .site-nav__actions {
		opacity: 0; transform: translateY(18px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}
	.site-nav[data-open="true"] .site-nav__list > li, .site-nav[data-open="true"] .site-nav__actions {
		opacity: 1; transform: none;
		transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	.site-nav[data-open="true"] .site-nav__list > li:nth-child(1) { transition-delay: 0.06s; }
	.site-nav[data-open="true"] .site-nav__list > li:nth-child(2) { transition-delay: 0.11s; }
	.site-nav[data-open="true"] .site-nav__list > li:nth-child(3) { transition-delay: 0.16s; }
	.site-nav[data-open="true"] .site-nav__list > li:nth-child(4) { transition-delay: 0.21s; }
	.site-nav[data-open="true"] .site-nav__actions { transition-delay: 0.28s; }
	html.nav-open, html.nav-open body { overflow: hidden; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
	.site-nav, .site-nav[data-open="true"], .site-nav__list > li, .site-nav__actions,
	.site-nav[data-open="true"] .site-nav__list > li, .site-nav[data-open="true"] .site-nav__actions { transition: none !important; transform: none; }
	.nav-toggle svg path { transition: none; }
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
	border: 2px solid transparent; cursor: pointer; white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--text); color: var(--accent-ink); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-hover); color: var(--text); border-color: var(--text-muted); }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; border-color: var(--border-strong); }
.btn--ink { background: var(--accent-ink); color: #fff; }
.btn--ink:hover { background: #2e1f45; color: #fff; }
.btn--ink-outline { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.btn--ink-outline:hover { background: rgba(26, 16, 42, 0.1); color: var(--accent-ink); }
.btn--ink:focus-visible, .btn--ink-outline:focus-visible { outline-color: var(--accent-ink); }

/* ---------- sections ---------- */

.section { padding: var(--section-gap) 0; }
.section--tight { padding: calc(var(--section-gap) * 0.6) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head--wide { max-width: none; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-muted); margin-top: 16px; }

.pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px; line-height: 1;
	border-radius: var(--radius-pill); background: rgba(213, 185, 241, 0.12);
	color: var(--accent); font-weight: 700; font-size: 0.9rem;
}

/* ---------- hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 110px); }
.hero::before {
	content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
	background:
		radial-gradient(60% 60% at 25% 20%, rgba(213, 185, 241, 0.20), transparent 70%),
		radial-gradient(45% 50% at 85% 10%, rgba(131, 92, 188, 0.22), transparent 70%);
	pointer-events: none; z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.2rem); }
.hero__lead { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--text-muted); margin-top: 20px; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 0.95rem; color: var(--text-subtle); }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); }
.page-hero::before {
	content: ""; position: absolute; inset: -30% -10% auto -10%; height: 100%;
	background: radial-gradient(55% 60% at 30% 20%, rgba(213, 185, 241, 0.16), transparent 70%);
	pointer-events: none; z-index: -1;
}
.page-hero h1 { max-width: 16ch; }
.page-hero .section__lead { max-width: 60ch; }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 520px; }
}

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
/* The five formats: one row on wide screens, then 3 / 2 / 1 columns (never a lone card on a row of four). */
.grid--formats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid--formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid--formats { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
	position: relative; display: flex; flex-direction: column; gap: 12px;
	padding: clamp(20px, 2.5vw, 28px); border-radius: var(--radius-lg);
	background: var(--surface); border: 1px solid var(--border);
}
.card h3 { margin-top: 4px; }
.card p { color: var(--text-muted); }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: var(--radius); background: rgba(213, 185, 241, 0.14); color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }

/* Media card: wide artwork with a title below; the whole card is one link. */
.media-card {
	display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
	background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.media-card:hover { transform: translateY(-3px); background: var(--surface-hover); color: inherit; }
.media-card__art { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--bg-raised); }
.media-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.media-card__body h3 { font-size: 1.25rem; }
.media-card__body p { color: var(--text-muted); font-size: 0.98rem; }
.media-card__meta { color: var(--text-subtle); font-size: 0.9rem; font-weight: 600; }

.stat { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.stat__value { color: var(--text); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; }
.stat__label { margin-top: 8px; color: var(--text-muted); }

/* Callout band */
.band {
	position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 64px);
	background: linear-gradient(135deg, rgba(83, 46, 136, 0.55), rgba(26, 16, 42, 0.9));
	border: 1px solid var(--border);
}
.band h2 { max-width: 18ch; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.checklist svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: calc((1.6em - 22px) / 2); }

/* Store badges / app links */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.store-badge {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px;
	border-radius: var(--radius); border: 1px solid var(--border-strong); color: var(--text);
	background: var(--surface); text-decoration: none; font-weight: 600;
}
.store-badge small { display: block; font-size: 0.75rem; color: var(--text-subtle); font-weight: 500; line-height: 1.2; }
.store-badge svg { width: 24px; height: 24px; }

/* Social links */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-row a {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--text-muted);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.social-row a:hover { background: var(--accent); color: var(--accent-ink); }
.social-row svg { width: 20px; height: 20px; }

/* ---------- pricing (plans.html; markup rendered by scripts/plans-pricing.js) ---------- */


/* ---------- footer ---------- */

.site-footer { padding: clamp(48px, 7vw, 80px) 0 32px; margin-top: var(--section-gap); background: var(--bg); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__brand img { height: 34px; width: auto; }
.site-footer__brand p { margin-top: 16px; color: var(--text-subtle); max-width: 32ch; font-size: 0.98rem; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer .social-row { display: flex; gap: 10px; }
.site-footer .social-row a { justify-content: center; }
.site-footer ul:not(.social-row) a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-muted); text-decoration: none; font-size: 0.98rem; }
.site-footer ul:not(.social-row) a:hover { color: var(--text); text-decoration: underline; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
	margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: 0.92rem;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- utilities ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.stack-lg > * + * { margin-top: 24px; }

/* ---------- motion ---------- */

/* Minimal hero: a still, tilted wall of Kavi original cover art behind a centred headline.
   The wall is decorative (aria-hidden) and sits under a heavy scrim, so hero text stays
   above 7:1. It does not move, so no pause control is needed. */
.hero--minimal { display: flex; align-items: center; text-align: center; }
.hero--minimal::before { display: none; }
.hero--minimal::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background:
		radial-gradient(60% 55% at 50% 45%, rgba(6, 5, 8, 0.82), rgba(6, 5, 8, 0.6) 70%),
		radial-gradient(45% 40% at 50% 20%, rgba(131, 92, 188, 0.25), transparent 70%),
		linear-gradient(180deg, rgba(6, 5, 8, 0.3) 0%, rgba(6, 5, 8, 0.1) 40%, #060508 100%);
}
.cover-wall {
	position: absolute; z-index: -2; inset: -50% -20%;
	display: flex; justify-content: center; align-items: flex-start; gap: 20px;
	transform: rotate(-12deg); opacity: 0.35; pointer-events: none;
}
.cover-wall img { flex: 0 0 clamp(120px, 13vw, 200px); width: clamp(120px, 13vw, 200px); height: auto; }
.cover-wall img:nth-child(even) { margin-top: -120px; }
.hero--minimal__inner { display: flex; flex-direction: column; align-items: center; }
.hero--minimal .hero__title { margin-top: 20px; font-size: clamp(3.2rem, 10vw, 7rem); line-height: 1; }
/* "get hyped for" in the waitlist artwork's script and button pink (#b81a78, 3.4:1 on the
   hero: passes 1.4.3 as large text). Part of the h1, so it reads "get hyped for Telugu audio." */
.hero__script {
	display: block; margin-bottom: -0.12em;
	font-family: 'Ms Madi', cursive; font-weight: 400; font-size: 0.62em; line-height: 1;
	color: #b81a78; letter-spacing: 0.01em; transform: rotate(-3deg);
}
.hero--minimal .hero__lead { margin-left: auto; margin-right: auto; max-width: 40ch; }
.hero--minimal .hero__actions { justify-content: center; }
/* The home hero runs up under the floating header. */
.hero--minimal {
	margin-top: calc(-1 * var(--header-h));
	padding-top: calc(var(--header-h) + clamp(64px, 10vw, 120px));
	min-height: min(100svh, 900px);
}
.hero--minimal .hero__lead { margin-top: 24px; }
@media (max-width: 900px) {
	.hero--minimal { min-height: 0; padding: calc(var(--header-h) + 72px) 0 64px; }
}

/* "Why Kavi" strip: three icon-and-heading tiles in one row, no section title. */
.features-strip { padding: clamp(24px, 4vw, 40px) 0 0; }
.features {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.features li {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
	color: var(--text); font-weight: 700; font-size: 1.05rem; line-height: 1.3;
}
.features__icon,
.contact-links__icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; background: rgba(213, 185, 241, 0.14); color: var(--accent);
}
.features__icon svg,
.contact-links__icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Content types: a bento grid of full-bleed artwork with the label over a dark gradient. */
.formats {
	display: grid; gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, clamp(220px, 22vw, 300px));
}
.format-card {
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
	border-radius: var(--radius-lg); border: 1px solid var(--border);
	color: var(--text); text-decoration: none; background: var(--bg-raised);
}
.format-card:first-child { grid-column: span 2; grid-row: span 2; }
.format-card img {
	position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
	transition: transform 0.5s ease;
}
.format-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(6, 5, 8, 0) 25%, rgba(6, 5, 8, 0.78) 60%, rgba(6, 5, 8, 0.96) 100%);
}
.format-card__body { display: block; padding: 20px 64px 20px 22px; }
.format-card h3, .format-card h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.format-card__desc { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.45; }
.format-card:first-child .format-card__body { padding: 32px 88px 32px 32px; }
.format-card:first-child h3, .format-card:first-child h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.format-card:first-child .format-card__desc { font-size: 1.05rem; max-width: 34ch; }
.format-card__go {
	position: absolute; right: 18px; bottom: 18px;
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--text);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.format-card__go svg { width: 20px; height: 20px; }
a.format-card:hover img { transform: scale(1.04); }
.format-card:hover .format-card__go { background: var(--accent); color: var(--accent-ink); transform: translateX(2px); }
a.format-card:hover { border-color: var(--border-strong); }
article.format-card .format-card__body { padding-right: 22px; }
article.format-card:first-child .format-card__body { padding-right: 32px; }
.format-card .format-card__desc { margin-bottom: 0; }
@media (max-width: 1000px) {
	.formats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(220px, 40vw, 280px); }
	.format-card:first-child { grid-row: span 1; }
}
@media (max-width: 600px) {
	.formats { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
	.format-card:first-child { grid-column: auto; }
	.format-card:first-child .format-card__body { padding: 20px 64px 20px 22px; }
	.format-card:first-child h3 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .format-card:hover img { transform: none; } }


/* "Take Kavi with you": a lavender panel in the brand accent with dark ink text (10.5:1). */
.get-app {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
	padding: clamp(32px, 5vw, 64px); border-radius: 32px;
	background: var(--accent); color: var(--accent-ink);
}
.get-app::before {
	content: ""; position: absolute; z-index: -1; right: -12%; top: -40%; width: 70%; aspect-ratio: 1;
	border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.45), transparent);
}
.get-app h2 { color: var(--accent-ink); }
.get-app__copy p { margin-top: 14px; max-width: 40ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #3a2a4f; }
.get-app__platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.platform {
	display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 20px;
	border-radius: 20px; background: rgba(255, 255, 255, 0.4); color: var(--accent-ink);
	font-weight: 800; font-size: 1.15rem; line-height: 1.2; text-decoration: none;
}
.platform > svg { flex: 0 0 26px; width: 26px; height: 26px; }
.platform small { display: block; margin-bottom: 2px; font-size: 0.8rem; font-weight: 600; color: #4a3a5f; }
.platform--featured { background: var(--accent-ink); color: #fff; }
.platform--featured small { color: var(--accent); }
a.platform { transition: background-color 0.15s ease; }
a.platform:hover { background: rgba(255, 255, 255, 0.6); color: var(--accent-ink); }
a.platform--featured:hover { background: #2e1f45; color: #fff; }
a.platform > svg:last-child { margin-left: auto; transition: transform 0.2s ease; }
a.platform:hover > svg:last-child { transform: translateX(3px); }
a.platform:focus-visible { outline-color: var(--accent-ink); }
@media (max-width: 900px) { .get-app { grid-template-columns: minmax(0, 1fr); } }

/* Compact contact links */
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-links a {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
	color: var(--text-muted); text-decoration: none; font-size: 0.92rem; line-height: 1.35;
}
.contact-links a:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.contact-links strong { display: block; color: var(--text); font-size: 1.05rem; }
.contact-links a > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; color: var(--text-subtle); }
@media (max-width: 900px) { .contact-links { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Inner-page hero: a half-height cover wall that fades into the page. */
.page-hero--wall {
	margin-top: calc(-1 * var(--header-h));
	padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 6vw, 72px);
	text-align: center;
}
.page-hero--wall::before { display: none; }
.page-hero--wall::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background:
		radial-gradient(55% 70% at 50% 50%, rgba(6, 5, 8, 0.85), rgba(6, 5, 8, 0.62) 75%),
		linear-gradient(180deg, rgba(6, 5, 8, 0.2) 0%, rgba(6, 5, 8, 0) 35%, #060508 100%);
}
.page-hero--wall .cover-wall {
	inset: -420px -20% auto; height: 1100px;
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 88%);
	mask-image: linear-gradient(180deg, #000 55%, transparent 88%);
}
.page-hero__inner { display: flex; flex-direction: column; align-items: center; }
.page-hero--wall h1 { max-width: 18ch; }
.page-hero--wall .section__lead { margin-left: auto; margin-right: auto; max-width: 56ch; }

/* Pricing: segmented billing selector and a two-part plan card. */
.page-hero .billing-toggle {
	display: inline-flex; gap: 2px; margin-top: 28px; padding: 3px;
	border-radius: var(--radius-pill); background: rgba(48, 40, 58, 0.92); border: 1px solid rgba(255, 255, 255, 0.1);
}
.page-hero .billing-toggle__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px;
	border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted);
	font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1; cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-hero .billing-toggle__btn:hover { color: var(--text); }
.page-hero .billing-toggle__btn[aria-pressed="true"] { background: #fff; color: var(--accent-ink); }
.page-hero .billing-toggle__save {
	display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; line-height: 1;
	border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700;
	background: rgba(213, 185, 241, 0.16); color: var(--accent);
}
.page-hero .billing-toggle__btn[aria-pressed="true"] .billing-toggle__save { background: var(--accent); color: var(--accent-ink); }
.plans-section { padding-top: 0; }
.pricing-grid { max-width: 920px; margin: 0 auto; }
.pricing-plan {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden;
	border-radius: 32px; background: var(--bg-raised); border: 1px solid var(--border);
}
.pricing-plan__summary {
	display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 44px);
	background: var(--accent); color: var(--accent-ink);
}
.pricing-plan__name { margin: 0; color: var(--accent-ink); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; }
.pricing-plan__price-block { display: flex; flex-direction: column; gap: 8px; }
.pricing-plan__price-block p { margin: 0; }
.pricing-plan__price-main { color: var(--accent-ink); font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.pricing-plan__price-unit { margin-left: 6px; color: #3a2a4f; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.pricing-plan__price-sub, .pricing-plan__price-limited { color: #3a2a4f; font-size: 0.98rem; }
.pricing-plan__price-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pricing-plan__price-save { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; line-height: 1; border-radius: var(--radius-pill); background: var(--accent-ink); color: #fff; font-weight: 700; font-size: 0.85rem; }
.pricing-plan__cta-form { margin: auto 0 0; padding-top: 8px; }
.pricing-plan__cta { width: 100%; }
.pricing-plan__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 44px); }
.pricing-plan__included { margin: 0; color: var(--text-subtle); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pricing-plan__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pricing-plan__features li { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 1.1rem; font-weight: 600; }
.pricing-plan__check {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 10px; background: rgba(213, 185, 241, 0.14); color: var(--accent);
}
.pricing-plan__check svg { width: 20px; height: 20px; }
.pricing-plan__fine { margin: auto 0 0; color: var(--text-subtle); font-size: 0.92rem; }
.plans-notes { max-width: 640px; margin: 28px auto 0; text-align: center; color: var(--text-subtle); font-size: 0.95rem; }
@media (max-width: 760px) { .pricing-plan { grid-template-columns: minmax(0, 1fr); } }

/* Lavender call-to-action panel (pricing "New to Kavi?"). */
.cta-panel {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
	padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--accent); color: var(--accent-ink);
}
.cta-panel h2 { color: var(--accent-ink); }
.cta-panel p { margin: 10px 0 0; max-width: 56ch; color: #3a2a4f; font-size: 1.05rem; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Create page: copy and artwork in one split panel. */
.split-panel {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); overflow: hidden;
	border-radius: 32px; background: var(--bg-raised); border: 1px solid var(--border);
}
.split-panel__copy { display: flex; flex-direction: column; padding: clamp(28px, 4.5vw, 56px); }
.split-panel__copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.split-panel__copy .section__lead { margin-top: 12px; }
.split-panel__copy .hero__actions { margin-top: 28px; }
.split-panel__media { position: relative; min-height: 320px; }
.split-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.perks li {
	display: flex; align-items: center; gap: 14px; padding: 12px 14px;
	border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
	color: var(--text-muted); font-size: 0.92rem; line-height: 1.35;
}
.perks strong { display: block; color: var(--text); font-size: 1.05rem; }
.perks__icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; background: rgba(213, 185, 241, 0.14); color: var(--accent);
}
.perks__icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
	.split-panel { grid-template-columns: minmax(0, 1fr); }
	.split-panel__media { order: -1; min-height: 0; aspect-ratio: 5 / 4; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.media-card:hover { transform: none; }
}
