.home .hero.home-intro {
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  gap: clamp(20px, 3.2vw, 52px);
  padding: clamp(52px, 6vw, 88px) 0 clamp(46px, 5vw, 70px);
  background: radial-gradient(ellipse at 76% 47%, #19444070, #122b3950 37%, transparent 69%);
}

.home .home-intro h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.25rem, 4.05vw, 3.65rem);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.home .home-intro h1 :is(span, strong) {
  display: block;
  text-wrap: balance;
}

.home .home-intro h1 strong {
  margin-top: 6px;
  color: #bdeedc;
  font-size: .93em;
  font-weight: 760;
}

.home .home-intro .home-intro-copy {
  max-width: 43ch;
  margin: 22px 0 24px;
  color: #c7d5e0;
  line-height: 1.55;
  text-wrap: pretty;
}

.home .home-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.home .home-intro-actions .home-try {
  min-height: 48px;
  padding-inline: 18px;
}

.home .home-store-badge {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #75b8a7;
}

.home .home-store-badge:hover {
  box-shadow: 0 0 0 1px #afe9d6, 0 3px 14px #81d8bf26;
}

.home .home-store-badge:focus-visible {
  outline: 2px solid var(--site-nav-mint);
  outline-offset: 4px;
}

.home .home-store-badge img {
  display: block;
  width: 185px;
  height: auto;
  max-width: 100%;
}

.home .home-intro-actions .home-try {
  color: #cbf6e7;
  border-color: #43665f;
  background: #12242b;
}

.home .home-intro-actions .home-try:hover { background: #1a363a; }

.home .home-intro .hero-plan-note {
  max-width: none;
  margin: 10px 0 0;
  text-align: left;
}

.home .home-score-figure {
  min-width: 0;
  margin: 0;
  padding: 9px;
  border: 1px solid #426260;
  border-radius: 16px;
  background: linear-gradient(145deg, #223847, #10242e);
  box-shadow: 0 18px 40px #030b1480;
}

.home .home-score-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 2.28;
  border-radius: 9px;
  outline-offset: 3px;
  background: #111d2c;
}

.home .home-score-image picture {
  display: block;
}

.home .home-score-image img {
  display: block;
  width: 100%;
  height: auto;
}

.home .home-score-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #203d3f;
  color: #deeee8;
  line-height: 1.45;
}

.home .home-score-caption strong {
  color: #bbf1db;
  font-size: clamp(1.1rem, 2.1vw, 1.8rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home .home-score-caption span {
  margin: 0;
  padding-inline-start: 12px;
  border-inline-start: 1px solid #50716d;
  font-size: clamp(.82rem, 1.25vw, 1rem);
}

.home section.progress-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin-bottom: clamp(36px, 4vw, 56px);
  padding: clamp(22px, 4vw, 54px);
  border: 1px solid #366161;
  border-radius: 18px;
  background: linear-gradient(115deg, #193b3d, #173544 57%, #14283b);
}

.home .progress-feature h2 {
  max-width: 21ch;
  margin: 0 0 14px;
  font-weight: 700;
}

.home .progress-feature p {
  margin: 0 0 20px;
  color: #c7dcd9;
}

.home .progress-feature .progress-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c7f4e3;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home .progress-shot {
  margin: 0;
  min-width: 0;
}

.home .progress-shot a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.8;
  border: 1px solid #477278;
  border-radius: 10px;
  background: #111d2c;
}

.home .progress-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: -3%;
}

.home section#reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 4vw, 60px);
  padding: clamp(22px, 4.2vw, 56px);
  border-color: #315057;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0%, #1b3a41, transparent 68%), #14232d;
}

.home .home-feedback-intro h2 {
  margin: 0 0 12px;
}

.home .home-feedback-intro p {
  max-width: 36ch;
  margin: 0 0 20px;
}

.home #teacherReviews {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

.home #teacherReviews:empty {
  display: none;
}

.home #reviews .review-card blockquote {
  box-sizing: border-box;
  width: fit-content;
  max-width: 94%;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #345961;
  border-radius: 17px 17px 17px 4px;
  background: #1d373f;
  color: #e0eeeb;
  font: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.home #reviews .review-card {
  padding: 0;
  border: 0;
  background: none !important;
}

.home #reviews .review-card figcaption {
  margin: 8px 0 0 12px;
  font-size: .875rem;
}

@media (min-width: 721px) {
  .home section#reviews:has(.review-card) {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 900px) {
  .home .hero.home-intro,
  .home section.progress-feature { grid-template-columns: minmax(0, 1fr); }

  .home .hero.home-intro { background-position: center bottom; }
  .home .home-intro h1 { font-size: clamp(2.15rem, 6vw, 3.5rem); }
}

@media (max-width: 480px) {
  .home .hero.home-intro { padding: 32px 0 38px; }
  .home .home-intro-actions .home-try { padding-inline: 13px; }
  .home .home-score-caption { padding: 9px; gap: 8px; }
  .home .home-score-caption span { padding-inline-start: 8px; }
}


/* Teacher feedback — accessible individual review cards */
.home section#reviews{
  grid-template-columns:minmax(0,0.72fr) minmax(0,1.28fr);
  align-items:start;
  gap:clamp(24px,4vw,58px);
  padding:clamp(24px,4vw,52px);
  background:radial-gradient(ellipse at 100% 0%,#1c3945,transparent 65%),#132530;
  border:1px solid #31535b;
  border-radius:24px;
}
.home #reviews .home-feedback-intro{min-width:0}
.home #reviews .home-feedback-intro h2{
  color:#f2fbfa;font-size:clamp(1.7rem,2.5vw,2.4rem);
  font-weight:740;letter-spacing:-.035em;line-height:1.12;margin:0 0 15px;
}
.home #reviews .home-feedback-intro p{color:#b7d0d5;line-height:1.6;max-width:34ch;margin:0 0 24px}
.home #reviews .home-feedback-intro .btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  border-color:#619187;color:#0a2730;background:#adedd9;
  font-weight:730;padding:10px 18px;border-radius:11px;text-decoration:none;
}
.home #reviews .home-feedback-intro .btn:hover{background:#d1fae9}
.home #teacherReviews{
  min-width:0;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:22px!important;margin:0;padding:0;align-content:start;
}
.home #teacherReviews .pd-review{
  position:relative;box-sizing:border-box;min-width:0;
  border:1px solid #d8e4e7!important;border-radius:22px!important;
  background:#f8fbfc!important;color:#172c39!important;
  padding:26px 28px 24px!important;margin:0!important;
  box-shadow:0 15px 38px rgba(0,0,0,.25),0 2px 5px rgba(0,0,0,.06)!important;
}
.home #teacherReviews .pd-review:after{
  content:"";position:absolute;bottom:-9px;left:35px;width:17px;height:17px;
  background:#f8fbfc;border-right:1px solid #d8e4e7;border-bottom:1px solid #d8e4e7;
  transform:rotate(45deg);
}
.home #teacherReviews .pd-header{
  display:flex!important;align-items:center;gap:13px!important;margin:0 0 20px!important;
}
.home #teacherReviews .pd-avatar{
  display:grid!important;place-items:center;flex:0 0 52px;width:52px;height:52px;
  border-radius:50%;background:linear-gradient(135deg,#b5f3df,#7dcabd);
  border:2px solid #fff;box-shadow:0 0 0 1px #beddd9;color:#143e40;
  font-size:17px;font-weight:800;line-height:1;
}
.home #teacherReviews .pd-ident{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.home #teacherReviews .pd-name{
  display:block;color:#142a39!important;font-size:17px!important;font-weight:780!important;
  line-height:1.25;margin:0;
}
.home #teacherReviews .pd-sub{
  display:block;color:#54717a!important;font-size:13px!important;line-height:1.35;
}
.home #teacherReviews .pd-date{display:block;color:#6a8590!important;font-size:12px!important;line-height:1.3}
.home #teacherReviews .pd-text{
  display:block!important;box-sizing:border-box;max-width:100%!important;width:auto!important;
  margin:0!important;padding:0!important;border:0!important;background:none!important;
  border-radius:0!important;color:#213544!important;font-family:inherit!important;
  font-size:16px!important;font-weight:400!important;line-height:1.7!important;
  white-space:pre-wrap;overflow-wrap:anywhere;
}
.home #teacherReviews .pd-text.pd-short{
  display:-webkit-box!important;-webkit-box-orient:vertical;
  -webkit-line-clamp:5;overflow:hidden;
}
.home #teacherReviews .pd-expand{
  margin:13px 0 0;padding:0;border:0;background:transparent;color:#0e796b;
  font:inherit;font-size:13px;font-weight:750;cursor:pointer;
}
.home #teacherReviews .pd-expand:hover{text-decoration:underline}
.home #teacherReviews .pd-expand[hidden]{display:none!important}
@media(max-width:850px){
  .home section#reviews{grid-template-columns:minmax(0,1fr);gap:24px}
  .home #reviews .home-feedback-intro p{max-width:55ch}
}
@media(max-width:540px){
  .home section#reviews{padding:22px 16px;border-radius:18px}
  .home #teacherReviews{gap:20px!important}
  .home #teacherReviews .pd-review{padding:20px 18px!important;border-radius:17px!important}
  .home #teacherReviews .pd-avatar{width:44px;height:44px;flex-basis:44px;font-size:15px}
  .home #teacherReviews .pd-name{font-size:15px!important}
  .home #teacherReviews .pd-text{font-size:15px!important;line-height:1.6!important}
}
