/* Brand fixes, 25 Nov 2026. Loaded after homepage.css and compile.css; the homepage.css file stays untouched.
   One set of tokens for the whole page. Values come from company/brand.md and from the features and
   finds sections Devon has approved (Deep Moss #5B5B3F, ink #2f2f2c, 12px cards, #d6d2c6 hairlines).
   Nothing here touches #features or #solutions, apart from the shared tokens below. */

:root {
  --mk-moss: #5B5B3F;          /* brand green: buttons, panels, big numbers (same as features and finds) */
  --mk-ivory: #F4F1EB;         /* warm ivory page surface */
  --mk-card: #fffefa;          /* card on ivory or on moss */
  --mk-ink: #2f2f2c;           /* headings and body ink */
  --mk-muted: #626258;         /* secondary text on light surfaces */
  --mk-line: #d6d2c6;          /* the one line grey: dividers and card borders (brand sheet; Conrad's --line) */
  --mk-on-moss: #fff;          /* the one white on moss: headings, body text, steps */
  --mk-radius-card: 12px;      /* every card and panel */
  --mk-radius-btn: 5px;        /* every site button */
  --mk-shadow-card: 0 1px 2px rgb(47 47 44 / 4%), 0 22px 44px -28px rgb(47 47 44 / 32%);
  --mk-track: -.027em;         /* heading tracking, as in the features section */

  /* Feed the tokens into the page's own variables so every rule that reads them follows. */
  --olive: var(--mk-moss);
  --line: var(--mk-line);
  --radius-panel: var(--mk-radius-card);
  --radius-control: var(--mk-radius-btn);
}

/* ---------- 5. Case study: Conrad's gradient (shape, direction, stops, softness), in our greens instead of the yellow ---------- */
:root {
  --mk-case-top: #F9F8F2;      /* was #fcfaf4: the light end, ivory-green */
  --mk-case-bottom: #E3E3D6;   /* was #f1e8d1: the darker end, soft olive tint */
  --mk-case-glow: #C4C3B0;     /* was #ddd2ad: the glow at the bottom, soft olive */
}
.homepage .trial-story {
  padding-block: var(--section-space);
  background:
    radial-gradient(ellipse at 54% 103%, var(--mk-case-glow) 0%, transparent 79%),
    linear-gradient(var(--mk-case-top), var(--mk-case-bottom));
  border-top: 0;
  color: var(--mk-ink);
}
.homepage .trial-heading {
  max-width: 18ch;
  color: var(--mk-ink);
  font-size: var(--h2);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: var(--mk-track);
}
.homepage .trial-testimonial,
.homepage .trial-metrics {
  background: var(--mk-card);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-card);
}
.homepage .trial-quote blockquote {
  max-width: none;   /* a wider measure: three lines on desktop */
  margin: 0;
  font-size: clamp(1.375rem, 1.1rem + 1.05vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--mk-ink);
}
.homepage .trial-caption strong { font-weight: 500; color: var(--mk-ink); }
.homepage .trial-caption span { color: var(--mk-muted); }
.homepage .trial-caption .button { border-radius: var(--mk-radius-btn); }
.homepage .trial-metric-lead dd {
  color: var(--mk-moss);
  font-size: clamp(1.875rem, 1.48rem + 1.7vw, 3.125rem);   /* same numerals as the strip under the hero */
  font-weight: 500;
  letter-spacing: -.04em;
}
.homepage .trial-metrics dt { color: var(--mk-muted); }
.homepage .trial-metric-support dd { color: var(--mk-moss); font-weight: 500; }
.homepage .trial-photo { border-radius: var(--mk-radius-card); }
.homepage .trial-evidence { max-width: 76ch; color: var(--mk-ink); font-size: 1rem; line-height: 1.6; }

/* ---------- 2. Case study strip: radius token (the type was already Funnel Display) ---------- */
.homepage .hero-results { border-radius: var(--mk-radius-card); }

/* ---------- 7. Security and approval: ivory, hairline cards, one shadowed main card ---------- */
.homepage .control {
  padding-block: var(--section-space);
  border-block: 0;
  background: var(--mk-ivory);
  color: var(--mk-ink);
}
.homepage .control h2 { color: var(--mk-ink); letter-spacing: var(--mk-track); }
.homepage .control-intro { color: var(--mk-muted); font-size: 1.125rem; line-height: 1.6; }
.approval-path {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-card);
  background: var(--mk-card);
  box-shadow: var(--mk-shadow-card);
}
.approval-path .approval-path-label { margin-bottom: 1.125rem; color: var(--mk-ink); font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.approval-options { gap: .5rem; }
.approval-options span {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .5rem .25rem;
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius-btn);
  background: #fff; color: var(--mk-ink);
  font-size: .9375rem; font-weight: 500; line-height: 1.3;
}
.approval-options span:first-child { border-color: var(--mk-moss); background: var(--mk-moss); color: #fff; }
.approval-outcome { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--mk-line); color: var(--mk-moss); font-size: .9375rem; font-weight: 500; line-height: 1.5; }
.approval-connector { left: calc((100% - 1rem) / 6); height: 1.5rem; top: -1.5rem; background: var(--mk-moss); }
.homepage .control-points { gap: 1rem; }
.homepage .control-point,
.homepage .control-point:first-child,
.homepage .control-point:last-child {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-card);
  background: var(--mk-card);
  box-shadow: none;
}
.homepage .control-point h3 { color: var(--mk-ink); font-size: clamp(1.25rem, 1.18rem + .3vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
.homepage .control-point p { margin-top: .625rem; color: var(--mk-muted); font-size: 1rem; line-height: 1.6; }
.homepage .control-security.security-summary { margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--mk-line); }
.security-summary h3 { color: var(--mk-ink); font-size: 1.375rem; font-weight: 500; letter-spacing: -.015em; }
.security-summary h4 { color: var(--mk-ink); font-size: 1rem; font-weight: 500; }
.homepage .security-summary p { color: var(--mk-muted); }
.homepage .security-summary a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--mk-moss); font-size: 1rem; font-weight: 500; }
.homepage .security-summary > div + div { border-color: var(--mk-line); }

/* ---------- 9a. "Make room for more profit." band ---------- */
.homepage .closing-start { border-radius: var(--mk-radius-card); background: var(--mk-moss); color: #fff; }
.homepage .closing-start h2 { max-width: 13ch; color: #fff; font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: var(--mk-track); }
.homepage .closing-start .demo-eyebrow { color: var(--mk-on-moss); font-size: 1rem; font-weight: 500; }
.homepage .demo-actions .button { background: #fff; color: var(--mk-moss); border-radius: var(--mk-radius-btn); }
.homepage .demo-actions .button:hover { background: var(--mk-ivory); }
.homepage .demo-contact { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; font-size: 1rem; font-weight: 500; }
.homepage .start-number { color: var(--mk-on-moss); }
.homepage .start-steps h3 { color: #fff; font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; }
.homepage .closing-start .start-steps p { color: var(--mk-on-moss); font-size: 1rem; line-height: 1.55; }

/* ---------- Phone pass: tap targets of at least 44 px ---------- */
.homepage .wordmark { min-height: 2.75rem; }
.homepage .mobile-menu summary { width: 2.75rem; }
@media (max-width: 699px) {
  .homepage .footer-links a,
  .homepage .footer-meta a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .homepage .footer-links > div { gap: 0; }
}

/* ---------- Arrows: Funnel Display has no arrow glyph, so the page drew it in Arial. Now a drawn arrow. ---------- */
.homepage .textlink > span[aria-hidden] { display: inline-flex; }
.homepage .mk-arrow { display: block; width: 1em; height: 1em; }

/* =====================================================================================
   Part 2, 25 Nov 2026: motion, header, strip, case study, band, phone taps, one spacing and one width.
   ===================================================================================== */

/* ---------- Motion: one calm entrance for every section ("rise"). The script is assets/motion.js. ----------
   Same numbers as the features block: opacity 0.7s ease, movement 0.8s cubic-bezier(.2, .7, .2, 1).
   The hidden state exists only once the script has added it, so the page reads fine without it. */
html.mk-motion .mk-rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease var(--mk-d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--mk-d, 0s);
}
html.mk-motion .mk-rise.mk-in { opacity: 1; transform: none; }
html.mk-motion .mk-rise.mk-still { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html.mk-motion .mk-rise { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header: the height and logo position of his live site (68px, logo 24px in, 9rem wide) ---------- */
@media (min-width: 1024px) {
  .homepage .nav { width: calc(100% - 3rem); min-height: var(--desktop-header-height); }
  .homepage .nav .wordmark img { width: 9rem; }
}

/* ---------- Strip under the hero: display text at 400, like the headline next to it ---------- */
.homepage .hero-results-property h2,
.homepage .hero-result strong { font-weight: 400; }

/* ---------- Case study: quote at the page's card-text size; numerals as the strip, with the headings' tracking ---------- */
.homepage .trial-quote blockquote { font-size: var(--point); line-height: 1.45; }
@media (min-width: 820px) and (max-width: 1199px) { .homepage .trial-quote blockquote { font-size: 1.3125rem; } }   /* 21px keeps the quote to three lines on a small laptop */
.homepage .trial-metric-lead dd { font-weight: 400; letter-spacing: var(--mk-track); }

/* ---------- "Make room for more profit.": heading under the hero's size; one white on the green ---------- */
.homepage .closing-start h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.homepage .closing-start .demo-eyebrow,
.homepage .start-number,
.homepage .closing-start .start-steps p { color: var(--mk-on-moss); }
.homepage .start-number { font-size: .875rem; font-weight: 500; line-height: 1.5625rem; }

/* ---------- One section spacing and one content width ---------- */
.homepage .product-overview { padding-top: var(--section-space); }   /* its bottom edge is the features section's own top space */
.homepage #solutions { padding-block: var(--section-space); }
.homepage .compact-faq { max-width: none; padding-block: var(--section-space); }
.homepage .compact-faq .faq-details { max-width: none; }   /* rows run the full content width, so the + buttons line up with the green band below */

/* ---------- Footer panel: warm ivory, as on heymasterkey.com ---------- */
.mk-end-panel { background: var(--mk-ivory); }
.mk-end-panel .wordmark img { mix-blend-mode: multiply; }   /* the wordmark picture has a white box; this lets the ivory show through */

/* ---------- Features: muted text darkened to the site's own muted colour (4.3:1 was under the 4.5:1 for body text) ---------- */
.homepage #features { --muted: #626258; --line: var(--mk-line); --line2: var(--mk-line); }   /* and the one line grey, not three */
.homepage #solutions { --mkf-line: var(--mk-line); }

/* ---------- The features "live" dot waits until the dot itself is on screen (motion.js adds .mk-dot-on) ---------- */
html.mk-dots #features.mkf-anim .mkf-dot.mkf-live:not(.mk-dot-on) { animation-play-state: paused; }

/* ---------- Finds: arrows 44px; the picture text names the font it really draws ---------- */
#solutions .mkf-nav .mkf-arrow { width: 44px; height: 44px; }
#solutions svg text { font-family: 'Funnel Display', system-ui, sans-serif; }

/* ---------- Phone: the one inline link in the FAQ gets a 44px tap area ---------- */
@media (max-width: 699px) {
  .homepage .faq-details p a { padding-block: .75rem; }
}

/* ---------- Sticky header (our pick from Devon's card; easy to undo: delete this block) ----------
   The header stays at the top as people scroll, so "Book a demo" is always in reach. Its white runs edge to edge
   so nothing shows behind the sides, and a hairline fades in as the page starts to scroll. */
html { overflow-x: clip; }
.homepage .nav { position: sticky; top: 0; z-index: 10; }
.homepage .nav::before,
.homepage .nav::after {
  content: ""; position: absolute; left: 50%; width: 100vw; margin-left: -50vw; pointer-events: none;
}
.homepage .nav::before { top: 0; bottom: 0; z-index: -1; background: #fff; }
.homepage .nav::after { bottom: 0; height: 1px; background: var(--mk-line); opacity: 0; }
@supports (animation-timeline: scroll()) {
  @keyframes mk-header-line { to { opacity: 1; } }
  .homepage .nav::after { animation: mk-header-line linear both; animation-timeline: scroll(root); animation-range: 0 48px; }
}
/* Menu links land with the section's heading in view, below the header (68px on desktop, 76px on phones). */
.homepage main [id] { scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .homepage main [id] { scroll-margin-top: 4.5rem; } }
/* QC round 2 (25 Nov): keyboard focus must not land under the sticky header (Shift+Tab hid FAQ questions and
   "Book a demo" behind it). The page keeps room for the header on every scroll into view; [id] margins drop by the
   same amount, so menu links land exactly where they did (heading 192px down at 1440, 168px on phones). */
html:has(body.homepage) { scroll-padding-top: 5.5rem; }
.homepage main [id] { scroll-margin-top: 1rem; }
@media (min-width: 1024px) {
  html:has(body.homepage) { scroll-padding-top: 5rem; }
  .homepage main [id] { scroll-margin-top: 1rem; }
}
