/* ====================================
   Homepage — Data Intelligence
   Section styles for index.html. Built on the tokens in main.css.
   Motion animates transform and opacity only; main.css switches it off
   under prefers-reduced-motion.
   ==================================== */

/* ---------- Page width ----------
   The homepage uses the full width, with gutters matching the nav's 64px
   so content lines up with the logo and CTA. Capped for very wide screens. */

.home .container {
  max-width: 1600px;
  padding: 0 64px;
}

@media (max-width: 1024px) {
  .home .container {
    padding: 0 32px;
  }
}

@media (max-width: 600px) {
  .home .container {
    padding: 0 20px;
  }
}

/* ---------- Shared helpers ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Handwritten accent — one or two words per section at most */
.hand {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.18em;
  letter-spacing: -0.5px;
  line-height: 1;
  margin: 0 0.06em;
}

.display-title {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text-primary);
  text-wrap: balance;
}

/* Peach mountains — shared by the hero and the final CTA. The image is
   washed toward the page colour so text keeps its contrast, and drifts
   sideways very slowly. */
.hills {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hills::before {
  content: '';
  position: absolute;
  /* Overhangs both sides so the drift never uncovers an edge */
  inset: 0 -4%;
  background: url('/Assets/images/branding/image.webp') center bottom / cover no-repeat;
  opacity: 0.68;
  animation: hillsDrift 48s ease-in-out infinite alternate;
}

/* Wash: a light veil at the top under the nav, thinning out so the
   peach hills read clearly further down */
.hills::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 249, 239, 0.7) 0%, rgba(251, 249, 239, 0.28) 34%, rgba(251, 233, 215, 0.08) 70%, rgba(251, 233, 215, 0) 100%);
}

@keyframes hillsDrift {
  from { transform: translateX(-3%); }
  to   { transform: translateX(3%); }
}

/* ---------- Section 2: Hero ---------- */

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-page);
  z-index: 1;
}

.home-hero .home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
  padding-top: 132px;
  padding-bottom: 88px;
}

.home-hero-title {
  font-size: clamp(42px, 5.4vw, 72px);
  margin-bottom: 28px;
}

/* "ready for AI" — handwritten with a drawn underline */
.hand-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding: 0 0.04em;
}

.hand-underline svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.32em;
  color: var(--accent);
  overflow: visible;
  transform: scaleX(0);
  transform-origin: left center;
  animation: underlineDraw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}

@keyframes underlineDraw {
  to { transform: scaleX(1); }
}

/* Darker than --text-secondary so it holds 4.5:1 over the deeper peach */
.home-hero-body {
  font-size: 17px;
  line-height: 1.65;
  color: #2E2A26;
  max-width: 560px;
}

.home-hero .eyebrow {
  color: #2E2A26;
}

.home-hero-body + .home-hero-body {
  margin-top: 14px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.home-hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.55);
}

.home-hero-actions a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Chat card — a question, a typing beat, then the AI answer with the
   records it drew on. Cycles through three threads. */
.chat-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: 0 30px 80px rgba(122, 74, 42, 0.16), 0 4px 14px rgba(26, 26, 26, 0.06);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
}

.chat-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-live {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(79, 107, 82, 0.15);
}

/* Threads share one grid cell (so the card keeps the tallest height) and
   crossfade. Each step's delay applies only while its thread is active,
   so leaving a thread resets it instantly. */
/* Fixed height so the card never resizes between threads */
.chat-body {
  display: grid;
  height: 300px;
  overflow: hidden;
  padding: 26px 24px 12px;
}

.chat-thread {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.chat-thread.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

.chat-q {
  align-self: flex-end;
  max-width: 82%;
  padding: 13px 18px;
  border-radius: 18px 18px 4px 18px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
}

/* AI side is plain text: no avatar, no bubble */
.chat-a {
  position: relative;
}

/* Typing beat: shows for a moment, then hands over to the answer */
.chat-typing {
  position: absolute;
  top: 8px;
  left: 0;
  display: inline-flex;
  gap: 5px;
  opacity: 0;
}

.chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

@keyframes chatTyping {
  0%   { opacity: 0; transform: translateY(6px); }
  15%  { opacity: 1; transform: none; }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes chatDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  40%      { transform: translateY(-4px); opacity: 1; }
}

/* Answer words stream in (spans added by home.js, each with --i for
   its position) */
.chat-a-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-primary);
  max-width: 92%;
}

.chat-a-text .w {
  opacity: 0;
}

.chat-thread.is-active .chat-q {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease 0.15s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.chat-thread.is-active .chat-typing {
  animation: chatTyping 1.2s ease 0.7s both;
}

.chat-thread.is-active .chat-typing i {
  animation: chatDot 0.9s ease-in-out 0.7s infinite;
}

.chat-thread.is-active .chat-typing i:nth-child(2) { animation-delay: 0.85s; }
.chat-thread.is-active .chat-typing i:nth-child(3) { animation-delay: 1s; }

.chat-thread.is-active .chat-a-text .w {
  opacity: 1;
  transition: opacity 0.35s ease;
  transition-delay: calc(1.95s + var(--i) * 45ms);
}

/* Pager — one dot per thread; the active one stretches */
.chat-pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 0 14px;
}

.chat-dot {
  width: 28px;
  height: 24px;
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
}

.chat-dot::before {
  content: '';
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transform: scaleX(0.45);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-dot[aria-pressed="true"]::before {
  background: var(--accent);
  transform: scaleX(1);
}

.chat-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .home-hero .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 116px;
  }

  .home-hero-visual {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  .home-hero .home-hero-inner {
    padding-top: 104px;
    padding-bottom: 64px;
  }

  .home-hero-title {
    margin-bottom: 22px;
  }

  .home-hero-body {
    font-size: 16px;
  }

  .home-hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .chat-body {
    height: 340px;
    padding: 20px 18px 8px;
  }

  .chat-q,
  .chat-a-text {
    font-size: 14.5px;
  }
}

/* ---------- Shared section layout ---------- */

.home-section {
  position: relative;
  z-index: 1;
  padding: 128px 0;
}

.section-heading {
  font-size: clamp(34px, 4.4vw, 56px);
  max-width: 820px;
}

/* Handwritten word in the accent (4.56:1 on the page colour) */
.hand-accent {
  color: var(--accent);
}

/* ---------- Section 3: The problem ---------- */

.problem-header {
  margin-bottom: 64px;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: start;
}

/* Ask demo — the question, then a trace through the five records (each
   lights up as the line reaches it), then the answer as plain text. */
.ask-demo {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 24px;
  padding: 32px 32px 30px;
  box-shadow: 0 30px 80px rgba(122, 74, 42, 0.12), 0 4px 14px rgba(26, 26, 26, 0.05);
}

.ask-q {
  width: fit-content;
  max-width: 86%;
  margin-left: auto;
  padding: 13px 18px;
  border-radius: 18px 18px 4px 18px;
  background: var(--black);
  color: var(--white);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}

.ask-trace {
  position: relative;
  list-style: none;
  margin-top: 26px;
}

.ask-step {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
}

/* Connector from this node to the next: a thin rail (::before) and an
   accent fill (::after) that grows down it before the next node lights */
.ask-step:not(:last-child)::before,
.ask-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -22px;
  width: 2px;
}

.ask-step:not(:last-child)::before {
  background: var(--border-light);
}

.ask-step:not(:last-child)::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.45, 0, 0.55, 1);
}

.ask-demo.visible .ask-step::after {
  transform: scaleY(1);
}

.ask-node {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
}

.ask-node::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.5, 0.64, 1);
}


.ask-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ask-text {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}

.ask-demo.visible .ask-node::after {
  transform: scale(1);
}

/* One record every 0.5s: node lights, then its connector fills */
.ask-step:nth-child(1) .ask-node::after { transition-delay: 0.4s; }
.ask-step:nth-child(2) .ask-node::after { transition-delay: 0.9s; }
.ask-step:nth-child(3) .ask-node::after { transition-delay: 1.4s; }
.ask-step:nth-child(4) .ask-node::after { transition-delay: 1.9s; }
.ask-step:nth-child(5) .ask-node::after { transition-delay: 2.4s; }

.ask-step:nth-child(1)::after { transition-delay: 0.5s; }
.ask-step:nth-child(2)::after { transition-delay: 1s; }
.ask-step:nth-child(3)::after { transition-delay: 1.5s; }
.ask-step:nth-child(4)::after { transition-delay: 2s; }

.ask-answer {
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 3s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 3s;
}

.ask-demo.visible .ask-answer {
  opacity: 1;
  transform: none;
}

.problem-copy {
  padding-top: 8px;
}

.problem-lead {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.problem-lead + .problem-lead {
  margin-top: 12px;
}

.problem-lead--strong {
  font-weight: 700;
}

.problem-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 22px;
}

.problem-lead--strong + .problem-body {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .home-section {
    padding: 88px 0;
  }

  .problem-header {
    margin-bottom: 40px;
  }

  .ask-demo {
    padding: 22px 20px 22px;
    border-radius: 20px;
  }

  .ask-q {
    font-size: 15px;
  }

  .ask-step {
    gap: 14px;
  }

  .ask-answer {
    font-size: 15.5px;
  }
}

/* ---------- Section 4: The next step after digitization ---------- */

.era-section {
  padding-top: 32px;
}

.era-heading {
  margin-bottom: 56px;
}

/* Three cards on a line that draws in on scroll */
.era-list {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 44px;
}

.era-track {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  overflow: hidden;
}

.era-track-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.era-list.visible .era-track-fill {
  transform: scaleX(1);
}

.era-card {
  position: relative;
  padding: 32px 28px 34px;
  border-radius: 20px;
  background: var(--bg-card);
}

.era-node {
  position: absolute;
  top: -44px;
  left: 28px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 2px solid var(--accent);
  transform: scale(0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.era-list.visible .era-node {
  opacity: 1;
  transform: scale(1);
}

/* Nodes pop as the line reaches them */
.era-card:nth-child(2) .era-node { transition-delay: 0.25s; }
.era-card:nth-child(3) .era-node { transition-delay: 0.95s; }
.era-card:nth-child(4) .era-node { transition-delay: 1.65s; }

.era-card--dark .era-node {
  background: var(--sunrise);
  border-color: var(--sunrise);
}

.era-title {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.era-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.era-card--dark {
  background: var(--black);
}

.era-card--dark .era-title {
  color: var(--sunrise);
}

.era-card--dark .era-title .hand {
  font-size: 1.25em;
}

.era-card--dark .era-text {
  color: rgba(255, 255, 255, 0.82);
}

/* Footnote references — link to the sources in the footer. Clay keeps
   6:1+ on both the page colour and the grey cards. */
.footnote-ref {
  font-size: 0.72em;
  line-height: 0;
}

.footnote-ref a {
  color: var(--clay);
  font-weight: 600;
  padding: 0 1px;
}

.footnote-ref a:hover {
  text-decoration: underline;
}

.footnote-ref a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .era-list {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 0;
    padding-left: 40px;
  }

  .era-track {
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .era-track-fill {
    transform: scaleY(0);
    transform-origin: center top;
  }

  .era-list.visible .era-track-fill {
    transform: scaleY(1);
  }

  .era-node {
    top: 30px;
    left: -40px;
  }

  .era-title {
    font-size: 34px;
  }
}

/* ---------- Section 5: How Data Intelligence works ---------- */

/* Layout: header, a row of four numbered tabs, then the selected step as
   two columns of equal height: its number and copy with a pager along the
   bottom, and a chat card showing it in use. */
.steps-header {
  margin-bottom: 48px;
}

.steps-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.step-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 24px 22px 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
}

/* Selected underline sits on the shared rule and scales in */
.step-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 24px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-tab:hover,
.step-tab[aria-selected="true"] {
  color: var(--text-primary);
}

.step-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.step-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.step-tab-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.step-tab-name {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Selected step: copy on the left, a narrow tall chat card on the right */
.steps-layout {
  position: relative;
}

.step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 80px;
}

.step-panel:not([hidden]) + .step-panel {
  margin-top: 56px;
}

.step-panel[hidden] {
  display: none;
}

.step-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 12px;
  border-radius: 16px;
}

/* Left side spans the card's height: a large step number level with the
   card's top, the copy under it, and room along the bottom for the pager */
.step-side {
  display: flex;
  flex-direction: column;
  padding-bottom: 92px;
}

.step-num {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(88px, 8vw, 128px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent-soft);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (-webkit-text-stroke: 1px black) {
  .step-num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--clay);
  }
}

.step-text {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(20px, 1.75vw, 25px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  max-width: 480px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.1s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.step-panel.is-active .step-num,
.step-panel.is-active .step-text {
  opacity: 1;
  transform: none;
}

/* Pager — level with the card's bottom edge, under the left column */
.step-nav {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(480px, calc(100% - 620px));
}

.step-nav[hidden] {
  display: none;
}

.step-nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
}

.step-nav-btn:not([aria-disabled="true"]):hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--white);
}

.step-nav-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

.step-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.step-progress {
  position: relative;
  flex: 1;
  height: 2px;
  margin-left: 14px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--border);
}

.step-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-count {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.step-count b {
  color: var(--text-primary);
}

/* Reuses the hero chat card; the thread plays when its panel activates */
.step-chat .chat-body {
  height: 480px;
  padding-top: 32px;
}

.step-chat .chat-a-text {
  font-size: 16px;
}

.step-chat .chat-thread {
  grid-area: auto;
}

@media (max-width: 1024px) {
  .steps-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
    border-bottom: none;
    margin-bottom: 40px;
  }

  .step-tab {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }

  .step-tab::after {
    right: 0;
  }

  .step-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step-text {
    max-width: 640px;
  }

  .step-side {
    padding-bottom: 0;
  }

  .step-num {
    font-size: 72px;
    margin-bottom: 24px;
  }

  .step-nav {
    position: static;
    width: auto;
    margin-top: 28px;
  }
}

@media (max-width: 600px) {
  .steps-header {
    margin-bottom: 36px;
  }

  .step-tab {
    padding-right: 12px;
  }

  .step-tab-name {
    font-size: 16px;
  }

  .step-text {
    font-size: 19px;
  }

  .step-chat .chat-body {
    height: 420px;
    padding-top: 22px;
  }

  .step-chat .chat-a-text {
    font-size: 15.5px;
  }
}

/* ---------- Section 6: What it enables ---------- */

.enables-section {
  padding-top: 48px;
}

.enables-heading {
  margin-bottom: 48px;
}

/* Editorial rows — hairlines between, the row shifts right on hover and
   an accent rule draws over the hairline */
.enable-rows {
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.enable-row {
  position: relative;
  border-top: 1px solid var(--border);
}

.enable-row::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.enable-row-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: baseline;
  padding: 40px 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.enable-title {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.enable-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
}

@media (hover: hover) {
  .enable-row:hover .enable-row-inner {
    transform: translateX(14px);
  }

  .enable-row:hover::before {
    transform: scaleX(1);
  }
}

@media (max-width: 768px) {
  .enable-row-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .enable-text {
    font-size: 16px;
  }
}

/* ---------- Section 7: Shipped work ---------- */

.work-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.work-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 460px;
}

/* The list and link share the preview's height: rows stretch to fill it and
   the link sits level with the preview's bottom edge. */
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  grid-template-rows: 1fr auto;
  column-gap: 80px;
}

.work-tabs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.work-preview {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.work-tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 24px 72px 24px 22px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  color: var(--text-secondary);
}

/* Selected marker scales in; no other motion */
.work-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-tab[aria-selected="true"]::before {
  transform: scaleY(1);
}

/* Arrow at the row end — balances the row and fills in on the selected one */
.work-tab::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0.45;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-tab:hover::after,
.work-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: none;
}

.work-tab[aria-selected="true"]::after {
  border-color: var(--text-primary);
}

.work-tab-title {
  display: block;
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.work-tab[aria-selected="true"] {
  color: var(--text-primary);
}

.work-tab:hover {
  color: var(--text-primary);
}

.work-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}

.work-tab-text {
  display: none;
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
}

.work-tab[aria-selected="true"] .work-tab-text {
  display: block;
}

.work-preview .proj-visual {
  height: 580px;
}

.work-link {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  padding-bottom: 4px;
}

.work-link svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-link:hover svg {
  transform: translateX(4px);
}

.work-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .work-header,
  .work-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-layout {
    grid-template-rows: none;
  }

  .work-tabs,
  .work-preview,
  .work-link {
    grid-column: 1;
    grid-row: auto;
  }

  .work-link {
    margin-top: 8px;
  }

  .work-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .work-tab {
    padding: 20px 56px 20px 18px;
  }

  .work-tab::after {
    width: 34px;
    height: 34px;
    margin-top: -17px;
    right: 2px;
  }

  .work-tab::before {
    top: 20px;
    bottom: 20px;
  }

  .work-preview .proj-visual {
    height: 460px;
  }
}

/* ---------- Section 8: Industries ---------- */

.industries-section {
  background: var(--bg-card);
}

.industries-heading {
  max-width: 820px;
  margin-bottom: 56px;
}

/* An index of industries on the left; the selected industry's data map on
   the right. The index rows stretch to the card's height so both columns
   share top and bottom edges. Each tab and panel sets --ind to its
   industry colour. */
.industries-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  gap: 80px;
}

.industry-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.industry-tab {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 28px 6px 28px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--text-secondary);
  text-align: left;
}

/* Underline in the industry colour draws in under the selected tab */
.industry-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ind);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.industry-tab:hover,
.industry-tab[aria-selected="true"] {
  color: var(--text-primary);
}

.industry-tab:focus-visible {
  outline: 2px solid var(--ind);
  outline-offset: 4px;
  border-radius: 4px;
}

.industry-tab-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.industry-tab-name {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-tab[aria-selected="true"] .industry-tab-name {
  transform: translateX(6px);
}

.industry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ind);
  opacity: 0.4;
  transform: scale(0.7);
  transition: transform 0.4s cubic-bezier(0.34, 1.5, 0.64, 1), opacity 0.3s ease;
}

.industry-tab[aria-selected="true"] .industry-dot {
  opacity: 1;
  transform: scale(1.3);
}

.industry-panel {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 24px 56px rgba(26, 26, 26, 0.07);
}

.industry-panel:not([hidden]) + .industry-panel {
  margin-top: 16px;
}

.industry-panel[hidden] {
  display: none;
}

.industry-panel:focus-visible {
  outline: 2px solid var(--ind);
  outline-offset: 3px;
}

/* Data map — the industry's sources around a hub, on a dot grid with a
   soft wash of the industry colour behind the hub */
.ind-map {
  position: relative;
  height: 460px;
  border-bottom: 1px solid var(--border-light);
  background: radial-gradient(rgba(26, 26, 26, 0.07) 1px, transparent 1.4px) 0 0 / 20px 20px;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ind) 12%, transparent), transparent 55%),
    radial-gradient(rgba(26, 26, 26, 0.07) 1px, transparent 1.4px) 0 0 / 20px 20px;
}

.ind-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--ind) 7%, transparent), 0 14px 34px rgba(26, 26, 26, 0.1);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease 0.1s, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s;
}

.ind-hub img {
  width: 42px;
  height: 42px;
}

/* Two rings pulse out of the hub a few times once the sources connect */
.ind-hub::before,
.ind-hub::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid var(--ind);
  opacity: 0;
}

.ind-hub::after {
  inset: -32px;
}

.industry-panel.is-active .ind-hub {
  opacity: 1;
  transform: none;
}

.industry-panel.is-active .ind-hub::before {
  animation: indRing 1.8s cubic-bezier(0, 0, 0.2, 1) 1.3s 3;
}

.industry-panel.is-active .ind-hub::after {
  animation: indRing 1.8s cubic-bezier(0, 0, 0.2, 1) 1.6s 3;
}

@keyframes indRing {
  from { opacity: 0.55; transform: scale(0.8); }
  to   { opacity: 0; transform: scale(1.25); }
}

/* Sources sit at fixed points around the hub; each flies in from further
   out (--ox, --oy) so the map reads as scattered records pulling together */
.ind-sources {
  list-style: none;
}

.ind-src {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.ind-src:nth-child(1) { --x: 27%; --y: 19%; --ox: -28px; --oy: -22px; }
.ind-src:nth-child(2) { --x: 73%; --y: 19%; --ox: 28px;  --oy: -22px; }
.ind-src:nth-child(3) { --x: 80%; --y: 64%; --ox: 32px;  --oy: 8px; }
.ind-src:nth-child(4) { --x: 50%; --y: 88%; --ox: 0px;   --oy: 28px; }
.ind-src:nth-child(5) { --x: 20%; --y: 64%; --ox: -32px; --oy: 8px; }

.ind-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-color: color-mix(in srgb, var(--ind) 35%, var(--border-light));
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.07);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translate(var(--ox), var(--oy)) scale(0.92);
  transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-chip::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ind);
}

.industry-panel.is-active .ind-chip {
  opacity: 1;
  transform: none;
}

.industry-panel.is-active .ind-src:nth-child(2) .ind-chip { transition-delay: 0.08s; }
.industry-panel.is-active .ind-src:nth-child(3) .ind-chip { transition-delay: 0.16s; }
.industry-panel.is-active .ind-src:nth-child(4) .ind-chip { transition-delay: 0.24s; }
.industry-panel.is-active .ind-src:nth-child(5) .ind-chip { transition-delay: 0.32s; }

/* Links from each source to the hub, measured and rotated by home.js. The
   line draws towards the hub, then a dot carries data along it. */
.ind-links {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ind-link {
  position: absolute;
  height: 2px;
  margin-top: -1px;
  transform-origin: 0 50%;
}

.ind-link-line {
  position: absolute;
  inset: 0;
  background: var(--ind);
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.industry-panel.is-active .ind-link-line {
  transform: scaleX(1);
  transition-delay: calc(0.45s + var(--i) * 0.08s);
}

.ind-link-dot {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ind);
  opacity: 0;
}

.industry-panel.is-active .ind-link-dot {
  animation: indFlow 1.5s cubic-bezier(0.5, 0, 0.5, 1) calc(1.1s + var(--i) * 0.18s) 3;
}

@keyframes indFlow {
  0%   { opacity: 0; transform: translateX(0); }
  15%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--len)); }
}

.industry-copy {
  padding: 30px 40px 34px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease 0.2s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.industry-panel.is-active .industry-copy {
  opacity: 1;
  transform: none;
}

.industry-name {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ind);
  margin-bottom: 10px;
}

.industry-text {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .industries-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .industry-tab {
    padding: 20px 6px 20px 0;
  }
}

@media (max-width: 600px) {
  .industries-heading {
    margin-bottom: 36px;
  }

  .industry-tab {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 18px 4px 18px 0;
  }

  .industry-tab-name {
    font-size: 20px;
  }

  .ind-map {
    height: 340px;
  }

  .ind-hub {
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
  }

  .ind-hub img {
    width: 30px;
    height: 30px;
  }

  .ind-hub::after {
    inset: -24px;
  }

  .ind-src:nth-child(1) { --x: 27%; --y: 15%; }
  .ind-src:nth-child(2) { --x: 73%; --y: 15%; }
  .ind-src:nth-child(3) { --x: 75%; --y: 69%; }
  .ind-src:nth-child(4) { --x: 50%; --y: 90%; }
  .ind-src:nth-child(5) { --x: 25%; --y: 69%; }

  .ind-chip {
    max-width: 136px;
    padding: 8px 12px;
    gap: 7px;
    font-size: 12.5px;
    white-space: normal;
  }

  /* The bottom source has the full width to itself */
  .ind-src:nth-child(4) .ind-chip {
    max-width: none;
    white-space: nowrap;
  }

  .industry-copy {
    padding: 22px 22px 26px;
  }

  .industry-name {
    font-size: 21px;
  }

  .industry-text {
    font-size: 16px;
  }
}

/* ---------- Section 9: Automation control ---------- */

/* Dark section — "cannot invent" in --sunrise needs the dark ground
   for contrast (6.5:1 on --black, 2.5:1 on the page colour). */
.control-section {
  background: var(--black);
  color: var(--white);
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.control-section .section-heading {
  color: var(--white);
  margin-bottom: 32px;
}

.control-section .hand {
  color: var(--sunrise);
}

.control-text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

.control-text + .control-text {
  margin-top: 18px;
}

.control-section .footnote-ref a {
  color: var(--accent-soft);
}

.control-section .footnote-ref a:focus-visible {
  outline-color: var(--accent-soft);
}

.control-close {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--white);
}

/* Refund execution path — a request travels a rail through each check.
   The rail sits at --rail-x inside .refund-path; nodes, packet and fill are
   positioned from it. Colour changes are instant swaps paired with a
   transform pop, so only transform and opacity animate. */
.refund-sim {
  --rail-x: 16px;
  --path-pad: 44px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 28px 24px;
  border-radius: 24px;
  background: #242220;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px rgba(0, 0, 0, 0.35);
  color: var(--white);
}

/* Dot grid that fades out down the panel */
.refund-sim::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

/* Slow sunrise glow drifting in the top corner */
.refund-sim::after {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 420px;
  height: 420px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 134, 42, 0.2), transparent 65%);
  animation: refundGlow 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes refundGlow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.12); }
}

.refund-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refund-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.refund-live {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sunrise);
}

.refund-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sunrise);
  animation: refundPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes refundPing {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(3); opacity: 0; }
}

/* The customer request — re-sent at the start of every run */
.refund-request {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.refund-request.is-sent {
  animation: refundSend 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes refundSend {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.refund-path {
  position: relative;
  margin-top: 14px;
  padding-top: 14px;
  padding-left: var(--path-pad);
}

/* Rail runs from under the request to the end node's centre */
.refund-rail {
  position: absolute;
  top: 0;
  bottom: 22px;
  left: calc(var(--rail-x) - 1px);
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.refund-rail-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--sunrise), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.refund-rail-fill.no-anim {
  transition: none;
}

/* Packet — the outer span moves down the rail, the inner one reacts */
.refund-packet {
  position: absolute;
  top: 0;
  left: calc(var(--rail-x) - 7px);
  z-index: 2;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

.refund-packet.is-moving {
  opacity: 1;
}

.refund-packet.no-anim {
  transition: none;
}

.refund-packet i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sunrise);
  box-shadow: 0 0 0 4px rgba(232, 134, 42, 0.22), 0 0 18px 3px rgba(232, 134, 42, 0.55);
}

.refund-packet.is-blocked i {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 86, 15, 0.3), 0 0 18px 3px rgba(184, 86, 15, 0.6);
  animation: refundShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Cleared every check — lands on the end node in sage */
.refund-packet.is-landed i {
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(79, 107, 82, 0.35), 0 0 18px 3px rgba(126, 156, 128, 0.55);
  animation: refundNodePop 0.4s cubic-bezier(0.34, 1.5, 0.64, 1);
}

@keyframes refundShake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Waiting on a person — a dashed ring turns around the packet */
.refund-packet.is-waiting i::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent-soft);
  animation: refundSpin 2.4s linear infinite;
}

@keyframes refundSpin {
  to { transform: rotate(360deg); }
}

.refund-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refund-check {
  position: relative;
}

/* Short connector from the node to the row */
.refund-check::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--rail-x) + 7px - var(--path-pad));
  width: calc(var(--path-pad) - var(--rail-x) - 7px);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.refund-check.is-done::before {
  background: rgba(232, 134, 42, 0.5);
}

.refund-check.is-skipped::before {
  background: rgba(255, 255, 255, 0.06);
}

.refund-node {
  position: absolute;
  top: 50%;
  left: calc(var(--rail-x) - 7px - var(--path-pad));
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #242220;
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.refund-node::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--sunrise);
  opacity: 0;
}

.refund-check.is-checking .refund-node {
  border-color: var(--sunrise);
}

.refund-check.is-checking .refund-node::after {
  animation: refundRipple 0.8s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes refundRipple {
  from { transform: scale(1); opacity: 0.8; }
  to   { transform: scale(2.6); opacity: 0; }
}

.refund-node[data-result] {
  animation: refundNodePop 0.4s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.refund-node[data-result="pass"]    { background: var(--sage); border-color: #7E9C80; }
.refund-node[data-result="approve"] { background: var(--accent-soft); border-color: var(--accent-soft); }
.refund-node[data-result="block"]   { background: var(--accent); border-color: var(--accent); }

@keyframes refundNodePop {
  from { transform: scale(0.5); }
  to   { transform: scale(1); }
}

/* Row card — a light sheen scans across while the check runs */
.refund-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px 11px 16px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.refund-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(232, 134, 42, 0.18), transparent);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.refund-check.is-checking .refund-row::after {
  animation: refundScan 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes refundScan {
  from { transform: translateX(-100%); opacity: 1; }
  to   { transform: translateX(100%); opacity: 1; }
}

.refund-check-name {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* Rows after a stop are never reached */
.refund-check.is-skipped .refund-check-name {
  color: rgba(255, 255, 255, 0.6);
}

.refund-check.is-skipped .refund-row {
  border-style: dashed;
}

/* Status pill — pending dot until resolved, then pops in */
.refund-status {
  min-width: 118px;
  display: inline-flex;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.refund-status[data-status="pending"]::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 4px 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.refund-check.is-checking .refund-status[data-status="pending"]::before {
  background: var(--sunrise);
  animation: refundBlink 0.35s ease-in-out infinite alternate;
}

@keyframes refundBlink {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0.3; transform: scale(0.7); }
}

.refund-status.is-resolved {
  animation: statusPop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1);
}

@keyframes statusPop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* Contrast: white on sage 5.9:1, clay on accent-soft 6.2:1, white on clay 6.9:1 */
.refund-status[data-status="pass"]    { background: var(--sage); color: var(--white); }
.refund-status[data-status="approve"] { background: var(--accent-soft); color: var(--clay); }
.refund-status[data-status="block"]   { background: var(--clay); color: var(--white); }

/* End of the path — the decision */
.refund-end {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
}

.refund-node--end {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  left: calc(var(--rail-x) - 9px - var(--path-pad));
}

.refund-outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.refund-outcome.is-visible {
  opacity: 1;
  transform: none;
}

.refund-outcome .refund-status {
  min-width: 0;
}

/* Controls — case picker and the pause toggle */
.refund-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.refund-cases {
  flex: 1;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
}

.refund-case {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 10px 12px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
}

.refund-case:hover {
  color: var(--white);
}

.refund-case[aria-pressed="true"] {
  background: var(--bg-page);
  color: var(--text-primary);
}

/* Countdown to the next case while the demo plays */
.refund-case::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.refund-case.is-counting::after {
  opacity: 1;
  animation: refundCount var(--hold, 3200ms) linear forwards;
}

.refund-sim.is-paused .refund-case::after {
  animation-play-state: paused;
}

@keyframes refundCount {
  to { transform: scaleX(1); }
}

.refund-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
}

.refund-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.refund-toggle[hidden] {
  display: none;
}

.refund-toggle-play,
.refund-sim.is-stopped .refund-toggle-pause {
  display: none;
}

.refund-sim.is-stopped .refund-toggle-play {
  display: block;
}

.refund-case:focus-visible,
.refund-toggle:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .control-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .refund-sim {
    --rail-x: 12px;
    --path-pad: 34px;
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  .refund-request {
    font-size: 14px;
  }

  .refund-row {
    padding: 10px 10px 10px 12px;
  }

  .refund-check-name {
    font-size: 14px;
  }

  .refund-status {
    min-width: 96px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .refund-outcome {
    flex-wrap: wrap;
    font-size: 14px;
  }

  .refund-case {
    padding: 10px 6px;
    font-size: 13px;
  }
}

/* ---------- Section 10: Discoverability ---------- */

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

.discover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.discover-copy .section-heading {
  margin-bottom: 28px;
}

.discover-lead {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.discover-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
}

.discover-text + .discover-text {
  margin-top: 16px;
}

/* Large accent card. All text is full white: 4.8:1 on --accent. */
.stat-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 56px 52px 44px;
  border-radius: 28px;
  background: var(--accent);
  color: var(--white);
}

/* Decorative sunrise rings */
.stat-card::before,
.stat-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--sunrise);
  opacity: 0.55;
  pointer-events: none;
}

.stat-card::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
}

.stat-card::after {
  width: 260px;
  height: 260px;
  right: -60px;
  top: -80px;
}

.stat-figure {
  position: relative;
  display: flex;
  align-items: flex-start;
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.stat-num {
  font-size: clamp(110px, 12vw, 180px);
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: clamp(54px, 5.6vw, 84px);
  margin-top: 0.12em;
}

.stat-desc {
  position: relative;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  font-weight: 500;
  max-width: 480px;
}

.stat-note {
  position: relative;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--white);
}

.stat-card .footnote-ref a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stat-card .footnote-ref a:focus-visible {
  outline-color: var(--white);
}

@media (max-width: 1024px) {
  .discover-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .stat-card {
    padding: 40px 26px 30px;
    border-radius: 22px;
  }

  .stat-card::before {
    width: 280px;
    height: 280px;
    right: -120px;
    top: -120px;
  }

  .stat-card::after {
    display: none;
  }
}

/* ---------- Section 11: Decision Intelligence ---------- */

.di-section {
  padding-top: 32px;
}

/* Slate panel — white text is 7.6:1 on --slate */
.di-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 64px;
  border-radius: 28px;
  background: var(--slate);
  color: var(--white);
}

.di-panel .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.di-panel .section-heading {
  color: var(--white);
  margin-bottom: 28px;
}

.di-text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.di-text + .di-text {
  margin-top: 14px;
}

/* Inverted pill button for dark grounds */
.btn-light {
  margin-top: 32px;
  background: var(--white);
  color: var(--text-primary);
}

.btn-light::before {
  background: rgba(26, 26, 26, 0.06);
}

.btn-light:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Illustrative chart: the line wipes in (clip rect scales on X) and
   leaves the expected band; a marker pops where it ends up. */
.di-chart {
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.di-chart svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 300;
  overflow: visible;
}

.di-grid line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.di-band {
  fill: rgba(228, 232, 236, 0.16);
}

.di-expected {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}

.di-line {
  fill: none;
  stroke: var(--sunrise);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.di-reveal-rect {
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 2s cubic-bezier(0.55, 0, 0.35, 1) 0.3s;
}

.di-panel.visible .di-reveal-rect {
  transform: scaleX(1);
}

.di-marker {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.3s ease 2.2s, transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) 2.2s;
}

.di-panel.visible .di-marker {
  opacity: 1;
  transform: scale(1);
}

.di-marker-halo {
  fill: rgba(232, 134, 42, 0.25);
}

.di-marker-dot {
  fill: var(--sunrise);
  stroke: var(--white);
  stroke-width: 2;
}

@media (max-width: 1024px) {
  .di-panel {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px;
  }
}

@media (max-width: 600px) {
  .di-section {
    padding-top: 16px;
  }

  .di-panel {
    padding: 32px 22px;
    border-radius: 22px;
  }

  .di-chart {
    padding: 18px 14px;
  }

  .di-panel .btn-light {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Section 12: How an engagement runs ---------- */

.eng-section {
  background: var(--accent-soft);
}

.eng-heading {
  margin-bottom: 64px;
}

/* Numbered timeline. The fill follows scroll progress via --p (0–1),
   set by home.js; numbers fill in as it reaches them. */
.eng-timeline {
  --p: 0;
  position: relative;
}

.eng-track {
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: rgba(122, 74, 42, 0.18);
  overflow: hidden;
}

.eng-track-fill {
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(var(--p));
  transform-origin: left center;
}

.eng-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.eng-step {
  text-align: center;
  padding: 0 12px;
}

.eng-num {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.eng-num-base,
.eng-num-fill {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.eng-num-base {
  background: var(--bg-page);
  border: 1px solid rgba(122, 74, 42, 0.25);
  color: var(--text-primary);
}

.eng-num-fill {
  background: var(--black);
  color: var(--white);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.eng-step.is-reached .eng-num-fill {
  transform: scale(1);
}

.eng-name {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.eng-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .eng-heading {
    margin-bottom: 44px;
  }

  /* Vertical timeline */
  .eng-track {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .eng-track-fill {
    transform: scaleY(var(--p));
    transform-origin: center top;
  }

  .eng-steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .eng-step {
    position: relative;
    text-align: left;
    padding: 0 0 0 76px;
    min-height: 48px;
  }

  .eng-num {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .eng-name {
    padding-top: 10px;
  }

  .eng-desc {
    max-width: 560px;
    margin: 0;
  }
}

/* ---------- Section 13: Testimonials ---------- */

/* Rail and header share the page gutter so the first card lines up
   with the heading. testimonials.css provides the cards and rail. */
.home .testimonials-section {
  --rail-gutter: 64px;
  padding: 128px 0;
}

/* The rail runs edge to edge; gutters come from --rail-gutter instead of
   the container. */
.home .testimonials-section > .container {
  max-width: none;
  padding: 0;
}

.home .testimonials-grid {
  --rail-pad: var(--rail-gutter);
}

.testimonials-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--rail-gutter);
  margin-bottom: 48px;
}

.rail-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.rail-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.rail-btn:hover {
  transform: translateY(-2px);
}

.rail-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.rail-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .home .testimonials-section {
    --rail-gutter: 32px;
  }

  .home .testimonials-grid {
    padding-left: var(--rail-gutter);
    padding-right: var(--rail-gutter);
    scroll-padding-left: var(--rail-gutter);
  }
}

@media (max-width: 600px) {
  .home .testimonials-section {
    --rail-gutter: 20px;
    padding: 88px 0;
  }

  .testimonials-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .rail-btn {
    width: 46px;
    height: 46px;
  }
}

/* ---------- Section 14: Insights ---------- */

.insights-section {
  padding-top: 48px;
}

.insights-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.insights-header .section-heading {
  margin-bottom: 14px;
}

.insights-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.insights-header .btn-secondary {
  flex-shrink: 0;
}

.insights-header .btn-secondary:focus-visible,
.insights-grid .blog-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* blog.css uses --text-muted (3.5:1) for these; lift to 4.5:1+ here */
.insights-grid .blog-card-category,
.insights-grid .blog-card-meta,
.insights-grid .blog-empty {
  color: var(--text-secondary);
}

/* Cards rise in, one after another, once the grid is in view */
.insights-grid .blog-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.insights-grid.visible .blog-card {
  opacity: 1;
  transform: none;
}

.insights-grid.visible .blog-card:nth-child(2) { transition-delay: 0.1s; }
.insights-grid.visible .blog-card:nth-child(3) { transition-delay: 0.2s; }

.insights-grid.visible .blog-card:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

@media (max-width: 600px) {
  .insights-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }
}

/* ---------- Section 15: Final call to action ---------- */

/* The hero hills return along the bottom: same drifting image, washed to
   the page colour across the top half where the text sits. */
.final-cta {
  overflow: hidden;
  padding: 140px 0 300px;
  text-align: center;
}

.hills--bottom::before {
  background-position: center 30%;
}

.hills--bottom::after {
  background: linear-gradient(180deg,
    var(--bg-page) 0%,
    var(--bg-page) 38%,
    rgba(251, 249, 239, 0.6) 62%,
    rgba(251, 233, 215, 0.15) 100%);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-title {
  font-size: clamp(36px, 4.8vw, 64px);
  max-width: 900px;
  margin-bottom: 28px;
}

.final-cta-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
}

.final-cta-mission {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text-primary);
  max-width: 620px;
  margin: 24px 0 36px;
}

.final-cta .btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .final-cta {
    padding: 96px 0 220px;
  }

  .final-cta-text {
    font-size: 16.5px;
  }

  .final-cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Section 16: Footer ---------- */

.home-footer {
  position: relative;
  z-index: 1;
  background: var(--black);
  color: var(--white);
  padding: 72px 0 40px;
}

.home-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-footer-tagline {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 360px;
}

.home-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
  max-width: 640px;
}

.home-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.home-footer-links a {
  font-size: 15px;
  font-weight: 500;
}

.home-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer a:focus-visible {
  outline: 2px solid var(--sunrise);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sources — each [n] links back to its reference in the page */
.home-footer-sources {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-footer-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.home-footer-sources ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-footer-sources li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  scroll-margin-top: 120px;
}

.home-footer-sources li a:not(.source-back) {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.source-back {
  font-weight: 700;
  margin-right: 4px;
}

.home-footer-sources li:target {
  color: var(--white);
}

.home-footer-sources li:target .source-back {
  color: var(--sunrise);
}

.home-footer-copy {
  padding-top: 28px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .home-footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .home-footer-links {
    justify-content: flex-start;
    gap: 12px 22px;
  }
}

@media (max-width: 600px) {
  .home-footer {
    padding: 56px 0 32px;
  }
}
