﻿/* =================================================================
   BrainSpark — responsive.css
   Breakpoints: 1200, 1024, 900, 768, 600, 480, 375, 320
   ================================================================= */

/* ----- large desktop: let the canvas breathe a touch ----- */
@media (min-width: 1500px) {
  .container { max-width: 1380px; }
}

/* =================== <= 1100px : 5-up grids -> tighten =================== */
@media (max-width: 1100px) {
  .hero__title { font-size: 60px; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .dsp__panel { padding: 40px; gap: 36px; }
}
/* =================== <= 1024px : tablet landscape =================== */
@media (max-width: 1024px) {
  .hero__inner { gap: 30px; }
  .hero__title { font-size: 54px; }
  .apps__title { font-size: 40px; }
  .section-title, .contact__title { font-size: 30px; }
  .dsp__title { font-size: 30px; }

  .journey__stages {
    grid-template-columns: 1fr;
    gap: 56px 0;
  }
  .stage__connector {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 4px 0;
  }
  .connector-arrow { width: 90px; transform: rotate(90deg); }
  .stage { max-width: 480px; margin-inline: auto; text-align: left; }

  .outcomes__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .outcomes__divider:nth-child(4n) { display: none; }
  .outcomes__divider { display: none; }
  .outcome { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .outcome:nth-last-child(-n+1),
  .outcome:nth-last-child(-n+2) { padding-bottom: 0; }

  .stage__connector svg {
    transform: rotate(90deg);
}

.journey .section-head {
    text-align: center;
}

.journey .section-sub {
    margin: 0 auto;
}

.stage.stage--engagement .jouney-img {
    width: 100%;
}

}

/* =================== <= 1100px : stack offerwall panel early =================== */
@media (max-width: 1100px) {
  .ow-panel { grid-template-columns: 1fr 1fr; gap: 34px; }
  /* .ow-phone { order: -1; } */
  .ow-notes { flex-direction: row; flex-wrap: wrap; gap: 24px 28px; justify-content: space-between; }
  .ow-note { flex: 1 1 220px; }
  .ow-note::before { display: none; }

  .ow-panel__left {
    grid-column: 1/-1;
}
.ow-phone {
    justify-content: end;
}
}

/* =================== <= 900px : collapse nav + 2-up =================== */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 79px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    padding: 8px 24px 18px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  /* .nav-toggle { display: flex; } */

/* mobile menu  */
/* nav#primaryNav {
    padding: 20px;
    position: fixed;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    max-width: 350px;
    margin-left: auto;
    transform: translateX(100%);
    transition: all 0.2s linear;
    padding: 80px 20px 20px;
    box-shadow: inset -3px -1px 0 4px var(--ink), var(--shadow-hard-sm);
    border-radius: 40px 0 0 40px;
    gap: 0;
}

nav#primaryNav .nav__link {
    display: block;
    width: 100%;
    padding: 20px 0;
}

nav#primaryNav .nav__link {
    border-bottom: 1px solid #0000001a;
} */
.nav {
    display: none;
}

 /* .hero__art { max-width: 460px; margin: 0 auto; order: -1; }*/
  .hero__title { font-size: 56px; }

  .apps__head { flex-direction: column; align-items: flex-start; }

  /* Swipeable slider from 900px down */
  .apps__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 4px 24px 6px;
  }
  .apps__grid::-webkit-scrollbar { display: none; }
  .apps__grid .app-card {
    flex: 0 0 48%;
    max-width: 48%;
    scroll-snap-align: start;
  }
  .apps__grid .app-card:last-child { max-width: 48%; }
  .apps__dots { display: flex; }

  .dsp__panel { grid-template-columns: 1fr; }
  .dsp__panel::after { opacity: .5; }

  /* Offerwall: stack panel to one column, callouts in a row */
  .ow-panel { grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px; }
  /* .ow-phone { order: -1; } */
  .ow-notes { flex-direction: row; flex-wrap: wrap; gap: 22px 28px; justify-content: space-between; margin-left: 5px;}
  .ow-note { flex: 1 1 220px; }
  .ow-note::before { display: none; }

  .contact__panel { grid-template-columns: 1fr; gap: 34px; padding: 40px; }
}

/* =================== <= 768px : tablet portrait =================== */
@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    display: block;
    text-align: center;
}
.hero__lede {
    margin: 0 auto 28px auto;
}
.hero__actions , .hero__stats {
    justify-content: center;
}
.hero__art img {

    display: block;
    margin: auto;
    max-width: 470px;
    width: 100%;
    margin-top: 20px;
}
.gameplan .section-title,.gameplan .eyebrow {
    text-align: center;
}
.gameplan .section-sub {
    text-align: center;
    margin: auto;
}
  .hero { padding: 44px 0 30px; }
  .hero__title { font-size: 48px; -webkit-text-stroke-width: 1.5px; }
  .hero__lede { font-size: 16px; }
  .hero__stats { gap: 30px; }

  .model-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }

  .results-grid { grid-template-columns: 1fr; }
  .result-card { padding: 32px 28px; }

  .flow { grid-template-columns: 1fr; }
  .flow__arrow { padding: 4px 0; transform: rotate(90deg); }

  .offerwall { padding: 44px 0 60px; }
  .ow-features { gap: 18px; }
  .ow-title { font-size: 30px; }
  .sparktap-logo { height: 52px; }
  .ow-panel { grid-template-columns: 1fr 1fr; gap: 30px; padding: 32px 26px; }
  /* .ow-phone { order: -1; } */

  .apps { padding: 56px 0 60px; }
  .apps__title { font-size: 34px; }

  .subs-banner { padding: 26px 16px; }
  .subs strong { font-size: 28px; }

  .site-footer__inner { flex-direction: column; justify-content: center; height: auto; padding-top: 26px; padding-bottom: 26px; gap: 14px; text-align: center; }
  .terms-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .terms-hero__title { font-size: 34px; }
  .dnc-steps { grid-template-columns: 1fr; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }

}

/* =================== <= 600px : large phones =================== */

@media (max-width: 640px) {
  .journey { padding: 60px 0 60px; }
  .journey__intro { margin-bottom: 44px; }

  .stage { text-align: center; margin-inline: auto; max-width: 340px; }
  .stage__head {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 6px;
  }
  .stage__icon-ring { grid-row: auto; }
  .stage__number { align-self: center; }
  .stage__title { align-self: center; }
  .stage__desc { margin-inline: auto; }

  .stage__visual { min-height: 260px; }
  .float-card--product { left: 50%; transform: translateX(-96px); }
  .float-card--phone { left: 50%; transform: translateX(6px); }
  .float-card--ad { left: 50%; transform: translateX(-64px); }
  .float-card--notif { left: 50%; transform: translateX(-52px); }

  .big-phone__frame { width: 180px; }

  .customer-avatar { width: 140px; }
  .float-card--reward { right: 0; }
  .float-card--vip { right: -4px; }

  .outcomes { padding: 36px 22px; border-radius: 22px; }
  .outcomes__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .outcome { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .outcome:last-child { border-bottom: none; padding-bottom: 0; }
  .outcome__icon-ring { margin-inline: auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  /*.header__cta { display: none; }*/

  .hero__title { font-size: 42px; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__stats { gap: 20px; justify-content: space-between; }
  .hero__stats strong { font-size: 24px; }

  /* Full-width cards on small phones */
  .apps__grid { gap: 0; margin: 0; padding: 4px 0 6px; }
  .apps__grid .app-card { flex: 0 0 100%; max-width: 100%; scroll-snap-align: start; }
  .apps__grid .app-card:last-child { max-width: 100%; }
  .phone__clip { font-size: 10px; }

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

  .ow-features { grid-template-columns: 1fr; }
  .ow-stats { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .ow-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    text-align: left;
  }
  .ow-stat + .ow-stat::before { display: none; }
  .ow-stat__icon { grid-column: 1; grid-row: 1 / 3; margin-bottom: 0; flex-shrink: 0; }
  .ow-stat strong { grid-column: 2; grid-row: 1; }
  .ow-stat span:not(.ow-stat__icon) { grid-column: 2; grid-row: 2; margin-left: 0; margin-right: 0; }

  .ow-notes { flex-direction: column; gap: 16px; }
  .ow-note {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .ow-note__icon { flex-shrink: 0; }
  .ow-note p { max-width: none; }

  .subs-banner { grid-template-columns: 1fr; gap: 22px; }
  .subs + .subs::before { display: none; }
  .subs { padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16);}
  .subs:first-child { padding-top: 0; border-top: none; }

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

  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .contact__panel { padding: 30px 22px; }
  .dsp__panel { padding: 30px 22px; }
  .site-footer__logo {
    display: none;
}
.site-footer {
    padding: 12px;
    display: flex;
    flex-direction: column-reverse;
}
.site-footer .site-footer__inner {
    flex-direction: column-reverse;
}
.ow-note {
    flex: 1 1 140px;
    width: 100%;
}
}

@media screen and (max-width:575px){
.phone--ow {
    width: 100%;
    background: transparent;
    box-shadow: none;
}
.ow-panel {
    grid-template-columns: 100%;
}
.curve-dotted-line {
    display: none;
}
.phone--ow img {
    margin: 0 auto;
}
.ow-note {
    flex: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
}
.ow-note__icon {
    margin: 0 auto 10px;
}
.ow-notes {
    gap: 24px;
}
}

/* =================== <= 480px : small phones =================== */
@media (max-width: 480px) {
  .section-title, .contact__title, .apps__title { font-size: 27px; }
  .dsp__title { font-size: 26px; }
  .ow-title { font-size: 26px; }
  .ow-panel { padding: 26px 20px; }
  .ow-notes { gap: 24px; }
  .hero__title { font-size: 38px; }
  .result-card strong { font-size: 40px; }
 /* .btn { font-size: 15px; padding: 15px 22px; }*/
  .btn--send { width: 100%; justify-content: center; }
  .hero__actions {
    flex-direction: column;
}
.model-grid {
    display: flex;
    flex-direction: column;
}
.plane-illust {
    margin-top: 15px;
}
.dsp__list li {
    width: 100%;
}
.ow-note {
    flex: none;
    width: 100%;
    max-width: 100%;
}
.ow-note p {
    max-width: 100%;
}
 .terms-hero__title { font-size: 28px; }
  .terms-intro, .summary-card, .terms-contact-card, .dnc-action-card { padding: 22px 20px; }
  .err-actions { flex-direction: column; align-items: center; }
  .err-actions .btn { width: 100%; justify-content: center; max-width: 280px; }
}

/* =================== <= 375px =================== */
@media (max-width: 375px) {
  .brand__logo {
    height: 38px;
}
  .hero__title { font-size: 38px; }
  .hero__stats { gap: 12px; }
  .hero__stats strong { font-size: 21px; }
  .hero__stats span { font-size: 10px; }
  .brand-card { font-size: 13px; padding: 12px; gap: 10px; }
  .brand-card__icon { width: 34px; height: 34px; }
}

/* =================== <= 320px : floor =================== */
@media (max-width: 320px) {
  .container { padding: 0 14px; }
  .hero__title { font-size: 30px; }
  .section-title, .contact__title, .apps__title { font-size: 24px; }
  .ow-title { font-size: 23px; }
  .ow-panel { padding: 22px 16px; }
  .model-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .chip { font-size: 12px; padding: 7px 13px; }
}

/* ---- Latest News ---- */
@media (max-width: 768px) {
  .news__panel { padding: 22px 20px 24px; }
  .news-card__inner { flex-direction: column; height: 360px; }
  .news-card__media { flex: 0 0 160px; height: 160px; }
  .news-card__body { height: auto; }
}
@media (max-width: 480px) {
  .news__bar { flex-wrap: wrap; }
  .news-stats { grid-template-columns: 1fr 1fr; }
  .news-article__cover { height: 200px; }
  .news-article__lede { font-size: 16px; }
}

