/* ==========================================================================
   Talkiyo - responsive layer
   Breakpoints follow the reference theme's Bootstrap grid:
   1199 (compact desktop), 991 (tablet, burger menu), 767 (phone),
   479 (small phone), 359 (320px devices).
   ========================================================================== */

/* --------------------------------------------------------------------------
   <= 1199px  compact desktop / small laptop
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  :root {
    --section-space: 90px;
  }

  .nav__link {
    padding-inline: 10px;
  }

  .nav__link::after {
    left: 10px;
    right: 10px;
  }

  .btn--header {
    margin-left: 8px;
    padding-inline: 24px;
  }

  .hero__grid {
    gap: 24px;
  }

  .stats__dots {
    display: none;
  }

  .hero__ring--1 {
    right: -380px;
  }

  .hero__ring--2 {
    right: -260px;
  }

  .hero__dots {
    display: none;
  }

  .report-badge {
    left: -60px;
  }

  .chip--online {
    left: 0;
  }

  .chip--call {
    right: 0;
  }

  .features__track {
    --slide: calc((min(100vw - 2 * var(--gutter), var(--container-width)) - 2 * 30px) / 3);
  }

  .hero__facts li {
    padding: 18px 12px;
    font-size: 1rem;
  }

  .faq__grid {
    gap: 50px;
  }

  /* about: copy above, cards get the full width */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about__copy {
    max-width: 760px;
  }

  .about__cards {
    padding-bottom: 30px;
  }

  .safety__grid {
    gap: 50px;
  }

  .cta__panel {
    padding: 60px 50px;
    column-gap: 40px;
  }

  /* footer: brand row on top, three link columns below */
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px 30px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__about {
    max-width: 560px;
  }
}

/* --------------------------------------------------------------------------
   <= 991px  tablet: burger menu, stacked hero, two-column grids
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --header-h: 84px;
    --header-h-scrolled: 72px;
    --section-space: 80px;
    --head-gap: 50px;
  }

  /* header -> burger */
  .nav,
  .btn--header {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h-scrolled));
    max-height: calc(100dvh - var(--header-h-scrolled));
    overflow-y: auto;
    padding: 8px 0 26px;
    border-radius: 0 0 22px 22px;
    background: #fff;
    box-shadow: 0 24px 40px rgba(42, 11, 82, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s linear var(--dur);
  }

  .header.is-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s;
  }

  .mobile-menu__list li + li {
    border-top: 1px solid var(--border);
  }

  .mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--text-heading);
    transition: color var(--dur), padding-left var(--dur) var(--ease);
  }

  .mobile-menu__link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.35;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link.is-active {
    color: var(--primary);
    padding-left: 8px;
  }

  .mobile-menu__foot {
    display: grid;
    gap: 18px;
    margin-top: 14px;
  }

  .mobile-menu__foot .stores {
    justify-content: center;
  }

  .mobile-menu__foot .store img {
    height: 44px;
  }

  /* hero: stacked, centred copy, orange glow moves behind the phone */
  .hero {
    padding-top: calc(var(--header-h) + 56px);
    background: var(--grad-hero-stacked);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__text {
    max-width: 620px;
  }

  .hero__actions,
  .hero__stores {
    justify-content: center;
  }

  .hero__visual {
    justify-self: center;
    max-width: 560px;
  }

  .hero__ring--1 {
    right: -420px;
    top: auto;
    bottom: -200px;
  }

  .hero__ring--2 {
    right: -260px;
    top: auto;
    bottom: -60px;
  }

  .cta__ring {
    display: none;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 50px;
  }

  .hero__facts li:nth-child(3) {
    border-left: 0;
  }

  .hero__facts li:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  /* steps: 2 columns */
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 30px;
  }

  /* features: two cards per view */
  .features__track {
    --slide: calc((min(100vw - 2 * var(--gutter), var(--container-width)) - 30px) / 2);
  }

  /* stats: 2 x 2, divider only between the two columns */
  .stats__head {
    margin-bottom: 60px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 30px;
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  /* shape of a call: 2 x 2 panel */
  .shape__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shape__cell:nth-child(3) {
    border-left: 0;
  }

  .shape__cell:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  /* safety: copy first, the two screens below */
  .safety__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .safety__visual {
    justify-self: center;
  }

  .report-badge {
    left: -110px;
  }

  /* support carousel: two per view */
  .carousel__track {
    grid-auto-columns: calc((100% - 30px) / 2);
  }

  /* faq: questions first, the phone + question mark underneath, still
     sitting on the section's bottom edge */
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq__content {
    padding-bottom: 0;
  }

  .faq__visual {
    order: 2;
    max-width: 440px;
  }

  .faq__phone {
    --parallax-from: -30px;
    --parallax-to: 40px;
  }

  /* contact: horizontal cards */
  .contact__grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
    gap: 22px;
  }

  .contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 26px;
    align-items: start;
    padding: 34px 32px;
    text-align: left;
  }

  .contact-card > .icon-circle {
    grid-row: span 4;
    width: 64px;
    height: 64px;
  }

  .contact-card > .icon-circle .icon {
    width: 28px;
    height: 28px;
  }

  .contact-card__title {
    margin-top: 0;
  }

  .contact-card__mail {
    justify-self: start;
  }

  /* cta: stacked and centred */
  .cta__panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "text"
      "note"
      "actions";
    justify-items: center;
    padding: 56px 40px;
    text-align: center;
    background: var(--grad-hero-stacked);
  }

  .cta__eyebrow {
    justify-self: center;
  }

  .cta__actions {
    align-items: center;
    margin-top: 32px;
  }

  .cta__actions .stores {
    justify-content: center;
  }

  .cta__note {
    margin-top: 14px;
  }

}

/* --------------------------------------------------------------------------
   <= 767px  phone
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section-space: 70px;
    --head-gap: 40px;
    --fs-label: 0.8125rem;
    --radius-lg: 24px;
  }

  body {
    font-size: 0.9688rem;
  }

  /* long labels (e.g. "Read the full Community Guidelines") wrap instead of
     widening the page */
  .btn {
    max-width: 100%;
    white-space: normal;
  }

  .eyebrow {
    margin-bottom: 16px;
    letter-spacing: 2.5px;
  }

  .section-text {
    margin-top: 16px;
  }

  /* on phones every section head centres, like the reference */
  .section-head--left {
    max-width: none;
    text-align: center;
  }

  .section-head--left .section-text {
    margin-inline: auto;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero__copy .eyebrow {
    margin-bottom: 18px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .hero__text {
    margin-top: 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-top: 30px;
  }

  .hero__stores {
    margin-top: 24px;
  }

  .chip {
    gap: 9px;
    padding: 9px 12px 9px 10px;
    border-radius: 12px;
    text-align: left;
  }

  .chip__label {
    font-size: 0.8125rem;
  }

  .chip__sub {
    font-size: 0.6875rem;
  }

  .chip__icon {
    width: 30px;
    height: 30px;
  }

  .chip__wave {
    height: 20px;
  }

  .chip--online {
    top: 8%;
  }

  .chip--call {
    top: 52%;
  }

  .chip--safe {
    bottom: 4%;
  }

  .hero__dots {
    display: none;
  }

  .hero__facts {
    margin-top: 40px;
    margin-bottom: -40px;
    padding: 6px;
  }

  .hero__facts li {
    flex-direction: column;
    gap: 10px;
    padding: 18px 8px;
    font-size: 0.9375rem;
    text-align: center;
  }

  .hero__fact-icon {
    width: 42px;
    height: 42px;
  }

  .about {
    padding-top: calc(var(--section-space) + 40px);
  }

  .about .section-head {
    margin-bottom: 24px;
  }

  .about__prose {
    text-align: center;
  }

  .about__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 0;
  }

  .info-card:nth-child(odd) {
    transform: none;
  }

  .info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    padding: 26px 22px;
  }

  .info-card > .icon-badge {
    grid-row: span 2;
  }

  .info-card__title {
    margin-top: 4px;
  }

  .dot-grid--about {
    display: none;
  }

  /* steps: single column, as on the reference */
  .steps {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .step__text {
    max-width: 360px;
  }

  /* features: one card per view with the next one peeking; arrows sit
     centred under the heading */
  .features__head {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
  }

  .features__arrows {
    margin-top: 0;
  }

  .features__track {
    --slide: calc(min(100vw - 2 * var(--gutter), var(--container-width)) * 0.84);
    --slide-gap: 18px;
  }

  .feature-card {
    padding: 34px 22px 28px;
  }

  .feature-card .icon-circle {
    width: 66px;
    height: 66px;
  }

  .feature-card .icon-circle .icon {
    width: 28px;
    height: 28px;
  }

  .feature-card__title {
    margin: 22px 0 10px;
  }

  .feature-card > p {
    margin-bottom: 20px;
  }

  .stats__head {
    margin-bottom: 50px;
  }

  .stats__grid {
    gap: 40px 20px;
  }

  .stat__label {
    font-size: 0.9375rem;
  }

  .safety .section-head {
    margin-bottom: 32px;
  }

  .safety__cta {
    display: flex;
    justify-content: center;
  }

  .safety__visual {
    width: 340px;
  }

  .report-badge {
    left: -24px;
  }

  .report-badge__label {
    font-size: 1rem;
  }

  .report-badge__arrow {
    width: 48px;
    height: 52px;
  }

  .support__squares,
  .support__layer {
    display: none;
  }

  /* one card per view with a peek of the next */
  .carousel__track {
    grid-auto-columns: 86%;
    gap: 18px;
  }

  .situation {
    min-height: 0;
    padding: 32px 24px 70px;
  }

  .situation__mark {
    width: 50px;
    height: 50px;
    right: 20px;
    bottom: 18px;
  }

  .carousel__controls {
    margin-top: 26px;
  }

  .faq .section-head {
    margin-bottom: 28px;
  }

  .faq__title {
    font-size: 1.625rem;
  }

  .faq__more {
    text-align: center;
  }

  .accordion__trigger {
    padding: 12px 14px;
  }

  .accordion__inner > p {
    padding: 14px 14px 20px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 36px 24px;
    text-align: center;
  }

  .contact-card > .icon-circle {
    grid-row: auto;
  }

  .contact-card__title {
    margin-top: 22px;
  }

  .contact-card__mail {
    justify-self: center;
  }

  .cta {
    margin-bottom: -120px;
  }

  .cta__panel {
    padding: 48px 24px;
  }

  .cta__actions {
    width: 100%;
  }

  .cta__actions > .btn {
    width: 100%;
    max-width: 320px;
  }

  .cta__actions .stores {
    gap: 12px;
  }

  .cta__actions .store img {
    height: 40px;
  }



  .footer {
    padding-top: calc(120px + 64px);
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 24px;
    padding-bottom: 54px;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .brand--footer .brand__logo {
    height: 50px;
  }

  /* hero phones take more of the narrower column */
  .hero__img {
    width: 56%;
    margin-left: 8%;
  }

  .hero__phone-back {
    width: 46%;
    right: 2%;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

/* --------------------------------------------------------------------------
   <= 479px  small phone
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  :root {
    --gutter: 18px;
    --section-space: 64px;
  }

  .brand__logo {
    height: 38px;
  }

  .is-scrolled .brand__logo,
  .is-open .brand__logo {
    height: 34px;
  }

  .btn {
    padding-inline: 24px;
    letter-spacing: 1.5px;
  }

  .store img {
    height: 44px;
  }

  .hero__facts li {
    padding: 16px 6px;
    font-size: 0.875rem;
  }

  .chip__sub {
    display: none;
  }

  .step__blob {
    width: 90px;
    height: 80px;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat__label {
    max-width: 290px;
  }

  .shape__panel {
    grid-template-columns: 1fr;
  }

  .shape__cell + .shape__cell {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .shape__cell {
    padding: 32px 22px 34px;
  }

  .report-badge__label {
    font-size: 0.9375rem;
  }

  .report-badge__icon {
    width: 46px;
    height: 46px;
  }

  .safety__visual {
    width: 280px;
  }

  .report-badge {
    left: -10px;
  }

  .safety-item {
    gap: 16px;
  }

  .icon-badge {
    width: 48px;
    height: 48px;
  }

  .icon-badge .icon {
    width: 22px;
    height: 22px;
  }

  .accordion__trigger {
    gap: 10px;
    padding-inline: 12px;
  }
}

/* --------------------------------------------------------------------------
   <= 359px  320px devices
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  :root {
    --gutter: 16px;
  }

  .brand__logo,
  .is-scrolled .brand__logo,
  .is-open .brand__logo {
    height: 32px;
  }

  .hero__copy .eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 1px;
  }

  .btn {
    padding-inline: 18px;
    letter-spacing: 1px;
  }

  .stores {
    gap: 10px;
  }

  .carousel__controls {
    gap: 10px;
  }

  .carousel__dot {
    padding: 0 3px;
  }

  .store img {
    height: 40px;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .hero__facts li {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 14px;
    text-align: left;
  }

  .hero__facts li + li,
  .hero__facts li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .chip {
    display: none;
  }

  .info-card {
    grid-template-columns: 1fr;
  }

  .info-card > .icon-badge {
    grid-row: auto;
  }

  .info-card__title {
    margin-top: 16px;
  }

  .report-badge {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
