﻿/* ==========================================================
   BookPilot reference-layout override
   Visual target: approved BookPilot landing-page mockup
   ========================================================== */

:root {
  --bp-page-max: 1460px;
  --bp-blue: #0969f7;
  --bp-navy: #07152f;
  --bp-text: #243a58;
  --bp-soft-blue: #eef7ff;
}

/* ---------- GLOBAL WIDTH ---------- */

body {
  overflow-x: hidden;
}

.site-header,
.hero-shell,
.section-shell {
  width: min(var(--bp-page-max), calc(100% - 64px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HEADER ---------- */

.site-header {
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav a,
.header-link {
  font-size: 15px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-cta {
  padding: 13px 22px;
  border-radius: 9px;
}

/* ---------- HERO ---------- */

.hero {
  padding: 18px 0 10px;
  background:
    radial-gradient(circle at 82% 28%, rgba(125,196,255,.22), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.hero-shell {
  min-height: 505px;
  display: grid;
  grid-template-columns: minmax(460px, .88fr) minmax(640px, 1.12fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 620px;
  padding: 30px 0 38px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  width: max-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ddecff;
  color: #0864dc;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 640px;
  margin: 0 0 15px;
  color: var(--bp-navy);
  font-size: clamp(48px, 4vw, 72px);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 850;
}

.hero-copy .lead {
  max-width: 600px;
  margin: 0 0 25px;
  color: var(--bp-text);
  font-size: 21px;
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.hero-actions .button {
  min-height: 51px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 750;
}

.hero-actions .button.primary {
  background: var(--bp-blue);
  color: white;
}

.hero-actions .button.secondary {
  border: 2px solid var(--bp-blue);
  background: white;
  color: #0864dc;
}

.credibility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}

.credibility-row span {
  border: 0;
  padding: 0;
  background: transparent;
  color: #223953;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- HERO VIDEO ---------- */

.hero-visual.bookpilot-hero-video {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.bookpilot-hero-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 9px solid #111820;
  border-radius: 18px;
  background: #07182d;
  box-shadow:
    0 28px 55px rgba(20, 48, 80, .24),
    0 7px 15px rgba(20, 48, 80, .14);
}

/* ---------- TRUST STRIP ---------- */

.hero + section,
.hero + .trust-strip {
  margin-top: 0;
}

.trust-strip,
.proof-strip {
  border-top: 1px solid #e2ebf4;
  border-bottom: 1px solid #e2ebf4;
  background: #fff;
}

/* ---------- SECTIONS ---------- */

.section-shell {
  padding-top: 52px;
  padding-bottom: 52px;
}

.section-heading {
  max-width: 820px;
}

.section-heading.centre {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  color: var(--bp-navy);
  font-size: clamp(34px, 3vw, 50px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

/* ---------- HOW IT WORKS ---------- */

#how-it-works .section-shell {
  padding-top: 34px;
}

#how-it-works .section-heading {
  margin-bottom: 26px;
}

#how-it-works .section-heading h2 {
  font-size: 38px;
}

#how-it-works .section-heading p {
  font-size: 17px;
}

.workflow-grid,
.how-grid,
.feature-grid {
  gap: 22px;
}

.workflow-grid article,
.how-grid article,
.feature-grid article {
  border-radius: 16px;
  border: 1px solid #dce9f5;
  background: #f8fbff;
  box-shadow: none;
}

/* ---------- DOWNLOAD CARDS ---------- */

.download-choice-grid {
  gap: 28px;
}

.download-card {
  border-radius: 18px;
}

.downloads-section {
  background: #f9fcff;
}

/* ---------- REMOVE OVERSIZED EMPTY SPACE ---------- */

section {
  scroll-margin-top: 90px;
}

.launch-section .section-shell {
  padding-top: 42px;
  padding-bottom: 42px;
}

/* ---------- DESKTOP ---------- */

@media (min-width: 1200px) {
  .hero-shell {
    width: min(1500px, calc(100% - 72px));
  }

  .hero-copy h1 {
    font-size: 70px;
  }
}

/* ---------- TABLET ---------- */

@media (max-width: 1050px) {
  .site-header,
  .hero-shell,
  .section-shell {
    width: min(100% - 36px, 960px);
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
    padding-bottom: 6px;
  }

  .hero-copy h1 {
    max-width: 760px;
    font-size: clamp(46px, 8vw, 66px);
  }

  .hero-visual.bookpilot-hero-video {
    max-width: 900px;
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 700px) {
  .site-header,
  .hero-shell,
  .section-shell {
    width: min(100% - 28px, 640px);
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: 43px;
    line-height: 1;
  }

  .hero-copy .lead {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .credibility-row {
    gap: 10px 16px;
  }

  .bookpilot-hero-video-player {
    border-width: 5px;
    border-radius: 13px;
  }

  .section-shell {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

/* ==========================================================
   BookPilot reference-match pass 2
   Fix hero width, scale and excessive empty space
   ========================================================== */

.site-header {
  width: min(1500px, calc(100% - 80px)) !important;
  max-width: 1500px !important;
}

.hero {
  min-height: 0 !important;
  padding: 18px 0 26px !important;
}

.hero-shell {
  width: min(1500px, calc(100% - 80px)) !important;
  max-width: 1500px !important;
  min-height: 0 !important;

  grid-template-columns:
    minmax(520px, 0.9fr)
    minmax(720px, 1.1fr) !important;

  gap: 54px !important;
  align-items: center !important;
}

.hero-copy {
  max-width: 650px !important;
  padding: 28px 0 !important;
}

.hero-copy h1 {
  max-width: 650px !important;
  font-size: clamp(58px, 4.1vw, 76px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  margin-bottom: 18px !important;
}

.hero-copy .lead {
  max-width: 625px !important;
  font-size: 20px !important;
  line-height: 1.36 !important;
}

.hero-visual.bookpilot-hero-video {
  width: 100% !important;
  max-width: 820px !important;
  justify-self: end !important;
  align-self: center !important;
}

.bookpilot-hero-video-player {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-width: 8px !important;
  border-radius: 18px !important;
  box-shadow:
    0 28px 62px rgba(17,48,82,.22),
    0 8px 22px rgba(17,48,82,.13) !important;
}

/* Pull the strip up so the hero doesn't have a blank lower half */

.hero + .proof-strip,
.hero + .trust-strip,
.hero + section {
  margin-top: 0 !important;
}

.proof-strip,
.trust-strip {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* Main content should use the same visual width as the mockup */

.section-shell {
  width: min(1500px, calc(100% - 80px)) !important;
  max-width: 1500px !important;
}

/* Keep the next section visually close to the hero */

#how-it-works .section-shell,
.product-section .section-shell {
  padding-top: 38px !important;
}

/* Tablet */

@media (max-width: 1150px) {

  .site-header,
  .hero-shell,
  .section-shell {
    width: min(100% - 40px, 1040px) !important;
  }

  .hero-shell {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .hero-copy {
    max-width: 800px !important;
  }

  .hero-visual.bookpilot-hero-video {
    max-width: 960px !important;
    justify-self: start !important;
  }
}

/* Mobile */

@media (max-width: 700px) {

  .site-header,
  .hero-shell,
  .section-shell {
    width: calc(100% - 28px) !important;
  }

  .hero-copy h1 {
    font-size: 43px !important;
  }

  .hero-copy .lead {
    font-size: 18px !important;
  }
}

/* === BOOKPILOT REFERENCE MIDDLE START === */

.reference-anchor {
  position: absolute;
  margin-top: -90px;
}

.reference-how-section {
  background: #ffffff;
  padding: 0 !important;
  border: 0;
}

.reference-how-section .section-shell {
  padding-top: 30px !important;
  padding-bottom: 38px !important;
}

.reference-how-heading {
  text-align: center;
  margin: 0 auto 24px;
}

.reference-how-heading h2 {
  margin: 0 0 6px;
  color: #07152f;
  font-size: clamp(32px, 2.7vw, 45px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.reference-how-heading p {
  margin: 0;
  color: #405571;
  font-size: 17px;
  line-height: 1.45;
}

.reference-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.reference-step-card {
  min-width: 0;
}

.reference-step-visual {
  padding: 8px;
  border: 1px solid #d8e8f8;
  border-radius: 16px;
  background: #eef7ff;
}

.reference-step-visual .feature-visual {
  min-height: 225px;
  height: 225px;
  border-radius: 10px;
  margin: 0;
}

.reference-step-copy {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 4px 0;
}

.reference-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.step-blue {
  background: #0875f5;
}

.step-green {
  background: #20b35b;
}

.step-purple {
  background: #8224f4;
}

.reference-step-copy h3 {
  margin: 1px 0 4px;
  color: #07152f;
  font-size: 21px;
  line-height: 1.1;
}

.reference-step-copy p {
  margin: 0;
  color: #354c68;
  font-size: 15px;
  line-height: 1.35;
}


/* Remove the large spacing left by the previous sections */

.hero {
  margin-bottom: 0 !important;
}

.reference-how-section + section {
  margin-top: 0 !important;
}


/* Make this portion resemble the compact reference composition */

@media (min-width: 1100px) {

  .reference-how-section .section-shell {
    width: min(1500px, calc(100% - 80px)) !important;
  }

  .reference-how-grid {
    align-items: start;
  }
}


@media (max-width: 950px) {

  .reference-how-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .reference-step-visual .feature-visual {
    min-height: 280px;
    height: 280px;
  }

}


@media (max-width: 600px) {

  .reference-how-section .section-shell {
    padding-top: 28px !important;
  }

  .reference-how-heading h2 {
    font-size: 34px;
  }

  .reference-how-heading p {
    font-size: 16px;
  }

  .reference-step-visual .feature-visual {
    min-height: 215px;
    height: 215px;
  }

}

/* === BOOKPILOT REFERENCE MIDDLE END === */



/* === SAFE REFERENCE WORKFLOW === */

.reference-how-section {
  background: #fff;
}

.reference-how-section .section-shell {
  padding-top: 28px !important;
  padding-bottom: 38px !important;
}

.reference-how-heading {
  text-align: center;
  margin-bottom: 24px;
}

.reference-how-heading h2 {
  margin: 0 0 7px;
  color: #07152f;
  font-size: 40px;
  letter-spacing: -.035em;
}

.reference-how-heading p {
  margin: 0;
  color: #405571;
  font-size: 17px;
}

.reference-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.reference-step-visual {
  min-height: 238px;
  padding: 18px;
  border: 1px solid #d9e8f7;
  border-radius: 15px;
  background: #f2f8ff;
  color: #102944;
}

.reference-step-visual > strong {
  display: block;
  margin-bottom: 16px;
  color: #07152f;
  font-size: 18px;
}

.reference-step-visual label {
  display: block;
  margin-bottom: 5px;
  color: #71839a;
  font-size: 11px;
}

.demo-box {
  padding: 10px;
  border: 1px solid #d8e3ee;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}

.demo-line,
.demo-total {
  display: flex;
  justify-content: space-between;
  padding: 11px 3px;
  border-bottom: 1px solid #e6edf4;
  font-size: 13px;
}

.demo-total {
  padding-top: 16px;
  border: 0;
  color: #07152f;
}

.reference-receipt-demo {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
}

.receipt-paper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #e7dfd1;
  color: #333;
  transform: rotate(-3deg);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}

.receipt-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

.ready-text {
  color: #12904a;
  font-weight: 700;
}

.tax-ready {
  margin-bottom: 12px;
  padding: 11px;
  border-radius: 7px;
  background: #e4f8eb;
  color: #168b48;
  font-weight: 700;
}

.reference-step-copy {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  padding: 14px 4px 0;
}

.reference-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.reference-step-number.blue { background: #0875f5; }
.reference-step-number.green { background: #20b35b; }
.reference-step-number.purple { background: #8127ef; }

.reference-step-copy h3 {
  margin: 1px 0 5px;
  color: #07152f;
  font-size: 21px;
}

.reference-step-copy p {
  margin: 0;
  color: #3d526c;
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 950px) {
  .reference-how-grid {
    grid-template-columns: 1fr;
  }
}

/* === END SAFE REFERENCE WORKFLOW === */

/* === BOOKPILOT REFERENCE LOWER PANELS === */

.reference-lower-section {
  background: #fff;
}

.reference-lower-section .section-shell {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.reference-lower-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.reference-lower-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 20px;
  overflow: hidden;
}

.reference-mtd-card {
  background:
    linear-gradient(135deg, #effcf5 0%, #e9f9f2 50%, #f8fffb 100%);
}

.reference-sync-card {
  background:
    linear-gradient(135deg, #eef7ff 0%, #e7f3ff 52%, #f8fbff 100%);
}

.reference-lower-copy h2 {
  margin: 0 0 12px;
  color: #07152f;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.reference-lower-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 18px;
  color: #354d68;
  font-size: 16px;
  line-height: 1.45;
}

.reference-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-check-list li {
  position: relative;
  margin: 6px 0;
  padding-left: 24px;
  color: #284661;
  font-size: 15px;
}

.reference-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #18a957;
  font-weight: 900;
}

.reference-text-link {
  display: inline-block;
  margin-top: 5px;
  color: #0a6cf5;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

/* MTD visual */

.reference-mtd-visual {
  min-height: 230px;
  position: relative;
}

.mtd-stack {
  position: absolute;
  width: 110px;
  height: 145px;
  border: 2px solid #8ce3bb;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}

.mtd-stack.back {
  right: 145px;
  top: 15px;
}

.mtd-stack.mid {
  right: 112px;
  top: 48px;
}

.mtd-badge {
  position: absolute;
  right: 112px;
  top: 80px;
  width: 105px;
  height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid #8dd9b4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(35,130,84,.14);
}

.mtd-badge strong {
  color: #07152f;
  font-size: 26px;
}

.mtd-badge span {
  color: #345d4b;
  font-size: 14px;
}

.mtd-badge b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1ab35a;
  color: #fff;
  font-size: 20px;
}

.mtd-mini-list {
  position: absolute;
  right: 0;
  top: 28px;
  width: 125px;
  display: grid;
  gap: 10px;
}

.mtd-mini-list span {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  color: #27455f;
  font-size: 13px;
  box-shadow: 0 7px 18px rgba(35,90,70,.07);
}

/* Device visual */

.reference-device-visual {
  min-height: 230px;
  position: relative;
}

.reference-laptop {
  position: absolute;
  left: 10px;
  bottom: 25px;
  width: 300px;
  height: 175px;
  padding: 9px;
  border: 7px solid #111820;
  border-radius: 10px;
  background: #d9e3ee;
  box-shadow: 0 18px 30px rgba(20,45,70,.2);
}

.reference-laptop::after {
  content: "";
  position: absolute;
  left: -22px;
  right: -22px;
  bottom: -18px;
  height: 14px;
  border-radius: 0 0 12px 12px;
  background: #aab8c7;
}

.reference-laptop-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7fbff;
  color: #07152f;
  text-align: center;
}

.reference-laptop-screen strong,
.reference-phone strong {
  font-size: 22px;
}

.reference-laptop-screen span,
.reference-phone span {
  margin-top: 4px;
  font-size: 13px;
}

.reference-laptop-screen small,
.reference-phone small {
  margin-top: 5px;
  color: #60728a;
}

.reference-phone {
  position: absolute;
  right: 25px;
  bottom: 5px;
  width: 115px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 7px solid #111820;
  border-radius: 20px;
  background: #fff;
  color: #07152f;
  text-align: center;
  box-shadow: 0 17px 32px rgba(20,45,70,.18);
}

@media (max-width: 950px) {

  .reference-lower-card {
    grid-template-columns: 1fr;
  }

  .reference-mtd-visual,
  .reference-device-visual {
    min-height: 250px;
  }

}

@media (max-width: 600px) {

  .reference-lower-card {
    padding: 22px 18px;
  }

  .reference-lower-copy h2 {
    font-size: 30px;
  }

  .reference-device-visual {
    transform: scale(.85);
    transform-origin: left center;
  }

}

/* === END BOOKPILOT REFERENCE LOWER PANELS === */

/* === BOOKPILOT PAIRED LOWER ROW === */

.reference-paired-lower-row {
  width: min(1500px, calc(100% - 80px));
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 0 38px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.reference-paired-lower-row .reference-lower-card {
  min-width: 0;
  min-height: 280px;

  grid-template-columns: 1.04fr .96fr;

  padding: 25px 27px;
}

.reference-paired-lower-row .reference-lower-copy h2 {
  font-size: 30px;
}

.reference-paired-lower-row .reference-lower-copy > p:not(.eyebrow) {
  font-size: 15px;
}

.reference-paired-lower-row .reference-mtd-visual,
.reference-paired-lower-row .reference-device-visual {
  min-width: 0;
}

/* Scale device illustration to fit half-width card */

.reference-paired-lower-row .reference-laptop {
  width: 230px;
  height: 140px;
}

.reference-paired-lower-row .reference-phone {
  width: 90px;
  height: 165px;
}

.reference-paired-lower-row .reference-laptop-screen strong,
.reference-paired-lower-row .reference-phone strong {
  font-size: 18px;
}

/* Scale MTD illustration to fit half-width card */

.reference-paired-lower-row .mtd-stack {
  width: 90px;
  height: 125px;
}

.reference-paired-lower-row .mtd-stack.back {
  right: 125px;
}

.reference-paired-lower-row .mtd-stack.mid {
  right: 95px;
}

.reference-paired-lower-row .mtd-badge {
  right: 94px;
  width: 92px;
  height: 120px;
}

.reference-paired-lower-row .mtd-mini-list {
  width: 110px;
}

@media (max-width: 1100px) {

  .reference-paired-lower-row {
    width: min(100% - 40px, 980px);
    grid-template-columns: 1fr;
  }

  .reference-paired-lower-row .reference-lower-card {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 700px) {

  .reference-paired-lower-row {
    width: calc(100% - 28px);
  }

  .reference-paired-lower-row .reference-lower-card {
    grid-template-columns: 1fr;
  }

}

/* === END BOOKPILOT PAIRED LOWER ROW === */

/* ==========================================================
   BOOKPILOT FINAL LANDING-PAGE POLISH
   ========================================================== */

/* Tighter overall rhythm */
.hero {
  padding-bottom: 18px !important;
}

.reference-how-section .section-shell {
  padding-top: 24px !important;
  padding-bottom: 26px !important;
}

.reference-paired-lower-row {
  padding-bottom: 28px !important;
}

/* Hero typography */
.hero-copy h1 {
  text-wrap: balance;
}

.hero-copy .lead {
  max-width: 620px !important;
}

/* Hero video */
.bookpilot-visible-video-player {
  background: #06182d;
  box-shadow:
    0 26px 55px rgba(15, 45, 78, .20),
    0 7px 18px rgba(15, 45, 78, .11) !important;
}

/* Workflow heading */
.reference-how-heading {
  margin-bottom: 20px !important;
}

.reference-how-heading h2 {
  font-weight: 800;
}

.reference-how-heading p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Three workflow cards */
.reference-how-grid {
  align-items: stretch;
}

.reference-step-card {
  display: flex;
  flex-direction: column;
}

.reference-step-visual {
  flex: 0 0 auto;
}

.reference-step-copy {
  flex: 1;
}

.reference-step-copy h3 {
  letter-spacing: -.015em;
}

/* Two lower cards */
.reference-paired-lower-row {
  align-items: stretch;
}

.reference-paired-lower-row .reference-lower-card {
  height: 100%;
  border: 1px solid rgba(20,70,120,.06);
}

.reference-mtd-card {
  box-shadow: 0 10px 28px rgba(30,120,80,.07);
}

.reference-sync-card {
  box-shadow: 0 10px 28px rgba(30,90,150,.08);
}

/* Buttons */
.button,
.header-cta {
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background-color .15s ease;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

/* Navigation */
.site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Better anchor positioning under fixed/sticky header */
#product,
#how-it-works,
#ai,
#mtd,
#downloads {
  scroll-margin-top: 100px;
}

/* Desktop */
@media (min-width: 1200px) {

  .reference-how-grid,
  .reference-paired-lower-row {
    max-width: 1460px;
  }

}

/* Tablet */
@media (max-width: 1050px) {

  .hero-copy h1 {
    max-width: 760px !important;
  }

  .reference-paired-lower-row .reference-lower-card {
    min-height: 270px;
  }

}

/* Mobile */
@media (max-width: 700px) {

  .hero-copy {
    padding-top: 14px !important;
  }

  .hero-copy h1 {
    font-size: 42px !important;
  }

  .hero-actions {
    gap: 10px;
  }

  .credibility-row {
    font-size: 14px;
  }

  .reference-how-heading {
    text-align: left;
  }

  .reference-how-heading h2 {
    font-size: 32px !important;
  }

  .reference-step-copy {
    grid-template-columns: 40px 1fr;
  }

  .reference-step-number {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .reference-paired-lower-row {
    padding-bottom: 20px !important;
  }

}

/* ========================================================== */

/* Keep the approved desktop hero; let its columns shrink on smaller laptops. */
@media (min-width: 1151px) and (max-width: 1390px) {
  .hero-shell { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important; }
}
@media (max-width: 1250px) {
  .site-header { display: grid; gap: 10px; }
  .site-header nav { display: flex; gap: 4px; margin: 0; }
}
@media (max-width: 1150px) {
  .hero-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-shell > * { min-width: 0; }
  .hero-copy .eyebrow { max-width: 100%; width: fit-content; line-height: 1.4; }
}

/* Match the compact phone navigation after the reference font override. */
@media (max-width: 600px) {
  .site-header nav a { font-size: .875rem; }
}
