/**
 * Site-wide mobile / tablet refinements (all landing pages + home).
 * Loaded after page-specific stylesheets.
 */

.page-shell {
  overflow-x: clip;
}

/* -------------------------------------------------------------------------- */
/* Shared tokens (inner pages)                                                */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  :root {
    --bts-hero-card-padding: clamp(18px, 4vw, 24px);
  }

  .about-page,
  .insights-page,
  .platform-page,
  .compliance-page,
  .proof-page,
  .contact-poc-page,
  .blog-page {
    --bts-page-heading: 34px;
    --bts-page-heading-lh: 1.25;
    --bts-page-subheading: 22px;
    --bts-page-subheading-lh: 1.3;
  }

  .proof-page {
    --proof-heading-size: 34px;
    --proof-subheading-size: 22px;
    --proof-title-lg: 34px;
    --proof-title-lh: 1.25;
  }
}

@media (max-width: 719px) {
  .about-page,
  .insights-page,
  .platform-page,
  .compliance-page,
  .proof-page,
  .contact-poc-page,
  .blog-page {
    --bts-page-heading: 30px;
    --bts-page-heading-lh: 1.22;
    --bts-page-subheading: 20px;
    --bts-page-subheading-lh: 1.35;
  }

  .proof-page {
    --proof-heading-size: 30px;
    --proof-subheading-size: 20px;
    --proof-title-lg: 30px;
    --proof-title-lh: 1.22;
  }

  .compliance-page {
    --compliance-heading-size: 30px;
    --compliance-subheading-size: 20px;
    --compliance-title-lg: 30px;
    --compliance-title-lh: 1.22;
  }
}

@media (max-width: 479px) {
  .about-page,
  .insights-page,
  .platform-page,
  .compliance-page,
  .proof-page,
  .contact-poc-page,
  .blog-page {
    --bts-page-heading: clamp(1.625rem, 7vw, 1.875rem);
    --bts-page-subheading: clamp(1.05rem, 4.2vw, 1.25rem);
  }
}

/* -------------------------------------------------------------------------- */
/* About page                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .about-hero__sub,
  .about-founder__title,
  .about-founder__list-lead,
  .about-founder__sign,
  .about-our-mission__box-title,
  .about-our-mission__outro-title,
  .about-long-term-vision__statement,
  .about-why-now__subhead,
  .about-why-now__paradox-title,
  .about-closing__subline {
    font-size: var(--bts-page-subheading);
    line-height: var(--bts-page-subheading-lh);
  }

  .about-our-mission__title,
  .about-long-term-vision__title,
  .about-why-now__title,
  .about-closing__headline {
    font-size: var(--bts-page-heading);
    line-height: var(--bts-page-heading-lh);
  }

  .about-our-mission__subhead {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    line-height: 1.35;
  }

  .about-our-mission__box {
    padding: var(--bts-hero-card-padding);
  }
}

@media (max-width: 719px) {
  .about-why-now__paradox-title.custom-margin {
    margin: 0 0 12px !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Insights page                                                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .insights-page .insights-title,
  .insights-page .insights-title--md,
  .insights-page .insights-title-last-section {
    font-size: var(--bts-page-heading);
    line-height: var(--bts-page-heading-lh);
  }

  .insights-page .insights-hero p.insights-eyebrow-hero,
  .insights-page .insights-overline,
  .insights-page .insights-subtitle {
    font-size: var(--bts-page-subheading);
    line-height: var(--bts-page-subheading-lh);
  }
}

@media (max-width: 479px) {
  .insights-page .insights-card {
    padding-inline: clamp(18px, 5vw, 24px);
  }

  .insights-page .insights-bars {
    --insights-bar-label-col: 118px;
  }

  .insights-page .insights-bar span {
    font-size: 0.8125rem;
    line-height: 1.25;
  }
}

.insights-page .insights-divider--tight {
  margin-top: 0;
}

@media (min-width: 720px) {
  .insights-page .insights-divider--tight {
    margin-top: -30px;
  }
}

/* -------------------------------------------------------------------------- */
/* Platform page                                                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .platform-page .platform-eyebrow {
    font-size: var(--bts-page-subheading);
    line-height: var(--bts-page-subheading-lh);
  }

  .platform-page .platform-section-title,
  .platform-page .platform-use-cases__title,
  .platform-page .platform-final-cta__title {
    font-size: var(--bts-page-heading);
    line-height: var(--bts-page-heading-lh);
  }
}

@media (max-width: 719px) {
  .platform-page {
    --platform-title-lg: 30px;
    --platform-title-lh: 1.22;
  }
}

/* -------------------------------------------------------------------------- */
/* Compliance page                                                            */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .compliance-page .compliance-title,
  .compliance-page .compliance-title--arpp,
  .compliance-page .compliance-panel__title--gdpr,
  .compliance-page .compliance-copy--scope .compliance-title,
  .compliance-page .compliance-title--framework-intro,
  .compliance-page .compliance-panel__title--framework {
    font-size: var(--compliance-heading-size, var(--bts-page-heading));
    line-height: var(--bts-page-heading-lh);
  }

  .compliance-page .compliance-hero p.compliance-eyebrow--hero {
    font-size: var(--compliance-subheading-size, var(--bts-page-subheading));
    line-height: var(--bts-page-subheading-lh);
  }

  .compliance-page .compliance-panel--framework-intro {
    padding: var(--bts-hero-card-padding);
  }
}

/* -------------------------------------------------------------------------- */
/* Proof of Concept page                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .proof-page .proof-hero p.proof-hero__sub {
    font-size: var(--bts-page-subheading);
    line-height: var(--bts-page-subheading-lh);
    white-space: normal;
  }

  .proof-neg-mark {
    font-size: var(--bts-page-subheading);
    line-height: var(--bts-page-subheading-lh);
  }

  .proof-container-extra,
  .proof-key-pill,
  .proof-perfect-card {
    padding: var(--bts-hero-card-padding);
  }
}

@media (max-width: 719px) {
  .proof-page .proof-ramp-wrap {
    margin-inline: -8px;
    padding-inline: 8px;
  }
}

/* -------------------------------------------------------------------------- */
/* Contact / Start a PoC page                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .contact-poc-page .poc-hero__sub {
    font-size: var(--bts-page-subheading);
    line-height: var(--bts-page-subheading-lh);
  }

  .contact-poc-page .poc-section-title {
    font-size: var(--bts-page-heading);
    line-height: var(--bts-page-heading-lh);
  }
}

/* -------------------------------------------------------------------------- */
/* Blog                                                                       */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .blog-hero__kicker,
  .blog-latest__intro,
  .blog-single__related-title {
    font-size: var(--bts-page-subheading);
    line-height: var(--bts-page-subheading-lh);
  }

  .blog-latest__title,
  .blog-single__title {
    font-size: var(--bts-page-heading);
    line-height: var(--bts-page-heading-lh);
  }
}

@media (max-width: 720px) {
  .blog-page .blog-container,
  .blog-page .blog-divider,
  .blog-page .blog-hero-subscribe-row {
    width: min(calc(100% - 16px), var(--blog-max));
  }
}

@media (max-width: 639px) {
  .blog-single__adj {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .blog-single__adj-label,
  .blog-single__adj-arrow {
    font-size: 28px;
  }
}

/* -------------------------------------------------------------------------- */
/* Home — Intro section (#insights)                                             */
/* -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .intro-section__grid {
    row-gap: clamp(32px, 5vw, 48px);
  }

  .intro-copy__impact--single {
    white-space: normal;
  }
}

/* Tablet: bridge on top, two cards side by side */
@media (min-width: 720px) and (max-width: 1120px) {
  .intro-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: clamp(16px, 3vw, 24px);
  }

  .intro-bridge {
    grid-column: 1 / -1;
    order: -1;
    max-width: none;
    width: 100%;
    padding: clamp(16px, 3vw, 24px) clamp(12px, 2vw, 20px);
    border: 1px solid var(--line-faint);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 39, 71, 0.72) 0%, rgba(10, 24, 44, 0.92) 100%);
  }

  .intro-bridge__badge {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .intro-card {
    max-width: none;
    margin-inline: 0;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .intro-copy__impact {
    font-size: clamp(1.25rem, 4.2vw, 1.65rem);
    line-height: 1.28;
  }

  .intro-copy__impact + .intro-copy__impact {
    margin-top: 0.65rem;
  }

  .intro-pillars {
    justify-content: flex-start;
    gap: clamp(12px, 3vw, 20px);
  }

  .intro-pillars li {
    min-width: 56px;
    font-size: 13px;
  }

  .intro-pillars__icon.intro-icon-mask {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 719px) {
  .intro-section__grid {
    row-gap: 28px;
  }

  /* DOM order: media card → logo bridge → trust card */
  .intro-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .intro-card--media {
    order: 1;
  }

  .intro-bridge {
    order: 2;
    max-width: 100%;
    margin-inline: auto;
    padding: 20px 16px;
    border: 1px solid var(--line-faint);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 39, 71, 0.72) 0%, rgba(10, 24, 44, 0.92) 100%);
  }

  .intro-card--trust {
    order: 3;
  }

  .intro-bridge__core {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
  }

  .intro-bridge__core img {
    width: 46px;
  }

  .intro-bridge__title {
    max-width: none;
    font-size: 1rem;
  }

  .intro-bridge__text {
    max-width: none;
    font-size: 13px;
  }

  .intro-bridge__badge {
    white-space: normal;
    font-size: 9px;
    padding: 8px 12px;
  }

  .intro-card__footer {
    padding: 14px 16px;
    gap: 12px;
  }

  .intro-card__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .intro-section__tagline p {
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1.45;
    padding-inline: 8px;
  }
}

@media (max-width: 479px) {
  .intro-copy__impact {
    font-size: clamp(1.1rem, 5.2vw, 1.35rem);
  }

  .intro-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 16px 12px;
  }

  .intro-pillars li {
    width: 100%;
  }

  .intro-card__media {
    aspect-ratio: 16 / 10;
  }

  .intro-card__meta h3 {
    font-size: 0.95rem;
  }

  .intro-card__meta p {
    font-size: 12px;
  }
}

/* -------------------------------------------------------------------------- */
/* Home — Ecosystem section (#about)                                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .eco-header {
    max-width: none;
    margin-bottom: clamp(32px, 6vw, 48px);
    text-align: center;
  }

  .eco-header__lead {
    max-width: none;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .ecosystem-section {
    overflow-x: clip;
    --eco-stem-gap: clamp(32px, 10vw, 56px);
  }

  .eco-header__title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .eco-header__lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .eco-step__title {
    font-size: 15px;
  }

  .eco-step__subtitle {
    font-size: 13px;
  }

  .eco-step__text {
    font-size: 13px;
  }
}

@media (max-width: 479px) {
  .eco-header__title {
    font-size: 1.45rem;
  }

  .ecosystem-section {
    --eco-stem-gap: clamp(28px, 9vw, 48px);
  }

  .eco-step {
    max-width: 100%;
    grid-template-columns: 1fr auto var(--eco-stem-gap) auto 1fr;
    grid-template-areas:
      ". marker stem card ."
      "body body body body body";
  }

  .eco-callout {
    margin-top: clamp(32px, 7vw, 48px);
    padding: 14px 16px;
    border-radius: 16px;
  }

  .eco-callout p {
    font-size: 13px;
  }
}

/* -------------------------------------------------------------------------- */
/* Home (landing) — overflow & fixed widths                                   */
/* -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .site-footer__form {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__form input,
  .site-footer__form button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .poc-section__card,
  .leaders-card {
    padding-inline: clamp(16px, 5vw, 24px);
  }
}
