/* Business Partner Program theme: Royal Diamond USA x RD AnalytiX (navy + electric blue) */
:root{
  --red:#2F6BFF; --red-dark:#1D4FD8; --red-soft:#EAF0FF;
  --ink:#0B1A3A; --ink-2:#1E2B4A; --muted:#55607A; --line:#E3E8F2;
  --sand:#F4F7FC; --sand-2:#E9EEF7;
  --h:"Plus Jakarta Sans",system-ui,sans-serif;
}
h1,h2,h3,h4{letter-spacing:-.012em}
.hero{background:radial-gradient(1100px 520px at 85% -10%,#E3ECFF,transparent 60%),#fff}
.stats{background:linear-gradient(135deg,#0B1A3A 0%,#13295C 100%)}
.stat b em,.stats .eyebrow,.cta .eyebrow{color:#7FA6FF!important}
.compare td.us{background:#F5F8FF}
.compare th.us{background:var(--ink)}
.phase{border-top-color:var(--red)}
.phase.you{background:var(--ink);border-top-color:#7FA6FF}
.cta{background:linear-gradient(135deg,#0B1A3A 0%,#16306B 100%)}
.foot{background:#071230}
.btn-red{box-shadow:0 8px 22px rgba(47,107,255,.28)}

/* header lockup: Royal Diamond USA x RD AnalytiX */
.brand .x{font:600 1.1rem/1 var(--b);color:var(--muted);margin:0 2px}
.brand .rdx{height:38px;width:auto}
.foot .brand .rdx{filter:brightness(0) invert(1);opacity:.9}

/* sister company block */
.sister{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.sister .card{position:relative;overflow:hidden}
.sister .card .tag{display:inline-block;font:800 .72rem/1 var(--h);letter-spacing:.12em;text-transform:uppercase;padding:7px 10px;border-radius:7px;margin-bottom:16px}
.sister .rd .tag{background:#FCEBEE;color:#C8102E}
.sister .rdxc .tag{background:#EAF0FF;color:#2F6BFF}
.sister .card img.lg{height:44px;width:auto;margin-bottom:16px}
.sister ul{margin:14px 0 0;padding-left:18px;color:var(--ink-2)}
.sister li{margin-bottom:8px}

@media (max-width:640px){
  .hero-v{background:linear-gradient(180deg,#EEF3FF 0%,#FFFFFF 70%)}
  .stat b,.stat b em{color:#7FA6FF}
  .brand .rdx{height:28px}
  .brand .rdx-word{display:none}
  .compare td.us{border-top-color:#D6E2FF}
  .sister{grid-template-columns:1fr}
}
/* ===== Alignment pass, Nov 16 2026: centred headings, edge-to-edge desktop ===== */
.sec-head.center p{margin-left:auto;margin-right:auto;max-width:700px}
@media (min-width:861px){
  :root{--wrap:1440px}
  .wrap{padding-left:40px;padding-right:40px}
}
/* phones and tablets: centre text blocks that sit above pictures/forms */
@media (max-width:860px){
  .hero-v .hv-head,.hero-v .hv-body,.hero-v .hv-text{text-align:center}
  .hero-v .lead{margin-left:auto;margin-right:auto}
  .hero-v .btn-row,.trust-row{justify-content:center}
  .split > .rv:first-child,.split > div:not(.split-media):first-child{text-align:center}
  .split .lead{margin-left:auto;margin-right:auto}
  .split .ticks,.split ul{text-align:left}
  .split img[alt*="GoldenEgg"],.split img[alt*="AnalytiX"]{margin-left:auto;margin-right:auto}
  .cta > div:first-child{text-align:center}
  .cta .lead{margin-left:auto;margin-right:auto}
  .contact-list{display:inline-block;text-align:left}
  .stats-grid > *,.stats-note{text-align:center}
}
/* ===== Math Teacher 2.0 on the business site ===== */
.launchbar{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 16px;background:var(--red);color:#fff;text-decoration:none;font:500 .92rem/1.3 var(--b);text-align:center}
.launchbar:hover{background:var(--red-dark)}
.launchbar b{font-weight:700}
.lb-tag{flex:0 0 auto;background:#fff;color:var(--red);font:800 .68rem/1 var(--h);letter-spacing:.12em;padding:5px 8px;border-radius:999px}
.lb-cta{flex:0 0 auto;font:700 .88rem/1 var(--h);text-decoration:underline;text-underline-offset:3px}
#mt2{scroll-margin-top:100px}
.mt2-split{max-width:1100px;margin:0 auto}
.mt2-frame{position:relative;background:#fff;aspect-ratio:1/1}
.mt2-frame img{object-fit:contain}
.mt2-new{position:absolute;top:16px;left:16px;background:var(--red);color:#fff;font:800 .72rem/1 var(--h);letter-spacing:.12em;padding:8px 12px;border-radius:999px}
.mt2-stores{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:56px}
.mt2-shot{display:block;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .15s}
.mt2-shot:hover{transform:translateY(-2px)}
.mt2-shot .img{height:280px;background:#fff;border-bottom:1px solid var(--line)}
.mt2-shot .img img{width:100%;height:100%;object-fit:contain;object-position:center}
.mt2-shot b{display:block;padding:16px 20px;font:700 1.1rem/1.2 var(--h)}
@media (max-width:860px){
  .mt2-stores{grid-template-columns:1fr 1fr;gap:12px;margin-top:36px}
  .mt2-shot .img{height:200px}
  .mt2-shot b{padding:12px 14px;font-size:.95rem;text-align:center}
  .mt2-split .btn-row{justify-content:center}
}
@media (max-width:640px){
  .launchbar{font-size:.84rem;gap:8px;padding:9px 12px}
  .lb-more{display:none}
  .mt2-shot .img{height:170px}
  #mt2{scroll-margin-top:120px}
}

/* ===== Justified body text (Nov 16 2026) ===== */
main p, main li, main dd, .faq details p, .modal p, .foot p{text-align:justify;-webkit-hyphens:auto;hyphens:auto;word-spacing:normal}
/* centred intros: justified lines, last line centred */
.center p, .sec-head.center p, .center .lead, p.muted.small.center{text-align:justify;text-align-last:center}
/* keep short UI text as it was */
.btn, .btn-row, .eyebrow, .num, .plinks, .video-cap, .stats-note, .trust-row, .trust-row *, .contact-list li, .form p, .note, .form-ok, label, .shot .body b, .mt2-shot b, figcaption, .steps p{hyphens:manual}
.plinks, .video-cap, .note, .form-ok, .contact-list li{text-align:inherit;text-align-last:auto}
@media (max-width:860px){
  .hero-v .lead, .split > .rv:first-child > p, .split > div:not(.split-media):first-child > p, .cta .lead, .stats-note{text-align:justify;text-align-last:center}
}

main figcaption span, main td, .jcard figcaption > span{text-align:justify;-webkit-hyphens:auto;hyphens:auto}

/* fully justified: every last line starts on the left, no centred last lines */
main p, main li, main figcaption span, main td, .foot p, .modal p,
.center p, .sec-head.center p, .center .lead, p.muted.small.center,
.hero-v .lead, .split p, .cta .lead, .stats-note{text-align:justify!important;text-align-last:left!important}
.plinks, .video-cap, .note, .form-ok, .btn-row, .trust-row span{text-align-last:auto!important}

/* headings justified too; in centred sections the last line stays centred */
main h1, main h2, main h3, main h4, .modal h3, .foot h4{text-align:justify!important;text-align-last:left!important;-webkit-hyphens:manual;hyphens:manual}
.center h1, .center h2, .center h3, .sec-head.center h2, .sec-head.center h3{text-align-last:center!important}
@media (max-width:860px){
  .hero-v h1, .split > .rv:first-child h2, .split > div:not(.split-media):first-child h2, .cta h2{text-align-last:center!important}
}

/* ===== Final heading style: headings follow their section alignment, balanced lines ===== */
main h1, main h2, main h3, main h4, .modal h3, .foot h4,
.center h1, .center h2, .center h3, .sec-head.center h2, .sec-head.center h3,
.hero-v h1, .split h2, .cta h2{text-align:inherit!important;text-align-last:auto!important}
main h1, main h2, .modal h3{text-wrap:balance}
/* short intros and captions under centred headings: justified, last line centred */
.sec-head.center p, .sec-head.center .lead, p.muted.small.center{text-align:justify!important;text-align-last:center!important}
@media (max-width:860px){
  .hero-v .lead, .split > .rv:first-child > p, .split > div:not(.split-media):first-child > p, .cta .lead, .stats-note{text-align-last:center!important}
}

/* ===== Hero headline refresh (Nov 16 2026) ===== */
.hero-v h1{text-wrap:pretty!important;letter-spacing:-.03em;line-height:1.04}
.hero-v h1 .red{margin-top:.08em}
@media (min-width:861px){
  .hero-v .hero-grid{grid-template-columns:minmax(0,1fr) 360px;gap:72px}
  .hero-v h1{font-size:clamp(2.6rem,3.7vw,3.6rem);max-width:15.5em}
  .hero-v .lead{max-width:640px}
}
@media (max-width:640px){
  .hero-v h1{font-size:2rem;line-height:1.08}
}

@media (min-width:861px){.hero-v h1{max-width:none;font-size:clamp(2.4rem,3.25vw,3.3rem)}}

/* mobile hero: balanced headline lines, clean intro without hyphen breaks */
@media (max-width:860px){
  .hero-v h1{text-wrap:balance!important}
  .hero-v .lead{-webkit-hyphens:none!important;hyphens:none!important;text-align:center!important;text-align-last:center!important}
}
@media (max-width:640px){
  .hero-v h1{font-size:1.95rem;line-height:1.1}
  .hero-v .hv-head .eyebrow{font-size:.66rem;letter-spacing:.12em}
}

@media (max-width:860px){.hero-v h1 .red{text-wrap:wrap!important}}

@media (max-width:860px){.hero-v h1 .red{text-wrap:balance!important}}

.hero-v .hv-head .eyebrow{gap:0}

/* mobile hero: left-aligned (Nov 16 2026) */
@media (max-width:860px){
  .hero-v .hv-head,.hero-v .hv-body,.hero-v .hv-text{text-align:left!important}
  .hero-v h1,.hero-v h1 .red{text-align:left!important;text-align-last:left!important}
  .hero-v .lead{text-align:left!important;text-align-last:left!important;margin-left:0!important;margin-right:0!important;-webkit-hyphens:none!important;hyphens:none!important}
  .hero-v .launch-pill{margin-left:0!important;margin-right:0!important}
  .hero-v .btn-row,.hero-v .trust-row{justify-content:flex-start!important}
  .hero-v .hv-head .eyebrow{margin-left:0}
}

/* fitted headline (phones) */
@media (max-width:860px){
  .hero-v h1.hfit{text-wrap:wrap!important;line-height:1.02;letter-spacing:-.02em;width:100%}
  .hero-v h1.hfit .fl{display:block;white-space:nowrap;width:max-content}
  .hero-v h1.hfit .red{display:block;margin-top:.12em}
}

/* justified hero headline on phones: same size, equal-length lines, edge to edge */
@media (max-width:860px){
  .hero-v .hv-head{width:100%;min-width:0}
  .hero-v h1.hfit{font-size:2.05rem!important;line-height:1.08;letter-spacing:-.025em}
  .hero-v h1.hfit .fl{display:block;width:auto!important;font-size:inherit!important;white-space:nowrap;text-align:justify!important;text-align-last:justify!important}
  .hero-v h1.hfit .red{display:block;margin-top:.1em}
}

@media (max-width:860px){
  .hero-v h1.hfit{font-size:inherit}
  .hero-v h1.hfit .fl{display:block;width:max-content!important;max-width:none;text-align:left!important;text-align-last:auto!important;letter-spacing:0}
  .hero-v h1.hfit{overflow:visible}
}

/* hero headline: final */
.hero-v h1.hfit .fl{letter-spacing:inherit!important;font-size:inherit!important}
@media (min-width:861px){.hero-v h1.hfit .fl{display:inline!important;width:auto!important}}
@media (max-width:860px){
  .hero-v h1.hfit{text-align:left!important;text-align-last:left!important;line-height:1.06;letter-spacing:-.025em;text-wrap:nowrap!important}
  .hero-v h1.hfit .fl{display:block!important;width:max-content!important;white-space:nowrap}
  .hero-v h1.hfit .red{display:block;margin-top:.12em}
}

/* hero headline: stacked lines on phones (flex removes stray gaps) */
@media (max-width:860px){
  .hero-v h1.hfit{display:flex!important;flex-direction:column;align-items:flex-start;line-height:1.06!important}
  .hero-v h1.hfit .red{display:flex!important;flex-direction:column;align-items:flex-start}
  .hero-v h1.hfit .fl{line-height:1.06}
}

@media (max-width:860px){.hero-v h1.hfit,.hero-v h1.hfit .red{gap:0!important;row-gap:0!important}.hero-v h1.hfit .red{margin-top:.14em}}

@media (max-width:860px){.hero-v h1.hfit .fl{line-height:1.08!important}}

@media (min-width:861px){.hero-v h1.hfit .fl{display:block!important}.hero-v h1.hfit{font-size:clamp(2.6rem,3.6vw,3.6rem)!important;line-height:1.06}.hero-v h1.hfit .red{display:block;margin-top:.1em}}
