html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body { font-family: Manrope, "Trebuchet MS", sans-serif; }
main, header, footer, section, .hero, .proof, .site-header {
  max-width: 100%;
  min-width: 0;
}
img, iframe, video {
  max-width: 100%;
  height: auto;
}
.hero-photo img {
  width: 70%;
  height: 100%;
  max-width: none;
  margin-left: 30%;
  object-fit: cover;
  object-position: center 16%;
}
.header-social-dropdown { display: none; }
.site-header nav a.nav-featured,
.mobile-nav-drawer a.nav-featured {
  color: var(--blue);
  font-weight: 800;
}
.site-header nav a.nav-featured {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.student-rail,
.student-rail li,
.video-grid,
.video-grid figure,
.benefit-grid,
.proof-band,
.trial,
.coach,
.faq {
  min-width: 0;
}
.student-rail li { overflow: hidden; }
.student-rail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--pale);
}
.video-grid iframe {
  width: 100%;
  max-width: 100%;
}
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.brand img, .footer-brand img { display: block; width: 80px; height: auto; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stars {
  letter-spacing: 3px;
  font-size: 16px;
  color: #f59e0b;
}
.hero-rating .stars {
  font-size: 19px;
  letter-spacing: 4px;
}
.benefit-grid .icon { width: 30px; height: 30px; }
.coach-art > .icon { width: 160px; height: 160px; }
.cube-range-note { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--pale); color: var(--navy); }
.cube-range-note strong { font-size: 13px; }
.cube-range-note p { margin: 6px 0 0; color: #637186; font-size: 12px; line-height: 1.8; }
.cube-range-note button, .cal-help button { border: 0; padding: 0; background: none; color: var(--blue); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.assessment-detail { max-width: 560px; margin: 18px 0 0; color: #dae1ef; font-size: 12px; line-height: 1.8; }
.cal-help { margin: 8px 0 32px; color: #637186; font-size: 12px; text-align: right; }
.cal-help button { font-size: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; background: var(--navy); color: white; border-radius: 5px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.booking-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 12px; padding: 36px; color: var(--navy); box-shadow: 0 20px 80px #10234630; }
.booking-dialog::backdrop { background: #10234680; }
.booking-dialog h2 { font-size: 27px; letter-spacing: -1px; margin: 12px 25px 18px 0; }
.booking-dialog p { font-size: 13px; line-height: 1.8; }
.booking-dialog .cta { width: 100%; }
.dialog-close { position: absolute; top: 14px; right: 14px; border: 0; border-radius: 5px; background: var(--pale); color: var(--navy); width: 34px; height: 34px; font-size: 24px; }
.email-address { display: block; margin-top: 18px; color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.product-page > .eyebrow { margin-bottom: 20px; }
.product-page > p { line-height: 1.9; color: #637186; }
.product-price { font-size: 32px; margin: 25px 0; }
.product-price small { font-size: 13px; }
.package-includes { line-height: 2; padding-left: 20px; }
.empty-state { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--pale); }
.package-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.package-actions a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; font-weight: 700; }
.package-actions .package-buy-link { background: var(--blue); border-color: var(--blue); color: white; }
.package-actions .package-buy-link:hover { background: var(--navy); border-color: var(--navy); }
.package-purchase-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.package-purchase-actions .text-link { font-size: 12px; }
.payment-next-steps { max-width: 760px; }
.payment-next-steps .cta { margin: 12px 0; }
@media (min-width: 701px) {
  table { min-width: 730px; }
}
@media (max-width: 700px) {
  .cal-help { text-align: left; }
  .header-cta { padding: 12px 10px; }
  .site-footer > div { flex-wrap: wrap; gap: 14px 22px; }
  .booking-dialog { padding: 28px 22px; }
  .hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: unset;
    overflow: hidden;
  }
  .hero .cta, .closing .cta { white-space: normal; }
  .photo-note { max-width: calc(100% - 24px); }
  .hero-content { position: relative; z-index: 1; order: 1; }
  .hero-photo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 0;
    order: 2;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: clamp(260px, 82vw, 390px);
    flex: 0 0 auto;
  }
  .hero-photo img { display: block; width: 100%; height: 100%; max-width: 100%; margin-left: 0; object-position: 50% 35%; }
  .photo-note, .hero-index { z-index: 2; }
}

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .header-social-dropdown { display: none; }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-content {
    order: 1;
    width: 100%;
    max-width: 100%;
    padding: 42px 6% 24px;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 2;
    width: 100%;
    height: clamp(300px, 58vw, 500px);
    flex: 0 0 auto;
  }
  .hero-photo img { width: 100%; max-width: 100%; margin-left: 0; object-position: 50% 18%; }
  .hero-photo:after {
    background: linear-gradient(180deg, var(--pale) 0%, transparent 24%);
  }
}

/* Strikethrough original prices & discount badge */
del.original-price {
  font-size: 0.6em;
  color: #fa816c !important;
  text-decoration: line-through;
  font-weight: 600;
  opacity: 0.9;
  margin-right: 4px;
}
.trial-price .discount-badge,
.discount-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #102346 !important;
  color: #ffd766 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid #ffd766 !important;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  align-self: flex-start;
}
td del.original-price {
  font-size: 0.75em;
}

/* Cal.com inline calendar */
.cal-inline-wrap {
  margin: 40px 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pale);
}
.cal-inline-label {
  padding: 18px 24px 12px;
  font-size: 12px;
  color: #627088;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.cal-inline-label .eyebrow {
  display: inline;
  margin-right: 6px;
  color: var(--blue);
}
.cal-inline-frame {
  width: 100%;
  min-height: 550px;
  overflow: scroll;
}

/* Chess callout in coach section */
.also-teaches {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: var(--pale);
  border-left: 3px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.7;
}
.also-teaches-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8b98ad;
  white-space: nowrap;
  padding-top: 3px;
}
.also-teaches-link {
  color: var(--blue);
  font-weight: 700;
  margin-left: 6px;
}
.also-teaches-link:hover {
  text-decoration: underline;
}

/* Superprof profile link in proof section */
.superprof-link {
  color: var(--blue);
  text-decoration: underline;
}

/* Social links in footer */
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding-top: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.social-link:hover {
  background: white;
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}
.social-link svg {
  flex-shrink: 0;
}

/* Footer legal links */
.footer-legal {
  width: 100%;
  font-size: 10px;
  color: #8b96a8;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 10px;
}
.footer-legal a {
  color: #637186;
  text-decoration: underline;
}
.footer-legal a:hover {
  color: var(--blue);
}

/* Offerings & Programs showcase cards */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.offering-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(16, 35, 70, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(16, 35, 70, 0.1);
  border-color: var(--blue);
}
.offering-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-family: 'IBM Plex Mono', monospace;
}
.offering-badge.featured {
  background: #fff4d2;
  color: #a87103;
}
.offering-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: inline-block;
}
.offering-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--navy);
  font-weight: 800;
}
.offering-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #637186;
  margin-bottom: 20px;
  flex-grow: 1;
}
.offering-card .offering-meta {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.offering-card .cta {
  width: 100%;
  font-size: 12px;
  padding: 14px 18px;
  min-height: 44px;
}

/* Solves Analysis callout banner */
.solve-analysis-banner {
  background: linear-gradient(135deg, #102346 0%, #1e3a70 100%);
  color: white;
  border-radius: 12px;
  padding: 30px 36px;
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.solve-analysis-content h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: white;
}
.solve-analysis-content p {
  font-size: 13px;
  line-height: 1.7;
  color: #d1dcfa;
  margin: 0;
  max-width: 620px;
}
.solve-analysis-price {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 6px;
  display: block;
}

/* Header socials & dropdown */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-social-dropdown {
  position: relative;
  display: inline-block;
}
.header-social-btn {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-social-btn:hover {
  background: white;
  border-color: var(--blue);
  color: var(--blue);
}
.header-social-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(16, 35, 70, 0.12);
  z-index: 100;
  flex-direction: column;
  gap: 4px;
}
.header-social-dropdown:hover .header-social-menu,
.header-social-dropdown:focus-within .header-social-menu {
  display: flex;
}
.header-social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-social-item:hover {
  background: var(--pale);
  color: var(--blue);
}
.header-social-item svg {
  flex-shrink: 0;
}

/* Mobile Hamburger Menu */
.mobile-nav-toggle {
  display: none;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 18px;
  cursor: pointer;
  color: var(--navy);
}
.mobile-nav-drawer {
  display: none;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 16px 5%;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-drawer.open {
  display: flex;
}
.mobile-nav-drawer a {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-socials-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.mobile-socials-row a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--pale);
  font-size: 12px;
  flex: 1;
  justify-content: center;
}

/* Contact Hub Dialog */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale);
  color: var(--navy);
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 700;
}
.contact-channel:hover {
  background: white;
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 35, 70, 0.08);
}
.contact-channel-desc {
  font-size: 11px;
  font-weight: 500;
  color: #637186;
  display: block;
}

/* Coach Credentials highlight */
.coach-record-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff4d2;
  border: 1px solid #ffd766;
  color: #855d00;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 12px 0 16px;
  letter-spacing: 0.3px;
}
.chess-photo-card {
  margin: 24px 0 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 35, 70, 0.1);
  border: 1px solid var(--line);
}
.chess-photo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 380px;
}
.chess-photo-caption {
  font-size: 11px;
  color: #637186;
  padding: 10px 14px;
  background: white;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media(max-width: 700px) {
  .site-header {
    height: auto;
    padding: 14px 5%;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-social-btn {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .benefit-grid {
    grid-template-columns: 1fr !important;
  }
  .benefit-grid article {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 24px 20px !important;
  }
  .benefit-grid article:last-child {
    border-bottom: 0 !important;
  }
}

/* 4-column benefit grid on solve-the-cube page */
@media(max-width: 900px) {
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .benefit-grid article:nth-child(2) {
    border-right: 0;
  }
}

/* Coach real photo wrap */
.coach-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 35, 70, 0.14);
  border: 1px solid var(--line);
  background: white;
}
.coach-photo-wrap img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.coach-photo-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(16, 35, 70, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.coach-photo-tag strong {
  font-size: 15px;
  letter-spacing: -0.3px;
}
.coach-photo-tag span {
  font-size: 11px;
  color: #ffd766;
  font-family: 'IBM Plex Mono', monospace;
}

.benefit-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.benefit-grid--four article,
.benefit-grid--four article:first-child,
.benefit-grid--four article:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 27px 23px 25px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.benefit-grid--four article:last-child { border-right: 0; }
.benefit-grid--four article h3 { min-height: 2.5em; }
.benefit-grid--four article p { flex: 1; }

.chess-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}
.chess-gallery-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 14px rgba(16, 35, 70, 0.06);
}
.chess-gallery-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pale);
}
.chess-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.chess-gallery-image--student { object-position: 42% 55%; }
.chess-gallery-image--tournament { object-position: 50% 48%; }
.chess-gallery-image--trophies { object-position: 50% 42%; }
.chess-gallery-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
}
.chess-gallery-caption strong {
  color: var(--navy);
  font-size: 14px;
}
.chess-gallery-caption span {
  color: #637186;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .chess-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chess-gallery-card:last-child { grid-column: 1 / -1; }
  .chess-gallery-card:last-child .chess-gallery-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .benefit-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid--four article:nth-child(2) { border-right: 0; }
  .benefit-grid--four article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .chess-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .chess-gallery-card:last-child { grid-column: auto; }
  .chess-gallery-card:last-child .chess-gallery-photo,
  .chess-gallery-photo { aspect-ratio: 4 / 5; }
  .chess-gallery-caption { padding: 14px 16px; }
  .benefit-grid--four { grid-template-columns: 1fr; }
  .benefit-grid--four article,
  .benefit-grid--four article:first-child,
  .benefit-grid--four article:last-child {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .benefit-grid--four article:last-child { border-bottom: 0; }
  .benefit-grid--four article h3 { min-height: 0; }
}

/* PC Desktop view layout polish */
@media(min-width: 1024px) {
  .section, .proof, .programs {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content {
    max-width: 640px;
  }
  .coach {
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
  }
  .offerings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trial {
    grid-template-columns: 1.35fr 1fr;
  }
}
