/* =========================================================
   Homepage, after the four job cards:
   1. "Why believe CarbonAI", one section in two acts (.arc):
      Act 1, scale: slowed forest canopy footage under a teal-slate overlay,
      with the four metrics counting in. Typography carries it: no
      per-metric graphics. A long fade to white leads into Act 2.
      Act 2, trust: four selectable differentiators beside a large
      evidence panel that demonstrates each one (carbonAI/js/arc.js).
   2. The final call to action.
   Headings share the scale of "From research to decarbonization
   decisions" (jobs.css).
   ========================================================= */
.arc .section-title,
.final-cta .section-title {
  margin: 0;
  font-size: clamp(36px, 3.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lp-sub {
  max-width: 32em;
  margin: 0.35em 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--body, #374151);
}
.arc-scale-inner,
.arc-trust .container > *,
.final-cta-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Act 1: scale. Typography over footage; no decorative graphics.
   ========================================================= */
.arc-scale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  /* the lower part is a long, soft fade from the dark scene to the white of Act 2 */
  padding: clamp(104px, 15vh, 160px) 0 clamp(260px, 34vh, 380px);
  color: #fff;
}
/* the background footage (its source is set once the section is near, see
   arc.js), shown when the section enters, and faded out toward the bottom */
.arc-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.55) 72%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.55) 72%, transparent 96%);
}
.arc-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62); /* atmospheric, not strongly green */
}
.arc-scale.is-in .arc-photo { opacity: 1; transform: none; }
/* a deep teal-slate overlay: dark enough at the top for white text, light
   enough that the footage keeps its detail, then a long fade to white */
.arc-scale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(9, 26, 30, 0.84) 0%,
    rgba(11, 31, 35, 0.78) 40%,
    rgba(16, 40, 44, 0.74) 56%,
    rgba(58, 86, 90, 0.66) 66%,
    rgba(132, 158, 161, 0.58) 75%,
    rgba(204, 220, 221, 0.72) 84%,
    rgba(240, 246, 246, 0.92) 92%,
    #fff 99%);
}
.arc-scale .section-title { color: #fff; max-width: 14em; text-align: left; }
.arc-lede {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* four metrics living directly on the scene, aligned to the headline */
.arc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(72px, 11vh, 112px) 0 0;
}
.arc-metric {
  position: relative;
  /* breathing room sits after each divider; text runs to the next one */
  padding: 0 clamp(12px, 1vw, 18px) 0 clamp(24px, 2.2vw, 34px);
}
.arc-metric:first-child { padding-left: 0; }
/* a short, faint divider, only for rhythm: it spans the number and title */
.arc-metric + .arc-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  height: clamp(96px, 8vw, 128px);
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.arc-metric dt {
  font-size: clamp(50px, 4.8vw, 76px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.arc-label {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}
.arc-detail {
  max-width: 20em;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* entrance: the headline first, then the metrics a little apart (arc.js);
   numbers count up once, nothing moves afterward */
.arc.js .arc-scale .section-title,
.arc.js .arc-lede,
.arc.js .arc-metric {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.arc.js .arc-lede { transition-delay: 0.12s; }
.arc.js .arc-scale.is-in .section-title,
.arc.js .arc-scale.is-in .arc-lede,
.arc.js .arc-metric.is-on { opacity: 1; transform: none; }

/* =========================================================
   Act 2: trust
   ========================================================= */
.arc-trust {
  position: relative;
  background: transparent; /* sits on the end of the fade above */
  margin-top: calc(-1 * clamp(90px, 12vh, 140px)); /* tucks into the fade */
  padding: 0 0 clamp(64px, 10vh, 112px);
}
.arc-trust-head { text-align: center; }
.arc-bridge {
  max-width: 34em;
  margin: 0 auto 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--teal-dark, #2f696f);
}
.arc-trust .section-title { max-width: 16em; margin: 0 auto; color: var(--ink, #111827); }
.arc-trust-head .lp-sub { margin: 16px auto 0; max-width: 36em; }

/* selector (about 38%) beside the evidence panel (about 62%) */
.ev {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  column-gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
  margin-top: clamp(44px, 7vh, 72px);
}
.ev-tabs { display: flex; flex-direction: column; gap: 4px; }
.ev-tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 20px 18px 24px;
  border: 0;
  border-left: 2px solid #e3ebec;
  border-radius: 0 10px 10px 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.ev-tab strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #5b6670;
  transition: color 0.3s ease;
}
.ev-tab span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: #7b858d;
  transition: color 0.3s ease;
}
.ev-tab:hover strong { color: var(--ink, #111827); }
.ev-tab:focus-visible { outline: 2px solid var(--teal, #397f86); outline-offset: 2px; }
.ev-tab.is-active {
  border-left: 3px solid var(--teal, #397f86);
  padding-left: 23px;
  background: #f4f9f9;
}
.ev-tab.is-active strong { color: var(--ink, #111827); }
.ev-tab.is-active span { color: var(--body, #374151); }
/* while the selector auto-advances, a fine line fills under the active item */
.ev-timer {
  position: absolute;
  left: 24px;
  right: 20px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(57, 127, 134, 0.18);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
}
.ev.is-cycling .ev-tab.is-active .ev-timer {
  opacity: 1;
  animation: ev-timer var(--ev-dwell, 6s) linear forwards;
}
@keyframes ev-timer { to { transform: scaleX(1); } }

/* ---------- Rating colors: the single source for AAA to D ----------
   From the CarbonAI project rating report. --r-* is the grade color (scale
   chips and segments); --rd-* a darker shade of it for text, which passes
   WCAG AA (at least 5.2:1) on the grade's light tint. */
.ev {
  --r-aaa: #1e8e3e; --rd-aaa: #14652b;
  --r-aa: #34a853;  --rd-aa: #1b6e34;
  --r-a: #81c995;   --rd-a: #2b6a3c;
  --r-bbb: #fbc02d; --rd-bbb: #755300;
  --r-bb: #f59e0b;  --rd-bb: #854800;
  --r-b: #ef6c00;   --rd-b: #9e3f00;
  --r-c: #f28b82;   --rd-c: #9c2f27;
  --r-d: #c62828;   --rd-d: #981b1b;
}
/* any element with data-g="GRADE" picks up that grade's pair */
[data-g="AAA"] { --g: var(--r-aaa); --gd: var(--rd-aaa); }
[data-g="AA"]  { --g: var(--r-aa);  --gd: var(--rd-aa); }
[data-g="A"]   { --g: var(--r-a);   --gd: var(--rd-a); }
[data-g="BBB"] { --g: var(--r-bbb); --gd: var(--rd-bbb); }
[data-g="BB"]  { --g: var(--r-bb);  --gd: var(--rd-bb); }
[data-g="B"]   { --g: var(--r-b);   --gd: var(--rd-b); }
[data-g="C"]   { --g: var(--r-c);   --gd: var(--rd-c); }
[data-g="D"]   { --g: var(--r-d);   --gd: var(--rd-d); }
/* .rg: a grade letter in its color (large overall ratings, no background);
   .rg-badge: the letter on a light tint of its color (standard size);
   .rg-badge--sm: the compact version for methodology rows */
.rg { color: var(--gd); }
.rg-badge {
  display: inline-block;
  padding: 1px 8px 2px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--g) 18%, #fff);
  line-height: 1.25;
}
.rg-badge--sm { padding: 1px 6px; border-radius: 5px; font-size: 13px; line-height: 1.35; }

/* the evidence panel: all views share one grid cell, so the panel keeps
   the height of the tallest and nothing jumps as they change */
.ev-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* long content wraps instead of widening the panel */
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: 18px;
  background: linear-gradient(160deg, #f2f8f8, #e9f2f3);
  border: 1px solid #dfeaeb;
}
.ev-view {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3ebec;
  box-shadow: 0 2px 6px rgba(8, 26, 28, 0.04), 0 18px 44px rgba(8, 26, 28, 0.08);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* inactive views keep their space (so the panel never changes height); the
   !important outranks the site-wide [hidden] { display: none !important } */
.ev-view[hidden] { display: flex !important; visibility: hidden; }
.ev-view.is-active { opacity: 1; transform: none; visibility: visible; }

.ev-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eef3f3;
}
.ev-app { font-size: 13px; font-weight: 700; color: var(--teal-dark, #2f696f); }
.ev-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5f5;
  font-size: 12px;
  font-weight: 500;
  color: #4b5a62;
}
.ev-q {
  align-self: flex-end;
  max-width: 85%;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  background: var(--teal, #397f86);
  font-size: 15px;
  line-height: 1.45;
  color: #fff;
}
.ev-a {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink, #111827);
}
/* a structured answer: short labeled paragraphs */
.ev-a--parts { display: grid; gap: 8px; font-size: 15px; line-height: 1.6; }
.ev-a--parts p { margin: 0; }
.ev-a--parts strong { font-weight: 600; color: var(--ink, #111827); }
.ev-ref {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 5px;
  background: #e3eff0;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--teal-dark, #2f696f);
  vertical-align: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.ev-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid #eef3f3;
}
.ev-sources li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f7fafa;
  border: 1px solid #e8eeee;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.5s ease, border-color 0.3s ease;
}
.ev-sources span { display: flex; flex-direction: column; min-width: 0; }
.ev-sources strong { font-size: 13.5px; font-weight: 600; color: var(--ink, #111827); }
.ev-sources small { font-size: 12.5px; color: var(--muted, #6b7280); }
/* sources arrive one by one once the view is shown */
.ev-view.is-active .ev-sources li { opacity: 1; transform: none; }
.ev-view.is-active .ev-sources li:nth-child(1) { transition-delay: 0.25s; }
.ev-view.is-active .ev-sources li:nth-child(2) { transition-delay: 0.4s; }
.ev-view.is-active .ev-sources li:nth-child(3) { transition-delay: 0.55s; }
.ev-view.is-active .ev-sources li:nth-child(4) { transition-delay: 0.7s; }
.ev-foot {
  margin: auto 0 0;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark, #2f696f);
}

/* proprietary view: the rating and its scale */
.ev-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #111827);
}
.ev-title span { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--muted, #6b7280); }
.ev-rating {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  padding: 16px 18px;
  border-radius: 12px;
  background: #f7fafa;
  border: 1px solid #e8eeee;
}
.ev-grade { display: flex; flex-direction: column; align-items: flex-start; }
.ev-grade b { font-size: 56px; line-height: 0.9; font-weight: 700; }
.ev-grade small { margin-top: 8px; font-size: 12px; color: var(--muted, #6b7280); }
.ev-scale {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-scale li {
  padding: 8px 0;
  border-radius: 6px;
  background: #e8f0f0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7a80;
}
/* scale chips take their grade's color from the shared tokens (see "Rating colors") */
.ev-scale li:nth-child(1) { --g: var(--r-aaa); --gt: #fff; }
.ev-scale li:nth-child(2) { --g: var(--r-aa); --gt: #fff; }
.ev-scale li:nth-child(3) { --g: var(--r-a); --gt: var(--rd-a); }
.ev-scale li:nth-child(4) { --g: var(--r-bbb); --gt: var(--rd-bbb); }
.ev-scale li:nth-child(5) { --g: var(--r-bb); --gt: var(--rd-bb); }
.ev-scale li:nth-child(6) { --g: var(--r-b); --gt: #fff; }
.ev-scale li:nth-child(7) { --g: var(--r-c); --gt: var(--rd-c); }
.ev-scale li:nth-child(8) { --g: var(--r-d); --gt: #fff; }
.ev-scale li {
  background: color-mix(in srgb, var(--g) 16%, #fff);
  color: color-mix(in srgb, var(--g) 55%, #1f2937);
}
.ev-scale li.is-on { background: var(--g); color: var(--gt); transform: scale(1.08); transition: transform 0.4s ease 0.3s; }
/* compact project identity, so the rating block and comparisons lead */
.ev-title--sm { margin-bottom: 12px; font-size: 15px; }
.ev-title--sm span { margin-top: 1px; font-size: 13px; }
.ev-rating .ev-grade b { font-size: 68px; }
.ev-rating-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ev-rating .ev-scale li { padding: 5px 0; font-size: 11px; }
/* the project's rating against its peers */
.ev-medians { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ev-medians > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8eeee;
}
.ev-medians dt { font-size: 12.5px; color: var(--body, #374151); }
.ev-medians dt small { display: block; font-size: 11.5px; color: var(--muted, #6b7280); }
.ev-medians dd { margin: 0; font-size: 19.5px; line-height: 1; font-weight: 700; color: var(--ink, #111827); }
.ev-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}
.ev-facts > div {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e8eeee;
}
.ev-facts dt { font-size: 12px; color: var(--muted, #6b7280); }
.ev-facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: var(--ink, #111827); }
.ev-facts dd small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted, #6b7280); }

/* methodology view: each dimension on the same eight-step scale (AAA to D),
   with its grade marked; categorical, so no continuous bars */
.ev-dims { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.ev-dims li {
  display: grid;
  grid-template-columns: minmax(130px, 34%) 1fr 44px;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: var(--body, #374151);
}
.ev-dims b { text-align: right; font-size: 14px; color: var(--ink, #111827); }
.ev-seg { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
/* the rating report's scale colors, AAA (green) through BBB/BB (amber) to D (red);
   every step shows a faint tint of its color, the dimension's grade in full */
.ev-seg i:nth-child(1) { --g: var(--r-aaa); }
.ev-seg i:nth-child(2) { --g: var(--r-aa); }
.ev-seg i:nth-child(3) { --g: var(--r-a); }
.ev-seg i:nth-child(4) { --g: var(--r-bbb); }
.ev-seg i:nth-child(5) { --g: var(--r-bb); }
.ev-seg i:nth-child(6) { --g: var(--r-b); }
.ev-seg i:nth-child(7) { --g: var(--r-c); }
.ev-seg i:nth-child(8) { --g: var(--r-d); }
.ev-seg i {
  height: 10px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--g) 16%, #fff);
  transition: background-color 0.4s ease, transform 0.4s ease;
}
.ev-view.is-active .ev-seg i.is-on { background: var(--g); transform: scaleY(1.3); }
.ev-view.is-active .ev-dims li:nth-child(3) .is-on { transition-delay: 0.08s; }
.ev-view.is-active .ev-dims li:nth-child(4) .is-on { transition-delay: 0.16s; }
.ev-view.is-active .ev-dims li:nth-child(5) .is-on { transition-delay: 0.24s; }
.ev-view.is-active .ev-dims li:nth-child(6) .is-on { transition-delay: 0.32s; }
/* the key row: names the scale ends above the segments */
.ev-dims-key { font-size: 12px !important; color: var(--muted, #6b7280) !important; }
.ev-seg-key { display: flex; justify-content: space-between; padding: 0 2px; }
.ev-seg-key em { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: 0.04em; }
.ev-overall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4f9f9;
  border: 1px solid #e3ebec;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #111827);
}
.ev-overall b { font-size: 28px; }

/* private view: an upload, then the handling commitments */
.ev-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7fafa;
  border: 1px solid #e8eeee;
  overflow: hidden;
}
.ev-file-type {
  display: grid;
  place-items: center;
  width: 40px;
  height: 46px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dfe8e9;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark, #2f696f);
}
.ev-file-name { display: flex; flex-direction: column; min-width: 0; }
.ev-file-name strong { font-size: 15px; font-weight: 600; color: var(--ink, #111827); overflow-wrap: anywhere; }
.ev-file-name small { font-size: 13px; color: var(--muted, #6b7280); }
.ev-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--teal, #397f86);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.ev-view.is-active .ev-progress { transform: scaleX(1); }
/* confidentiality indicator beside the document */
.ev-lock {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  fill: none;
  stroke: var(--teal, #397f86);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* the privacy assurances: the focal point of this view */
.ev-assure {
  margin-top: 2px;
  border-radius: 12px;
  border: 1px solid #dfeaeb;
  background: #f7fbfb;
  overflow: hidden;
}
.ev-assure-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 18px;
  border-bottom: 1px solid #e3ebec;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #111827);
}
.ev-assure-head svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--teal, #397f86);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ev-checks { display: grid; gap: 0; margin: 0; padding: 6px 0; list-style: none; }
.ev-checks li {
  position: relative;
  padding: 7px 18px 7px 48px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink, #111827);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.5s ease;
}
/* a drawn check mark (CSS) */
.ev-checks li::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 50%;
  width: 6px;
  height: 11px;
  margin-top: -7px;
  border: solid var(--teal, #397f86);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ev-view.is-active .ev-checks li { opacity: 1; transform: none; }
.ev-view.is-active .ev-checks li:nth-child(1) { transition-delay: 1.1s; }
.ev-view.is-active .ev-checks li:nth-child(2) { transition-delay: 1.3s; }

/* Act 2 entrance: the head and the panel rise a little as they arrive */
.arc-trust-head.reveal { transform: translateY(20px); }

/* =========================================================
   Final call to action
   ========================================================= */
.final-cta {
  background: #eef5f5;
  border-top: 1px solid #e3ebec;
  padding: clamp(64px, 10vh, 108px) 0;
}
.final-cta-inner { text-align: center; }
.final-cta .section-title { max-width: 16em; margin: 0 auto; text-align: center; }
.final-cta .lp-sub { margin: 18px auto 0; max-width: 38em; text-wrap: balance; }
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4vh, 40px);
}
.final-cta .hero-btn { padding: 15px 26px; font-size: 15px; }
.hero-btn--secondary {
  background: transparent;
  border: 1px solid var(--teal, #397f86);
  color: var(--teal-dark, #2f696f);
}
.hero-btn--secondary:hover { background: rgba(57, 127, 134, 0.08); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .ev { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  /* the selector becomes a compact two-column grid above the panel */
  .ev-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ev-tab { border-left: 0; border-top: 2px solid #e3ebec; border-radius: 0 0 10px 10px; padding: 14px 16px; }
  .ev-tab.is-active { border-left: 0; border-top: 3px solid var(--teal, #397f86); padding-left: 16px; padding-top: 13px; } /* 1px less padding offsets the thicker rule */
  .ev-timer { left: 16px; right: 16px; }
}
/* tablets and small laptops: the metrics form a 2x2 grid */
@media (max-width: 1279px) {
  .arc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .arc-metric:nth-child(3) { padding-left: 0; }
  .arc-metric:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .arc-scale { padding: 84px 0 230px; }
  .arc-metrics { row-gap: 36px; }
  .arc-metric { padding: 0 0 0 16px; }
  .arc-metric:first-child, .arc-metric:nth-child(3) { padding-left: 0; }
  .arc-metric + .arc-metric::before { height: 64px; }
  .arc-metric dt { font-size: clamp(36px, 10.5vw, 44px); }
  .arc-label { margin-top: 12px; font-size: 15px; }
  .arc-detail { font-size: 13.5px; }
  .ev-tab span { display: none; } /* labels only on phones; the panel below shows each idea */
  .ev-stage { padding: 12px; }
  .ev-sources { grid-template-columns: minmax(0, 1fr); }
  .ev-rating { flex-direction: column; align-items: stretch; }
  .ev-facts > div { padding: 10px 12px; }
  .ev-facts dd { font-size: 18px; }
  .ev-rating .ev-grade { flex-direction: row; align-items: baseline; gap: 12px; }
  .ev-rating .ev-grade b { font-size: 56px; }
  .ev-dims li { grid-template-columns: minmax(104px, 38%) 1fr 34px; gap: 10px; font-size: 13.5px; }
  .final-cta-actions .hero-btn { flex: 1 1 100%; max-width: 320px; }
}

/* reduced motion: everything is shown at once, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .arc-photo, .ev-view, .ev-sources li, .ev-checks li, .ev-seg i, .ev-progress { transition: none !important; }
  .arc.js .arc-scale .section-title, .arc.js .arc-lede, .arc.js .arc-metric { opacity: 1; transform: none; transition: none; }
  .ev-timer { display: none; }
}
