/* SAYSAY LINGO v8.54 — mobile homepage/About repair against the supplied Figma. */
@media (max-width:700px) {
  /* The exported arrow groups share overlapping transforms. Use one stable row. */
  #node-240-163,
  #node-240-159,
  #node-257-342,
  #node-257-340,
  body[data-page="about"] #fig-340-2489,
  body[data-page="about"] #fig-340-2487,
  body[data-page="about"] #fig-340-2509,
  body[data-page="about"] #fig-340-2507 {
    visibility:hidden !important;
    pointer-events:none !important;
  }

  .v854-carousel-nav {
    position:absolute;
    display:flex;
    gap:12px;
    width:78px;
    height:33px;
    z-index:140;
  }
  .v854-carousel-nav button {
    appearance:none;
    width:33px;
    height:33px;
    flex:0 0 33px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:#fff7e3;
    color:#601112;
    font:400 18px/1 Arial,sans-serif;
    box-shadow:none;
    cursor:pointer;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  .v854-carousel-nav button:active { transform:scale(.96); }
  .v854-home-teacher-nav { left:141px; top:5639px; }
  .v854-home-review-nav { left:141px; top:7923px; }

  /* Latest Figma coordinates: review, navigation, final plaque, then footer. */
  body.v814-home .figma-page.figma-mobile {
    height:8707px !important;
  }
  body.v814-home #node-258-360 {
    transform:matrix(1,0,0,1,30,7982) !important;
  }
  body.v814-home #node-258-356 {
    transform:matrix(1,0,0,1,42,8021) !important;
  }
  body.v814-home #node-258-355 {
    transform:matrix(1,0,0,1,49,8089) !important;
  }
  body.v814-home #node-258-357 {
    transform:matrix(1,0,0,1,96,8146) !important;
  }
  body.v814-home #node-258-357 .fig-button-label {
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#301016 !important;
    font:500 12px/1 "TikTok Sans",Arial,sans-serif !important;
    white-space:nowrap !important;
  }
  body.v814-home .v7-mobile-footer {
    top:8256px !important;
  }

  /* Release permanent compositor layers after the short carousel movement. */
  .v7-mobile-teacher-track,
  .v7-mobile-review-track {
    transition-duration:.36s !important;
    will-change:auto !important;
    backface-visibility:hidden;
  }
  .v7-teacher-photo {
    object-fit:cover !important;
    object-position:center 27% !important;
  }

  /* ABOUT — restore mobile type and exact authored positions. */
  body[data-page="about"] .fig-mobile-wrap > .fig-frame-page {
    height:3876px !important;
  }
  body[data-page="about"] .v813-about-button-label,
  body[data-page="about"] #fig-340-2411 .fig-button-label,
  body[data-page="about"] #fig-340-2407 .fig-button-label,
  body[data-page="about"] #fig-340-2437 .fig-button-label,
  body[data-page="about"] #fig-340-2526 .fig-button-label {
    font-size:12px !important;
    font-weight:500 !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  body[data-page="about"] .v854-natural-copy {
    white-space:pre-line !important;
    font-weight:400 !important;
    font-synthesis:none !important;
  }
  body[data-page="about"] #fig-340-2403,
  body[data-page="about"] #fig-340-2420,
  body[data-page="about"] #fig-340-2423,
  body[data-page="about"] #fig-340-2442 {
    line-height:18.2px !important;
  }
  body[data-page="about"] #fig-340-2442,
  body[data-page="about"] #fig-340-2442 * {
    width:250px !important;
    font-size:14px !important;
    font-weight:400 !important;
    line-height:18.2px !important;
  }
  body[data-page="about"] #fig-340-2426 {
    width:549px !important;
    transform:matrix(1,0,0,1,-95,1916) !important;
    text-align:center !important;
    font-size:26px !important;
    line-height:34px !important;
    white-space:nowrap !important;
  }
  body[data-page="about"] #fig-340-2444 {
    width:79px !important;
    transform:matrix(1,0,0,1,93,2180) !important;
  }
  body[data-page="about"] #fig-340-2448 {
    width:134px !important;
    transform:matrix(1,0,0,1,59,70) !important;
  }

  /* Leave only the real carousel; the exported first certificate was visible below it. */
  body[data-page="about"] #fig-340-2477 {
    display:none !important;
  }
  body[data-page="about"] .about-mobile-cert-viewport {
    left:41px !important;
    top:2583px !important;
    width:280px !important;
    height:207px !important;
    background:#fff !important;
    contain:layout paint;
    isolation:isolate;
  }
  body[data-page="about"] .about-mobile-cert-track {
    height:207px !important;
    transition:transform .36s cubic-bezier(.22,1,.36,1) !important;
    will-change:auto !important;
    backface-visibility:hidden;
  }
  body[data-page="about"] .about-mobile-cert-card {
    flex:0 0 280px !important;
    width:280px !important;
    height:207px !important;
    background:#fff !important;
  }
  body[data-page="about"] .v854-about-cert-nav { left:141px; top:2842px; }

  /* Functional mobile teacher carousel at the exact 300x498 Figma slot. */
  body[data-page="about"] .v854-about-teachers {
    position:absolute;
    left:27px;
    top:3010px;
    width:300px;
    height:498px;
    overflow:hidden;
    border-radius:15px;
    contain:layout paint;
    isolation:isolate;
    touch-action:pan-y pinch-zoom;
    z-index:80;
  }
  body[data-page="about"] .v854-about-teacher-track {
    position:relative;
    display:flex;
    width:max-content;
    height:498px;
    transform:translate3d(0,0,0);
    transition:transform .36s cubic-bezier(.22,1,.36,1);
    backface-visibility:hidden;
  }
  body[data-page="about"] .v854-about-teachers .v7-teacher-card {
    flex:0 0 300px;
  }
  body[data-page="about"] .v854-about-teacher-nav { left:138px; top:3518px; }

  /* The portrait source stays proportional inside the Figma crop. */
  body[data-page="about"] #fig-340-2506 > img {
    object-fit:cover !important;
    object-position:center 27% !important;
    left:0 !important;
    top:0 !important;
    width:100% !important;
    height:100% !important;
  }

  /* Final About plaque: force the two Figma lines and keep copy clear of the CTA. */
  body[data-page="about"] #fig-340-2525 {
    width:277px !important;
    height:62px !important;
    transform:matrix(1,0,0,1,34,3636) !important;
    font-size:24px !important;
    font-weight:500 !important;
    line-height:31.2px !important;
    text-align:center !important;
  }
  body[data-page="about"] #fig-340-2525 .v854-line {
    display:block;
    white-space:nowrap;
  }
  body[data-page="about"] #fig-340-2524 {
    transform:matrix(1,0,0,1,41,3704) !important;
    font-size:14px !important;
    font-weight:400 !important;
    line-height:18.2px !important;
  }
  body[data-page="about"] #fig-340-2526 {
    transform:matrix(1,0,0,1,88,3761) !important;
  }
}
