/* RLR Kumon-style visual system
   Classes are prefixed rlr-kumon-* so they can roll out to the homepage,
   subject pages, sales pages, and How Rocky Works without touching Stripe
   links or prices. Documented in /workspace/site-redesign/kumon-style/README.md
*/
.rlr-kumon{--rk-navy:#0A1634;--rk-ink:#1F2A44;--rk-muted:#5B6680;--rk-coral:#E8590C;--rk-coral-dark:#C2410C;--rk-gold:#FFCF5A;--rk-band-blue:#F3F8FF;--rk-band-cream:#FFF8EE;--rk-band-mint:#F3FBF6;--rk-band-peach:#FFF4EC;--rk-band-lilac:#F6F3FF;--rk-card:#fff;--rk-line:#E3EEFC;--rk-shadow:0 8px 24px rgba(10,22,52,.08);--rk-max:1080px;--rk-radius:20px;color:var(--rk-ink);font-family:Barlow,system-ui,sans-serif;line-height:1.6;font-size:18px}
.rlr-kumon *,.rlr-kumon *::before,.rlr-kumon *::after{box-sizing:border-box}
.rlr-kumon-wrap{max-width:var(--rk-max);margin:0 auto;padding:0 24px}
.rlr-kumon-band{padding:72px 0;background:#fff}
.rlr-kumon-band--blue{background:var(--rk-band-blue)}
.rlr-kumon-band--cream{background:var(--rk-band-cream)}
.rlr-kumon-band--mint{background:var(--rk-band-mint)}
.rlr-kumon-band--peach{background:var(--rk-band-peach)}
.rlr-kumon-band--lilac{background:var(--rk-band-lilac)}
.rlr-kumon-band--navy{background:linear-gradient(135deg,#0A1634,#17316B);color:#fff}
.rlr-kumon-band--navy .rlr-kumon-lead,.rlr-kumon-band--navy .rlr-kumon-kicker{color:#DBE6FF}
.rlr-kumon-band--navy h1,.rlr-kumon-band--navy h2{color:#fff}
.rlr-kumon-kicker{display:block;font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#1D4ED8;margin:0 0 10px}
.rlr-kumon h1,.rlr-kumon h2,.rlr-kumon h3{font-family:Lora,Georgia,serif;color:var(--rk-navy);line-height:1.22;margin:0 0 14px}
.rlr-kumon h1{font-size:clamp(2rem,4.4vw,3.1rem)}
.rlr-kumon h2{font-size:clamp(1.55rem,3vw,2.15rem)}
.rlr-kumon h3{font-size:1.28rem}
.rlr-kumon-lead{font-size:1.12rem;color:var(--rk-muted);max-width:720px;margin:0 0 22px}
.rlr-kumon-center{text-align:center}
.rlr-kumon-center .rlr-kumon-lead{margin-left:auto;margin-right:auto}

/* Hero: big photo + short intro */
.rlr-kumon-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.rlr-kumon-hero .rlr-kumon-photo img,.rlr-kumon-photo img{width:100%;height:auto;display:block;border-radius:22px}

/* Numbered steps at the top (sales pages keep long copy below) */
.rlr-kumon-toplist{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0 8px;padding:0;list-style:none}
.rlr-kumon-toplist li{background:#fff;border:1px solid var(--rk-line);border-radius:16px;padding:18px 16px 16px;box-shadow:var(--rk-shadow);text-align:center}
.rlr-kumon-toplist img{width:72px;height:72px;margin:0 auto 10px;display:block}
.rlr-kumon-toplist strong{display:block;color:var(--rk-navy);margin-bottom:4px}

/* Step rows: badge + copy + graphic */
.rlr-kumon-steps{display:flex;flex-direction:column;gap:56px;margin:36px 0 0}
.rlr-kumon-step{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.rlr-kumon-step:nth-child(even){direction:rtl}
.rlr-kumon-step:nth-child(even) > *{direction:ltr}
.rlr-kumon-badge{width:56px;height:56px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:1.35rem;background:#E85D04;margin-bottom:12px}
.rlr-kumon-badge--2{background:#1D4ED8}
.rlr-kumon-badge--3{background:#0F9F6E}
.rlr-kumon-badge--4{background:#7C3AED}
.rlr-kumon-icon{width:120px;height:120px;display:block;margin:0 0 16px}
.rlr-kumon-visual{display:flex;flex-direction:column;gap:14px}
.rlr-kumon-copy p{margin:0 0 14px}
.rlr-kumon-longform p{margin:0 0 16px}

/* Cards / icon rows / comparison / photo captions */
.rlr-kumon-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;margin:28px 0 0}
.rlr-kumon-card{background:var(--rk-card);border:1px solid var(--rk-line);border-radius:var(--rk-radius);padding:24px 22px 22px;box-shadow:var(--rk-shadow)}
.rlr-kumon-card img{width:88px;height:88px;display:block;margin:0 0 14px}
.rlr-kumon-card h3{margin-top:0}
.rlr-kumon-card--reading{background:linear-gradient(180deg,#fff,#F3F8FF)}
.rlr-kumon-card--writing{background:linear-gradient(180deg,#fff,#FFF8EE)}
.rlr-kumon-card--math{background:linear-gradient(180deg,#fff,#F3FBF6)}
.rlr-kumon-card--community{background:linear-gradient(180deg,#fff,#F6F3FF)}
.rlr-kumon-icons{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;margin:28px 0 0}
.rlr-kumon-icon-item{text-align:center;background:#fff;border-radius:16px;padding:20px 16px;border:1px solid var(--rk-line)}
.rlr-kumon-icon-item img{width:84px;height:84px;margin:0 auto 10px;display:block}
.rlr-kumon-photo{margin:0}
.rlr-kumon-photo figcaption,.rlr-kumon figcaption{font-size:.92rem;color:var(--rk-muted);margin-top:10px}
/* Compatible with existing rlr-photo float helpers inside this system */
.rlr-kumon figure.rlr-photo{float:none;width:auto;max-width:100%;margin:0}
.rlr-kumon-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0 0}
.rlr-kumon-compare-col{background:#fff;border-radius:18px;padding:22px;border:1px solid var(--rk-line)}
.rlr-kumon-compare img{width:100%;height:auto;display:block;margin-bottom:12px}
.rlr-kumon-creds{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:24px 0 0}
.rlr-kumon-creds article{background:#fff;border-radius:16px;padding:18px 16px;border:1px solid var(--rk-line)}

/* CTAs — always point these at an email-first assessment */
.rlr-kumon-cta{text-align:center}
.rlr-kumon-btn{display:inline-block;background:var(--rk-coral);color:#fff!important;font-weight:800;text-decoration:none;padding:16px 28px;border-radius:999px;font-size:1.05rem;box-shadow:0 5px 0 #B02A1C}
.rlr-kumon-btn:hover{background:var(--rk-coral-dark);color:#fff!important}
.rlr-kumon-btn-secondary{display:inline-block;margin-top:10px;color:#1D4ED8;font-weight:700;text-decoration:none}
.rlr-kumon-card .rlr-kumon-btn{padding:12px 18px;font-size:.98rem;margin-top:8px}
.rlr-kumon-fine{font-size:.88rem;color:var(--rk-muted);margin:12px 0 0}

/* What's inside: fixed columns so 6 cards form a 3x2 (not 5+1 orphan). Math/writing have 5 cards = 3+2. */
#whats-inside .rlr-kumon-cards{grid-template-columns:repeat(3,minmax(0,1fr))}

@media (max-width:800px){
  .rlr-kumon-hero,.rlr-kumon-step,.rlr-kumon-step:nth-child(even),.rlr-kumon-compare,.rlr-kumon-toplist{grid-template-columns:1fr;direction:ltr}
  .rlr-kumon-band{padding:48px 0}
  .rlr-kumon-toplist{grid-template-columns:1fr 1fr}
  #whats-inside .rlr-kumon-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){
  .rlr-kumon-toplist{grid-template-columns:1fr}
  .rlr-kumon{font-size:17px}
  #whats-inside .rlr-kumon-cards{grid-template-columns:1fr}
}
