/* Shared rules for tablet and small screens up to 980px. 641px-980px refinements live in mid.css. */
@media screen and (max-width: 980px) {
  .lp-page .header { height: 60px; padding: 0; }
  .lp-page .header__inner {
    width: min(720px, calc(100% - 30px));
    position: relative;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .lp-page .header .logo {
    width: 172px;
    height: 31px;
    flex: 0 0 172px;
    background-size: 190px 190px;
  }
  .lp-page .nav-toggle {
    order: 2;
    display: grid;
    gap: 6px;
    width: 30px;
    height: 30px;
    padding: 0;
    place-content: center;
    border: 0;
    border-radius: 0;
    background: #fff;
  }
  .lp-page .nav-toggle span { width: 28px; height: 2px; background: var(--blue); }
  .lp-page .nav {
    order: 1;
    width: auto;
    margin-left: auto;
    padding: 0;
    display: flex;
    gap: 0;
  }
  .lp-page .nav a:not(.btn) { display: none; }
  .lp-page .header .nav .btn,
  .lp-page .nav .btn {
    width: 125px;
    min-width: 125px;
    height: 33px;
    padding: 0 14px;
    font-size: 13px;
  }
  .lp-page .nav.is-open {
    position: absolute;
    z-index: 30;
    top: 46px;
    left: -15px;
    width: calc(100% + 30px);
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 8px 18px rgba(22,75,127,.12);
  }
  .lp-page .nav.is-open a:not(.btn) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(22,75,127,.1);
  }
  .lp-page .nav.is-open .btn {
    width: 100%;
    margin-top: 12px;
  }
  .lp-page .hero { min-height: auto; padding: 360px 0 64px; }
  .lp-page .hero__copy { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding-top: 0; }
  .lp-page .hero h1 { font-size: clamp(30px, 5vw, 42px); }
  .lp-page .hero p { width: auto; }
  .lp-page .hero__visual {
    left: 50%;
    right: auto;
    top: 0;
    width: min(560px, 100vw);
    height: 350px;
    overflow: hidden;
    transform: translateX(-50%);
  }
  .lp-page .device-art {
    right: 0;
    top: 0;
    width: 560px;
    height: 350px;
    background-size: 512px 768px;
    background-position: -24px -187px;
  }
  .lp-page .hero__circle { display: none; }
  .lp-page .problem__cards, .lp-page .solution__cards, .lp-page .voice__cards, .lp-page .plans { grid-template-columns: 1fr; }
  .lp-page .problem {
    padding-top: 32px;
    background: linear-gradient(to bottom, #fff 0 52%, var(--blue2) 52% 100%);
  }
  .lp-page .problem__panel {
    min-height: 0;
    padding-inline: 24px;
    padding-block: 56px;
  }
  .lp-page .problem__cards {
    height: auto;
    padding: 0;
    gap: 24px;
  }
  .lp-page .solution {
    min-height: 0;
    padding: 40px 0 64px;
  }
  .lp-page .solution__arrows {
    margin-bottom: 32px;
  }
  .lp-page .solution__cards {
    margin-top: 40px;
    justify-items: center;
  }
  .lp-page .feature { min-height: 0; }
  .lp-page .feature-item, .lp-page .feature-item--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lp-page .feature-item--reverse .feature-copy { order: 0; }
  .lp-page .feature .feature-copy { transform: none; }
  .lp-page .feature-item::before,
  .lp-page .feature-item--reverse::before {
    left: -24px;
    right: auto;
    width: calc(100% + 48px);
  }
  .lp-page .wide-photo { max-width: 603px; margin: 0 auto; }
  .lp-page .plan--hot,
  .lp-page .plans .plan:first-child,
  .lp-page .plans .plan:last-child { transform: none; }
  .lp-page .voice__cards,
  .lp-page .plans { gap: 32px; }
  .lp-page .voice__cards article,
  .lp-page .plan { width: min(350px, 100%); justify-self: center; }
  .lp-page .section-heading__bg { font-size: clamp(68px, 15vw, 128px); }
  .lp-page .problem__cards,
  .lp-page .solution__cards,
  .lp-page .feature-list,
  .lp-page .flow-list,
  .lp-page .voice__cards,
  .lp-page .plans,
  .lp-page .faq-list,
  .lp-page .news-list {
    margin-top: 32px;
  }
}
