/*
 * Shared layout: one 1200px container, two-column home grid.
 * Loaded last so legacy page-specific max-width rules cannot spread the page.
 */
.site-main {
  max-width: var(--container);
  margin-inline: auto;
  padding: 48px 24px 96px;
}

.page-id-248 .site-main {
  max-width: var(--container);
  margin-inline: auto;
  padding: 48px 24px 0;
}

.page-id-248 .section-outsource,
.page-id-248 .section-double {
  width: 100%;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.qr-section .qr-container {
  max-width: var(--container);
  padding-inline: 24px;
}

.site-footer .footer-container {
  max-width: var(--container);
}

@media (max-width: 640px) {
  .site-main,
  .page-id-248 .site-main {
    padding: 32px 16px 64px;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .qr-section .qr-container {
    padding-inline: 16px;
  }
}

/* ============================================
   D-P0-05: home visual hierarchy + remove blue wall
   ============================================ */
.page-id-248,
.page-id-248 .site,
.home.page-id-248 {
  background: #fff;
}

.page-id-248 .site-main {
  padding-top: 0;
}

.fz8c-home-hero {
  padding: 28px 24px 18px;
}

.fz8c-home-hero .home-hero__layout {
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.fz8c-home-hero .home-hero__heading { margin-bottom: 16px; }
.fz8c-home-hero .home-hero__title { font-size: clamp(44px, 4.6vw, 56px); }
.fz8c-home-hero .home-hero__promise { margin-top: 14px; font-size: 22px; }
.fz8c-home-hero .home-hero__summary { font-size: 16px; line-height: 1.85; }
.fz8c-home-hero .home-hero__actions { margin-top: 18px; }

.fz8c-home-hero .home-hero__phone {
  width: clamp(180px, 16vw, 220px);
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.fz8c-home-hero > .hero-feature-row-top { margin-top: 14px; }

/* Hero ends; the rest is white / #f6f9fc, not blue. */
.page-id-248 .section-outsource {
  padding: 56px 0 48px;
  border-radius: 0;
  background: #fff;
}

.section-outsource .section-heading,
.section-outsource .section-kicker,
.section-outsource .section-title,
.section-outsource .section-subtitle,
.section-outsource .phone-caption {
  color: var(--ink-900);
}

.section-outsource .section-title { color: var(--ink-900); }
.section-outsource .section-kicker { color: var(--brand-strong); }
.section-outsource .section-subtitle { color: var(--ink-600); }

.page-id-248 .section-outsource .phone-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-2);
  box-shadow: none;
}

.page-id-248 .section-outsource .phone-caption { color: var(--ink-900); }

.page-id-248 .section-double {
  padding: 48px 0;
  background: var(--surface-2);
}

.double-card,
.double-card.primary,
.double-card.muted {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  color: var(--ink-900);
  box-shadow: none;
}

.double-card h3,
.double-card p,
.double-card.muted p { color: var(--ink-900); }
.double-card p { color: var(--ink-600); }

.qr-section {
  padding: 48px 0 64px;
  background: var(--surface-2);
  color: var(--ink-900);
}

.qr-section .qr-intro h2 { color: var(--ink-900); }
.qr-section .qr-intro p { color: var(--ink-600); }

.qr-card {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

.qr-label {
  background: var(--brand-50);
  color: var(--ink-900);
}

.qr-tip { color: var(--ink-600); }
.qr-image { background: #fff; }

.app-download .qr-intro h2 { color: var(--ink-900); }
.app-download .qr-intro p { color: var(--ink-600); }

.contact-block { color: var(--ink-900); }

@media (max-width: 820px) {
  .fz8c-home-hero { padding: 24px 16px 14px; }
  .fz8c-home-hero .home-hero__title { font-size: 38px; }
  .fz8c-home-hero .home-hero__promise { font-size: 20px; margin-top: 12px; }
  .fz8c-home-hero .home-hero__summary { font-size: 15px; line-height: 1.8; }
  .fz8c-home-hero .home-hero__phone { width: 180px; max-height: none; height: auto; }
  .page-id-248 .section-outsource { padding: 40px 0 32px; }
  .page-id-248 .section-double { padding: 32px 0; }
  .qr-section { padding: 36px 0 48px; }
}

/* D-P0-05: 2×2 QR grid, savable codes, closable support card. */
.qr-section .qr-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
  gap: 20px;
}
.qr-section .qr-card { min-height: 300px; }
.qr-section .qr-image { display: block; }
.qr-section .qr-image:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; }

.contact-block { position: fixed; }
.contact-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-600);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.contact-close:hover { background: var(--line); color: var(--ink-900); }
.contact-close:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }

@media (max-width: 640px) {
  .qr-section .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .qr-section .qr-card { min-height: 240px; padding: 14px; }
  .qr-section .qr-image { width: 140px; height: 140px; }
}

/* Mobile: keep support inline in the download block instead of floating over the hero. */
@media (max-width: 640px) {
  .contact-block {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 10px 14px;
  }
  .contact-close { position: absolute; top: 4px; right: 4px; }
}

/* One card surface for all home media blocks: white, same border/radius/padding. */
.page-id-248 .section-outsource .media-card,
.page-id-248 .section-double .media-card {
  width: 100%;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.page-id-248 .section-outsource .media-card .phone-caption,
.page-id-248 .section-double .media-card p { color: var(--ink-600); }

.page-id-248 .section-double .media-card h3 { color: var(--ink-900); }

@media (max-width: 640px) {
  .page-id-248 .section-outsource .media-card,
  .page-id-248 .section-double .media-card { padding: 16px; }
}

/* D-P0-05 review: equal phone frames, one-row accounts, quieter contract band. */
.section-outsource .phone-card .phone-mock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 600px;
  overflow: hidden;
}
.section-outsource .phone-card .phone-mock img {
  width: auto;
  max-width: 340px;
  max-height: 100%;
  object-fit: contain;
}

.qr-section .qr-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1120px;
  gap: 16px;
}
.qr-section .qr-card { min-height: 260px; padding: 16px; }
.qr-section .qr-image { width: 180px; height: 180px; }
.qr-section .qr-label { font-size: 15px; padding: 10px; }

.page-id-248 .section-double {
  padding: 32px 0 8px;
  background: transparent;
}

@media (max-width: 900px) {
  .qr-section .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .qr-section .qr-card { min-height: 240px; }
  .qr-section .qr-image { width: 150px; height: 150px; }
}

@media (max-width: 820px) {
  .section-outsource .phone-card .phone-mock { height: 420px; }
}

/* Hero copy: three deliberate lines. */
.home-hero__summary-line { display: block; }
.home-hero__summary-line + .home-hero__summary-line { margin-top: 4px; }

/* Reduce the gap between outsource phones and contract/inventory cards. */
.page-id-248 .section-outsource {
  margin-bottom: 0;
  padding-bottom: 32px;
}
.page-id-248 .section-double {
  padding-top: 16px;
  padding-bottom: 8px;
}

@media (max-width: 820px) {
  .page-id-248 .section-outsource { margin-bottom: 0; padding-bottom: 24px; }
  .page-id-248 .section-double { padding-top: 12px; padding-bottom: 4px; }
}

/* Support card must never float over the App download buttons on small screens. */
@media (max-width: 820px) {
  .contact-block,
  .contact-block.contact-block--lift {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 10px 14px;
  }
  .contact-close { position: absolute; top: 4px; right: 4px; }
}

/* Keep contract/inventory screenshots on the same visual scale as outsource phones. */
.section-double .phone-mock.small {
  width: 100%;
  max-width: 340px;
  height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.section-double .phone-mock.small img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 820px) {
  .section-double .phone-mock.small { height: 420px; }
}

/* Center the App store buttons on small screens. */
/* Center the App store button group at every viewport width. */
.app-download .download-buttons { margin-inline: auto; justify-self: center; }
