/* Sales Re-Engineering UK — site styles
   Type: Source Serif 4 (headlines, reading text) + Archivo (interface, captions)
   Colour: brand navy and blue from the book cover, one signal colour for selling hours */

@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171e60;          /* brand navy (logo, book) */
  --blue: #0a5694;         /* brand blue (logo, book title) */
  --text: #252a44;
  --muted: #5a6180;
  --paper: #ffffff;
  --mist: #eef2f7;
  --rule: #d3dae5;
  --signal: #e9a23b;       /* selling hours, and nothing else */
  --idle: #d6dde8;
  --idle-dark: #343f8f;

  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72.5rem;
  --prose: 38rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;          /* 19px */
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.125rem); letter-spacing: -0.012em; }
h3 { font-size: 1.375rem; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--prose); }
.lede { font-size: 1.3125rem; line-height: 1.55; color: var(--text); }
.small { font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  font-family: var(--sans); font-size: 0.9375rem;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 2.5rem; }
.brand span {
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 118%;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;   /* the wordmark, as on the logo */
  line-height: 1.15;
}
.brand span b { display: block; font-weight: 600; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500;
  color: var(--text); text-decoration: none;
}
.nav a:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 54rem) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  border-radius: 4px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav .btn { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.9375rem; color: #fff; }
.nav .btn:hover { color: #fff; text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.on-dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.on-dark .btn--quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.on-dark .btn--quiet:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #dfe4f5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #fff; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 1.25rem; }

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
@media (max-width: 54rem) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) 15rem;
  align-items: end;
}
.hero h1 {
  font-size: clamp(3rem, 1.4rem + 6.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.hero .sub {
  display: block;
  margin-top: 0.9rem;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
  color: var(--blue);
}
.hero .lede { margin-top: 2rem; max-width: 36rem; }
.hero-book { text-decoration: none; }
.hero-book img { width: 100%; }
.hero-book .small { display: block; margin-top: 0.85rem; }
@media (max-width: 54rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-book { display: none; }
}

/* ---------- The week ---------- */

.week { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
.week-days {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.day { margin: 0; }
.hours { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.hours i {
  display: block; height: clamp(2.25rem, 4.5vw, 3.25rem);
  background: var(--idle); border-radius: 2px;
}
.hours i.on { background: var(--signal); }
.day-name {
  display: block; margin-top: 0.5rem;
  font-family: var(--sans); font-size: 0.8125rem; color: var(--muted);
}
.week figcaption {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  margin-top: 1.25rem;
  font-family: var(--sans); font-size: 0.9375rem; line-height: 1.45; color: var(--text);
}
.key { display: inline-flex; align-items: baseline; gap: 0.55rem; max-width: 34rem; }
.key::before {
  content: ""; flex: none; width: 0.8rem; height: 0.8rem; border-radius: 2px;
  background: var(--idle); transform: translateY(0.1rem);
}
.key--on::before { background: var(--signal); }

.section--dark .hours i { background: var(--idle-dark); }
.section--dark .hours i.on { background: var(--signal); }
.section--dark .day-name, .section--dark .week figcaption { color: #c3cbe8; }
.section--dark .key::before { background: var(--idle-dark); }
.section--dark .key--on::before { background: var(--signal); }

/* The one orchestrated moment: four hours switch on */
@media (prefers-reduced-motion: no-preference) {
  .week--intro .hours i.on { animation: lamp 0.5s ease-out both; }
  .week--intro .hours i.l1 { animation-delay: 0.5s; }
  .week--intro .hours i.l2 { animation-delay: 0.85s; }
  .week--intro .hours i.l3 { animation-delay: 1.2s; }
  .week--intro .hours i.l4 { animation-delay: 1.55s; }
}
@keyframes lamp {
  0%   { background: var(--idle); }
  45%  { background: #f7cf86; }
  100% { background: var(--signal); }
}

@media (max-width: 40rem) {
  .week-days { grid-template-columns: 1fr; gap: 0.4rem; }
  .day { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; }
  .day-name { order: -1; margin: 0; }
  .hours i { height: 1.6rem; }
}

/* ---------- Proof statement ---------- */

.proof { padding-block: clamp(3.5rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
.proof blockquote { margin: 0; max-width: 56rem; }
.proof blockquote p {
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.75rem);
  line-height: 1.2; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.proof blockquote p + p { margin-top: 0.6rem; font-style: italic; color: var(--blue); }
.proof .small { margin-top: 1.5rem; max-width: 40rem; }

/* ---------- Remedies list ---------- */

.remedies { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.remedies li {
  display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 0.25rem 2rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.remedies b { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); padding-top: 0.15rem; }
.remedies span { font-size: 1.0625rem; line-height: 1.55; }
@media (max-width: 40rem) { .remedies li { grid-template-columns: 1fr; } }

.closing-line { margin-top: 2rem; font-size: 1.3125rem; color: var(--ink); font-weight: 500; }

/* ---------- Machine Model ---------- */

.model-figure { margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.model-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.model-scroll svg { min-width: 36rem; width: 100%; max-width: 50rem; }
.model-figure figcaption { margin-top: 0.75rem; }

.m-box { fill: #fff; stroke: #7d879f; stroke-width: 1.5; }
.m-box--sales { fill: var(--ink); stroke: var(--ink); }
.m-box--support { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.m-label { font-family: var(--sans); font-size: 17px; font-weight: 500; fill: var(--text); text-anchor: middle; }
.m-label--sales { fill: #fff; font-weight: 600; }
.m-label--small { font-size: 14px; }
.m-flow { stroke: #7d879f; stroke-width: 1.75; fill: none; }
.m-loop { stroke: var(--blue); stroke-width: 1.75; stroke-dasharray: 5 5; fill: none; }
.m-head { fill: #7d879f; }
.m-head--loop { fill: var(--blue); }
.m-note { font-family: var(--sans); font-size: 13px; fill: var(--blue); text-anchor: middle; }

.functions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2.5rem; margin: 0; }
.functions div { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.functions dt { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 0.3rem; }
.functions dd { margin: 0; font-size: 1.0625rem; line-height: 1.55; }

.aside-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-left: 1.25rem; border-left: 3px solid var(--signal);
  max-width: var(--prose);
}

/* ---------- Invisible AI ---------- */

.doorways { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.doorways li { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.18); font-size: 1.0625rem; line-height: 1.5; }
.doorways b { display: block; font-family: var(--sans); font-weight: 600; color: #fff; font-size: 1rem; margin-bottom: 0.2rem; }
@media (max-width: 40rem) { .doorways { grid-template-columns: 1fr; } }

.voice {
  margin: 0;
  background: #222a74;
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.voice-label { font-family: var(--sans); font-size: 0.875rem; color: #c3cbe8; margin: 0 0 1rem; }
.voice blockquote { margin: 0; }
.voice blockquote p { font-style: italic; font-size: 1.1875rem; line-height: 1.6; color: #fff; }
.voice-after { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.18); font-size: 1.0625rem; }
.voice .small { color: #aab3d9; margin-top: 1rem; }

.principle {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  line-height: 1.2; color: #fff; font-weight: 500; max-width: 48rem;
}
.principle span { display: block; font-size: 1.1875rem; line-height: 1.6; color: #dfe4f5; font-weight: 400; margin-top: 1rem; max-width: var(--prose); }

/* ---------- Results ---------- */

.case { border-top: 3px solid var(--ink); padding-top: 1.5rem; }
.case h3 { margin-bottom: 0.25rem; }
.case .small { margin-bottom: 1.25rem; }
.case-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.case-list li { padding: 0.85rem 0; border-top: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.55; }
.case-list b { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1rem; }

.destination { margin-top: clamp(4rem, 8vw, 6rem); }
.destination h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.15; }
.destination .week { margin-top: 2rem; }

/* ---------- Engagement steps (a real sequence, so numbered) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 1.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1;
  color: var(--blue);
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { font-size: 1.0625rem; max-width: var(--prose); }
.steps .when { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); margin: 0 0 0.6rem; }
@media (max-width: 40rem) { .steps li { grid-template-columns: 1fr; } .steps li::before { margin-bottom: 0.5rem; font-size: 2.25rem; } }

/* ---------- Fit ---------- */

.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.fit div { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.fit div:first-child { border-top: 3px solid var(--ink); padding-top: calc(1.25rem - 2px); }
.fit h3 { margin-bottom: 0.6rem; }
.fit p { font-size: 1.0625rem; }
@media (max-width: 54rem) { .fit { grid-template-columns: 1fr; } }

/* ---------- Book ---------- */

.book { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.book-cover img { width: 100%; }
.book h2 { margin-bottom: 1.25rem; }
.book ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.book li { margin-bottom: 0.45rem; font-size: 1.0625rem; }
.book li::marker { color: var(--blue); }
@media (max-width: 54rem) { .book { grid-template-columns: 1fr; } .book-cover { max-width: 14rem; } }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 4px; }
.about h2 { margin-bottom: 0.4rem; }
.about .role { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-bottom: 1.75rem; }
@media (max-width: 54rem) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 16rem; } }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.2rem 0;
  font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--sans); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue); }
.faq .answer { padding: 0 0 1.5rem; max-width: var(--prose); font-size: 1.0625rem; }

/* ---------- Final call ---------- */

.final h2 { max-width: 40rem; }
.final p { max-width: var(--prose); margin-top: 1.25rem; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 3rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 40rem) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); margin-bottom: 1rem; }

.section--dark .lede { color: #dfe4f5; }
.destination-note { margin-top: 1rem; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 54rem) { .split--even { grid-template-columns: 1fr; } }
#ai h2 { margin-bottom: 1.5rem; }
.remedies-title { margin-bottom: 0.35rem; }
.remedies-title + .small { margin-bottom: 1.25rem; }
.nav .btn { white-space: nowrap; }
.brand b { white-space: nowrap; }
@media (max-width: 40rem) {
  .brand img { width: 2.1rem; }
  .brand span { font-size: 0.8125rem; letter-spacing: 0.04em; }
  .model-scroll svg { min-width: 0; }
  .m-label { font-size: 24px; font-stretch: 85%; }
  .m-label--small { font-size: 19px; }
  .m-note { font-size: 19px; }
}

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .wrap > * { max-width: 44rem; }
.legal h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem); margin-bottom: 0.5rem; }
.legal-date { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; color: var(--ink); margin: 2.5rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.legal h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.65; }
.legal p { margin-bottom: 1em; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35rem; }
.legal p.caps { font-size: 0.9375rem; letter-spacing: 0.01em; }
.legal a { overflow-wrap: anywhere; }
.legal mark { background: #fff1d6; color: var(--ink); padding: 0 0.2em; }
.release-note {
  display: inline-block; margin-top: 0.5rem; padding: 0.6rem 1rem;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--ink);
  border-left: 3px solid var(--signal); background: #fff;
}
