/*
 * Home v3 — shared tokens and base components (creative director's global system).
 * All fold stylesheets (public/style/home-v3/<fold>.css) use ONLY these tokens: no local hex values.
 * Amber is reserved for: primary "Enquire now"/submit buttons, the offer numeral/pill, small ticks/stars on dark.
 */
.home-v3 {
    /* ink */
    --ink: #1F032D;
    --ink-2: #2C1D43;
    /* brand */
    --brand: #6C35E9;          /* fills behind white text (6.3:1) */
    --brand-deep: #5B26D6;     /* links/text on light (~7:1) */
    --violet: #A249ED;         /* decoration only, never behind white text */
    --brand-grad: linear-gradient(135deg, #6C35E9, #8A44EC);
    /* lilac surfaces */
    --l50: #FBF9FF;
    --l100: #F3ECFF;
    --l200: #E6D9FF;
    --l300: #D4BEFF;
    --white: #FFFFFF;
    /* text */
    --mute: #5B4B73;           /* ~8:1 on --l50 */
    --on-dark: #FFFFFF;
    --on-dark-2: #D4BEFF;      /* secondary text on ink, 11:1 */
    --on-dark-3: #CFC3E6;      /* 13px labels on ink only */
    /* accent */
    --amber: #FFB547;
    --amber-hover: #FF9F1C;
    /* radius */
    --r-btn: 12px;
    --r-chip: 999px;
    --r-choice: 12px;
    --r-card: 16px;
    --r-panel: 20px;
    /* shadows */
    --shadow-card: 0 1px 2px rgba(31, 3, 45, .06), 0 8px 24px -12px rgba(44, 29, 67, .18);
    --shadow-panel: 0 30px 60px -30px rgba(44, 29, 67, .35);
    /* motion */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --t-fast: 150ms;
    --t-base: 200ms;
    --t-slow: 400ms;
    /* focus */
    --focus-light: 3px solid #5B26D6;
    --focus-dark: 3px solid #FFB547;

    color: var(--ink-2);
    background: var(--l50);
    overflow-x: clip;
}

/* ---------- Resets inside v3 (main.css sets p/li to 14px black) ---------- */
.home-v3 *, .home-v3 *::before, .home-v3 *::after { box-sizing: border-box; }
.home-v3 p, .home-v3 li, .home-v3 dd, .home-v3 dt, .home-v3 blockquote, .home-v3 label, .home-v3 legend, .home-v3 td, .home-v3 th {
    font-size: 16px; line-height: 1.6; color: inherit; margin: 0;
}
.home-v3 ul, .home-v3 ol { margin: 0; padding: 0; list-style: none; }
.home-v3 h1, .home-v3 h2, .home-v3 h3, .home-v3 h4 { margin: 0; color: var(--ink); text-wrap: balance; }
.home-v3 p { text-wrap: pretty; }
.home-v3 img { max-width: 100%; height: auto; }
.home-v3 .v3-num, .home-v3 [data-num] { font-variant-numeric: tabular-nums; }
.home-v3 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.home-v3 [hidden] { display: none !important; }

/* ---------- Sections ---------- */
.home-v3 .v3-section { position: relative; display: block; padding: 56px 0; }
.home-v3 .v3-wrap { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.home-v3 .v3-ink { background: var(--ink); color: var(--on-dark); }
.home-v3 .v3-ink h2, .home-v3 .v3-ink h3, .home-v3 .v3-ink h4 { color: var(--on-dark); }
.home-v3 .v3-l50 { background: var(--l50); }
.home-v3 .v3-l100 { background: var(--l100); }
.home-v3 .v3-white { background: var(--white); }
.home-v3 .v3-rule { border-top: 1px solid var(--l200); }

/* ---------- Type ---------- */
.home-v3 .v3-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.home-v3 .v3-ink .v3-eyebrow { color: var(--on-dark-3); }
.home-v3 .v3-h2 { margin-top: 8px; font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.home-v3 .v3-h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.3; font-weight: 600; }
.home-v3 .v3-lead { margin-top: 14px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--mute); }
.home-v3 .v3-ink .v3-lead { color: var(--on-dark-2); }
.home-v3 .v3-small { font-size: 14px; line-height: 1.5; }
.home-v3 .v3-micro { font-size: 13px; line-height: 1.45; }
.home-v3 .v3-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.home-v3 .v3-head .v3-lead { margin-left: auto; margin-right: auto; }
.home-v3 .v3-head-left { max-width: 760px; margin: 0 0 32px; }

/* ---------- Icons ---------- */
.home-v3 .v3-i { width: 20px; height: 20px; flex: none; }
.home-v3 .v3-i-sm { width: 16px; height: 16px; }
.home-v3 .v3-star { width: 16px; height: 16px; color: var(--amber); }
.home-v3 .v3-icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--l100); color: var(--brand-deep); }
.home-v3 .v3-ink .v3-icon-tile { background: rgba(255, 255, 255, .08); color: var(--l300); }

/* ---------- Buttons (3 tiers) ---------- */
.home-v3 .v3-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--r-btn);
    font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) ease, background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.home-v3 .v3-btn .v3-i { transition: transform var(--t-fast) var(--ease); }
@media (pointer: fine) { .home-v3 .v3-btn:hover .v3-i { transform: translateX(3px); } }
/* Tier 1: amber primary — "Enquire now" only */
.home-v3 .v3-btn-primary { min-height: 52px; background: var(--amber); color: var(--ink); border-color: rgba(31, 3, 45, .14); box-shadow: 0 6px 16px -6px rgba(255, 159, 28, .55); }
.home-v3 .v3-btn-primary:hover { background: var(--amber-hover); }
.home-v3 .v3-btn-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.home-v3 .v3-btn-xl { min-height: 56px; padding: 14px 28px; font-size: 17px; }
/* Tier 2: outline */
.home-v3 .v3-btn-secondary { background: transparent; color: var(--brand-deep); border-color: var(--brand); }
.home-v3 .v3-btn-secondary:hover { background: var(--l100); }
.home-v3 .v3-ink .v3-btn-secondary, .home-v3 .v3-btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .55); background: transparent; }
.home-v3 .v3-ink .v3-btn-secondary:hover, .home-v3 .v3-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--on-dark); }
/* Tier 3: text link */
.home-v3 .v3-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--brand-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.home-v3 .v3-ink .v3-link { color: var(--l300); }
.home-v3 .v3-btn-block { width: 100%; }

/* ---------- Focus ---------- */
.home-v3 a:focus-visible, .home-v3 button:focus-visible, .home-v3 summary:focus-visible, .home-v3 input:focus-visible, .home-v3 select:focus-visible, .home-v3 textarea:focus-visible { outline: var(--focus-light); outline-offset: 2px; }
.home-v3 .v3-ink a:focus-visible, .home-v3 .v3-ink button:focus-visible, .home-v3 .v3-ink summary:focus-visible { outline: var(--focus-dark); outline-offset: 2px; }

/* ---------- Chips and choice cards (radio inputs inside labels) ---------- */
.home-v3 .v3-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-chip); font-size: 14px; font-weight: 600; line-height: 1.4; background: var(--l100); color: var(--brand-deep); }
.home-v3 .v3-chip-outline { background: var(--white); border: 1px solid var(--l300); color: var(--ink-2); }
.home-v3 .v3-ink .v3-chip { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.home-v3 .v3-choice {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px;
    border: 2px solid var(--l200); border-radius: var(--r-choice); background: var(--white); color: var(--ink);
    cursor: pointer; transition: border-color var(--t-base) ease, background var(--t-base) ease, box-shadow var(--t-base) ease;
}
.home-v3 .v3-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.home-v3 .v3-choice:hover { border-color: var(--l300); }
.home-v3 .v3-choice:has(input:checked) { border-color: var(--brand); background: var(--l100); box-shadow: 0 0 0 1px var(--brand) inset; }
.home-v3 .v3-choice:has(input:focus-visible) { outline: var(--focus-light); outline-offset: 2px; }
.home-v3 .v3-choice-check { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 999px; border: 2px solid var(--l300); color: transparent; transition: all var(--t-base) var(--ease); }
.home-v3 .v3-choice:has(input:checked) .v3-choice-check { background: var(--brand); border-color: var(--brand); color: var(--white); animation: v3Pop 160ms var(--ease); }
.home-v3 .v3-ink .v3-choice { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--on-dark); }
.home-v3 .v3-ink .v3-choice:hover { border-color: var(--l300); }
.home-v3 .v3-ink .v3-choice:has(input:checked) { background: rgba(108, 53, 233, .35); border-color: var(--l300); box-shadow: 0 0 0 1px var(--l300) inset; }
.home-v3 .v3-ink .v3-choice:has(input:focus-visible) { outline: var(--focus-dark); }

/* ---------- Tick lists ---------- */
.home-v3 .v3-ticks { display: grid; gap: 10px; }
.home-v3 .v3-ticks li { position: relative; padding-left: 30px; }
.home-v3 .v3-ticks li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 999px;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/66% no-repeat;
}
.home-v3 .v3-ink .v3-ticks li::before { background-color: var(--amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F032D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Cards, panels, ticket edge ---------- */
.home-v3 .v3-card { background: var(--white); border: 1px solid var(--l200); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.home-v3 .v3-panel { border-radius: var(--r-panel); box-shadow: var(--shadow-panel); }
.home-v3 .v3-panel-ink { background: var(--ink); color: var(--on-dark); }
.home-v3 .v3-panel-ink h2, .home-v3 .v3-panel-ink h3 { color: var(--on-dark); }
@media (pointer: fine) {
    .home-v3 .v3-lift { transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) ease, border-color var(--t-fast) ease; }
    .home-v3 .v3-lift:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(31, 3, 45, .06), 0 14px 30px -14px rgba(44, 29, 67, .28); }
}
/* Perforated ticket edge — only on the action tickets (formats, proof receipt, team, courses stub) */
.home-v3 .v3-ticket {
    -webkit-mask: radial-gradient(circle 10px at 0 var(--notch, 50%), transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 10px at 100% var(--notch, 50%), transparent 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 10px at 0 var(--notch, 50%), transparent 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 10px at 100% var(--notch, 50%), transparent 98%, #000) right / 51% 100% no-repeat;
}
.home-v3 .v3-perf { border-top: 2px dashed var(--l300); }

/* ---------- Stars / rating line ---------- */
.home-v3 .v3-stars { display: inline-flex; gap: 2px; vertical-align: middle; }

/* ---------- Decorative reveal (JS adds .is-in; never on text blocks) ---------- */
html.hv-motion .home-v3 [data-v3-decor] { opacity: 0; translate: 0 8px; transition: opacity var(--t-slow) ease, translate var(--t-slow) var(--ease); }
html.hv-motion .home-v3 [data-v3-decor].is-in, html.hv-motion .home-v3 [data-v3-decor].hv-done { opacity: 1; translate: none; }

@keyframes v3Pop { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes v3RingOnce { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .65); } 100% { box-shadow: 0 0 0 14px rgba(255, 181, 71, 0); } }
.home-v3 .v3-ring-once { animation: v3RingOnce 900ms var(--ease) 1; }

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
    .home-v3 .v3-section { padding: 72px 0; }
    .home-v3 .v3-wrap { padding: 0 24px; }
}
@media (min-width: 1024px) {
    .home-v3 .v3-section { padding: 96px 0; }
    .home-v3 .v3-wrap { padding: 0 32px; }
}

/* ---------- Reduced motion: everything instant, information still changes ---------- */
@media (prefers-reduced-motion: reduce) {
    .home-v3 *, .home-v3 *::before, .home-v3 *::after { animation: none !important; transition: none !important; }
    html.hv-motion .home-v3 [data-v3-decor] { opacity: 1; translate: none; }
}
@media (forced-colors: active) {
    .home-v3 .v3-btn-primary { border-color: ButtonText; }
    .home-v3 .v3-choice:has(input:checked) { outline: 2px solid Highlight; }
}

/* ---------- Shared fixes after the fold reviews (27 Nov 2026) ---------- */
.home-v3 { --danger: #B42318; } /* error text/borders, 6.5:1 on white */
/* main.css centres <aside> elements site-wide; v3 asides are layout columns */
.home-v3 aside { align-items: initial; text-align: left; }
/* ---------- One-screen folds (desktop): a section with .v3-fold fills exactly one screen ----------
   Each fold's own stylesheet must make its content fit; nothing is clipped, so a fold that is too tall simply grows. */
@media (min-width: 1024px) and (min-height: 620px) {
    html:has(main.home-v3) { scroll-snap-type: y proximity; }
    .home-v3 .v3-section.v3-fold {
        --fold-gap: clamp(8px, 2vh, 24px);
        --fold-header: 80px; /* the site header (#fixheader.sticky) is fixed and 80px tall once the page scrolls */
        min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
        padding: calc(var(--fold-header) + clamp(8px, 2.2vh, 32px)) 0 clamp(12px, 2.6vh, 40px);
        scroll-snap-align: start; scroll-margin-top: 0;
    }
    .home-v3 .v3-fold > .v3-wrap { flex: none; }
    .home-v3 .v3-fold .v3-h2 { margin-top: 4px; font-size: clamp(1.5rem, .55rem + 2.7vh, 2.375rem); }
    .home-v3 .v3-fold .v3-lead { margin-top: 8px; font-size: clamp(15px, .6rem + .9vh, 17px); line-height: 1.5; }
    .home-v3 .v3-fold .v3-head, .home-v3 .v3-fold .v3-head-left { margin-bottom: var(--fold-gap); }
}
/* Mobile sticky bar: keep page content and the chat launcher clear of it */
@media (max-width: 767px) {
    body.v3-sticky-on { padding-bottom: 76px; }
    body.v3-sticky-on #hubspot-messages-iframe-container { bottom: 76px !important; transition: bottom 200ms ease; }
}
