/* Massey light theme. Navy and gold come from the original client logo.
   Green #007a33 is the computed Buy Online Now color on masseyservices.com.
   The broad, layered wash follows the Magic intro and delivery gradients. */
:root {
  color-scheme: light;
  --massey-navy: #194378;
  --massey-gold: #c7af66;
  --massey-green: #007a33;
  --blue: var(--massey-green);
  --brand-blue: var(--massey-green);
  --bright: var(--massey-green);
  --action-hover: #00642a;
  --action-active: #004f21;
  --ink: #fafbf9;
  --panel: #f2f5f6;
  --surface-raised: #e9eef2;
  --white: #18314e;
  --silver: #536273;
  --line: #d7dfe4;
  --green: var(--massey-green);
}

body { background: var(--ink); color: var(--white); }
::selection { background: #e9ddba; color: #18314e; }
.brightdesk-logo { filter: none; }
.header .brightdesk-logo, footer .brightdesk-logo { filter: none; }
.header {
  background: rgb(255 255 255 / 72%);
  border-color: rgb(25 67 120 / 12%);
  outline-color: rgb(255 255 255 / 80%);
  box-shadow: 0 8px 30px rgb(25 67 120 / 7%), inset 0 1px 0 #fff;
}
.header .brand-divider { background: #b7c3ce; }
.header nav a { color: #334a63; }
.header nav a:hover { color: var(--massey-navy); }
.header .contact-cta {
  background: #fff;
  color: var(--massey-green);
  border-color: #d4dde5;
}
.header .contact-cta:hover { background: #f5f7fa; border-color: #a8b9ca; }

.intro-atmosphere {
  background:
    radial-gradient(ellipse 85% 40% at 12% 62%, rgb(0 122 51 / 18%), transparent 85%),
    radial-gradient(ellipse 85% 42% at 96% 64%, rgb(199 175 102 / 26%), transparent 85%),
    radial-gradient(ellipse 70% 30% at 60% 90%, rgb(25 67 120 / 7%), transparent 85%),
    linear-gradient(180deg, #fafbf9 8%, #eef1eb 58%, #fafbf9 100%);
}
.intro-atmosphere .hero, .intro-atmosphere #challenge { background: transparent; border-block: 0; }
.hero h1 { color: #18314e; }
.hero h1 span { color: var(--massey-navy); }
.hero-subheading { color: #536273; }
.hero-bottom > p { color: #3b4e62; }
.hero-bottom .hero-review-note { color: #4d5e70 !important; }
.hero-art { isolation: isolate; }
.hero-art img { mix-blend-mode: normal; }
.hero .button.primary, .button.primary { background: var(--massey-green); border-color: var(--massey-green); color: #fff; }
.hero .button.primary:hover, .button.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.hero .button.primary:active, .button.primary:active { background: var(--action-active); border-color: var(--action-active); }
.hero-actions .hero-proposal, .light { background: #fff; border-color: #ccd6df; color: var(--massey-navy); }
.hero-actions .hero-proposal:hover, .light:hover { background: #f5f7fa; border-color: #a8b9ca; }
.benefit-kicker { color: #6c5928; }
.three-principles .part-note, .scope-note { color: #586877; }
.proposal-detail { border-color: var(--line); }
.before-after li { color: var(--silver); }
.before-after > div:last-child li { color: var(--massey-navy); }
.manager-section { background: #f3f6f8; }
#supporting.proposal-support { background: #f3f6f8; border-top: 0; }
.root-cause { border-color: var(--line); }
.decision-demo, #journey { border-color: #d6dfe7; box-shadow: 0 16px 48px rgb(25 67 120 / 6%); }
.decision-body aside { background: #f7f9fb; }
.decision-body aside::before { background: #e9ddba; color: #194378; }
.decision-demo button:focus-visible, #journey button:focus-visible, #journey select:focus-visible { outline-color: var(--massey-navy); }
#journey { --accent: var(--massey-navy); }
#journey .journey-date, #journey .journey-pager button { color: var(--massey-navy); }
#journey .journey-nav { background: #f6f8f9; }
#journey .journey-nav button[aria-current] { background: #e8edf1; color: #18314e; }
#journey .journey-nav button:hover { background: #edf1f4; }
#journey #journey-next { background: var(--massey-green); border-color: var(--massey-green); color: white; }
#journey #journey-next:not(:disabled):hover { background: var(--action-hover); border-color: var(--action-hover); }
.waterfall-panel, .roi-panel { background: #fff; border-color: #d6dfe7; }
.waterfall-row[aria-pressed=true] { background: #eaf0f5; color: #194378; }
.waterfall-track { background: #edf0f3; }
.waterfall-track > span { background: #b4c1cf; }
.waterfall-row:first-child .waterfall-track > span { background: var(--massey-navy); }
.waterfall-row:last-child .waterfall-track > span { background: var(--massey-green); }
#roi { background: #f1f4f6; color: #18314e; }
.roi-control input { accent-color: var(--massey-green); }
.roi-control small, .roi-investment label span { color: #536273; }
.roi-results { background: #fff; }
.roi-bar { background: var(--massey-green); }
.roi-invest-line { border-top-color: #8a722e; }
.roi-invest-line span { background: #fff; color: #705b25; }
#roi .roi-metrics strong { color: var(--massey-navy); }
#pilot {
  background:
    radial-gradient(ellipse 100% 65% at 50% 120%, rgb(199 175 102 / 20%), transparent 85%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgb(0 122 51 / 8%), transparent 85%),
    #fafbf9;
}
.delivery-steps li > span { color: #78632c; }
.faq-grid h2 .muted { color: var(--massey-navy); }
.closing {
  background:
    radial-gradient(ellipse 80% 110% at 100% 100%, rgb(199 175 102 / 20%), transparent 80%),
    #eef4f0;
  border-color: var(--line);
}
.closing .closing-copy h2 { color: var(--massey-navy); }
footer, .footer-note { background: #fafbf9; }
footer .footer-website:hover { color: var(--massey-navy); }
.footer-note { color: #607083; }
.skip { color: white; }

/* Supporting copy remains comfortably readable on desktop and mobile. */
.hero-bottom .hero-review-note { font-size: 13px !important; letter-spacing: .02em; }
.benefit-kicker, .demo-toolbar > span, .decision-body .decision-owner,
.decision-body dt, .demo-log summary, .demo-log ol { font-size: 14px; }
#journey .journey-nav > p { font-size: 13px !important; }
#journey .journey-nav button span, #journey .journey-date,
#journey .board-counts span { font-size: 14px; }
.proposal-table thead th, .waterfall-heading .eyebrow,
.waterfall-layout aside .eyebrow, .roi-control small,
.roi-investment label span, .roi-chart-header,
#roi .roi-metrics span, .delivery-steps li > span,
footer .footer-website, .footer-note { font-size: 14px; }
.sample-caption { font-size: 14px !important; color: #536273 !important; }
.roi-invest-line span { font-size: 13px; }
.roi-bar > span { font-size: 12px; }
#contact.contact-row .button { font-size: 14px; }

@media(max-width:760px) {
  .intro-atmosphere {
    background:
      radial-gradient(ellipse 120% 35% at 0% 48%, rgb(0 122 51 / 16%), transparent 85%),
      radial-gradient(ellipse 130% 40% at 100% 62%, rgb(199 175 102 / 24%), transparent 85%),
      linear-gradient(180deg, #fafbf9 5%, #f1f2ec 60%, #fafbf9 100%);
  }
  .header { background: rgb(255 255 255 / 86%); }
  .header nav a, .header .contact-cta { font-size: 13px; }
  .scope-note { font-size: 14px; }
  .waterfall-row { grid-template-columns: minmax(110px, 1fr) minmax(20px, .6fr) 56px; font-size: 14px; }
  .hero-actions .button { font-size: 14px; }
  .header .contact-cta { min-height: 44px; }
}

@media(max-width:540px) {
  .roi-chart { min-width: 0; gap: 4px; }
  .roi-bar > span { font-size: 12px; }
  .roi-bar:nth-child(even) > span { top: calc(100% + 28px); }
  .roi-chart { margin-bottom: 58px; }
}

@media(max-width:360px) {
}

@media print {
  .intro-atmosphere, #pilot, .closing { background: white; }
}

/* Typography-led opening, informed by Clockwise's restrained Mobbin hero.
   No decorative diagram: the customer record lives in the working demo. */
.intro-atmosphere {
  background:
    radial-gradient(ellipse 90% 90% at 0% 100%, rgb(0 122 51 / 12%), transparent 75%),
    radial-gradient(ellipse 90% 90% at 100% 100%, rgb(199 175 102 / 21%), transparent 75%),
    #fafbf9;
}
.hero { padding-top: 0; }
.hero-core { display: block; min-height: 0; padding: 94px 0 86px; }
.hero h1 {
  font-family: var(--font); font-size: clamp(58px, 7.3vw, 108px);
  font-weight: 500; line-height: 1.045; letter-spacing: -.065em;
  max-width: 1260px; color: var(--massey-navy); margin: 0;
}
.hero-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start; gap: 9%; margin-top: 62px; padding-top: 0;
  border-top: 0;
}
.hero-bottom > .hero-subheading {
  margin: 0; max-width: 450px; font-size: clamp(23px, 2.55vw, 34px);
  line-height: 1.3; letter-spacing: -.035em; font-weight: 450; color: #18314e;
}
.hero-detail > p { max-width: 48ch; font-size: 17px; line-height: 1.7; color: #3b4e62; }
.hero-actions { margin-top: 25px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .button { min-height: 50px; padding: 13px 22px; font-size: 15px; }
.hero-actions .primary { gap: 36px; }
.hero-actions .primary > span { font-size: 19px; }
.section { padding-block: 78px; }
.section h2 { font-size: clamp(32px, 3.45vw, 48px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; }
#why-brightdesk { border-bottom: 1px solid var(--line); }
.proposal-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 38px; }
.proposal-why h3, .three-principles h3 { font-size: 22px; font-weight: 500; line-height: 1.25; }
.proposal-why p, .three-principles p { font-size: 16px; line-height: 1.7; }
.delivery-intro { margin-bottom: 32px; }
.delivery-steps .phase-acceptance { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.phase-acceptance strong { display: block; margin-bottom: 4px; color: var(--massey-navy); font-weight: 600; }
.delivery-agreement { margin: 28px 0; }
.solution-figure { margin: 24px 0; }
.solution-figure img { width: 100%; height: auto; }
.solution-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--silver); }
.approach-heading { display: block; max-width: none; }
.approach-heading > p { max-width: none; margin-top: 18px; font-size: 16px; line-height: 1.7; }
#manager .split-heading { display: block; }
#manager .split-heading > p { width: auto; max-width: 680px; margin-top: 18px; padding-bottom: 0; }
.decision-body aside::before { content: none; }
.decision-body aside h3 { font-size: 21px; color: #194378; }
#decision-checks:empty { display: none; }
#journey .walkthrough-toolbar { justify-content: flex-end; padding-block: 12px; }
#journey .journey-step { min-height: 0; }
#journey .post-board { margin-top: 0; }
#journey .journey-board { padding-top: 0; }
#journey .journey-nav button { min-height: 62px; }
.waterfall-heading h3 { margin-top: 0; }
#integrations { padding-bottom: 54px; }
.proposal-choice > details { margin-bottom: 32px; }
#partnership { padding-bottom: 48px; }
@media(min-width:1500px) { .hero-core { padding-block: 110px 96px; } }
@media(max-width:760px) {
  .hero-core { padding: 52px 0 50px; }
  .hero h1 { font-size: clamp(44px, 8.8vw, 66px); letter-spacing: -.055em; line-height: 1.055; }
  .hero h1 br { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 22px; margin-top: 34px; padding-top: 25px; }
  .hero-bottom > .hero-subheading { font-size: 24px; max-width: 510px; }
  .hero-detail > p { font-size: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .button { font-size: 14px; padding: 12px 18px; gap: 16px; }
  .section { padding-block: 52px; }
  .section h2 { font-size: 34px; }
  .proposal-why { grid-template-columns: 1fr; gap: 27px; }
  .proposal-why article + article { border-top: 1px solid var(--line); padding-top: 27px; }
  .approach-heading { display: block; }
  .approach-heading > p { max-width: 550px; margin-top: 20px; }
  .decision-body article, .decision-body aside { padding: 24px; }
}
@media(max-width:360px) {
  .hero h1 { font-size: 43px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { min-width: 0; padding-inline: 14px; font-size: 13px; gap: 14px; }
  .hero-bottom > .hero-subheading { font-size: 23px; }
  .decision-body article, .decision-body aside { padding: 20px; }
}

.hero h1 .hero-emphasis { color: var(--massey-green); }
.header .contact-cta,
.hero-actions .hero-proposal {
  background: var(--massey-navy);
  border-color: var(--massey-navy);
  color: #fff;
  border-radius: 999px;
}
.header .contact-cta:hover,
.hero-actions .hero-proposal:hover {
  background: #12365f;
  border-color: #12365f;
  color: #fff;
}
.hero-actions .button.primary { justify-content: center; min-width: 160px; }

/* Three source records resolve into the live customer record. */
.decision-body { display: block; }
.merge-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  align-items: stretch;
  background: #f8fafb;
}
.source-stack { padding: 27px 30px; }
.source-stack h3, .decision-body .merged-record h3 {
  margin: 0 0 17px;
  color: #194378;
  font-size: 20px;
  line-height: 1.2;
}
.source-records { display: grid; gap: 9px; }
.source-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 14px;
  padding: 11px 14px;
  border: 1px solid #d5dfe7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(25 67 120 / 3%);
}
.source-record span { grid-column: 1 / -1; color: #536273; font-size: 12px; }
.source-record strong { color: #18314e; font-size: 15px; font-weight: 650; line-height: 1.35; }
.source-record small { color: #536273; font-size: 13px; line-height: 1.35; text-align: right; }
.merge-path { display: block; width: 90px; height: 100%; overflow: visible; }
.merge-path path { fill: none; stroke: #b8c8d5; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.merge-path circle { fill: var(--massey-green); }
.decision-demo[data-playing="true"] .merge-path path {
  stroke: var(--massey-green);
  stroke-dasharray: 5 8;
  animation: merge-flow 1.7s linear infinite;
}
@keyframes merge-flow { to { stroke-dashoffset: -26; } }
.decision-body .merged-record {
  border-left: 1px solid #d5dfe7;
  padding: 27px 30px;
  background: #fff;
}
.decision-body .merged-label { margin: 0 0 5px; color: #536273; font-size: 12px; }
.decision-body .merged-record h3 { margin-bottom: 10px; font-size: 23px; }
.decision-body .merged-record dl > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.decision-body .merged-record dt, .decision-body .merged-record dd { margin: 0; font-size: 13px; line-height: 1.45; }
.decision-body .decision-review { border-top: 1px solid #d5dfe7; padding: 24px 30px 27px; }
.decision-review > h3 { margin: 5px 0 8px; }
.decision-review > #decision-body { max-width: 750px; margin: 0; }
.decision-review #decision-status { margin: 13px 0; padding-top: 13px; }
.contact-section { border-top: 1px solid var(--line); }
#contact .contact-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 32px; }
#contact .contact-row h2 { margin: 0; font-size: 28px; }
#contact .contact-row address { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
#contact .contact-row address strong { color: #18314e; }
#contact .contact-row address a { color: #194378; }
#contact .contact-row .button { justify-self: end; margin: 0; text-align: center; }
@media (max-width: 900px) {
  .merge-visual { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
  .merge-path { width: 56px; }
  .source-stack, .decision-body .merged-record { padding: 22px; }
  .source-record { grid-template-columns: 1fr; }
  .source-record small { text-align: left; }
  #contact .contact-row { grid-template-columns: 1fr 1fr; }
  #contact .contact-row .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  .merge-visual { grid-template-columns: 1fr; }
  .merge-path { display: none; }
  .source-stack { padding: 20px; }
  .source-stack h3 { font-size: 18px; }
  .source-record { grid-template-columns: minmax(0, 1fr) auto; }
  .source-record small { text-align: right; }
  .decision-body .merged-record { border-left: 0; border-top: 2px solid var(--massey-green); padding: 20px; }
  .decision-body .merged-record dl > div { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .decision-body .decision-review { padding: 20px; }
  #contact .contact-row { grid-template-columns: 1fr; gap: 20px; }
  #contact .contact-row .button { grid-column: auto; justify-self: start; }
}
@media (max-width: 390px) {
  .source-record { grid-template-columns: 1fr; }
  .source-record small { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .decision-demo[data-playing="true"] .merge-path path { animation: none; stroke-dasharray: none; } }
