/* Shared phone layout. Desktop keeps the established marketing composition. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }
  body {
    -webkit-text-size-adjust: 100%;
  }
  .wrap {
    padding-inline: 20px;
  }
  .site-header .header-inner {
    min-height: 64px;
    padding: 10px 20px;
    gap: 12px;
  }
  .site-header .brand {
    font-size: 15px;
    line-height: 1.15;
    gap: 8px;
  }
  .site-header .brand img {
    width: 32px;
    height: 32px;
  }
  .site-header .header-actions {
    margin-left: auto;
  }
  .site-header .header-actions > :not(.menu-toggle) {
    display: none;
  }
  .site-header .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111;
  }
  .site-header #mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 20px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    background: #fff;
  }
  #mobile-nav .mobile-nav-group {
    display: grid;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e8eeeb;
  }
  #mobile-nav .mobile-nav-group a {
    min-height: 44px;
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.3;
  }
  #mobile-nav .mobile-account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 18px;
  }
  #mobile-nav .mobile-account-actions a {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 12px;
    border: 1px solid #111;
    border-radius: 10px;
    font-size: 15px;
  }
  #mobile-nav .mobile-account-actions a:last-child {
    background: #111;
    color: #fff;
  }
  .hero-band {
    border-radius: 0 0 28px 28px;
  }
  .hero {
    min-height: 0;
    display: block;
    padding-top: 28px;
    padding-bottom: 0;
    text-align: center;
  }
  .hero-copy {
    padding-bottom: 20px;
  }
  .hero h1,
  .marketing-hero h1,
  .marketing-hero-compact h1 {
    font-size: clamp(28px, 7.7vw, 34px);
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-inline: auto;
    max-width: 420px;
  }
  .hero .hero-description {
    margin: 18px auto 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 390px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 24px auto 0;
    max-width: 390px;
  }
  .hero-actions .button,
  .hero .watch-link {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    padding: 13px 16px;
    font-size: 16px;
    border-radius: 12px;
  }
  .hero-trust {
    margin-top: 20px;
  }
  .hero-trust p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .hero-stars {
    padding: 7px 11px;
  }
  .hero-figure {
    height: 220px;
    margin-top: 12px;
    justify-content: center;
  }
  .marketing-hero .hero,
  .marketing-hero-compact .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .marketing-hero .hero-copy {
    padding: 0;
  }
  .marketing-hero-search {
    margin-top: 20px;
  }
  .department-strip {
    display: block;
    padding-block: 24px;
    text-align: center;
  }
  .department-strip > p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 290px;
    margin: 0 auto 20px;
  }
  .department-window {
    width: 100%;
  }
  .department-group span {
    font-size: 15px;
  }
  .section,
  .restored-features,
  .community-section,
  .study-preview-section,
  .plans-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .section h2,
  .restored-features h2,
  .community-section > h2,
  .study-preview-section h2,
  .plans-section h2,
  .marketing-content h2 {
    font-size: 25px;
    line-height: 1.22;
    letter-spacing: -0.025em;
  }
  .marketing-content > section:not(.hero-band):not(.video-guide-section) {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .restored-grid,
  .feature-grid,
  .department-grid,
  .study-preview-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .restored-card {
    padding: 22px;
    border-radius: 16px;
  }
  .restored-card > svg {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }
  .restored-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
  }
  .restored-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .card-action {
    min-height: 44px;
    font-size: 13px;
  }
  .marketing-content .marketing-card {
    padding: 20px;
  }
  .marketing-content .marketing-card h3 {
    font-size: 19px;
    line-height: 1.3;
  }
  .marketing-content p,
  .marketing-content li {
    font-size: 15px;
    line-height: 1.6;
  }
  .marketing-content .plan-card {
    padding: 20px !important;
    gap: 18px !important;
  }
  .plan-card__title {
    font-size: 21px !important;
  }
  .marketing-content :is(input, select, textarea) {
    font-size: 16px;
    max-width: 100%;
  }
  .marketing-content :is(input, select) {
    min-height: 46px;
  }
  .marketing-content :is(button[type='submit'], .btn-primary, .plan-card__cta) {
    min-height: 46px;
  }
  .marketing-content :is(p, li, a) {
    overflow-wrap: break-word;
  }
  .study-preview-section {
    gap: 22px;
  }
  .study-preview-section .hero-product {
    padding-bottom: 0;
  }
  .community-section > h2 {
    margin-bottom: 20px;
  }
  .community-grid {
    scroll-snap-type: x proximity;
  }
  .community-card {
    scroll-snap-align: start;
  }
  .faq summary {
    font-size: 16px;
    line-height: 1.4;
    min-height: 48px;
  }
  .faq details p {
    font-size: 14px;
    line-height: 1.6;
  }
  .school-strip {
    margin-inline: 20px;
    padding: 24px;
    gap: 20px;
  }
  .school-strip h2 {
    font-size: 25px;
  }
  .success-band {
    margin-top: 24px;
  }
  .success-band h2 {
    font-size: 25px;
  }
  .success-action {
    padding: 30px 20px;
  }
  .success-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 390px;
    margin-inline: auto;
  }
  .success-buttons a {
    min-height: 48px;
  }
  .site-footer .footer-masthead .brand {
    font-size: 18px;
  }
  .site-footer .footer-masthead .footer-social {
    gap: 8px;
  }
  .site-footer .footer-social a {
    width: 44px;
    height: 44px;
  }
  .site-footer .footer-top {
    gap: 24px 18px;
    padding-bottom: 22px;
  }
  .site-footer .footer-top nav a {
    min-height: 36px;
    font-size: 14px;
    line-height: 1.4;
  }
  .site-footer .footer-top h3 {
    font-size: 14px;
  }
  .site-footer .footer-bottom {
    gap: 16px;
    padding-block: 20px;
    font-size: 12px;
  }
  .video-guide-section {
    padding-block: 28px;
  }
  .guide-chapters-heading h3 {
    font-size: 20px;
  }
  .guide-chapter {
    flex-basis: 156px;
  }
  .guide-chapter-title {
    font-size: 13px;
  }
  .guide-chapter-share {
    width: 40px;
    height: 44px;
  }
  .guide-chapters {
    scroll-snap-type: x proximity;
    gap: 12px;
  }
  .guide-chapter {
    scroll-snap-align: start;
  }
  .support-chat-head h2 {
    font-size: 16px;
  }
  .support-composer textarea {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .wrap {
    padding-inline: 16px;
  }
  .site-header .header-inner {
    padding-inline: 16px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero .hero-description {
    font-size: 14px;
  }
  .site-footer .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  #mobile-nav .mobile-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  #mobile-nav .mobile-account-actions {
    display: flex;
    gap: 20px;
  }
  #mobile-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 700px) {
  .support-chat {
    height: min(680px, calc(100dvh - 80px));
  }
  .support-shell {
    min-height: 0;
  }
  #change-department {
    min-height: 44px;
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .site-header #mobile-nav:not([hidden]) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 12px 24px #00000012;
  }
}

/* Compact actions sit alongside the portrait on phones. */
@media (max-width: 700px) {
  .hero-home {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0 12px;
    padding-bottom: 0;
  }
  .hero-home .hero-copy {
    display: contents;
  }
  .hero-home h1,
  .hero-home .hero-description {
    grid-column: 1 / -1;
  }
  .hero-home h1 {
    width: 100%;
  }
  .hero-home .hero-description {
    margin-bottom: 24px;
  }
  .hero-home .hero-conversion {
    grid-column: 1;
    align-self: center;
    padding-bottom: 24px;
    min-width: 0;
  }
  .hero-home .hero-actions {
    margin: 0;
    gap: 9px;
  }
  .hero-home .hero-actions .button,
  .hero-home .watch-link {
    min-height: 44px;
    padding: 11px 8px;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 10px;
  }
  .hero-home .hero-trust {
    margin-top: 16px;
  }
  .hero-home .hero-trust p {
    font-size: 11px;
    line-height: 1.4;
  }
  .hero-home .hero-stars {
    padding: 6px 8px;
    gap: 2px;
  }
  .hero-home .hero-stars svg {
    width: 13px;
    height: 13px;
  }
  .hero-home .hero-stars .hero-rating-logo {
    width: 18px;
    height: 18px;
    margin-right: 3px;
  }
  .hero-home .hero-figure {
    grid-column: 2;
    grid-row: 3;
    height: auto;
    margin: 0;
    align-self: end;
  }
  .hero-home .hero-figure img {
    width: 100%;
    height: auto;
  }
}
/* Phone header uses only the brand logo. */
@media (max-width: 700px) {
  .site-header .brand img {
    display: block;
    width: 40px;
    height: 40px;
  }
  .site-header .brand span {
    display: none;
  }
}
/* Asymmetric mobile hero edge, matching the supplied reference. */
@media (max-width: 700px) {
  .hero-band {
    border-radius: 0 0 88px 0;
  }
}
@media (max-width: 700px) {
  .hero-home .hero-figure {
    transform: translateY(-16px);
  }
}
/* Align the video surface with the surrounding mobile cards. */
@media (max-width: 700px) {
  .video-guide-section {
    width: calc(100% - 40px);
    margin-inline: auto;
  }
}
@media (max-width: 360px) {
  .video-guide-section {
    width: calc(100% - 32px);
  }
}
