/* DDJ Tutoring - Production Front Page
   Visual direction blends the earlier BrightPath landing page with the current DDJ portal.
*/
:root{
  --bp-primary:#4f46e5;
  --bp-primary-dark:#312e81;
  --bp-secondary:#2563eb;
  --bp-ink:#111827;
  --bp-muted:#64748b;
  --bp-soft:#f7f9ff;
  --bp-border:#e5e7eb;
  --bp-white:#fff;
  --bp-success:#16a34a;
  --bp-radius:1.1rem;
  --bp-shadow:0 18px 50px rgba(31,41,55,.08)
}
html{scroll-behavior:smooth}
body.front-page{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--bp-ink);background:var(--bp-white);line-height:1.65
}
.front-page a{color:var(--bp-primary);text-decoration:none}
.front-page img{max-width:100%}
.skip-link{position:absolute;left:-9999px;top:.75rem;z-index:9999;background:#fff;color:#111827;padding:.75rem 1rem;border-radius:.5rem}
.skip-link:focus{left:.75rem}

.site-header{background:rgba(255,255,255,.95);border-bottom:1px solid rgba(229,231,235,.9);backdrop-filter:blur(14px)}
.site-header .navbar{min-height:78px}
.brand-icon{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:12px;color:#fff;font-size:1.35rem;background:linear-gradient(135deg,var(--bp-primary-dark),var(--bp-primary))}
.brand-copy{line-height:1;display:grid}
.brand-copy strong{font-size:1.28rem;color:#172554;letter-spacing:-.03em}
.brand-copy strong span{color:var(--bp-primary)}
.brand-copy small{font-size:.58rem;letter-spacing:.20em;color:#475569;margin-top:.35rem}
.site-header .nav-link{color:#172033;font-weight:650;margin:0 .3rem;position:relative}
.site-header .nav-link:hover,.site-header .nav-link.active{color:var(--bp-primary)}
.site-header .nav-link.active::after{content:"";height:2px;background:var(--bp-primary);position:absolute;left:.5rem;right:.5rem;bottom:.1rem}
.btn{border-radius:.7rem;font-weight:700}
.btn-primary{--bs-btn-bg:var(--bp-primary);--bs-btn-border-color:var(--bp-primary);--bs-btn-hover-bg:#4338ca;--bs-btn-hover-border-color:#4338ca}
.btn-outline-primary{--bs-btn-color:var(--bp-primary);--bs-btn-border-color:#8178f8;--bs-btn-hover-bg:var(--bp-primary);--bs-btn-hover-border-color:var(--bp-primary)}

.hero-section{position:relative;overflow:hidden;padding:5.5rem 0 2rem;background:radial-gradient(circle at 80% 20%,rgba(99,102,241,.12),transparent 28rem),linear-gradient(180deg,#fff 0%,#fbfcff 100%)}
.hero-section::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:rgba(129,140,248,.08);left:48%;top:5%}
.eyebrow{display:inline-flex;align-items:center;padding:.55rem .9rem;border-radius:999px;color:#3730a3;background:#eef2ff;font-weight:700;font-size:.9rem}
.hero-title{letter-spacing:-.055em;line-height:1.05;font-size:clamp(3rem,5.4vw,5.2rem)}
.hero-title span{color:var(--bp-primary)}
.hero-lead{max-width:650px;color:#536078;font-size:1.16rem;margin-top:1.3rem}
.hero-visual{min-height:500px;display:grid;place-items:center}
.hero-photo-shell{position:relative;width:min(540px,100%);height:475px;border-radius:34px;overflow:hidden;background:#eef2ff;box-shadow:0 30px 65px rgba(30,41,59,.15)}
.hero-photo{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-photo-shell::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(23,37,84,.12))}
.floating-card{position:absolute;width:245px;display:flex;gap:.8rem;align-items:center;padding:.85rem 1rem;border-radius:.95rem;background:rgba(255,255,255,.97);box-shadow:var(--bp-shadow);border:1px solid rgba(226,232,240,.9);z-index:3}
.floating-card strong,.floating-card small{display:block}.floating-card strong{font-size:.9rem}.floating-card small{color:#64748b;font-size:.74rem}
.fc-icon{flex:0 0 auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff}
.fc-icon.purple{background:var(--bp-primary)}.fc-icon.green{background:#16a34a}.fc-icon.amber{background:#f59e0b}
.fc-1{top:5%;left:-5%}.fc-2{top:38%;right:-6%}.fc-3{bottom:5%;left:1%}
.family-proof{display:flex;align-items:center;gap:1rem;margin-top:1.5rem}
.avatar-stack{display:flex;padding-left:.45rem}.avatar-stack img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:3px solid #fff;margin-left:-.5rem;background:#eef2ff}
.stars{color:#f59e0b;letter-spacing:.1rem}

.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);background:linear-gradient(135deg,#172554,#1e3a8a);color:#fff;border-radius:1rem;box-shadow:var(--bp-shadow)}
.trust-item{display:flex;align-items:center;gap:.95rem;padding:1.25rem}
.trust-item+.trust-item{border-left:1px solid rgba(255,255,255,.22)}
.trust-item>span{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);font-size:1.25rem}
.trust-item strong,.trust-item small{display:block}.trust-item small{color:rgba(255,255,255,.75);line-height:1.45;margin-top:.2rem}

.section-pad{padding:6rem 0}.bg-soft{background:var(--bp-soft)}.section-heading{max-width:760px}.section-heading h2,section h2{letter-spacing:-.035em}
.section-kicker{display:inline-block;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:var(--bp-primary);font-size:.76rem;margin-bottom:.65rem}
.section-heading p{color:var(--bp-muted);font-size:1.05rem}
.feature-card{background:#fff;border:1px solid var(--bp-border);border-radius:var(--bp-radius);padding:1.6rem;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.feature-card:hover{transform:translateY(-5px);box-shadow:var(--bp-shadow);border-color:#c7d2fe}.feature-card h3{font-size:1.05rem;margin-top:1.1rem}.feature-card p{color:var(--bp-muted);margin-bottom:0}
.feature-icon{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;font-size:1.2rem}
.lilac{background:#ede9fe;color:#6d28d9}.mint{background:#dcfce7;color:#15803d}.peach{background:#ffedd5;color:#ea580c}.sky{background:#dbeafe;color:#2563eb}.rose{background:#ffe4e6;color:#e11d48}

.subject-card{display:flex;flex-direction:column;height:100%;color:var(--bp-ink)!important;border:1px solid var(--bp-border);border-radius:var(--bp-radius);background:#fff;padding:1.6rem;transition:.25s ease}
.subject-card:hover{transform:translateY(-4px);box-shadow:var(--bp-shadow);color:var(--bp-primary)!important}
.subject-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#eef2ff;color:var(--bp-primary);font-size:1.35rem;margin-bottom:1rem}.subject-card small{color:var(--bp-muted);margin-top:.3rem}

.step-card{height:100%;background:#fff;border:1px solid var(--bp-border);border-radius:var(--bp-radius);padding:2rem}.step-number{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--bp-primary);color:#fff;font-weight:800;margin-bottom:1rem}.step-card h3{font-size:1.15rem}.step-card p{color:var(--bp-muted);margin-bottom:0}

.diversity-photo{border-radius:24px;overflow:hidden;min-height:430px;box-shadow:var(--bp-shadow);position:relative;background:#eef2ff}
.diversity-photo img{width:100%;height:100%;min-height:430px;object-fit:cover}
.diversity-photo .photo-badge{position:absolute;left:18px;bottom:18px;background:rgba(255,255,255,.95);padding:.7rem .9rem;border-radius:13px;box-shadow:0 10px 25px rgba(15,23,42,.12);font-weight:750}
.portal-preview{background:#fff;border:1px solid #dbe3f0;border-radius:1.2rem;overflow:hidden;box-shadow:var(--bp-shadow);transform:rotate(-1deg)}
.portal-topbar{display:flex;gap:.4rem;padding:.8rem 1rem;border-bottom:1px solid #eef2f7}.portal-topbar span{width:9px;height:9px;border-radius:50%;background:#cbd5e1}
.portal-body{display:grid;grid-template-columns:110px 1fr;min-height:350px}.mini-sidebar{background:#f4f5ff;border-right:1px solid #eef2f7}.mini-main{padding:1rem}.mini-hero{height:100px;border-radius:14px;background:linear-gradient(135deg,#ede9fe,#dbeafe)}
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-top:.8rem}.mini-grid div{height:70px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}.mini-chart{height:115px;margin-top:.8rem;border-radius:12px;background:linear-gradient(180deg,#f8fafc,#eef2ff);border:1px solid #e2e8f0}
.check-list{list-style:none;padding:0;margin:1.5rem 0;display:grid;gap:.9rem}.check-list li{display:flex;gap:.7rem;color:#475569}.check-list i{color:#16a34a;margin-top:.2rem}

.role-card{height:100%;background:#fff;border:1px solid var(--bp-border);border-radius:20px;padding:1.6rem;position:relative;overflow:hidden}.role-card::after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;right:-60px;bottom:-65px;background:#eef2ff}.role-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;font-size:1.4rem}.role-card ul{list-style:none;padding:0;display:grid;gap:.55rem;color:#64748b}.role-card li i{color:#16a34a;margin-right:.45rem}

.pricing-card{position:relative;background:#fff;border:1px solid var(--bp-border);border-radius:var(--bp-radius);padding:2rem}.pricing-card.featured{border:2px solid var(--bp-primary);box-shadow:var(--bp-shadow)}.popular-badge{position:absolute;top:-13px;right:20px;background:var(--bp-primary);color:#fff;font-size:.74rem;font-weight:800;padding:.35rem .7rem;border-radius:999px}.price{font-size:2rem;font-weight:800;color:#172554;margin:.8rem 0}.price small{font-size:.85rem;color:var(--bp-muted);font-weight:600}.pricing-card p{color:var(--bp-muted)}.pricing-note{color:#64748b;font-size:.85rem}

.payment-panel{border-radius:24px;padding:2rem;color:#fff;background:linear-gradient(135deg,#312e81,#4f46e5 60%,#2563eb);box-shadow:0 28px 60px rgba(67,56,202,.22)}
.pay-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.42rem .7rem;background:rgba(255,255,255,.14);border-radius:999px;margin:.2rem;font-size:.82rem}
.resource-card{padding:1.8rem;border:1px solid var(--bp-border);border-radius:var(--bp-radius);background:#fff}.resource-card>i{font-size:1.7rem;color:var(--bp-primary)}.resource-card h3{margin-top:1rem;font-size:1.15rem}.resource-card p{color:var(--bp-muted)}.resource-card a{font-weight:700}

.cta-section{padding:1rem 0 6rem}.cta-card{padding:4rem 2rem;color:#fff;border-radius:1.5rem;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.16),transparent 18rem),linear-gradient(135deg,#312e81,#4f46e5 60%,#2563eb);box-shadow:0 28px 60px rgba(67,56,202,.22)}
.cta-card h2{font-size:clamp(2rem,4vw,3.2rem)}
.site-footer{background:#0f172a;color:#cbd5e1;padding:4.5rem 0 2rem}.site-footer .brand-copy strong{color:#fff}.site-footer h3{color:#fff;font-size:1rem;margin-bottom:1rem}.site-footer a{display:block;color:#cbd5e1;margin:.5rem 0}.site-footer a:hover{color:#fff}.site-footer hr{border-color:rgba(255,255,255,.12);margin:2rem 0}.footer-copy{max-width:480px;color:#94a3b8}
.back-to-top{position:fixed;right:1.25rem;bottom:1.25rem;width:44px;height:44px;border:0;border-radius:50%;background:var(--bp-primary);color:#fff;display:none;place-items:center;box-shadow:0 10px 25px rgba(79,70,229,.35);z-index:1040}

@media(max-width:991.98px){
 .site-header .navbar-collapse{padding:1rem 0 1.25rem}.site-header .nav-link.active::after{display:none}.hero-section{padding-top:3.5rem}.hero-visual{min-height:500px}.trust-strip{grid-template-columns:1fr 1fr}.trust-item:nth-child(3){border-left:0;border-top:1px solid rgba(255,255,255,.22)}.trust-item:nth-child(4){border-top:1px solid rgba(255,255,255,.22)}.fc-1{left:0}.fc-2{right:0}.fc-3{left:2%}
}
@media(max-width:575.98px){
 .hero-title{font-size:2.8rem}.hero-visual{min-height:auto;padding-bottom:1rem}.hero-photo-shell{height:390px}.floating-card{position:static;width:100%;margin:.6rem 0}.trust-strip{grid-template-columns:1fr}.trust-item+.trust-item{border-left:0;border-top:1px solid rgba(255,255,255,.22)}.section-pad{padding:4.5rem 0}.portal-body{grid-template-columns:75px 1fr;min-height:300px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* Production accessibility fix:
   Keep text/icons visible on every blue primary button in all interaction states. */
.front-page .btn-primary,
.front-page a.btn-primary,
.front-page .btn-primary:link,
.front-page .btn-primary:visited {
  color: #ffffff !important;
  background-color: var(--bp-primary) !important;
  border-color: var(--bp-primary) !important;
  -webkit-text-fill-color: #ffffff;
}

.front-page .btn-primary:hover,
.front-page .btn-primary:focus,
.front-page .btn-primary:focus-visible,
.front-page .btn-primary:active,
.front-page .btn-primary.active,
.front-page .show > .btn-primary.dropdown-toggle {
  color: #ffffff !important;
  background-color: #4338ca !important;
  border-color: #4338ca !important;
  -webkit-text-fill-color: #ffffff;
}

.front-page .btn-primary i,
.front-page .btn-primary svg {
  color: #ffffff !important;
}

.front-page .btn-primary:disabled,
.front-page .btn-primary.disabled {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  opacity: .68;
}

/* Bootstrap focus ring without sacrificing label contrast. */
.front-page .btn-primary:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(79, 70, 229, .25) !important;
}


/* Compact production layout:
   Reduce excessive vertical whitespace between homepage sections. */
.front-page .section-pad {
  padding-top: 3.75rem !important;
  padding-bottom: 3.75rem !important;
}

.front-page .hero-section {
  padding-top: 4rem !important;
  padding-bottom: 1.25rem !important;
}

.front-page .hero-section + .section-pad,
.front-page section + section {
  margin-top: 0 !important;
}

.front-page .section-heading {
  margin-bottom: 1.5rem !important;
}

.front-page .section-heading p {
  margin-bottom: 0 !important;
}

.front-page .row.mt-2,
.front-page .row.mt-4 {
  margin-top: 1rem !important;
}

.front-page .bg-soft {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.front-page .cta-section {
  padding-top: 2.5rem !important;
  padding-bottom: 3.5rem !important;
}

.front-page .site-footer {
  padding-top: 3.5rem !important;
}

.front-page #parents,
.front-page #portals,
.front-page #pricing,
.front-page #payments,
.front-page #resources {
  scroll-margin-top: 80px;
}

@media (max-width: 991.98px) {
  .front-page .section-pad {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  .front-page .hero-section {
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .front-page .section-pad {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .front-page .cta-section {
    padding-top: 2rem !important;
    padding-bottom: 2.75rem !important;
  }
}
