/* Consent Mode Monitor · approved refinements to the prototype components (2026-10 homepage review).
   Loaded after styles.css (verbatim source) and the Elementor guard; uses the source tokens only.
   Sections: 1 shared illustration lift · 2 hero score story · 3 gap · 4 Web App preview · 5 extension preview ·
   6 score scale (0 on the left) · 7 monitoring (issue severity) · 8 pricing ledger · 9 responsive */

:root {
  --lift-card: -5px;          /* primary cards (How It Works steps, product cards): was -3px */
  --lift-illustration: -5px;  /* .lift illustration wrappers */
  --dur-lift: 220ms;
  --shadow-lift: 0 2px 6px rgba(17,47,44,.07), 0 34px 64px -30px rgba(17,47,44,.40);
}

/* ---------- 1. Shared illustration lift ----------
   Add .lift to the outer wrapper of an illustration card (never to controls inside it). The lift uses
   `translate`, so it never fights the reveal's `transform`. Pointer devices only; no movement under
   reduced motion, where only the shadow deepens. */
.lift { transition: translate var(--dur-lift) var(--ease), box-shadow var(--dur-lift) var(--ease); }
.js .lift[data-reveal] {
  transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s),
              translate var(--dur-lift) var(--ease), box-shadow var(--dur-lift) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .lift:hover { translate: 0 var(--lift-illustration); box-shadow: var(--shadow-lift); }
}
@media (prefers-reduced-motion: reduce) {
  .lift:hover { translate: none; }
}

/* ---------- 2. Hero: free scan above the fold ----------
   Less space under the header, a smaller display size for the (longer) H1, and copy aligned to the top of the
   grid so a tall illustration never pushes the scanner down. Targets: scanner field fully visible at
   1440x900, 1366x768, 1280x720, 768x1024, 390x844 and 360x740. */
/* Scoped to the homepage hero: product pages use .hero.phero with their own source sizing (solutions.css). */
.hero:not(.phero) { padding-top: clamp(20px, 3vw, 44px); }
.hero:not(.phero) .hero__grid { align-items: start; }
.hero:not(.phero) .hero__title { margin-top: 18px; max-width: 13.5em; font-size: clamp(2.25rem, 1.5rem + 2.3vw, 3.5rem); line-height: 1.04; }
.hero:not(.phero) .hero__lead { margin-top: 16px; }
.hero:not(.phero) .scanner { margin-top: 24px; }
.hero__aside { margin-top: 22px; }
.hero-visual.hero-story { padding-top: 14px; }

/* ---------- 2b. Hero: before/after score story ---------- */
.story-scan { position: relative; z-index: 1; justify-self: end; width: 88%; padding: 18px 18px 48px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); }
.story-scan__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.story-scan__head img { width: 20px; height: auto; }
.story-scan__head .chip { margin-left: auto; }
.story-scan__title, .story-chart__title { font-size: 1rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.story-scan__id, .story-chart__sub { font-size: var(--fs-micro); color: var(--text-3); }
.story-scan__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 14px; }
.story-score { padding: 10px 18px 12px; border-radius: 12px; background: var(--danger-50); text-align: center; }
.story-score__label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--danger-700); }
.story-score__value { font-size: 2.125rem; font-weight: 600; line-height: 1.1; color: var(--danger-700); }
.story-tags { border: 1px solid var(--line); border-radius: 10px; }
.story-tags li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: var(--fs-meta); font-weight: 600; color: var(--ink); }
.story-tags li + li { border-top: 1px solid var(--line); }
.story-tags__name { min-width: 0; }
.story-tags .chip { flex: none; }

.story-chart { position: relative; z-index: 2; width: 86%; margin-top: -30px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3); }
.story-chart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.story-chart__delta { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; font-weight: 600; }
.story-chart__delta .icon { width: 14px; height: 14px; color: var(--text-3); }
.story-chart__delta .is-issue { color: var(--danger-700); }
.story-chart__delta .is-zero { color: var(--dusky); }
.story-chart__plot { --x0: 34px; position: relative; height: clamp(160px, 42cqi, 186px); margin-top: 16px; padding-left: var(--x0); }
.story-chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.story-chart__plot svg * { vector-effect: non-scaling-stroke; }
.story-chart__ylab { position: absolute; left: 0; transform: translateY(-50%); font-family: var(--mono); font-size: .78rem; color: var(--text-3); }
.story-chart__ylab--issue { font-weight: 600; color: var(--danger-700); } /* the -20 issue level in brand red, as the score tile (owner, 2026-10-22) */
.story-chart__grid { stroke: var(--line); stroke-width: 1; }
.story-chart__base { stroke: #A9B7B4; stroke-width: 1; stroke-dasharray: 4 4; }
.story-chart__event { stroke: #B9C6C3; stroke-width: 1.5; stroke-dasharray: 3 5; }
.story-chart__line { fill: none; stroke: var(--viridian); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
/* Numbered markers sit on the chart: 1 and 3 on the two scans, 2 on the event line where the changes were published.
   This chart plots the numeric score (it rises from -20 to 0); the Monitoring chart plots issue severity instead. */
.story-chart__n { position: absolute; left: calc(var(--x0) + (100% - var(--x0)) * var(--fx)); top: var(--fy); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--lemon); font-family: var(--mono); font-size: .8125rem; font-weight: 600; line-height: 1; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px #fff; }
.story-chart__n--issue { background: var(--danger); color: #fff; }
.story-chart__n--zero { background: var(--viridian-700); color: #fff; }
/* Step labels inside the plot (owner, Iteration 4, 2026-10-27): quieter than the score values, beside their markers,
   clear of the line, the axis values and the card edge; no legend row under the chart. */
.story-chart__note { position: absolute; top: var(--fy); font-size: var(--fs-micro); font-weight: 600; line-height: 1.2; color: var(--text-3); white-space: nowrap; pointer-events: none; }
.story-chart__note strong { font-weight: 600; color: var(--dusky); }
/* 1: above its marker, from the marker's left edge */
.story-chart__note--1 { left: calc(var(--x0) + (100% - var(--x0)) * var(--fx) - 12px); transform: translateY(calc(-100% - 20px)); }
/* 2: above its marker, ending at the event line, on two lines */
.story-chart__note--2 { right: calc(100% - var(--x0) - (100% - var(--x0)) * var(--fx) + 10px); width: max-content; max-width: 6.6em; white-space: normal; text-align: right; transform: translateY(calc(-100% - 20px)); }
/* 3: above the rescan marker, aligned to the plot's right edge */
.story-chart__note--3 { right: 0; transform: translateY(calc(-100% - 20px)); }
.story-chart { container-type: inline-size; }
@container (max-width: 359px) {
  .story-chart__note { font-size: .75rem; }
  .story-chart__note--1 { width: max-content; max-width: 4.6em; white-space: normal; }
}
@container (max-width: 299px) {
  .story-chart__note--1 { left: max(0px, calc(var(--x0) + (100% - var(--x0)) * var(--fx) - 40px)); }
  .story-chart__note--2 { right: calc(100% - var(--x0) - (100% - var(--x0)) * var(--fx) + 7px); }
}

.js .hero-story .story-scan { animation: rise .55s var(--ease) .16s both; }
.js .hero-story .story-chart { animation: rise .55s var(--ease) .28s both; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-story .story-scan, .js .hero-story .story-chart { animation: none; }
}

/* ---------- 3. The gap: balanced banner choices ---------- */
.cookie--balanced .cookie__btns span,
.cookie--balanced .cookie__btns span:last-child { background: #2E3B39; border-color: #2E3B39; color: #fff; }

/* ---------- 4. Web App preview: GTM accounts view ---------- */
.accts { padding: 16px 18px 14px; }
.accts__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.accts__top img { width: 18px; height: auto; }
.accts__user { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.accts__user .icon { width: 14px; height: 14px; }
.accts__avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(160deg, var(--nile) 0%, var(--benzol) 100%); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); }
.accts__title { margin-top: 8px; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.accts__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.accts__filters { display: flex; flex-wrap: wrap; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.accts__filters li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: .78rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.accts__filters li + li { border-left: 1px solid var(--line); }
.accts__filters b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.accts__filters .is-critical b { background: var(--danger-50); color: var(--danger-700); }
.accts__filters .is-high b { background: var(--sienna-50); color: var(--sienna-700); }
.accts__filters .is-low b { background: #F6EFD3; color: #5E4E10; }
.accts__filters .is-none b { background: var(--paper); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.accts__filters .is-fixed b { background: var(--vir-50); color: var(--dusky); }
.accts__btns { display: flex; gap: 6px; }
.accts__btn { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-strong); font-size: .78rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.accts__btn--solid { background: var(--dusky); border-color: var(--dusky); color: #fff; }
.accts__group { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.accts__group .icon { width: 16px; height: 16px; color: var(--text-3); }
.accts__table { margin-top: 4px; }
.accts__table th { padding: 7px 6px; font-size: .68rem; letter-spacing: .06em; line-height: 1.25; vertical-align: bottom; }
.accts__table td { padding: 9px 6px; vertical-align: middle; }
.accts__table th:nth-child(3), .accts__table td:nth-child(3), .accts__table th:nth-child(4), .accts__table td:nth-child(4) { text-align: center; }
.accts__link { font-weight: 600; color: var(--viridian-700); text-decoration: underline; text-underline-offset: .2em; }
.accts__consent { display: inline-grid; place-items: center; color: var(--text-3); vertical-align: middle; }
.accts__consent .icon { width: 18px; height: 18px; }
.accts__consent.is-set { color: var(--viridian-700); }
.accts__fix { display: inline-block; padding: 4px 12px; border-radius: 7px; background: var(--dusky); color: #fff; font-size: .78rem; font-weight: 700; }

/* ---------- 5. Chrome Extension preview: the released popup layout ---------- */
.ext-popup.ext-live { padding: 0; overflow: hidden; }
.ext-live__head { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; font-weight: 700; color: var(--dusky); }
.ext-live__head img { width: 16px; height: auto; }
.ext-live__refresh { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; background: var(--viridian-700); color: #fff; }
.ext-live__refresh .icon { width: 16px; height: 16px; }
.ext-live__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.ext-live__row--key { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) auto; }
.ext-live__k { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ext-live__k--plain { font-size: .78rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ext-live__v { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.ext-live__v.mono { font-size: .84rem; font-weight: 600; }
.ext-live__end { display: grid; justify-items: end; gap: 4px; }
.ext-live__score { font-size: 1.125rem; font-weight: 700; line-height: 1.15; color: var(--danger-700); }
.ext-live__more { width: 18px; height: 18px; color: var(--text-3); }
.ext-live__badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: .72rem; font-weight: 700; line-height: 1.4; }
.ext-live__badge.is-on { background: var(--vir-50); color: var(--dusky); box-shadow: inset 0 0 0 1px #9BD3BD; }
.ext-live__badge.is-denied { background: var(--danger-50); color: var(--danger-700); }
.ext-live__badge.is-granted { background: var(--vir-50); color: var(--dusky); }
.ext-live__table { width: calc(100% - 24px); margin: 8px 12px 10px; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .8125rem; color: var(--ink); }
.ext-live__table th { padding: 6px 8px; background: #F7FAF9; border-bottom: 1px solid var(--line); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); text-align: left; }
.ext-live__table td { padding: 3px 8px; }
.ext-live__table tr + tr td { border-top: 1px solid var(--line); }
.ext-live__table th + th, .ext-live__table td + td { width: 68px; text-align: center; }
.ext-live__table td.is-sub { padding-left: 12px; }
.ext-live__table td.is-sub::before { content: "\2022"; margin-right: 6px; color: var(--text-3); }

/* ---------- 6. Score scale: 0 (best) on the left, more negative to the right ----------
   A mirror of the source instrument: same pins, gradient stops, ticks and tiers, reversed in direction. */
.scale--zero-left .pin--zero { transform: translateX(-22px); }
/* The source painted lower-tier cards (−11, 0) after the upper-tier stems by DOM order; keep that stacking */
.scale--zero-left .pin--zero, .scale--zero-left .pin--deep { z-index: 1; }
.scale--zero-left .pin--zero .pin__card { align-items: flex-start; }
.scale--zero-left .pin--zero .pin__card::after { left: 21px; right: auto; }
.scale--zero-left .scale__track { background: linear-gradient(270deg, var(--danger) 0%, #C3862D 16%, var(--wada-olive-ocher) 52%, var(--viridian) 100%); }
@supports (background: linear-gradient(in oklab 90deg, red, blue)) {
  .scale--zero-left .scale__track { background: linear-gradient(in oklab 270deg, var(--danger) 0%, color-mix(in oklab, var(--sienna), var(--wada-olive-ocher) 30.77%) 16%, var(--wada-olive-ocher) 52%, var(--viridian) 100%); }
}
.scale--zero-left .scale__zero { right: auto; left: -6px; }
.scale--zero-left .scale__ticks { transform: scaleX(-1); }
.scale--zero-left .scale__end--zero { text-align: left; }
.scale--zero-left .scale__end--neg { text-align: right; }
.scale--zero-left .scale__end--neg .icon { transform: none; }
.scale.lift:hover { box-shadow: var(--shadow-lift); }

/* ---------- 7. Monitoring: issue severity (0 is the baseline; worse scores rise) ---------- */
.history__axis { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-left: 34px; font-size: var(--fs-micro); color: var(--text-3); }
.history__axis .icon { flex: none; width: 14px; height: 14px; transform: rotate(-90deg); color: var(--sienna-700); }

/* ---------- 8. Pricing preview: no connector between the numbered steps ---------- */
.ledger--plain .ledger__row:first-child::after { content: none; }

/* ---------- 8b. Solutions pages (Iteration 2) ----------
   Product visuals reuse the homepage mockups; these rules only place them in the solutions.css compositions. */
/* Chrome Extension visual: the released popup on a light band (the popup's own shadow is tuned for dark bands) */
.ext-solo { display: grid; justify-items: center; }
.ext-solo .ext-popup { width: min(100%, 420px); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transition: translate var(--dur-lift) var(--ease), box-shadow var(--dur-lift) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .ext-solo .ext-popup:hover { translate: 0 var(--lift-illustration); box-shadow: var(--shadow-lift); }
}
@media (prefers-reduced-motion: reduce) { .ext-solo .ext-popup:hover { translate: none; } }
/* Workspace view: the GTM accounts mockup inside the source product window */
.win__accts { border-radius: 0 0 16px 16px; overflow: hidden; }
.summary .tile__value .score { height: 26px; font-size: .9375rem; }
/* Monitoring timeline in issue-severity orientation: 0 on the baseline, worse scores rise (homepage semantics) */
.timeline__plot { position: relative; margin-top: 20px; }
.timeline--severity { margin-top: 0; padding-top: 34px; }
.timeline--severity::before { content: none; }
.timeline--severity .timeline__dot, .timeline--severity li > .score { position: relative; z-index: 1; translate: 0 calc(var(--h, 0) * -32px); }
.timeline__line { position: absolute; left: 0; top: 0; width: 100%; height: 50px; overflow: visible; }
.timeline__line polyline { fill: none; stroke: #B9C6C3; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.timeline__foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--fs-micro); color: var(--text-3); }
.timeline__foot .icon { flex: none; width: 14px; height: 14px; transform: rotate(-90deg); color: var(--sienna-700); }

/* ---------- 8b2. Chrome Extension and Google Sheets pages (Iteration 3) ---------- */
/* The released popup inside the source browser stage (replaces the prototype's concept popup) */
.xstage .ext-popup.ext-live { width: min(100%, 420px); margin-inline: auto; }
.sched__rows strong.mono { font-size: .8125rem; }

/* ---------- 8d. Homepage: Who it helps (owner addendum, 2026-10-22) ----------
   Site page ground (--paper, as Monitoring) between the dark product showcase and the white Scoring section; a 2 x 2
   grid of white cards with the shared .lift (owner, 2026-10-22). */
.audiences { background: var(--paper); }
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.aud-card { display: flex; flex-direction: column; padding: 28px 28px 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.aud-card__head { display: flex; align-items: center; gap: 12px; }
.aud-card__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--vir-50); color: var(--viridian-700); }
.aud-card__icon .icon { width: 20px; height: 20px; }
.aud-card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.aud-card__text { margin-top: 14px; font-size: var(--fs-small); line-height: 1.55; color: var(--text-2); }
.aud-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 16px; }
.aud-flow li { display: inline-flex; align-items: center; gap: 4px; }
.aud-flow span { padding: 3px 9px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; font-weight: 600; line-height: 1.4; color: var(--dusky); }
.aud-flow__arrow { width: 12px; height: 12px; color: var(--text-3); }
.aud-tools { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.aud-tools dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.aud-tools dd { margin-top: 6px; }
.aud-tool { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .8125rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.aud-tool .icon { flex: none; width: 15px; height: 15px; color: var(--viridian-700); }
.aud-tool--primary { background: var(--vir-50); box-shadow: inset 0 0 0 1px #9BD3BD; color: var(--dusky); }
.aud-also { display: grid; gap: 6px; }
.aud-also li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.aud-also__note { font-size: .8125rem; line-height: 1.35; color: var(--text-3); }
.aud-card__link { margin-top: auto; padding-top: 20px; align-self: flex-start; }
@media (max-width: 639px) { .aud-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .aud-card { padding: 20px 18px 18px; } }

/* ---------- 8c. FAQ without eyebrow or lead (owner correction 2026-10-22) ---------- */
/* The heading then opens the intro column, level with the first accordion divider. */
.faq__intro > .h2:first-child { margin-top: 0; }

/* ---------- 9. Responsive ---------- */
@media (max-width: 1099px) {
  .scale--zero-left .pin--far .pin__card { transform: translateX(calc(-50% + 16px)); }
  .scale--zero-left .pin--far .pin__card::after { left: auto; right: 16px; }
}
@media (max-width: 767px) {
  .scale--zero-left .pin--deep .pin__card { transform: translateX(calc(-50% + 24px)); }
  .scale--zero-left .pin--deep .pin__card::after { left: auto; right: 24px; }
  .scale--zero-left .scale__end--zero { justify-content: flex-start; }
  .scale--zero-left .scale__end--neg { justify-content: flex-end; }
}
@media (max-width: 599px) {
  .story-scan { width: 94%; padding: 14px 14px 58px; }
  .story-scan__body { grid-template-columns: 1fr; gap: 10px; }
  .story-score { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 14px; }
  .story-score__value { font-size: 1.625rem; }
  .story-tags li { flex-wrap: wrap; gap: 6px 10px; }
  .story-chart { width: 100%; margin-top: -22px; padding: 14px; }
  .accts { padding: 14px; }
  .accts__btns { display: none; }
  .accts__filters li:nth-child(n+4) { display: none; }
  .accts__table th:nth-child(3), .accts__table td:nth-child(3) { display: none; }
  .ext-stage .ext-popup.ext-live { width: calc(100% - 16px); margin: 10px 8px 0; }
  .ext-stage .ext-popup.ext-live::before { right: 10px; }
  .ext-live__head { font-size: .875rem; }
  .ext-live__table { font-size: .75rem; }
  .ext-live__table th { letter-spacing: .02em; }
  .ext-live__table th + th, .ext-live__table td + td { width: auto; padding-inline: 3px; }
  .ext-live__badge { padding: 1px 4px; font-size: .66rem; }
  .ext-live__v.mono { font-size: .78rem; }
  .history__axis { padding-left: 0; }
}
/* Smallest phones (320px class, e.g. 320x568): tighten the hero copy so the scan field still lands above the fold */
@media (max-width: 359px) {
  .hero:not(.phero) { padding-top: 16px; }
  .hero:not(.phero) .pill { font-size: .8125rem; }
  .hero:not(.phero) .hero__title { margin-top: 14px; font-size: 2rem; }
  .hero:not(.phero) .hero__lead { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .hero:not(.phero) .scanner { margin-top: 18px; }
}

/* ---------- 13. Pricing and Changelog (Iteration 4, 2026-10-27) ----------
   Additions only; pages.css (verbatim source) supplies the components. */
/* Sheets plans: an Add-on link beside the Marketplace button */
.tariff__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
/* Changelog: dates known only as "documented by" an evidence date, and retrospective entries ("Added to release history") */
.cl-hl__date { display: block; font-size: var(--fs-micro); color: var(--text-3); }
.cl-date__note { display: block; margin-top: 4px; font-size: var(--fs-micro); line-height: 1.35; color: var(--text-3); }
/* Changelog illustrations: Chrome Web Store milestone, released extension popup, Sheets sidebar */
.cl-tag--milestones { background: var(--ink); color: var(--lemon); }
/* Award finalist badge (milestone card); names no organiser or category until verified */
.cl-award { display: grid; justify-items: center; gap: 4px; padding: 22px 16px 18px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-1); text-align: center; }
.cl-award__mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: var(--ink); color: var(--lemon); box-shadow: 0 0 0 6px #FBF6C4; }
.cl-award__mark .icon { width: 24px; height: 24px; }
.cl-award__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dusky); }
.cl-award__title { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.cl-award__who { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9375rem; font-weight: 600; color: var(--text-2); }
.cl-award__who img { width: 16px; height: auto; }
/* Coverage milestone figure: the same badge, in the product's viridian instead of the award's lemon */
.cl-award--figure .cl-award__mark { background: var(--viridian-700); color: var(--white); box-shadow: 0 0 0 6px var(--vir-50); }
.cl-award__who .icon { width: 16px; height: 16px; color: var(--viridian-700); }
.cl-store { padding: 16px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-1); }
.cl-store__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; font-weight: 700; color: var(--ink); }
.cl-store__head img { width: 18px; height: auto; }
.cl-store__badge { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--vir-50); color: var(--dusky); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.cl-store__badge .icon { width: 14px; height: 14px; }
.cl-store__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cl-store__stats > div { padding: 12px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.cl-store__stats dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cl-store__stats dd { margin-top: 4px; font-size: 1.625rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.cl-store__stats .cl-store__sub { margin-top: 2px; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.cl-store__stars { margin-right: 6px; font-size: 1rem; letter-spacing: .04em; color: #E3B53B; vertical-align: .18em; }
.cl-art .ext-popup.cl-live { position: static; width: auto; max-width: 380px; margin-inline: auto; box-shadow: var(--shadow-1); }
.cl-art .cl-gside { max-width: 360px; margin-inline: auto; border: 0; border-radius: 14px; background: #FAFCFB; box-shadow: var(--shadow-1); }
.cl-gside .gside__run { margin-top: 2px; }
/* Results sheet in a narrow feature card: room for the full GTM key */
.cl-art .gs__grid--3 { grid-template-columns: 26px minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .9fr); }
/* "What's next" roadmap: compact cards in a dashed panel, outside the release timeline; only items approved for
   public display render, and the panel is absent when there are none */
.cl-planned { margin-top: clamp(48px, 6vw, 80px); padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--white); border: 1.5px dashed #B9C6C3; }
.cl-planned__lead { margin-top: 6px; font-size: var(--fs-small); color: var(--text-3); }
.cl-planned__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 18px; }
.cl-planned__item { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 6px 10px; padding: 14px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.cl-planned__item strong { flex-basis: 100%; margin-top: 4px; font-size: 1.0625rem; line-height: 1.3; }
.cl-planned__desc { flex-basis: 100%; font-size: var(--fs-meta); color: var(--text-2); }
.cl-planned__status { padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--white); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.cl-planned__status--progress { background: #FBF6C4; color: var(--ink); box-shadow: inset 0 0 0 1px #E9DD6A; }
/* Feature cards are two narrow columns here: the Gatekeeper window keeps two tabs, as on phones */
@media (min-width: 1024px) and (max-width: 1099px) {
  .cl-gate__tabs .hide-xs { display: none; }
}
@media (max-width: 599px) {
  .cl-date__note { display: inline; margin: 0 0 0 6px; }
  .cl-art .gs__grid--3 { grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 1fr); }
  .cl-store__stats { gap: 8px; }
  .cl-store__stats > div { padding: 10px 12px; }
  .cl-store__stats dd { font-size: 1.375rem; }
  .cl-store__stars { display: block; margin: 0 0 2px; font-size: .875rem; }
  .tariff__actions { flex-direction: column-reverse; align-items: stretch; }
}

/* ==========================================================================
   Docs and Contact additions (Iteration 5, owner brief 2026-10-29). Built from the existing tokens and the
   docs/contact components in pages.css; nothing here restyles an earlier page.
   ========================================================================== */
/* A doc section can hold several blocks; an optional H3 introduces a block */
.doc-block__title { margin-top: 32px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.doc-block__title + .doc-steps, .doc-block__title + .doc-cards, .doc-block__title + .signals, .doc-block__title + .doc-text, .doc-block__title + .doc-code { margin-top: 14px; }
.doc-text { margin-top: 20px; max-width: 46em; font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); }
.doc-text > * + * { margin-top: 12px; }
.doc-text ul { padding-left: 22px; list-style: disc; }
.doc-text li + li { margin-top: 8px; }
.doc-text li::marker { color: var(--viridian-700); }
.doc-text a, .doc-note a, .doc-card a, .doc-steps a, .signals a { font-weight: 600; color: var(--viridian-700); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.doc-text a:hover, .doc-note a:hover, .doc-card a:hover, .doc-steps a:hover, .signals a:hover { color: var(--dusky); }
.doc-text strong { color: var(--ink); }
.doc-steps h3, .doc-steps h4 { margin-top: 14px; }
.doc-note p + p { margin-top: 10px; }
.doc .callout code, .doc-note code, .doc-card code, .doc-steps code { white-space: normal; overflow-wrap: anywhere; }

/* Code example: dark reading surface (the score panel's ground) with a copy button */
.doc-code { position: relative; margin-top: 20px; border-radius: 16px; background: var(--dark); box-shadow: inset 0 0 0 1px var(--dark-line); }
.doc-code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: .9375rem; line-height: 1.65; color: var(--on-dark-2); tab-size: 2; }
.doc-code pre:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: -3px; border-radius: 16px; }
.doc-code code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre; }
.doc-code__copy { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--dark-line); background: var(--dark-raised); color: #fff; font-size: var(--fs-meta); font-weight: 600; cursor: pointer; transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease); }
.doc-code__copy:hover { border-color: var(--viridian-300); }
.doc-code__copy:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: 2px; }
.doc-code__copy .icon { width: 16px; height: 16px; }
.doc-code:has(.doc-code__copy:not([hidden])) pre { padding-top: 58px; } /* room for the button above the first line */

/* Score panel: 0 on the left like every CMM scale (owner rule); the arrow points to the more negative end */
.doc-score__scale.scale--zero-left .doc-score__legend .icon { transform: none; }

/* FAQ in the reading column: the homepage accordion, aligned to the doc column */
.doc--faq .accordion { margin-top: 20px; }

/* Contact: helpful resources under the support example (same card language as the contact routes) */
.resources { margin-top: 28px; }
.resources__title { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.resources__list { display: grid; gap: 8px; margin-top: 12px; }
.resources__link { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease); }
.resources__link:not(#cmm-guard) { text-decoration: none; } /* same weight as the guard's link underline */
.resources__link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.resources__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--vir-50); color: var(--viridian-700); }
.resources__icon .icon { width: 20px; height: 20px; }
.resources__link strong { display: block; font-size: 1rem; line-height: 1.3; }
.resources__link strong + span { display: block; margin-top: 2px; font-size: var(--fs-meta); line-height: 1.4; color: var(--text-2); }
.resources__arrow { width: 18px; height: 18px; color: var(--text-3); transition: transform var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease); }
.resources__link:hover .resources__arrow { transform: translateX(2px); color: var(--viridian-700); }
@media (prefers-reduced-motion: reduce) {
  .resources__link, .resources__arrow { transition: none; }
  .resources__link:hover { transform: none; }
  .resources__link:hover .resources__arrow { transform: none; }
}
@media (max-width: 1023px) {
  .resources { max-width: 560px; }
}

/* ---------- 0.6.10 Pricing: Google Sheets allowances in the plans (owner-approved design, 18 Nov 2026) ---------- */
.prop-tag { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #FFF7DA; box-shadow: inset 0 0 0 1px rgba(110, 81, 0, .25); color: #6E5100; font-size: 10.5px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.plan__pricebox { min-width: 0; }
.plan__allow { position: relative; display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.plan__allow--brand { background: var(--vir-50); box-shadow: inset 0 0 0 1px #BFE3D4; }
.plan__allow-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--viridian-700); box-shadow: inset 0 0 0 1px var(--line); }
.plan__allow-icon .icon { width: 20px; height: 20px; }
.plan__allow-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.plan__allow-num { font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.plan__allow-num strong { font-size: 1.125rem; font-weight: 600; color: var(--dusky); }
.plan__allow--muted .plan__allow-num strong { color: var(--ink); }
.plan__allow-sub { font-size: .8125rem; line-height: 1.35; color: var(--text-3); }
.plan__allow .prop-tag { position: absolute; top: -9px; right: 12px; margin: 0; }
.compare td strong.mono { font-weight: 600; }
.gs-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.gs-band__copy .eyebrow { justify-content: flex-start; }
.gs-band__copy .h2 { margin-top: 14px; }
.gs-band__copy .body-lg { margin-top: 16px; max-width: 34em; }
.gs-band__list { display: grid; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.gs-band__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.gs-band__list .icon { margin-top: 3px; color: var(--viridian-700); }
.gs-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.gs-band__fig { margin: 0; }
.gs-band__fig figcaption { margin-top: 10px; font-size: .8125rem; color: var(--text-3); text-align: center; }
.gs-win { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-2); }
.gs-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F6F9F8; }
.gs-win__bar span { width: 9px; height: 9px; border-radius: 50%; background: #D3DDDA; }
.gs-win__bar b { margin-left: 8px; font-size: .8125rem; font-weight: 600; color: var(--text-3); }
.gs-win__grid { width: 100%; border-collapse: collapse; font-size: .875rem; }
.gs-win__grid th { padding: 8px 12px; border-bottom: 1px solid #E2E8E6; background: #F1F5F4; text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--text-3); }
.gs-win__grid td { padding: 9px 12px; border-bottom: 1px solid #E2E8E6; color: var(--ink); }
.gs-win__grid td:first-child { font-size: .8125rem; overflow-wrap: anywhere; }
.gs-win__meter { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.gs-win__meter b { font-size: .8125rem; color: var(--dusky); }
.gs-meter { position: relative; flex: 1; min-width: 60px; height: 8px; overflow: hidden; border-radius: 999px; background: #E3EAE8; }
.gs-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--viridian); }
.freq__sheets { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.freq__sheets > span:first-child { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.freq__sheets .icon { width: 16px; height: 16px; color: var(--viridian-700); }
.freq__sheets b { font-size: .8125rem; color: var(--dusky); white-space: nowrap; }
.freq__sheets--free .gs-meter i { background: var(--line-strong); }
@media (max-width: 1023px) {
  .plan__pricebox { grid-area: price; }
  .gs-band { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .gs-win__grid th:nth-child(2), .gs-win__grid td:nth-child(2) { display: none; }
  .gs-band__actions .btn { width: 100%; justify-content: center; }
}
