/* ==========================================================================
   SECTIONS — page-order layout. Loaded after 03-components.css so section-
   scoped padding/grid rules win over generic component defaults without
   needing !important or extra ID-level specificity.
   ========================================================================== */

.section {
  padding-block: var(--sp-12);
}
.section--inverse {
  background: var(--bg-inverse);
  color: var(--ink-inverse);
}
.section__head { max-width: 720px; margin-bottom: var(--sp-6); }
.section__head h1, .section__head h2 { font-size: var(--fs-h2); }
.section__head p {
  margin-top: var(--sp-2);
  font-size: var(--fs-sub);
  color: var(--grey-mid);
  max-width: 560px;
}
.section--inverse .section__head p { color: var(--grey-mid-inverse); }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-block: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.hero__content { width: 60%; }
.hero__mascot-wrap {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.hero__title {
  font-size: var(--fs-h1);
  margin-top: var(--sp-1);
  min-height: calc(var(--fs-h1) * var(--lh-heading) * 2);
}
.hero__title .tw-line { display: block; }
.hero__subtitle {
  margin-top: var(--sp-3);
  font-size: var(--fs-sub);
  color: var(--grey-mid);
  max-width: 520px;
}
.hero__ctas {
  margin-top: var(--sp-5, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
/* .btn--outline next to it has no shadow, so its own bottom edge is the
   resting baseline. Lift the shadowed primary button up by --shadow-off so
   ITS shadow's bottom edge (not the button itself) lines up with that
   baseline at rest; on hover it settles back down flush with the outline
   button's bottom edge instead of sinking 6px below it. */
.hero__ctas .btn--primary {
  transform: translate(0, calc(-1 * var(--shadow-off)));
}
.hero__ctas .btn--primary:hover,
.hero__ctas .btn--primary:focus-visible {
  transform: translate(var(--shadow-off), 0);
}
.hero__proof {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--grey-mid);
}
.hero__proof-dot { width: 6px; height: 6px; background: var(--grey-placeholder); flex-shrink: 0; }
.hero__scroll {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Services ---------------------------------------------------------------- */
.section__mascot {
  position: absolute;
  width: 72px;
  right: 0;
  top: -24px;
}
.section__head--mascot { position: relative; }

/* ---- Process ------------------------------------------------------------------- */
.process__mascot-mobile { display: none; }

/* ---- Case studies -------------------------------------------------------------- */
.case-cta { display: flex; justify-content: center; margin-top: var(--sp-6); }

/* ---- FAQ ------------------------------------------------------------------------ */
.faq__list { max-width: 100%; }

/* ---- Contact --------------------------------------------------------------------- */
.contact__inner {
  display: flex;
  gap: var(--sp-8);
}
.contact__form-col { width: 60%; }
.contact__aside-col { width: 40%; display: flex; flex-direction: column; }
.contact__aside-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: var(--sp-3);
}
.contact__mascot-wrap { width: 140px; margin: var(--sp-6) auto 0; }

/* ---- Legal (privacy-policy.html) ------------------------------------------------
   No new type styles/components — just scoping existing tokens to a narrower
   reading column than the full .container width. */
.legal { max-width: 700px; margin-inline: auto; }
.legal-meta { font-size: var(--fs-small); color: var(--grey-mid); margin-top: var(--sp-1); }
.legal-callout { padding: var(--sp-4); margin-bottom: var(--sp-8); }
.legal-callout:hover { transform: none; box-shadow: var(--shadow-hard); }
.legal-callout p { margin-top: 0; color: var(--ink); }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--sp-8); margin-bottom: var(--sp-2); }
.legal p, .legal ul { margin-top: var(--sp-2); color: var(--grey-mid); }
.legal ul { padding-left: var(--sp-3); }
.legal strong { color: var(--ink); }

/* ---- Footer ------------------------------------------------------------------------ */
.site-footer {
  background: var(--bg-primary);
  border-top: var(--border-w) solid var(--ink);
  padding-block: var(--sp-8) var(--sp-4);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-4);
}
.footer__mascot { width: 88px; margin-top: var(--sp-3); }
.footer__logo { font-family: var(--font-display); font-size: 20px; }
