/* ============================================================
   Shared by the hub (home_umbrella) and the three track pages
   (category_japanese, category_french, home_python):
   .tp-hero  — compact track hero      (core/_track_hero.html)
   .pf       — price band + how it works (core/_price_flow.html)
   Accent colour: --tc on the wrapping element (track colour, or the hub violet). --tc-text (default --tc)
   colours text: a light accent (the Python gold) passes a deeper shade so text keeps 4.5:1.
   ============================================================ */
.tp-hero, .pf, .tpb { --tp-ink:#16121C; --tp-soft:#4E4760; --tp-line:#ECE8F2;
  --tp-display:'Playfair Display','Fraunces',Georgia,serif;
  --tp-sans:'Figtree',-apple-system,BlinkMacSystemFont,system-ui,'Segoe UI',sans-serif;
  font-family:var(--tp-sans); color:var(--tp-ink); }
.tp-hero *, .pf *, .tpb * { box-sizing:border-box; }
.tp-hero a, .pf a { text-decoration:none; }
.tp-wrap { max-width:1140px; margin:0 auto; padding:0 24px; }
.tp-arrow { width:20px; height:20px; flex-shrink:0; transition:transform .15s ease; }
a:hover .tp-arrow { transform:translateX(3px); }

/* ── Compact hero ── */
.tp-hero { --tc:#5E2479; padding:34px 0 30px;
  background:var(--tp-tint, linear-gradient(180deg,color-mix(in srgb,var(--tc) 4%,#fff) 0%,color-mix(in srgb,var(--tc) 8%,#fff) 100%)); }
.tp-hero__grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  grid-template-areas:"kicker art" "title art" "lede art" "cta art"; column-gap:36px; align-items:center; }
.tp-hero__kicker { grid-area:kicker; align-self:end; font-size:14px; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:var(--tp-kicker, var(--tc)); margin:0 0 16px; }
.tp-hero__title { grid-area:title; font-family:var(--tp-display); font-weight:800; font-size:clamp(54px,6.6vw,88px); line-height:1; letter-spacing:-.025em; margin:0 0 20px; }
.tp-hero__title em { font-style:normal; color:var(--tp-title, var(--tc)); }
.tp-hero__lede { grid-area:lede; font-size:clamp(18px,2vw,24px); line-height:1.45; color:var(--tp-soft); max-width:34ch; margin:0 0 28px; }
.tp-hero__lede b { color:var(--tp-ink); font-weight:700; }
.tp-hero__cta { grid-area:cta; display:flex; flex-wrap:wrap; gap:12px; }
.tp-hero__art { grid-area:art; display:flex; justify-content:center; align-items:center; }
.tp-hero__img { display:block; width:100%; max-width:440px; max-height:330px; object-fit:contain; height:auto; filter:drop-shadow(0 24px 30px rgba(40,20,40,.18)); }

/* ── Price band + how it works ── */
.pf { --tc:#5E2479; padding-top:34px; padding-bottom:8px; }
.pf-band { display:flex; align-items:center; gap:30px; background:color-mix(in srgb,var(--tc) 6%,#fff); border:1px solid color-mix(in srgb,var(--tc) 12%,#fff); border-radius:26px; padding:26px 34px; }
.pf-band__ico { flex-shrink:0; width:84px; height:84px; border-radius:50%; background:#fff; color:var(--tc); display:grid; place-items:center; box-shadow:0 14px 28px -20px color-mix(in srgb,var(--tc) 70%,#000); }
.pf-band__ico svg { width:38px; height:38px; }
.pf-band__text { padding-left:30px; border-left:1px solid color-mix(in srgb,var(--tc) 18%,#fff); }
.pf-band__title { font-family:var(--tp-display); font-weight:800; font-size:clamp(24px,3vw,38px); line-height:1.08; letter-spacing:-.01em; margin:0 0 6px; }
.pf-band__title em { font-style:normal; color:var(--tc-text, var(--tc)); }
.pf-band__price { font-size:clamp(18px,2vw,24px); font-weight:700; color:var(--tc-text, var(--tc)); margin:0 0 4px; }
.pf-band__per { display:inline-block; margin-left:6px; padding:2px 10px; border-radius:999px; background:var(--tc); color:#fff; font-size:.7em; font-weight:700; letter-spacing:.04em; text-transform:uppercase; vertical-align:.15em; }
.pf-band__note { font-size:16px; line-height:1.5; color:var(--tp-soft); margin:0; }
.pf-band__note a { color:var(--tc-text, var(--tc)); font-weight:600; text-decoration:underline; }

.pf-how { margin-top:34px; }
.pf-eyebrow { display:flex; align-items:center; gap:14px; font-size:13px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--tc-text, var(--tc)); margin:0 0 18px; }
.pf-eyebrow::before { content:""; width:30px; height:2px; background:currentColor; border-radius:1px; }
.pf-steps { display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr; align-items:start; margin:0; padding:0; list-style:none; }
.pf-step { text-align:center; padding:0 6px; }
.pf-step__ico { width:62px; height:62px; margin:0 auto 10px; border-radius:50%; background:color-mix(in srgb,var(--tc) 9%,#fff); color:var(--tc); display:grid; place-items:center; }
.pf-step__ico svg { width:28px; height:28px; }
.pf-step h3 { font-family:var(--tp-display); font-weight:800; font-size:23px; color:var(--tc-text, var(--tc)); margin:0 0 6px; }
.pf-step p { font-size:15.5px; line-height:1.45; color:var(--tp-soft); margin:0; }
.pf-arrow { margin-top:22px; color:color-mix(in srgb,var(--tc) 55%,#fff); }
.pf-arrow svg { width:22px; height:22px; }

/* ── Phone ── */
@media (max-width:760px){
  .tp-wrap { padding:0 16px; }
  .tp-hero { padding:22px 0 24px; }
  /* the title column is as wide as the longest word ("Japanese."), the art takes what is left: they never overlap */
  .tp-hero__grid { grid-template-columns:max-content minmax(0,1fr); grid-template-areas:"kicker kicker" "title art" "lede lede" "cta cta"; column-gap:12px; }
  .tp-hero__kicker { font-size:12px; letter-spacing:.18em; margin-bottom:12px; }
  .tp-hero__title { font-size:clamp(40px,11.5vw,62px); margin:0; }
  .tp-hero__title em { display:block; }
  .tp-hero__img { max-height:170px; }
  .tp-hero__lede { font-size:18.5px; max-width:none; margin:16px 0 18px; }
  .tp-hero__cta { flex-direction:column; }

  .pf { padding-top:26px; }
  .pf-band { flex-direction:column; align-items:flex-start; gap:14px; padding:22px 20px; border-radius:20px; }
  .pf-band__ico { width:56px; height:56px; }
  .pf-band__ico svg { width:26px; height:26px; }
  .pf-band__text { padding-left:0; border-left:0; }
  .pf-band__note { font-size:15px; }
  .pf-how { margin-top:28px; }
  .pf-eyebrow { font-size:11.5px; }
  .pf-steps { grid-template-columns:1fr 1fr; gap:24px 12px; }
  .pf-arrow { display:none; }
  .pf-step h3 { font-size:21px; }
  .pf-step p { font-size:14.5px; }
}

/* ── Philosophy band: "Depth. Not Breadth." + the track's BitSize logo (core/_philosophy.html) ── */
.tpb { --tc:#5B2E63; padding-top:40px; padding-bottom:64px; }
.tpb-band { display:flex; align-items:center; gap:30px; background:color-mix(in srgb,var(--tc) 6%,#fff); border:1px solid color-mix(in srgb,var(--tc) 12%,#fff); border-radius:26px; padding:28px 36px; }
.tpb-ico { flex-shrink:0; width:88px; height:88px; border-radius:50%; background:var(--tc); color:#fff; display:grid; place-items:center; box-shadow:0 14px 30px -16px color-mix(in srgb,var(--tc) 85%,#000); }
.tpb-ico svg { width:42px; height:42px; }
.tpb-text { padding-left:30px; border-left:1px solid color-mix(in srgb,var(--tc) 20%,#fff); }
.tpb-title { font-family:var(--tp-display); font-weight:800; font-size:clamp(28px,3.6vw,44px); line-height:1.05; letter-spacing:-.01em; color:var(--tc-text, var(--tc)); margin:0 0 6px; }
.tpb-title span { color:color-mix(in srgb,var(--tc-text, var(--tc)) 72%,#fff); }   /* lighter half, still ≥ 3:1 for large text (gold passes --tc as its deep shade) */
.tpb-note { font-size:17px; color:var(--tp-soft); margin:0; }
.tpb-brand { margin-left:auto; display:flex; align-items:center; gap:16px; color:var(--tc); flex-shrink:0; padding-right:8px; }
.tpb-brand svg { height:86px; width:auto; display:block; }
.tpb-word { display:flex; flex-direction:column; gap:6px; font-family:'Fraunces',Georgia,serif; line-height:1; }
.tpb-word b { font-weight:500; font-size:44px; letter-spacing:-.015em; color:var(--tp-ink); }
.tpb-word b em { font-style:italic; font-weight:460; color:var(--tc); display:inline-block; transform:skewX(-5deg); margin-left:1px; }
.tpb-word span { font-style:italic; font-weight:420; font-size:25px; color:var(--tc); display:inline-block; transform:skewX(-5deg); }
@media (max-width:1020px){ .tpb-brand { display:none; } }
@media (max-width:760px){
  .tpb { padding-top:26px; padding-bottom:44px; }
  .tpb-band { gap:18px; padding:20px; border-radius:20px; }
  .tpb-ico { width:60px; height:60px; } .tpb-ico svg { width:30px; height:30px; }
  .tpb-text { padding-left:18px; }
  .tpb-title { font-size:clamp(21px,6.6vw,28px); white-space:nowrap; }
  .tpb-note { font-size:15px; }
}

/* ── Tier strip: three small cards, each naming its lessons and what opens them (core/_tier_strip.html) ── */
.tier { --tc:#5B2E63; margin:4px 0 0; font-family:'Figtree',-apple-system,BlinkMacSystemFont,system-ui,'Segoe UI',sans-serif; max-width:520px; }
.tier__label { margin:0 0 8px; font-size:11.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#6A6478; }
.tier__row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.tier__step { display:flex; flex-direction:column; gap:4px; padding:10px 12px 11px; border-radius:14px; background:#fff;
  border:1.5px solid color-mix(in srgb,var(--tc) 18%,#fff); min-width:0; }
.tier__step--sub { border-color:color-mix(in srgb,var(--tc) 50%,#fff); background:color-mix(in srgb,var(--tc) 5%,#fff); }
.tier__n { font-size:12px; font-weight:800; letter-spacing:.02em; color:color-mix(in srgb,var(--tc) 60%,#000); white-space:nowrap; }
.tier__txt { font-size:16px; font-weight:800; color:#16121C; white-space:nowrap; }
.tier__link { color:var(--tc-text, var(--tc)) !important; text-decoration:underline !important; text-underline-offset:3px; text-decoration-thickness:2px; }
.tier__link:hover { text-decoration-thickness:3px; }
.tier__done { color:#1A7F4B !important; }
@media (max-width:760px){
  .tier__label { font-size:10.5px; margin-bottom:6px; }
  .tier__row { gap:6px; }
  .tier__step { padding:8px 9px 9px; border-radius:12px; gap:3px; }
  .tier__n { font-size:11px; }
  .tier__txt { font-size:14.5px; }
}
@media (prefers-reduced-motion:reduce){ .tp-arrow { transition:none; } }
