/* Home page (English /website/ and Chinese /website/zh/): set-by-set catalogue, the practice → report → teacher
   path, and trial/rewards facts. Loaded last on both pages; extends the incumbent home styles (home-refresh,
   home-faithful, home-growth) rather than replacing them. Colours reuse the home palette: ink #10264b, pink
   accent var(--hb-pink) (#d91457 family), blush #fff3f7, teal #06826f. */

body.site-home{--hs-ink:#10264b;--hs-muted:#4f5d75;--hs-line:#dde3ec;--hs-pink:#cb1351;--hs-blush:#fff3f7;--hs-teal:#06705f;--hs-surface:#f5f7fa}
body.site-home ::selection{background:#ffd3e2;color:var(--hs-ink)}

/* Language switch: its own slim row above the hero, right aligned, so it is visible without crowding the header. */
body.site-home .hs-lang{display:flex;justify-content:flex-end;margin-top:12px!important;margin-bottom:-4px!important}
body.site-home .hs-lang-link{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--hs-line);border-radius:999px;color:var(--hs-ink);font-size:14px;font-weight:700;text-decoration:none;background:#fff;transition:border-color .2s,color .2s}
body.site-home .hs-lang-link:hover{border-color:var(--hs-pink);color:var(--hs-pink)}
body.site-home .hs-lang-link:focus-visible,body.site-home .hs-catalogue a:focus-visible,body.site-home .hs-steps a:focus-visible,body.site-home .hs-button:focus-visible{outline:3px solid #ff8fb4;outline-offset:2px}

/* Hero: longer headline than before, so allow a wider measure; the exam list replaces the old trust ticks. */
body.site-home .hb-hero h1{max-width:590px!important;text-wrap:balance}
body.site-home .hb-lead{max-width:540px!important}
body.site-home .hs-exams{margin:24px 0 0;color:var(--hs-muted);font-size:14px;font-weight:700;letter-spacing:0;line-height:1.6}
html:lang(zh) body.site-home h1,html:lang(zh) body.site-home h2,html:lang(zh) body.site-home h3,html:lang(zh) body.site-home h4{letter-spacing:0!important}
html:lang(zh) body.site-home .hb-hero h1{font-size:clamp(36px,4vw,52px)!important}
body.site-home .hb-journey{max-width:210px!important}
/* The journey card now carries the practice → report → teacher path: keep its labels readable on phones too. */
@layer vip-header-repair{body.site-home .hb-journey strong,body.site-home .hb-journey span{font-size:13px!important}}

/* Catalogue: one row per exam, grouped. Rows read as a table on desktop and stack on phones. */
body.site-home .hs-cat-lead{margin:-8px 0 22px;max-width:65ch;color:var(--hs-muted);font-size:16px;line-height:1.6}
body.site-home .hs-catalogue{display:grid;gap:26px;margin:0 0 40px}
body.site-home .hs-group>h3{margin:0 0 8px!important;font-size:18px!important;line-height:1.3!important;color:var(--hs-ink)!important;font-weight:800}
body.site-home .hs-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--hs-line)}
body.site-home .hs-row{display:grid;grid-template-columns:minmax(170px,1.1fr) minmax(0,2fr) minmax(120px,.8fr) minmax(150px,auto);gap:8px 24px;align-items:center;padding:16px 4px;border-bottom:1px solid var(--hs-line);transition:background-color .2s}
body.site-home .hs-row:hover{background:var(--hs-surface)}
body.site-home .hs-exam h4{margin:0;font-size:17px;line-height:1.3;color:var(--hs-ink);font-weight:800}
body.site-home .hs-exam span{display:block;margin-top:2px;color:var(--hs-muted);font-size:13px;line-height:1.45}
body.site-home .hs-subjects{margin:0;color:var(--hs-ink);font-size:14px;line-height:1.55}
body.site-home .hs-count{margin:0;display:flex;flex-direction:column;line-height:1.25}
body.site-home .hs-count b{font-size:20px;font-weight:800;color:var(--hs-pink);font-variant-numeric:tabular-nums}
body.site-home .hs-count span{color:var(--hs-muted);font-size:12px;margin-top:2px}
body.site-home .hs-links{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:flex-end}
body.site-home .hs-links a{display:inline-flex;align-items:center;gap:4px;min-height:40px;color:var(--hs-pink);font-size:14px;font-weight:800;text-decoration:none;white-space:nowrap}
body.site-home .hs-links a:hover{text-decoration:underline;text-underline-offset:4px}
body.site-home .hs-links-years{display:grid;grid-template-columns:repeat(2,auto);justify-content:end;gap:0 16px}

/* The four mixed-sample cards now sit under the catalogue as the "not sure yet" route. */
body.site-home .hs-sample{margin:0 0 18px}
body.site-home .hs-sample h3{margin:0 0 4px!important;font-size:20px!important;line-height:1.35!important;color:var(--hs-ink)!important}
body.site-home .hs-sample p{margin:0;color:var(--hs-muted);font-size:15px;line-height:1.6}

/* Path: practise → report → teacher. The sequence carries meaning, so the steps are an ordered list joined by a rule. */
body.site-home .hs-path{margin:56px auto 0!important}
body.site-home .hs-path h2,body.site-home .hs-rewards h2{margin:0 0 26px!important;font-size:clamp(26px,3vw,38px)!important;line-height:1.2!important;color:var(--hs-ink)!important;max-width:24ch;text-wrap:balance}
html:lang(zh) body.site-home .hs-path h2,html:lang(zh) body.site-home .hs-rewards h2{max-width:none}
body.site-home .hs-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;counter-reset:hs}
body.site-home .hs-step{position:relative;padding:44px 28px 4px 0;counter-increment:hs}
body.site-home .hs-step::before{content:counter(hs);position:absolute;top:0;left:0;width:30px;height:30px;border-radius:50%;background:var(--hs-pink);color:#fff;font-weight:800;font-size:15px;display:grid;place-items:center}
body.site-home .hs-step::after{content:"";position:absolute;top:15px;left:40px;right:12px;height:2px;background:#f3c3d4}
body.site-home .hs-step:last-child::after{display:none}
body.site-home .hs-step h3{margin:0 0 8px!important;font-size:19px!important;line-height:1.3!important;color:var(--hs-ink)!important}
body.site-home .hs-step p{margin:0 0 10px;color:var(--hs-muted);font-size:15px;line-height:1.6;max-width:36ch}
body.site-home .hs-step a{display:inline-flex;align-items:center;gap:4px;min-height:40px;color:var(--hs-pink);font-weight:800;font-size:15px;text-decoration:none}
body.site-home .hs-step a:hover{text-decoration:underline;text-underline-offset:4px}

/* Trial and rewards: plain facts beside a points ledger. */
body.site-home .hs-rewards{margin:56px auto 40px!important}
body.site-home .hs-rewards-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
body.site-home .hs-start,body.site-home .hs-points{border-radius:20px;padding:28px}
body.site-home .hs-start{background:var(--hs-surface)}
body.site-home .hs-points{background:var(--hs-blush)}
body.site-home .hs-start ul,body.site-home .hs-points ul{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:16px}
body.site-home .hs-start h3{margin:0 0 2px!important;font-size:17px!important;line-height:1.35!important;color:var(--hs-ink)!important;margin:0 0 2px;font-size:17px;color:var(--hs-ink);font-weight:800}
body.site-home .hs-start p{margin:0;color:var(--hs-muted);font-size:15px;line-height:1.55}
body.site-home .hs-points h3{margin:0 0 16px!important;font-size:19px!important;color:var(--hs-ink)!important}
body.site-home .hs-points li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:baseline}
body.site-home .hs-points li b{font-size:28px;line-height:1;font-weight:800;color:var(--hs-pink);font-variant-numeric:tabular-nums;text-align:right}
body.site-home .hs-points li span{color:var(--hs-ink);font-size:15px;line-height:1.5}
body.site-home .hs-points-example{margin:0 0 8px;color:var(--hs-ink);font-size:15px;font-weight:700;line-height:1.55}
body.site-home .hs-points-note{margin:0 0 20px;color:#5a4250;font-size:13px;line-height:1.55}
body.site-home .hs-button{display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 20px;border-radius:12px;background:var(--hs-pink);color:#fff;font-weight:800;font-size:15px;text-decoration:none;transition:background-color .2s}
body.site-home .hs-button:hover{background:#a90f43;color:#fff}
body.site-home .hs-button-outline{background:#fff;color:var(--hs-pink);border:1px solid var(--hs-pink)}
body.site-home .hs-button-outline:hover{background:#fff;color:#a90f43;border-color:#a90f43}

@media (max-width:900px){
 body.site-home .hs-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:16px 0}
 body.site-home .hs-exam{grid-column:1}
 body.site-home .hs-count{grid-column:2;grid-row:1;align-items:flex-end;text-align:right}
 body.site-home .hs-subjects{grid-column:1/-1}
 body.site-home .hs-links{grid-column:1/-1;justify-content:flex-start}
 body.site-home .hs-links-years{grid-template-columns:repeat(4,auto);justify-content:start}
 body.site-home .hs-steps{grid-template-columns:minmax(0,1fr);gap:8px}
 body.site-home .hs-step{padding:0 0 8px 46px}
 body.site-home .hs-step::after{top:38px;bottom:0;left:14px;right:auto;width:2px;height:auto}
 body.site-home .hs-rewards-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:480px){
 body.site-home .hs-start,body.site-home .hs-points{padding:22px 18px}
 body.site-home .hs-links-years{grid-template-columns:repeat(2,auto)}
 body.site-home .hs-points li{grid-template-columns:52px minmax(0,1fr)}
 body.site-home .hs-points li b{font-size:24px}
}
@media (prefers-reduced-motion:reduce){body.site-home .hs-row,body.site-home .hs-lang-link,body.site-home .hs-button{transition:none}}
/* The sample cards are now the secondary route under the catalogue: drop the tall fixed card height. */
/* home-faithful sets the 380px height as a layered !important; the first-declared layer (header-repair.css) wins. */
@layer vip-header-repair{body.site-home #practice .vp-cards .vp-category{min-height:0!important}body.site-home #practice .vp-cards .vp-card-copy p{margin-bottom:18px!important}}
/* Sample-card icons: drawn icon in flow beside the heading, no tile of its own (slice 3 rule, icon-tile-stack).
   Declared in the first layer so it beats header-repair/home-refresh tile sizes, and unlayered for static readers. */
@layer vip-header-repair{body.site-home #practice.vip-finder .vp-category .vp-art .b-product-icon{width:auto!important;height:auto!important;min-width:0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}body.site-home #practice.vip-finder .vp-category .vp-art .b-product-icon svg{width:32px!important;height:32px!important}body.site-home #practice .vp-start-panel{border:0 none!important;background:none!important;box-shadow:none!important}}
body.site-home #practice .vp-art .b-product-icon{width:auto;height:auto;background:none;border:0;border-radius:0}
body.site-home #practice .vp-start-panel{border:0 none!important;background:none!important;padding:0!important}
