/* =========================================================
   Security Help Guide – Responsive (tablet & mobile)
   Loaded after style.css
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.m-only { display: none; }
.nowrap { white-space: nowrap; }
.menu-btn,
.card__chev,
.faq__down { display: none; }

/* Hamburger button */
.menu-btn {
  position: relative;
  width: 30px;
  height: 30px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: var(--navy);
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 2.6px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .2s;
}
.header.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.header.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.header.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ---------- Narrow laptops: shrink the hero laptop a little ---------- */
@media (min-width: 1101px) and (max-width: 1240px) {
  .laptop { right: 0; transform-origin: right top; transform: rotateY(-14deg) rotateZ(-1.5deg) scale(.86); }
}

/* ---------- Small desktop / tablet landscape ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav { gap: 16px; }

  /* nav becomes a drawer under the header */
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 4px 24px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 27, 51, 0.14);
  }
  .header.menu-open .nav__list { display: flex; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li:last-child { border-bottom: 0; }
  .nav__link {
    width: 100%;
    height: auto;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 16px;
  }
  .nav__link.is-active::after { display: none; }
  .caret { width: 16px; height: 16px; }
  .has-drop:hover .caret { transform: none; }
  .has-drop.is-open .caret { transform: rotate(180deg); }
  .drop,
  .has-drop:hover .drop {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 10px 10px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-drop.is-open .drop { display: block; }

  /* hero */
  .hero__inner { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); column-gap: 24px; }
  .hero__title { font-size: 44px; }
  .hero__actions { flex-wrap: wrap; gap: 16px; }
  .btn--primary,
  .btn--outline { min-width: 0; padding: 0 26px; }
  .hero__visual { height: 340px; }
  /* scale the 680px laptop down so it fits inside its column */
  .laptop { top: 20px; right: 0; transform-origin: right top; transform: rotateY(-14deg) rotateZ(-1.5deg) scale(.62); }

  /* strip + cards */
  .features__inner { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .feature:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }

  /* footer */
  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .footer__brand { grid-column: 1 / -1; min-height: 0; border-right: 0; }
  .footer__col { padding-left: 0; }
  .official { grid-column: 1 / -1; justify-self: start; width: 100%; max-width: 420px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  /* laptop no longer fits beside the text (tablets, phones in landscape) */
  .hero__bg,
  .hero__visual { display: none; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 44px; }
  .hero__text { max-width: 600px; }
  .faq-wrap__inner { grid-template-columns: 1fr; gap: 30px; }
  .topbar__inner,
  .bottombar__inner {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-top: 9px;
    padding-bottom: 9px;
    text-align: center;
  }
  .bottombar__sep { display: none; }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features__inner { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n + 1) { border-left: 1px solid #dcdfe5; padding-left: 16px; }
  .feature:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .d-only { display: none; }
  .m-only { display: inline; }

  /* top bar */
  .topbar__inner { gap: 6px; padding: 10px 16px 12px; }
  .topbar__left { gap: 9px; font-size: 15.5px; }
  .topbar__left .icon { width: 20px; height: 20px; }
  .topbar__right { max-width: 320px; font-size: 13.5px; line-height: 1.4; }

  /* header */
  .header__inner { height: 66px; }
  .brand { gap: 12px; }
  .brand__logo { width: 34px; height: 39px; }
  .brand { min-width: 0; }
  .brand__text strong { font-size: clamp(14px, 4.8vw, 18.5px); letter-spacing: -0.4px; }
  .brand__text small { margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: -0.2px; }
  .nav { gap: 14px; }
  .search-btn svg { width: 23px; height: 23px; }
  .nav__list { padding: 4px 16px 12px; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); }
  .search-panel input { font-size: 16px; } /* < 16px makes iOS zoom in on focus */
  .search-panel input { min-width: 0; }
  .search-panel__inner { height: 58px; }

  /* hero */
  .hero { background: linear-gradient(180deg, #f7f8fa 0%, #f1f2f5 100%); }
  .hero__inner { padding-top: 16px; padding-bottom: 20px; }
  .badge { padding: 5px 14px; border-radius: 7px; font-size: 14px; }
  .hero__title { margin-top: 12px; font-size: clamp(23px, 8.5vw, 34px); line-height: 1.06; letter-spacing: -1px; }
  .hero__text { margin-top: 12px; max-width: none; font-size: 15.5px; line-height: 1.38; letter-spacing: -0.25px; }
  .hero__actions { flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; }
  .btn,
  .btn--primary,
  .btn--outline { width: 100%; max-width: 290px; min-width: 0; height: 48px; padding: 0 16px; font-size: 16.5px; }
  .btn svg { width: 18px; height: 18px; }
  .btn:hover { transform: none; }

  /* hide strip; topics become a compact list */
  .features { display: none; }
  .topics { padding: 14px 0 6px; }
  .topics .section-title { display: none; }
  .cards { grid-template-columns: 1fr; gap: 6px; margin-top: 0; }
  .card {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 50px;
    padding: 8px 14px 8px 12px;
    text-align: left;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(20, 27, 51, 0.07);
  }
  .card:hover { transform: none; box-shadow: 0 4px 12px rgba(20, 27, 51, 0.1); }
  .card__icon { width: 32px; height: 32px; }
  .card h3 {
    flex: 1;
    margin: 0;
    min-height: 0;
    font-size: 15.5px;
    letter-spacing: -0.4px;
    white-space: normal;
  }
  .card h3 br { display: none; }
  .card p { display: none; }
  .card__link { gap: 0; margin: 0; padding: 0; font-size: 0; }
  .card__link svg { display: none; }
  .card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .card__chev { display: block; width: 18px; height: 18px; color: var(--navy); }

  /* FAQ */
  .faq-wrap { padding: 22px 0 24px; }
  .section-title { padding-left: 20px; font-size: clamp(19px, 6.2vw, 23px); line-height: 1.2; letter-spacing: -0.6px; }
  .section-title::before { top: 0.1em; width: 6px; height: 1em; transform: none; }
  .faq__item--desk { display: none; }
  .faq__list { gap: 6px; margin-top: 12px; }
  .faq__item { border-radius: 8px; }
  .faq__q { gap: 12px; min-height: 40px; padding: 9px 12px 9px 14px; font-size: 13.5px; letter-spacing: -0.3px; }
  .faq__chev { width: 11px; height: 11px; }
  .faq__plus { display: none; }
  .faq__down { display: block; width: 16px; height: 16px; transition: transform .25s; }
  .faq__item.is-open .faq__down { transform: rotate(180deg); }
  .faq__item.is-open .faq__chev { transform: none; }
  .faq__a p { padding: 0 14px 12px 37px; font-size: 14px; }

  /* disclaimer */
  .disclaimer { margin-top: 0; padding: 18px 16px 20px; border-radius: 12px; }
  .disclaimer__title { gap: 12px; font-size: clamp(17.5px, 5.6vw, 21px); line-height: 1.2; letter-spacing: -0.5px; }
  .disclaimer__title svg { width: 36px; height: 36px; }
  .disclaimer p { margin-top: 10px; font-size: 14px; line-height: 1.38; }

  /* footer */
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 26px; padding-bottom: 26px; }
  .footer__logo { width: 40px; height: 45px; margin-top: 2px; }
  .footer__brand { gap: 12px; padding-right: 0; }
  .footer__brand strong { font-size: clamp(18px, 5.6vw, 21px); white-space: normal; }
  .footer__brand p { font-size: 13.5px; white-space: normal; }
  .footer__col a { white-space: normal; }
  .official { max-width: none; padding: 14px; }
  .official p { font-size: 13px; }
  .official__btn { height: 36px; }
  .bottombar__inner { font-size: 12.5px; line-height: 1.4; }
}

/* ---------- Small phones (iPhone SE 1st gen, Galaxy Fold) ---------- */
@media (max-width: 360px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .topbar__left { font-size: 14px; }
  .topbar__right { font-size: 12.5px; }
  .header__inner { height: 60px; }
  .brand { gap: 9px; }
  .brand__logo { width: 28px; height: 32px; }
  .brand__text small { font-size: 11.5px; }
  .nav { gap: 10px; }
  .search-btn { width: 26px; }
  .search-btn svg { width: 21px; height: 21px; }
  .menu-btn { width: 26px; }
  .menu-btn span { width: 22px; }
  .nav__list { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); }
  .badge { font-size: 13px; padding: 4px 12px; }
  .hero__text { font-size: 14.5px; }
  .btn,
  .btn--primary,
  .btn--outline { height: 46px; font-size: 15.5px; }
  .card { gap: 12px; padding: 8px 10px; }
  .card__icon { width: 28px; height: 28px; }
  .card h3 { font-size: 14.5px; }
  .faq__q { gap: 10px; padding: 9px 10px 9px 12px; font-size: 13px; }
  .faq__a p { padding-left: 33px; }
  .disclaimer { padding: 16px 14px 18px; }
  .disclaimer__title svg { width: 30px; height: 30px; }
  .disclaimer p { font-size: 13.5px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__logo { width: 34px; height: 38px; }
  .official__btn { font-size: 13px; }
}
