/* ===========================================================
   Guy Palmer Digital — shared stylesheet
   =========================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color — ink green + brass, not the terracotta/navy template combo */
  --color-bg: #f7f4ec;
  --color-bg-alt: #ede7d8;
  --color-surface: #fffdf8;
  --color-navy: #1c2b24;
  --color-navy-dark: #10190f;
  --color-text: #241f19;
  --color-text-muted: #5e594e;
  --color-text-on-navy: #f3efe3;
  --color-text-on-navy-muted: #b7c0b6;
  --color-accent: #a8721e;
  --color-accent-dark: #8a5c15;
  --color-accent-light: #e9d7ae;
  --color-border: #ddd5c0;
  --color-success-bg: #eef1e6;
  --color-success-text: #3a4a2c;
  --color-warn-bg: #f7edd9;
  --color-warn-text: #7a5a12;
  --color-danger-bg: #f5e2df;
  --color-danger-text: #8a2f22;

  /* Type — Newsreader (editorial serif, incl. italics) + IBM Plex Sans */
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1140px;
  --header-height: 76px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(28, 43, 36, 0.08);
  --shadow-md: 0 2px 6px rgba(28, 43, 36, 0.10);
  --shadow-lg: 0 4px 10px rgba(28, 43, 36, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sticky footer: on pages shorter than the viewport, <main> grows so the
     footer sits flush at the bottom; longer pages flow as normal. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Eyebrow / section heading pattern ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.9em;
}

.section-head {
  max-width: 640px;
  margin: 0 0 2.5rem;
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-navy {
  background: var(--color-navy);
  color: var(--color-text-on-navy);
}

.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: #fff;
}

.section-navy .section-head p {
  color: var(--color-text-on-navy-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: #fff;
}

.section-navy .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.section-navy .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.05em 2em;
  font-size: 1.02rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Full lockup — light background only; the mark's dark-green wordmark isn't
   legible on the dark-green footer (no separable light-safe icon piece this
   time), so the footer falls back to plain text below. */
.logo .logo-full {
  display: block;
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: none;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--color-navy);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg);
  padding: 2rem 24px;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 400;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu .btn {
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.96rem;
  }

  .nav-links a {
    color: var(--color-text);
    position: relative;
    white-space: nowrap;
  }

  .nav-links a:hover {
    color: var(--color-accent-dark);
  }

  .nav-cta {
    display: inline-flex;
    white-space: nowrap;
  }

  .nav-toggle {
    display: none;
  }
}

/* Narrow desktops: tighten link spacing so the audit button fits on one row */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav-links {
    gap: 1.25rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 0;
  padding-bottom: 1.75rem;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(193, 98, 45, 0.10), transparent 60%),
    var(--color-bg);
}

.hero-top {
  position: relative;
}

.hero .container {
  max-width: none;
  margin: 0;
  padding-left: 24px;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 2.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 0.55em;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

/* Keep both CTAs on one row whenever the two-column hero is showing; on
   narrower desktop windows the text column is too tight for full-size
   buttons, so they get slightly smaller instead of wrapping. */
@media (min-width: 860px) {
  .hero-ctas {
    flex-wrap: nowrap;
  }
}

@media (min-width: 860px) and (max-width: 1099px) {
  .hero-ctas {
    gap: 0.75rem;
  }

  .hero-ctas .btn-lg {
    padding: 0.95em 1.1em;
    font-size: 0.9rem;
  }
}

/* Hero visual — full-bleed image on the right, edge to edge */
.hero-image-bleed {
  margin-top: 1.5rem;
}

.hero-visual-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 860px) {
  /* Text column stops just short of where .hero-image-bleed begins (44%),
     so the copy never runs onto the image at any width. */
  .hero-grid {
    grid-template-columns: calc(44% - 1.5rem) 1fr;
    position: relative;
    z-index: 1;
  }

  .hero-top {
    overflow: hidden;
  }

  /* The photo is 3:2, but this area is usually much taller than that, so
     object-fit: cover would crop away the storefront sign or the phone.
     Instead the whole photo is shown, anchored right and centred
     vertically, with its left/top/bottom edges faded into the background. */
  .hero-image-bleed {
    position: absolute;
    inset: 0 0 0 44%;
    z-index: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .hero-visual-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, black 14%),
      linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, black 14%),
      linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
  }
}

/* Hero trust bar — full-width strip below the CTAs and visual.
   Phones: stacked rows (word | subtext). Tablet: 3 + 2. Desktop: 5 across. */
.hero-trust-bar {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-trust-bar li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.hero-trust-bar li:first-child {
  border-top: none;
}

.hero-trust-bar li:last-child {
  padding-bottom: 0;
}

.hero-trust-word {
  justify-self: start;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--color-accent);
}

.hero-trust-text {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text-muted);
}

@media (min-width: 600px) {
  .hero-trust-bar {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 2rem;
    padding-top: 1.75rem;
  }

  .hero-trust-bar li {
    grid-column: span 2;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    gap: 0.75rem;
    padding: 0 1.25rem;
    text-align: center;
    border-top: none;
    border-left: 1px solid var(--color-border);
  }

  .hero-trust-bar li:nth-child(n + 4) {
    grid-column: span 3;
  }

  .hero-trust-bar li:first-child,
  .hero-trust-bar li:nth-child(4) {
    border-left: none;
  }

  .hero-trust-word {
    justify-self: center;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  }

  .hero-trust-text {
    max-width: 22ch;
  }
}

@media (min-width: 1020px) {
  .hero-trust-bar {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-trust-bar li,
  .hero-trust-bar li:nth-child(n + 4) {
    grid-column: auto;
  }

  .hero-trust-bar li:nth-child(4) {
    border-left: 1px solid var(--color-border);
  }
}

/* ---------- Placeholder image boxes ---------- */
.placeholder-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--color-border);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(30, 42, 56, 0.035),
      rgba(30, 42, 56, 0.035) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--color-surface);
  overflow: hidden;
}

.placeholder-box .placeholder-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.5em 0.9em;
  border-radius: 999px;
}

.placeholder-box .placeholder-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---------- Client story (homepage) ---------- */
.client-story {
  display: grid;
  gap: 2.5rem;
  grid-template-areas:
    "copy"
    "slider"
    "proof";
}

.client-story-copy { grid-area: copy; }
.ba-figure { grid-area: slider; margin: 0; }
.client-story-proof { grid-area: proof; }

.client-story-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.client-story-copy p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.client-quote {
  margin: 0 0 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-accent);
}

.client-quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-navy);
}

.client-quote figcaption {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.client-quote figcaption strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (min-width: 960px) {
  .client-story {
    grid-template-columns: 5fr 7fr;
    grid-template-areas:
      "copy   slider"
      "proof  slider";
    grid-template-rows: auto 1fr;
    column-gap: 4rem;
    row-gap: 2.5rem;
    align-items: start;
  }

  .ba-figure {
    align-self: center;
  }
}

/* Before/after drag slider. The "after" image is the base layer; the
   "before" layer sits on top and is clipped to the left of --ba-pos. */
.ba-slider {
  --ba-pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background: var(--color-surface);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  margin-left: -1px;
  background: var(--color-accent);
  outline: none;
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-navy);
  box-shadow: 0 0 0 2px var(--color-bg), var(--shadow-md);
  transition: transform 0.15s ease;
}

.ba-slider:hover .ba-handle-knob,
.ba-slider.is-dragging .ba-handle-knob {
  transform: translate(-50%, -50%) scale(1.35);
}

.ba-handle:focus-visible .ba-handle-knob {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ba-handle-knob {
    transition: none;
  }
}

/* Quiet captions under the comparison's bottom corners */
.ba-captions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ba-caption-before {
  color: #4a5a50;
}

.ba-caption-after {
  color: var(--color-accent-dark);
}

/* Before/after screenshots on the case study page */
.before-after {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0 0;
}

@media (min-width: 700px) {
  .before-after {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.before-after-shot {
  margin: 0;
}

.before-after-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Annotated screenshots keep their full frame so no callout is cropped. */
.before-after-shot img.is-annotated {
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

/* The callouts from the annotated image as text. Shown on phones, where the
   image is too small to read; kept for screen readers on larger screens. */
.markup-points {
  counter-reset: markup;
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.markup-points li {
  counter-increment: markup;
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.markup-points li::before {
  content: counter(markup);
  position: absolute;
  top: 0.1rem;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.markup-points strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-navy);
}

@media (min-width: 700px) {
  .markup-points {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

.before-after-shot figcaption {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.before-after-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4a5a50;
}

.before-after-label.is-after {
  color: var(--color-accent-dark);
}

/* ---------- Services ---------- */
/* Founding-client promo (temporary). Self-contained: delete these rules along
   with the .promo-strip block in index.html; the tiers don't depend on them. */
.promo-strip {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent-light) 45%, transparent);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* /Founding-client promo */

/* Three open columns split by hairlines, not cards */
.pricing-grid {
  display: grid;
}

.pricing-tier {
  padding: 2.25rem 0;
  max-width: 40rem;
}

.pricing-tier:first-child {
  padding-top: 0;
}

.pricing-tier:last-child {
  padding-bottom: 0;
}

.pricing-tier + .pricing-tier {
  border-top: 1px solid var(--color-border);
}

.tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.4rem;
}

.pricing-tier h3 {
  font-size: 1.35rem;
  margin: 0;
}

.tier-pill {
  display: inline-block;
  padding: 0.3em 0.75em;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.tier-price {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.tier-price-unit {
  font-size: 0.7em;
  font-weight: 500;
}

.tier-terms {
  margin: 0.2rem 0 1.4rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Pricing caveat under a tier's price; pulls the terms line up to meet it */
.tier-terms:has(+ .tier-note) {
  margin-bottom: 0.5rem;
}

.tier-note {
  margin: 0 0 1.4rem;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.tier-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.tier-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--color-accent);
}

@media (min-width: 720px) {
  .pricing-grid {
    justify-items: center;
  }

  .pricing-tier {
    width: 100%;
  }
}

@media (min-width: 1020px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-items: stretch;
  }

  .pricing-tier,
  .pricing-tier:first-child,
  .pricing-tier:last-child {
    max-width: none;
    padding: 0 2.25rem;
  }

  .pricing-tier:first-child {
    padding-left: 0;
  }

  .pricing-tier:last-child {
    padding-right: 0;
  }

  .pricing-tier + .pricing-tier {
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  gap: 2.75rem;
}

.step {
  position: relative;
  padding-left: 0;
  border-top: 1px solid rgba(243, 239, 227, 0.2);
  padding-top: 1.5rem;
}

.step-number {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.step p {
  color: var(--color-text-on-navy-muted);
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.offset-frame {
  position: relative;
  max-width: 320px;
}

.offset-frame::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--color-accent);
  z-index: 0;
}

.offset-frame > * {
  position: relative;
  z-index: 1;
}

.headshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.draft-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  padding: 0.4em 0.85em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.about-copy p {
  font-size: 1.08rem;
  color: var(--color-text-muted);
}

/* "Built with AI" note at the end of About */
.about-approach {
  margin-top: 1.75rem;
}

.about-approach h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.about-approach p {
  margin: 0;
}

@media (min-width: 780px) {
  .about-grid {
    grid-template-columns: 300px 1fr;
  }
}

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.form-row {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 620px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4em;
  color: var(--color-navy);
}

.field .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-style: italic;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-footnote {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-side h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

.contact-side .lede {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.contact-ctas {
  margin-top: 1.75rem;
}

.contact-details {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  font-size: 0.98rem;
}

.contact-details strong {
  display: block;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Compact contact form (audit.html's form keeps the default spacing) */
.contact-form {
  padding: 1.75rem;
}

.contact-form .form-row {
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.contact-form .field label {
  margin-bottom: 0.25em;
}

.contact-form .field input,
.contact-form .field textarea {
  padding: 0.62em 0.85em;
}

.contact-form .field textarea {
  min-height: 104px;
}

.contact-form .btn {
  margin-top: 0.4rem;
}

.contact-form .form-footnote {
  margin-top: 0.75rem;
}

@media (min-width: 940px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: var(--color-text-on-navy-muted);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand .logo-footer {
  display: block;
  height: 28px;
  width: auto;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Case study page specific ---------- */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-on-navy-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.case-hero {
  padding: 3.5rem 0 3.25rem;
}

/* Same eyebrow as the rest of the page, in a lighter mix of the two amber
   tokens so it stays readable (about 6:1) on the dark green. */
.case-hero .eyebrow {
  margin-bottom: 1.25rem;
  color: color-mix(in srgb, var(--color-accent) 50%, var(--color-accent-light));
}

/* Copy on the left, a lifted screenshot card on the right; the details
   row spans the full width underneath. */
.case-hero-grid {
  display: grid;
  grid-template-areas:
    "copy"
    "shot"
    "meta";
}

.case-hero-copy { grid-area: copy; }
.case-hero-shot { grid-area: shot; }
.case-meta { grid-area: meta; }

.case-hero-shot {
  margin: 2.25rem 0 0;
}

.case-hero-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 960px) {
  .case-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "copy shot"
      "meta meta";
    column-gap: 4rem;
    align-items: center;
  }

  .case-hero-shot {
    margin: 0;
    transform: translateY(0.75rem);
  }
}

.case-hero h1 {
  color: var(--color-text-on-navy);
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 1.1;
  max-width: 17ch;
  margin-bottom: 1.5rem;
}

.case-hero .lede {
  color: var(--color-text-on-navy-muted);
  max-width: 50ch;
  font-size: 1.1rem;
  margin: 0;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin: 2.75rem 0 0;
}

@media (min-width: 900px) {
  .case-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.case-meta div {
  text-align: center;
}

.case-meta div::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 auto 1rem;
  background: var(--color-accent);
}

.case-meta dt {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-on-navy-muted);
}

.case-meta dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--color-text-on-navy);
}

.case-meta-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, var(--color-text-on-navy) 40%, transparent);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.case-meta-link:hover,
.case-meta-link:focus-visible {
  color: var(--color-accent-light);
  text-decoration-color: currentColor;
}

@media (max-width: 599px) {
  .case-hero {
    padding: 2.5rem 0 2.5rem;
  }
}

.case-section + .case-section {
  border-top: 1px solid var(--color-border);
}

.case-section .container > .section-head {
  margin-bottom: 2rem;
}

.two-col-copy {
  display: grid;
  gap: 2.5rem;
}

.two-col-copy p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

@media (min-width: 860px) {
  .two-col-copy {
    grid-template-columns: 1fr 1fr;
  }
}

/* Annotated screenshot of the new homepage, paired with the one in The Problem. */
.solution-shot {
  margin: 2.5rem 0 0;
}

.solution-shot img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}

/* ---------- What We Built ---------- */
/* White, to separate it from The Solution's tan band above; the scope list
   runs straight into the dark testimonial below. */
.case-section.scope-section {
  padding-bottom: 0;
  background: var(--color-surface);
}

.scope-section .container > .section-head {
  margin-bottom: 2.75rem;
}

.scope-band {
  padding: 3.25rem 0 2.75rem;
}

.scope-grid {
  display: grid;
}

.scope-group {
  padding: 2rem 0;
}

.scope-group:first-child {
  padding-top: 0;
}

.scope-group:last-child {
  padding-bottom: 0;
}

/* Stacked: hairlines between categories */
.scope-group + .scope-group {
  border-top: 1px solid var(--color-border);
}

.scope-group h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.scope-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
}

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.scope-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--color-accent);
}

/* Tablet: two columns on top, the third below a hairline */
@media (min-width: 720px) {
  .scope-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .scope-group {
    padding: 0;
  }

  .scope-group + .scope-group {
    border-top: 0;
  }

  .scope-group:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--color-border);
  }

  .scope-group:nth-child(3) .scope-list {
    max-width: 34rem;
  }
}

/* Desktop: three columns with faint amber dividers */
@media (min-width: 1020px) {
  .scope-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
  }

  .scope-group,
  .scope-group:nth-child(3) {
    grid-column: auto;
    margin-top: 0;
    padding: 0 2.5rem;
    border-top: 0;
  }

  .scope-group:first-child {
    padding-left: 0;
  }

  .scope-group:last-child {
    padding-right: 0;
  }

  .scope-group:nth-child(3) .scope-list {
    max-width: none;
  }

  .scope-group + .scope-group {
    border-left: 1px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
  }
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-grid .placeholder-box {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Client Feedback ---------- */
.case-section.testimonial-section {
  padding: 3.5rem 0;
}

@media (min-width: 720px) {
  .case-section.testimonial-section {
    padding: 4.5rem 0;
  }
}

@media (min-width: 1020px) {
  .case-section.testimonial-section {
    padding: 4.75rem 0;
  }
}

.quote-block {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-section .eyebrow {
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 0.95rem + 1.5vw, 1.95rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-navy);
  margin: 0 0 2rem;
  text-wrap: pretty;
}

.quote-attribution {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.quote-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.quote-company {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* The colour change from cream to dark green is the separation; no divider */
.testimonial-section + .final-cta {
  border-top: 0;
}

.final-cta {
  text-align: center;
}

.final-cta .section-head {
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn {
  margin-top: 0.5rem;
}

/* ---------- Thank-you page ---------- */
.thankyou {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.thankyou-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.thankyou-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Utility classes (kept out of inline style="" so the CSP can stay strict) */
.lede-centered {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Site audit tool ---------- */
.audit-hero .lede {
  max-width: 640px;
}

.audit-form-section {
  padding-top: 3.5rem;
}

.audit-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.audit-input-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 620px) {
  .audit-input-row {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
}

.audit-input-row input {
  width: 100%;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.audit-input-row input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.audit-input-row .btn {
  white-space: nowrap;
}

.audit-form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.9rem 0 0;
}

.audit-status {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--color-text-muted);
}

.audit-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: audit-spin 0.8s linear infinite;
}

.audit-spinner-inline {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0.35rem 0 0.25rem;
}

@keyframes audit-spin {
  to {
    transform: rotate(360deg);
  }
}

.audit-error {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  text-align: center;
}

.audit-results {
  max-width: 900px;
  margin: 3rem auto 0;
}

.audit-results .section-head h2 {
  word-break: break-word;
}

.audit-scorecards {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 780px) {
  .audit-scorecards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audit-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-border);
}

.audit-card.is-green {
  border-top-color: var(--color-success-text);
}

.audit-card.is-yellow {
  border-top-color: var(--color-warn-text);
}

.audit-card.is-red {
  border-top-color: var(--color-danger-text);
}

.audit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.audit-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.audit-new-badge {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Agentic Browsing sits on its own below the summary line, outside the
   scorecard grid, as an experimental, forward-looking result. */
.audit-card-spotlight {
  margin-top: 1.5rem;
}

.audit-card .audit-card-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.audit-status-dot {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.audit-card.is-green .audit-status-dot {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.audit-card.is-yellow .audit-status-dot {
  background: var(--color-warn-bg);
  color: var(--color-warn-text);
}

.audit-card.is-red .audit-status-dot {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.audit-card-score {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.audit-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.audit-card-wide {
  grid-column: 1 / -1;
}

.audit-score-split {
  display: flex;
  gap: 1.75rem;
}

.audit-score-split span {
  display: flex;
  flex-direction: column;
}

.audit-score-split strong {
  font-weight: 600;
  line-height: 1.1;
}

.audit-score-split small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.audit-checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 1rem 1.5rem;
}

.audit-checklist:empty {
  display: none;
}

@media (min-width: 780px) {
  .audit-checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audit-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.audit-check-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.audit-check.is-pass .audit-check-icon {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.audit-check.is-fail .audit-check-icon {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.audit-check.is-warn .audit-check-icon {
  background: var(--color-warn-bg);
  color: var(--color-warn-text);
}

.audit-check-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.audit-check-state {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 0.35rem;
}

.audit-check.is-pass .audit-check-state {
  color: var(--color-success-text);
}

.audit-check.is-fail .audit-check-state {
  color: var(--color-danger-text);
}

.audit-check.is-warn .audit-check-state {
  color: var(--color-warn-text);
}

.audit-summary {
  margin: 2rem 0 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-navy);
}

.audit-cta {
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  text-align: center;
}

.audit-cta h3 {
  margin: 0 0 0.5rem;
}

.audit-cta p {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

