/* Maybridge Acquisitions — non-home page styles (privacy, SMS terms, terms,
   thanks). Design tokens come from tokens.css, loaded before this file on
   every page — this stylesheet declares no :root and must never be linked
   alongside cinema.css (home page only). See build.mjs layout().

   Remapped from the retired brand stylesheet: the old navy/blue/mist
   variables collapse onto the four new tokens (--ink, --paper, --stone,
   --display/--body); the old palette's non-brand structural values
   (corner radius, shadow blur, status green/amber) are inlined as literals
   since they never belonged to the token system, and this file's own
   :root block is gone entirely — tokens.css is the only place any page's
   :root is declared. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: .82rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px var(--shadow); }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: .88; transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,20,15,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 1rem; }
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.header-right { display: flex; align-items: center; gap: 1.2rem; }
.header-contact { display: flex; align-items: center; gap: 1.1rem; color: rgba(255,255,255,.78); font-size: .88rem; }
.header-contact a { display: inline-flex; align-items: center; gap: .4rem; }
.header-contact a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 78%); pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(64px, 11vw, 118px); text-align: center; }
.hero-eyebrow { color: var(--stone); justify-content: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.15rem); font-weight: 700; margin-top: 1.2rem; color: #fff; }
.hero h1 .mark { color: var(--stone); }
.hero .sub { max-width: 640px; margin: 1.4rem auto 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); border-top: 1px solid rgba(255,255,255,.06); }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: center; padding-block: 1.05rem; }
.trust-item { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500; }
.trust-item .ic { color: var(--stone); display: inline-flex; }
.trust-item .ic.star { color: #E6A817; }
.trust-item .ic.shield { color: #14B387; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 92px); }
.section-mist { background: var(--paper); }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .sub { margin-top: .9rem; color: var(--ink-soft); font-size: 1.05rem; }
/* A second heading inside a section, where two content blocks share one —
   /owners/ folds the why-work-with-us cards into the process section, and
   they need a heading that reads as subordinate to that section's own. */
.section-head-inline { margin-top: clamp(2.6rem, 5vw, 4rem); }
.section-head-inline h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.lede { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.06rem; max-width: 660px; }
.lede p + p { margin-top: 1rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin-top: 2.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--stone); border-radius: 14px;
  padding: 1.5rem 1.4rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .05); transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18); border-color: var(--stone); }
.card .icon-tile {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--ink); color: var(--paper);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .94rem; }
.note-line { margin-top: 1.6rem; text-align: center; color: var(--ink-soft); font-size: .94rem; }
.note-line strong { color: var(--ink); }

/* process icons row */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 1rem; margin-top: 2.6rem; }
.step { text-align: center; }
.step .icon-round {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .9rem;
  background: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px var(--shadow);
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .9rem; }

.coverage-strip {
  margin-top: 2.4rem; background: var(--paper); border: 1px solid var(--stone); border-radius: 14px;
  padding: 1.4rem 1.6rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .05);
}
.coverage-strip .label { text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.coverage-strip .items { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; justify-content: center; margin-top: .9rem; }
.coverage-strip .items span { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 500; font-size: .94rem; }
.coverage-strip .items span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #14B387; box-shadow: inset 0 0 0 3px rgba(255,255,255,.9); }
.coverage-strip .line { text-align: center; margin-top: 1rem; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Partners band ---------- */
.partners { background: var(--ink); color: #fff; }
.partners .wrap { padding-block: clamp(52px, 7vw, 78px); text-align: center; }
.partners h2 { color: #fff; }
.partners .body { max-width: 640px; margin: 1.1rem auto 0; color: rgba(255,255,255,.78); }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 500; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.chip .ic { color: var(--stone); display: inline-flex; }

/* ---------- Contact ---------- */
/* Honeypot — off-screen, never focusable by a human. Mirrors cinema.css's
   rule so `class="hp"` means the same thing on every page.
   THIS RULE IS LOAD-BEARING, not cosmetic: /api/contact silently discards any
   submission whose company_website field is filled. A page that ships the
   markup WITHOUT this rule therefore shows a real visitor a "Company website"
   input and then drops whatever they send — a lost lead, no error anywhere,
   nothing in the logs. pages.css previously had no .hp rule at all, which is
   why the /owners/ form was hiding its honeypot with an inline style instead.
   Guarded in tests/build.test.mjs. */
.hp {
  position: absolute;
  left: -9999px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.6rem; margin-top: 2.6rem; align-items: start; }
.contact-info h3 { font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8rem; }
.contact-line { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 500; margin-bottom: .7rem; }
.contact-line .ic { color: var(--ink); }
.contact-info .resp { margin-top: 1.6rem; }
.contact-info .resp p { color: var(--ink-soft); font-size: .94rem; }

.form-card { background: var(--paper); border: 1px solid var(--stone); border-radius: 14px; padding: 1.7rem; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18); }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: .95rem; color: var(--ink);
  padding: .72rem .85rem; border: 1px solid var(--stone); border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--shadow); }

.consent { display: flex; gap: .65rem; align-items: flex-start; margin: .4rem 0 1.1rem; padding: .85rem .95rem; background: var(--paper); border: 1px solid var(--stone); border-radius: 10px; }
.consent input { margin-top: .18rem; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.consent label { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Cloudflare Turnstile widget — sits after the consent checkbox and directly
   above the submit button. data-theme="light" (set in build.mjs) is what
   keeps it legible against this page's cream ground; this rule only adds
   spacing so it doesn't sit flush against .consent or the button. */
.form-card .cf-turnstile { margin: 0 0 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: .9rem; }
.site-footer .wrap { padding-block: 2.6rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-links a:hover { color: #fff; }
.footer-sms { margin-top: 1.6rem; padding: .9rem 1.1rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-legal { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.09); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--ink); color: #fff; }
.legal-hero .wrap { padding-block: clamp(48px, 7vw, 76px); }
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.legal-hero .meta { margin-top: .8rem; color: rgba(255,255,255,.6); font-size: .9rem; }
.legal-body { padding-block: clamp(44px, 6vw, 72px); }
.legal-body .wrap { max-width: 800px; }
.legal-body h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.6rem; font-size: 1.05rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 1rem; }
.legal-body p { margin-top: .9rem; }
.legal-body ul { margin-top: .9rem; padding-left: 1.2rem; }
.legal-body li { margin-top: .4rem; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-body .callout { margin-top: 1.4rem; padding: 1.1rem 1.3rem; background: var(--paper); border-left: 3px solid var(--ink); border-radius: 8px; }
.legal-body .callout p { margin-top: .4rem; color: var(--ink); }
.legal-body .callout p:first-child { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .header-contact { display: none; }
}
@media (max-width: 560px) {
  .card-grid, .steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Focus ring. --ink (15.7:1 on --paper), not --stone (1.87:1) — WCAG 2.2 SC
   1.4.11 requires 3:1 for a focus indicator, and this is the ring a keyboard
   user needs to find the sms_consent checkbox on /owners/. --ink also matches
   how focus is already drawn elsewhere: .field input:focus switches its border
   to --ink, and cinema.css draws its rings in --paper — in both cases the
   maximum-contrast opposite of the ground. Guarded by tests/contrast.test.mjs
   against AA_NON_TEXT. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
