/* Shared layout, contrast, and footer fixes for public pages. */

:root {
  --container-max: 1200px;
}

.container {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box;
}

.page-hero-content,
.page-body,
.container.page-body {
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.page-body p,
.page-body li,
.page-hero-lead,
.ownership-body {
  max-width: 72ch;
}

.page-body .svc-grid,
.page-body .steps-grid,
.steps-grid,
.svc-grid {
  max-width: none;
  width: 100%;
}

.page-body,
.page-body p,
.page-body li,
.page-body h2,
.page-body h3 {
  color: #1a1c18;
}

.page-hero,
.page-hero h1,
.cta-section,
.cta-section h2 {
  color: #fff;
}

.page-hero-lead {
  color: #fff !important;
}

/* Light section that reused the dark how-section heading color */
.how-section[style*="sand"] .how-header h2,
.how-section[style*="sand"] .how-header p,
.how-section[style*="white"] .how-header h2,
.how-section[style*="white"] .how-header p,
.how-section[style*="sand"] > .container > h2,
.how-section[style*="sand"] > .container > p {
  color: #1a1c18 !important;
}

/* Dark how-section copy that was inheriting the page's dark text */
.how-section:not([style*="sand"]):not([style*="white"]) .how-header p,
.how-section:not([style*="sand"]):not([style*="white"]) > .container > h2,
.how-section:not([style*="sand"]):not([style*="white"]) > .container > p {
  color: #f7f6f3 !important;
}

.how-section:not([style*="sand"]):not([style*="white"]) > .container > p a {
  color: #ffd0c2 !important;
}

a.svc-card,
a.step-card,
a.svc-card h3,
a.step-card h3,
.svc-card h3,
.step-card h3 {
  text-decoration: none !important;
  background-image: none !important;
}

.footer-main {
  display: grid !important;
  grid-template-columns: minmax(180px, 1.15fr) repeat(4, minmax(88px, 0.85fr)) minmax(230px, 1.45fr) !important;
  gap: 2rem 1.25rem !important;
  align-items: start !important;
  text-align: left !important;
}

.footer-nav h4 {
  margin: 0 0 0.9rem !important;
  padding-top: 0 !important;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin: 0 0 0.45rem !important;
}

.footer-nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  line-height: 1.3 !important;
  padding: 0.35rem 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}
.footer-contact li {
  white-space: nowrap;
}
.footer-bottom p[style*="accent"] {
  color: #ffd0c2 !important;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .footer-main {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    gap: 1.75rem !important;
  }
  .footer-brand,
  .footer-nav,
  .footer-brand p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .footer-brand {
    align-items: flex-start !important;
  }
}

/* Public page rhythm */
.band {
  padding: 4.25rem 0;
}
.band-white { background: #fff; color: #1a1c18; }
.band-sand { background: #f5f4f0; color: #1a1c18; }
.band-ink { background: #1a1c18; color: #f7f6f3; }
.band h2,
.band h3,
.band p,
.band li,
.band summary {
  color: inherit;
}
.band-white h2,
.band-white h3,
.band-white p,
.band-white li,
.band-sand h2,
.band-sand h3,
.band-sand p,
.band-sand li {
  color: #1a1c18 !important;
}
.band-sand a[style*="ffd0c2"],
.band-white a[style*="ffd0c2"] {
  color: #9a3412 !important;
}
.band .container + .container {
  margin-top: 3.25rem;
}
.band-ink h2,
.band-ink h3,
.band-ink p,
.band-ink li,
.band-ink summary {
  color: #f7f6f3 !important;
}
.band .eyebrow {
  color: #9a3412 !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.band-ink .eyebrow { color: #ffd0c2 !important; }
.band h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 18em;
}
.band .lede,
.band p {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}
.card-grid,
.step-row,
.stat-row,
.icon-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
  width: 100%;
  max-width: none;
}
.card-grid.cols-2,
.device-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card,
.step,
.stat {
  background: #fff;
  border: 1px solid #e4e1da;
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1rem;
  color: #1a1c18;
}
.band-white .card,
.band-white .step,
.band-white .stat { background: #f7f6f3; }
.band-ink .card,
.band-ink .step,
.band-ink .stat {
  background: #242620;
  border-color: #34362f;
  color: #f7f6f3;
}
.band-ink .card p,
.band-ink form p,
.band-ink .form-group label,
.band-ink .card label,
.band-ink form label {
  color: #f7f6f3 !important;
}
.band-ink .form-group label .required,
.band-ink form .required {
  color: #ffd0c2 !important;
}
.band-ink .form-group input,
.band-ink .form-group textarea,
.band-ink .form-group select,
.band-ink .card input,
.band-ink .card textarea,
.band-ink .card select {
  color: #1a1c18 !important;
  background: #f7f6f3 !important;
  border: 1px solid #d9d6cf !important;
  caret-color: #1a1c18;
}
.band-ink .form-group input::placeholder,
.band-ink .form-group textarea::placeholder,
.band-ink .card input::placeholder,
.band-ink .card textarea::placeholder {
  color: #3f463c !important;
  opacity: 1 !important;
}
.band-ink .form-group input:focus,
.band-ink .form-group textarea:focus,
.band-ink .form-group select:focus,
.band-ink .card input:focus,
.band-ink .card textarea:focus,
.band-ink .card select:focus {
  outline: 2px solid #f15a29 !important;
  outline-offset: 2px !important;
  border-color: #f15a29 !important;
  box-shadow: 0 0 0 3px rgba(241, 90, 41, 0.35) !important;
}
.card h3,
.step h3,
.stat span {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.card p,
.step p,
.stat p { margin: 0; font-size: 0.98rem; }
.card a { color: inherit; text-decoration: none; }
a.card { display: block; text-decoration: none !important; }
a.card h3 { text-decoration: none !important; }
.card-icon { color: #c2410c; margin-bottom: 0.65rem; }
.card-icon svg { width: 28px; height: 28px; display: block; }
.step-num {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  color: #c2410c;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.band-ink .step-num { color: #ffb199; }
.stat strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #c2410c;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.band-ink .stat strong { color: #ffb199; }
.faq-list { margin-top: 0.5rem; max-width: 760px; }
.faq {
  border-bottom: 1px solid #e4e1da;
  padding: 0.15rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.85rem 0;
  color: #1a1c18 !important;
}
.band-ink .faq {
  border-bottom-color: rgba(247, 246, 243, 0.28);
}
.band-ink .faq summary {
  color: #f7f6f3 !important;
}
.faq p { margin: 0 0 0.9rem; }
.device-row {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-top: 1.25rem;
}
.macbook, .phone { margin: 0; }
.macbook-top, .phone-top {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
}
.macbook {
  background: #1a1c18;
  border-radius: 16px 16px 10px 10px;
  padding: 0 10px 0;
  box-shadow: 0 18px 40px rgba(26, 28, 24, 0.18);
}
.macbook-top i, .phone-top i {
  width: 8px; height: 8px; border-radius: 50%; background: #3d4038; display: block;
}
.macbook img, .phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  background: #fff;
}
.macbook img { max-height: 420px; border-radius: 4px 4px 0 0; }
.macbook-base {
  height: 14px;
  margin: 0 12% 0;
  background: #2c2e28;
  border-radius: 0 0 10px 10px;
}
.phone {
  width: min(280px, 100%);
  margin-left: auto;
  margin-right: auto;
  background: #111310;
  border-radius: 28px;
  padding: 10px;
  border: 3px solid #2a2c28;
}
.phone img { max-height: 520px; border-radius: 18px; }
.device-row figcaption, .shot-cap {
  color: #4d5548 !important;
  font-size: 0.85rem;
  margin: 0.55rem 0 0;
}
.macbook figcaption,
.phone figcaption,
.band-ink .shot-cap,
.band-ink figcaption {
  color: #d9d6cf !important;
  font-size: 14px !important;
  line-height: 1.4;
}
.next-case {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: #1a1c18;
  color: #f7f6f3 !important;
  text-decoration: none !important;
}
.next-case strong { font-size: 1.25rem; color: #fff !important; }
.next-case span, .next-case p { color: #d9d6cf !important; margin: 0; }
.legal-band h2 { margin-top: 0; }
.legal-band ul { max-width: 68ch; }
.page-hero {
  background: #1a1c18 !important;
  color: #fff !important;
}
.page-hero h1,
.page-hero p,
.page-hero .page-hero-lead {
  color: #fff !important;
}
.page-hero h1 { max-width: 16em; }
/* Visual director pass */
.skip-nav-link {
  position: absolute !important;
  left: 8px !important;
  top: 0 !important;
  transform: translateY(-150%) !important;
  background: #f15a29 !important;
  color: #1a1c18 !important;
  z-index: 2000 !important;
}
.skip-nav-link:focus {
  top: 8px !important;
  transform: none !important;
  outline: 2px solid #1a1c18 !important;
}

.nav-cta,
.nav-cta-mobile,
.btn--primary,
.calc-submit,
button[type="submit"] {
  background: #f15a29 !important;
  background-color: #f15a29 !important;
  color: #1a1c18 !important;
  border: none !important;
}
.nav-cta:hover,
.nav-cta-mobile:hover,
.btn--primary:hover,
.calc-submit:hover,
button[type="submit"]:hover {
  background: #ff7a4d !important;
  background-color: #ff7a4d !important;
  color: #1a1c18 !important;
}

.cta-section {
  position: relative;
  background: #1a1c18 !important;
  color: #fff !important;
}
.cta-section::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 4px !important;
  background: #f15a29 !important;
  z-index: 2 !important;
}
.cta-section h2,
.cta-section p {
  color: #fff !important;
}
.cta-section .eyebrow {
  color: #ffd0c2 !important;
}
.cta-section .btn,
.cta-section a.btn,
.cta-section .btn--inverse,
.cta-section .btn--primary {
  background: #fff !important;
  background-color: #fff !important;
  color: #1a1c18 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}
.cta-section .btn:hover,
.cta-section a.btn:hover {
  background: #f15a29 !important;
  color: #1a1c18 !important;
  border-color: #f15a29 !important;
}

.page-hero,
.case-study-hero {
  padding-top: 8.75rem !important;
  padding-bottom: 4.25rem;
}
.page-hero .page-hero-lead:last-child,
.case-study-hero .page-hero-lead:last-child {
  margin-bottom: 0;
}
/* Home hero holds the trust row, so the dark hero is one band. */
.hero {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: visible !important;
}
.hero > .trust-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 1.5rem;
}
@media (max-width: 800px) {
  .hero {
    min-height: 0 !important;
    justify-content: flex-start !important;
  }
}
.page-hero .eyebrow,
.case-study-hero .eyebrow {
  color: #ffd0c2 !important;
}

.nav-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 44px !important;
  height: 44px !important;
  padding: 10px !important;
}
.nav-toggle span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: #1a1c18 !important;
  margin: 5px 0 !important;
  border: 0 !important;
}
/* Home header is transparent over the dark hero until it scrolls. */
.site-header.header-on-dark:not(.scrolled) .nav-toggle span,
.site-header.header-on-dark .nav-toggle.active span {
  background: #fff !important;
}

.calc-assumptions,
.calc-field label {
  font-size: 16px !important;
  line-height: 1.45 !important;
}
.calc-assumptions {
  margin-bottom: 16px !important;
}
.calc-field label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}
.calc-field input::placeholder,
.hero-calculator input::placeholder {
  color: #d9d6cf !important;
  opacity: 1 !important;
}
.hero-tagline {
  font-size: 1.125rem !important;
  font-weight: 400 !important;
}
.card p,
.step p,
.stat p {
  font-size: 16px !important;
  line-height: 1.45 !important;
}
.band .eyebrow,
.page-hero .eyebrow,
.cta-section .eyebrow,
.breadcrumb {
  font-size: 14px !important;
  letter-spacing: 0.12em !important;
}
.breadcrumb {
  letter-spacing: 0 !important;
}
.footer-contact li {
  font-size: 15px !important;
}
.next-case .eyebrow,
.next-case > span {
  color: #ffd0c2 !important;
  font-size: 14px !important;
}
.trust-logo,
.trust-bar--dark .trust-logo {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  max-width: 100% !important;
  opacity: 1 !important;
}
.trust-bar--dark .trust-logo,
.trust-bar--dark .trust-logo-item:hover .trust-logo {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}
.trust-label,
.trust-bar--dark .trust-label {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.trust-logo-category,
.trust-bar--dark .trust-logo-category {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.86) !important;
}
.legal-band {
  max-width: 65ch;
  margin-left: 0;
  margin-right: auto;
}
.last-updated {
  text-align: left !important;
  color: #1a1c18 !important;
}
.cta-section,
.cta-content {
  text-align: center !important;
}
.cta-content {
  margin-left: auto !important;
  margin-right: auto !important;
}
.cta-section .btn,
.cta-section a.btn {
  text-transform: none !important;
  letter-spacing: 0 !important;
  width: auto !important;
}
@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-primary {
    margin: 0 !important;
  }
  .main-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
}
.band-ink .legal-band h2,
.band-ink .legal-band h3,
.band-ink .legal-band p,
.band-ink .legal-band li,
.band-ink .legal-band strong {
  color: #f7f6f3 !important;
}
.band-ink .legal-band a {
  color: #ffd0c2 !important;
}

@media (max-width: 800px) {
  .card-grid, .step-row, .stat-row, .icon-row, .device-row, .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .band { padding: 3rem 0; }
  .macbook img { max-height: 240px; }
  .page-hero,
  .case-study-hero {
    padding-top: 6.75rem !important;
  }
  .page-hero h1,
  .case-study-hero h1,
  .hero h1 {
    font-size: 1.875rem !important;
    line-height: 1.15 !important;
  }
  .trust-logo,
  .trust-bar--dark .trust-logo {
    height: 40px !important;
    max-height: 40px !important;
  }
  .trust-bar--dark .trust-logos {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    gap: 1.25rem 0.75rem !important;
  }
  .trust-bar--dark .trust-logo-item {
    min-width: 0 !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
  }
  .trust-label,
  .trust-bar--dark .trust-label {
    font-size: 14px !important;
  }
  .cta-section .btn,
  .cta-section a.btn {
    font-size: 1rem !important;
    line-height: 1.25 !important;
    padding: 0.8rem 1rem !important;
    white-space: nowrap !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .exit-modal-overlay,
  .skip-nav-link {
    display: none !important;
  }
  img,
  .shot,
  .device {
    max-width: 45% !important;
    height: auto !important;
  }
  .svc-card,
  .step-card,
  .device-pair,
  .faq-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
