/*
 * Home v3 skin (27 Nov 2026 redesign pass): type, air, motion, and a home-only header/footer skin.
 * Loaded AFTER the fold stylesheets. Scoped to pages that contain main.home-v3, so no other page changes.
 * Fonts: Outfit (headings, buttons, numbers) + Work Sans (text). Both are narrower than Poppins, which is
 * where most of the extra breathing room comes from.
 */
body:has(main.home-v3) {
    --v3-head: 'Outfit', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --v3-body: 'Work Sans', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Type ---------- */
body:has(main.home-v3) :is(.home-v3, .header, .footer) :where(:not(i):not([class*="fa-"]):not(svg):not(svg *)) { font-family: var(--v3-body) !important; }
body:has(main.home-v3) :is(.home-v3, .header, .footer) :is(h1, h2, h3, h4, legend, summary, dt, strong.v3-num, .v3-eyebrow, .v3-btn, .v3-num, .v3-chip, .btn-primary, [class*="-title"], [class*="-name"], [class*="-eyebrow"], [class*="-label"], [role="tab"]),
body:has(main.home-v3) :is(.home-v3, .header, .footer) :is(h1, h2, h3, h4, .v3-btn, [role="tab"], [class*="-title"], [class*="-name"]) :where(:not(i):not(svg):not(svg *)) { font-family: var(--v3-head) !important; }
.home-v3 { font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; }
.home-v3 p, .home-v3 li, .home-v3 dd, .home-v3 td { line-height: 1.6; letter-spacing: 0; }
.home-v3 h1, .home-v3 h2, .home-v3 h3 { letter-spacing: -.022em; }
.home-v3 .v3-h2 { font-weight: 600; line-height: 1.08; }
.home-v3 .v3-h3 { font-weight: 600; }
.home-v3 .v3-eyebrow, .home-v3 [class*="-eyebrow"] { letter-spacing: .14em; font-weight: 600; }
.home-v3 .v3-btn { font-weight: 600; letter-spacing: .005em; border-radius: 14px; }
.home-v3 .v3-lead { color: var(--mute); }
@media (min-width: 1024px) and (min-height: 620px) {
    .home-v3 .v3-fold .v3-h2 { font-size: clamp(1.75rem, .5rem + 3.3vh, 2.875rem); }
    .home-v3 .v3-fold .v3-lead { font-size: clamp(15.5px, .62rem + .95vh, 18px); }
}

@media (min-width: 1024px) and (min-height: 620px) { .home-v3 .v3-section.v3-fold { --fold-header: 66px; } }

/* ---------- Softer surfaces: fewer hard borders, more air inside cards ---------- */
.home-v3 { --l200: #ECE3FF; --shadow-card: 0 1px 2px rgba(31, 3, 45, .04), 0 12px 32px -16px rgba(44, 29, 67, .16); --r-card: 20px; --r-panel: 26px; --r-choice: 16px; }
.home-v3 .v3-card { border-color: transparent; }
.home-v3 .v3-rule { border-top-color: transparent; }
.home-v3 .v3-l100 { background: linear-gradient(180deg, var(--l100), var(--l50)); }

/* ---------- Motion ---------- */
/* Page scroll progress */
.home-v3 .v3-progress { position: fixed; z-index: 1200; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--v3-scroll, 0)); background: linear-gradient(90deg, var(--brand), var(--violet), var(--amber)); }
/* Section reveals: motion.js tags blocks with .rv and a stagger index; everything settles visible even if animation is paused */
html.hv-motion .home-v3 .rv { opacity: 0; transform: translate3d(0, 22px, 0) scale(.985); transition: opacity 640ms var(--ease), transform 720ms var(--ease); transition-delay: calc(var(--rv-i, 0) * 70ms); will-change: opacity, transform; }
html.hv-motion .home-v3 .is-in .rv, html.hv-motion .home-v3 .rv.rv-done { opacity: 1; transform: none; }
/* Tabs, FAQ answers and pager pages glide in */
@keyframes v3PanelIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
html.hv-motion .home-v3 [role="tabpanel"]:not([hidden]),
html.hv-motion .home-v3 details[open] > :not(summary) { animation: v3PanelIn 380ms var(--ease) both; }
.home-v3 [role="tab"] { transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 160ms var(--ease); }
/* Buttons and cards respond to the pointer */
@media (pointer: fine) {
    .home-v3 .v3-btn:hover { transform: translateY(-2px); }
    .home-v3 .v3-btn:active { transform: translateY(0) scale(.985); }
    .home-v3 .v3-btn-primary { overflow: hidden; }
    .home-v3 .v3-btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
    .home-v3 .v3-btn-primary:hover::after { transform: translateX(120%); transition: transform 750ms var(--ease); }
    .home-v3 .v3-btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(255, 159, 28, .7); }
    .home-v3 .v3-choice { transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 200ms var(--ease); }
    .home-v3 .v3-choice:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(108, 53, 233, .45); }
    .home-v3 .v3-card, .home-v3 [class*="-card"] { transition: transform 240ms var(--ease), box-shadow 240ms ease, border-color 240ms ease; }
    .home-v3 a.v3-link { transition: color 160ms ease, text-underline-offset 160ms ease; }
    .home-v3 a.v3-link:hover { text-underline-offset: 6px; }
}
/* Ink sections get a slow drifting glow */
@keyframes v3Drift { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
.home-v3 .v3-section.v3-ink.v3-fold { overflow: clip; }
.home-v3 .v3-section.v3-ink.v3-fold::before { content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none; background: radial-gradient(40% 40% at 20% 25%, rgba(108, 53, 233, .38), transparent 70%), radial-gradient(34% 34% at 82% 78%, rgba(162, 73, 237, .24), transparent 70%); }
html.hv-motion .home-v3 .v3-section.v3-ink.v3-fold::before { animation: v3Drift 16s ease-in-out infinite alternate; }

/* ---------- Header (home page only): slim, calm, sticky with blur ---------- */
body:has(main.home-v3) .header-info { padding-block: 7px; background: var(--ink, #1F032D); }
body:has(main.home-v3) .header-info, body:has(main.home-v3) .header-info a, body:has(main.home-v3) .header-info span { font-size: 13.5px; }
body:has(main.home-v3) #fixheader { padding-block: 10px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(31, 3, 45, .06); transition: padding 240ms cubic-bezier(.2, .8, .2, 1), box-shadow 240ms ease, background-color 240ms ease; }
body:has(main.home-v3) #fixheader.sticky { padding-block: 6px; box-shadow: 0 10px 30px -18px rgba(31, 3, 45, .35); }
body:has(main.home-v3) #fixheader .tka-logo img { height: 52px; width: auto; transition: height 240ms cubic-bezier(.2, .8, .2, 1); }
body:has(main.home-v3) #fixheader.sticky .tka-logo img { height: 44px; }
body:has(main.home-v3) .menu-links .links-li > a { font-size: 15.5px; font-weight: 500; color: #1F032D; letter-spacing: .005em; transition: color 160ms ease; }
body:has(main.home-v3) .menu-links .links-li > a:hover { color: #5B26D6; }
body:has(main.home-v3) .header .search-box { background: #F6F1FF; border: 1px solid transparent; border-radius: 999px; box-shadow: none; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
body:has(main.home-v3) .header .search-box:focus-within { background: #fff; border-color: #6C35E9; box-shadow: 0 0 0 4px rgba(108, 53, 233, .12); }
body:has(main.home-v3) .header .search-box input { background: transparent; font-size: 14.5px; }
body:has(main.home-v3) .header .buttons .btn-primary { background: #FFB547; color: #1F032D; border: 0; border-radius: 12px; padding: 12px 20px; font-size: 15.5px; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(255, 159, 28, .55); transition: transform 160ms cubic-bezier(.2, .8, .2, 1), box-shadow 160ms ease, background-color 160ms ease; }
body:has(main.home-v3) .header .buttons .btn-primary:hover { background: #FF9F1C; transform: translateY(-2px); }

/* ---------- Footer (home page only): ink, airy, organised ---------- */
body:has(main.home-v3) .footer { padding-block: clamp(56px, 8vh, 96px) 40px; background: radial-gradient(60% 80% at 85% 0%, rgba(108, 53, 233, .28), transparent 70%), #1F032D; }
body:has(main.home-v3) .footer .footer-list { gap: clamp(32px, 5vw, 72px); }
body:has(main.home-v3) .footer h3, body:has(main.home-v3) .footer h2 { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #D4BEFF; margin-bottom: 18px; }
body:has(main.home-v3) .footer .contact h2 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; text-transform: none; color: #fff; line-height: 1.15; }
body:has(main.home-v3) .footer p, body:has(main.home-v3) .footer li, body:has(main.home-v3) .footer li a, body:has(main.home-v3) .footer .detail, body:has(main.home-v3) .footer .contact-info a { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
body:has(main.home-v3) .footer li a, body:has(main.home-v3) .footer .contact-info a { transition: color 160ms ease, padding-left 200ms cubic-bezier(.2, .8, .2, 1); }
body:has(main.home-v3) .footer li a:hover, body:has(main.home-v3) .footer .contact-info a:hover { color: #FFB547; padding-left: 4px; }
body:has(main.home-v3) .footer .social-account a { background: rgba(255, 255, 255, .08); transition: background-color 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1); }
body:has(main.home-v3) .footer .social-account a:hover { background: #6C35E9; transform: translateY(-3px); }
body:has(main.home-v3) .footer .contact { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html .home-v3 .rv { opacity: 1 !important; transform: none !important; }
    .home-v3 .v3-progress { display: none; }
    body:has(main.home-v3) #fixheader, body:has(main.home-v3) .header *, body:has(main.home-v3) .footer * { transition: none !important; }
}

/* The header's search dropdown and decorative glows must never create a sideways scrollbar */
html:has(main.home-v3), body:has(main.home-v3) { overflow-x: clip; }
