/* Monolith Compliance — marketing hub */

:root {
  --ink: #1a1714;
  --ink-soft: #3d342c;
  --stone: #6b6358;
  --muted: #9a9184;
  --cream: #f5f1ea;
  --cream-hi: #faf7f2;
  --surface: #ffffff;
  --border: #e4ddd2;
  --gold: #c9a24a;
  --gold-hi: #f0d090;
  --gold-mid: #d4a84b;
  --gold-lo: #a67c2e;
  --on-dark: #f5f1ea;
  --font: Outfit, system-ui, sans-serif;
  --max: 68rem;
  --guide-measure: 42rem;
  --page-pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --warn: #a67c2e;
  --warn-bg: #faf3e0;
  --due: #991b1b;
  --due-bg: #fef2f2;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__veil,
  .hero__mark,
  .hero__phone,
  .reveal,
  .field-ui__sync--pulse,
  .live-dot,
  .cascade-item,
  .feature-card__progress-bar,
  .demo-field__defects,
  .demo-field__checks li,
  .demo-field__fail,
  .demo-fail-sheet,
  .demo-fail-sheet__panel,
  .demo-fail-sheet__caret,
  .demo-fail-sheet__save,
  .demo-console-focus__summary .is-due.is-pulse,
  .demo-tour__phone-wrap,
  .demo-console-focus,
  .demo-field__body {
    animation: none !important;
    transition: none !important;
  }

  .demo-tour.is-console-focus .demo-tour__phone-wrap {
    filter: none;
    opacity: 0.55;
    transform: none;
  }

  .demo-field__body.is-shown,
  .demo-field__body.is-entering {
    transform: none !important;
  }

  .demo-fail-sheet.is-open .demo-fail-sheet__panel {
    transform: none !important;
  }

  .reveal,
  .cascade-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .feature-card__progress-bar {
    width: var(--progress, 0%) !important;
  }

  .btn:hover,
  .topbar__cta:hover,
  .paper-sample:hover .paper-flip__frame {
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

html {
  scroll-padding-top: 5.5rem;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgb(26 23 20 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(245 241 234 / 0.1);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.topbar.is-scrolled {
  background: rgb(26 23 20 / 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: rgb(245 241 234 / 0.2);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.28);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  min-height: 4.75rem;
  margin: 0 auto;
  padding: 1.15rem var(--page-pad-x);
  box-sizing: border-box;
  flex-wrap: wrap;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.topbar__brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.topbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
}

.topbar__brand-text strong {
  font-size: 1.15rem;
}

.topbar__tagline {
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--gold-hi);
}

.topbar__nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.topbar__nav a {
  color: rgb(245 241 234 / 0.78);
  text-decoration: none;
}

.topbar__nav a:hover {
  color: var(--on-dark);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.topbar__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgb(245 241 234 / 0.22);
  background: transparent;
  color: var(--on-dark);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.topbar__cta:hover {
  background: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgb(201 162 74 / 0.35);
}

@media (min-width: 900px) {
  .topbar:has(.topbar__nav) .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
  }

  .topbar__nav {
    display: flex;
    justify-content: center;
  }

  .topbar__menu {
    display: none;
  }

  .topbar:has(.topbar__nav) .topbar__actions {
    margin-left: 0;
    justify-self: end;
  }
}

.topbar.is-open .topbar__nav {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0 0.4rem;
  border-top: 1px solid rgb(245 241 234 / 0.14);
  order: 3;
}

.topbar.is-open .topbar__nav a {
  padding: 0.85rem 0.35rem;
  border-radius: 0.6rem;
  font-size: 1.02rem;
  color: var(--on-dark);
  border-bottom: 1px solid rgb(245 241 234 / 0.08);
}

.topbar.is-open .topbar__nav a:last-child {
  border-bottom: 0;
}

.topbar.is-open .topbar__nav a:active {
  background: rgb(245 241 234 / 0.08);
}

/* Keep the bar on one line at small widths */
@media (max-width: 899px) {
  .topbar__inner {
    min-height: 3.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    gap: 0.5rem;
  }

  .topbar__brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .topbar__brand img {
    width: 2rem;
    height: 2rem;
  }

  .topbar__brand-text strong {
    font-size: 1rem;
  }

  .topbar__tagline {
    font-size: 0.62rem;
  }

  .topbar__actions {
    gap: 0.4rem;
  }

  .topbar__menu {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .topbar__cta {
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    border-radius: 0.6rem;
  }
}

/* Trust strip under hero */
.trust-strip {
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid rgb(245 241 234 / 0.08);
  padding: 1.15rem 0;
}

.trust-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
  display: grid;
  gap: 0.65rem;
}

.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.trust-strip__row span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgb(245 241 234 / 0.16);
  background: rgb(245 241 234 / 0.06);
}

.trust-strip__line {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(245 241 234 / 0.65);
}

/* Highlight grid */
.highlight-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

@media (min-width: 1000px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.highlight-card {
  padding: 1.25rem 1.3rem;
  border-radius: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgb(26 23 20 / 0.04);
}

.highlight-card__label {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.highlight-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.highlight-card p {
  margin: 0.55rem 0 0;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.5;
}

.highlight-card a {
  color: var(--gold-lo);
  font-weight: 700;
}

.mid-cta {
  margin-top: 2.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mid-cta p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mid-cta .hero__actions {
  margin-top: 0;
}

.mid-cta__note {
  flex: 1 0 100%;
  margin: 0 !important;
  font-size: 0.8rem !important;
  font-weight: 650 !important;
  color: var(--stone) !important;
  letter-spacing: 0 !important;
}

/* Early risk reversal */
.risk-strip {
  padding: 1.15rem 0;
  background: var(--ink);
  border-block: 1px solid rgb(245 241 234 / 0.08);
}

.risk-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}

.risk-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.25rem;
}

.risk-strip__list li {
  position: relative;
  font-size: 0.82rem;
  font-weight: 650;
  color: rgb(245 241 234 / 0.82);
}

.risk-strip__list li:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -0.75rem;
  color: rgb(245 241 234 / 0.35);
}

@media (max-width: 720px) {
  .risk-strip__list li:not(:last-child)::after {
    content: none;
  }
}

/* Demo walkthrough stepper */
.demo-tour {
  margin-top: 1.5rem;
}

.demo-tour__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .demo-tour__layout {
    grid-template-columns: minmax(15rem, 1fr) minmax(24rem, 32rem);
    gap: 1.5rem 2.25rem;
    align-items: center;
  }
}

.demo-tour__rail {
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
}

.demo-tour__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.demo-tour__heading {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.demo-tour__narration {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

.demo-tour__tip {
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--gold);
  background: rgb(250 243 224 / 0.65);
  border-radius: 0 0.55rem 0.55rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

.demo-tour__tip-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.demo-tour__steps {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.demo-tour__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 0.7rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  cursor: pointer;
  color: var(--stone);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.demo-tour__step:hover {
  background: rgb(26 23 20 / 0.04);
}

.demo-tour__step[aria-current='step'] {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.demo-tour__step-num {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgb(26 23 20 / 0.08);
  color: var(--stone);
  flex-shrink: 0;
}

.demo-tour__step[aria-current='step'] .demo-tour__step-num {
  background: var(--ink);
  color: var(--on-dark);
}

.demo-tour__step-label {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  padding-top: 0.1rem;
}

.demo-tour__hint {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-tour__stage-col {
  display: grid;
  gap: 1rem;
  justify-items: center;
  width: 100%;
}

.demo-tour__stage {
  position: relative;
  width: min(100%, 17.5rem);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .demo-tour__stage {
    width: min(100%, 32rem);
    min-height: 34rem;
    overflow: visible;
  }

  .demo-tour__stage-col {
    overflow: visible;
    width: min(100%, 32rem);
  }
}

@media (max-width: 899px) {
  /* Lead with the phone; step copy and controls sit beneath it */
  .demo-tour__layout {
    gap: 1.15rem;
  }

  .demo-tour__stage-col {
    order: 1;
  }

  .demo-tour__rail {
    order: 2;
    max-width: 32rem;
    margin-inline: auto;
    text-align: center;
    justify-items: center;
  }

  /* Tip takes too much room on a small screen — the phone carries it */
  .demo-tour__tip {
    display: none;
  }

  /* Back/Next carry navigation on mobile — the full list is redundant */
  .demo-tour__steps {
    display: none;
  }

  .demo-tour__controls {
    justify-content: center;
  }

  .demo-tour__cta {
    justify-content: center;
  }

  /* Console payoff becomes an in-flow card in place of the phone.
     Reserve the phone's height so the page doesn't jump as it collapses. */
  .demo-tour.is-console-focus .demo-tour__stage {
    width: 100%;
    min-height: 33rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Phone collapses and fades as the Console card rises in — no hard cut */
  .demo-tour__phone-wrap {
    max-height: 40rem;
    transition:
      opacity 0.4s var(--ease),
      transform 0.45s var(--ease),
      max-height 0.55s var(--ease);
  }

  .demo-tour.is-console-focus .demo-tour__phone-wrap {
    max-height: 0;
    opacity: 0;
    transform: scale(0.97);
    overflow: hidden;
    pointer-events: none;
  }

  .demo-tour.is-console-focus .demo-console-focus {
    display: block;
    width: min(100%, 24rem);
    margin-inline: auto;
    animation: demo-console-enter 0.55s var(--ease) 0.12s both;
  }

  .demo-console-focus__label {
    text-align: center;
  }

  .demo-tour.is-console-focus .demo-console-focus__shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .demo-tour.is-console-focus .demo-console-focus__nav {
    display: none;
  }
}

@keyframes demo-console-enter {
  from {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Playback only — the mock stage isn't selectable, clickable, or hoverable */
.demo-tour__stage {
  -webkit-user-select: none;
  user-select: none;
}

.demo-tour__stage * {
  pointer-events: none !important;
  cursor: default !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.demo-tour__stage *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.demo-tour__phone-wrap {
  width: min(100%, 17.5rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
  transition:
    transform 0.45s var(--ease),
    opacity 0.45s var(--ease),
    filter 0.45s var(--ease);
}

.demo-tour.is-console-focus .demo-tour__phone-wrap {
  transform: scale(0.9) translateX(-0.75rem);
  opacity: 0.4;
  filter: blur(2.5px);
  pointer-events: none;
}

.demo-tour__phone {
  width: 100%;
  margin: 0 auto;
}

/* Home sites list — Field home chrome */
.demo-tour[data-screen='sites'] .demo-field__nav {
  display: none;
}

.demo-field__header[data-mode='brand'] .demo-field__icon-btn[data-demo-home-icon],
.demo-field__header[data-mode='brand'] .demo-field__title {
  display: none;
}

.demo-field__header[data-mode='site'] .demo-field__brand {
  display: none;
}

.demo-field__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.demo-field__brand img {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.25rem;
}

.demo-field__brand strong {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: #1a1714;
}

.demo-field__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.demo-field__gear {
  color: #6b6358;
}

.demo-sites {
  position: relative;
  padding: 0.45rem 0.5rem 0.55rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.demo-sites__toolbar {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.demo-sites__search {
  border: 1px solid #e4ddd2;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.55rem;
  font-weight: 600;
  color: #9a9184;
}

.demo-sites__filters {
  display: flex;
  gap: 0.3rem;
}

.demo-sites__filters span {
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #e4ddd2;
  background: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  color: #6b6358;
}

.demo-sites__filters .is-active {
  border-color: #c9a24a;
  background: rgb(250 243 224);
  color: #a67c2e;
}

.demo-sites__scroller {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  padding-right: 0.1rem;
  /* Inset so the last card clears the floating add button instead of a dead band */
  padding-bottom: 2rem;
  scroll-behavior: smooth;
}

.demo-site-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem;
  align-items: center;
  border: 1px solid #e4ddd2;
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.55rem 0.55rem 0.5rem;
  box-shadow: 0 1px 2px rgb(26 23 20 / 0.04);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
  cursor: pointer;
}

.demo-site-card__main {
  min-width: 0;
}

.demo-site-card strong {
  display: block;
  font-size: 0.78rem;
  color: #1a1714;
  letter-spacing: -0.02em;
}

.demo-site-card__client,
.demo-site-card__addr {
  margin: 0.1rem 0 0;
  font-size: 0.52rem;
  font-weight: 600;
  color: #6b6358;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-site-card__addr {
  color: #9a9184;
  font-size: 0.48rem;
}

.demo-site-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.demo-site-card__badges span {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
}

.demo-site-card__badges .is-ok {
  background: #dcfce7;
  color: #166534;
}

.demo-site-card__badges .is-progress {
  background: #ffedd5;
  color: #9a3412;
}

.demo-site-card__badges .is-due {
  background: #fee2e2;
  color: #991b1b;
}

.demo-site-card__meta {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.52rem;
  font-weight: 650;
  color: #6b6358;
}

.demo-site-card__meta b {
  color: #1a1714;
}

.demo-site-card__chev {
  color: #9a9184;
  font-size: 1.1rem;
  font-weight: 500;
  padding-right: 0.1rem;
}

.demo-site-card.is-active,
.demo-site-card.is-press {
  border-color: #c9a24a;
  box-shadow: 0 0 0 2px rgb(201 162 74 / 0.22);
}

.demo-site-card.is-press {
  transform: scale(0.985);
}

.demo-sites__fab {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #c9a24a;
  color: #1a1714;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgb(201 162 74 / 0.35);
}

/* Screen crossfade stage */
.demo-field__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.demo-field__body {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding-bottom: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0.55rem);
  pointer-events: none;
  transition:
    opacity 0.34s var(--ease),
    transform 0.34s var(--ease),
    visibility 0.34s;
}

.demo-field__body.is-shown {
  position: relative;
  height: 100%;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.demo-field__body.is-leaving {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-0.45rem);
  z-index: 1;
}

.demo-field__body.is-entering {
  position: relative;
  height: 100%;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* Console focus overlay — real Console chrome */
.demo-console-focus {
  display: none;
}

@media (min-width: 900px) {
  .demo-console-focus {
    display: block;
    position: absolute;
    left: 50%;
    top: 12%;
    width: min(100%, 26rem);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translate(-42%, 0.7rem) scale(0.96);
    pointer-events: none;
    transition:
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease),
      visibility 0.4s;
  }

  .demo-tour.is-console-focus .demo-console-focus {
    opacity: 1;
    visibility: visible;
    transform: translate(-42%, 0);
    pointer-events: auto;
  }

  .demo-tour.is-console-focus .demo-tour__phone-wrap {
    transform: scale(0.86) translateX(-1.1rem);
  }
}

.demo-console-focus__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.demo-console-focus__shell {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--cream);
  box-shadow: 0 18px 40px rgb(26 23 20 / 0.16);
  overflow: hidden;
  min-height: 14.5rem;
}

.demo-console-focus__nav {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 0.55rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo-console-focus__brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.demo-console-focus__brand img {
  width: 1rem;
  height: 1rem;
  border-radius: 0.2rem;
}

.demo-console-focus__brand strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.demo-console-focus__brand span {
  display: block;
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--gold-lo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-console-focus__links {
  display: grid;
  gap: 0.15rem;
  font-size: 0.55rem;
  font-weight: 650;
  color: var(--stone);
}

.demo-console-focus__links span {
  padding: 0.28rem 0.35rem;
  border-radius: 0.35rem;
}

.demo-console-focus__links .is-active {
  background: rgb(250 243 224);
  color: var(--gold-lo);
}

.demo-console-focus__main {
  padding: 0.55rem 0.6rem 0.65rem;
  min-width: 0;
  background: var(--cream);
}

.demo-console-focus__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 0.45rem;
}

.demo-console-focus__top p {
  margin: 0;
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-console-focus__top strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.demo-console-focus__top > span {
  font-size: 0.55rem;
  font-weight: 650;
  color: var(--stone);
}

.demo-console-focus__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}

.demo-console-focus__summary > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.3rem 0.35rem;
}

.demo-console-focus__summary strong {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
}

.demo-console-focus__summary span {
  display: block;
  font-size: 0.42rem;
  font-weight: 700;
  color: var(--stone);
  line-height: 1.25;
}

.demo-console-focus__summary .is-due {
  background: var(--due-bg);
  border-color: #fecaca;
}

.demo-console-focus__summary .is-due strong {
  color: var(--due);
}

.demo-console-focus__summary .is-warn {
  background: var(--warn-bg);
  border-color: #f0d090;
}

.demo-console-focus__summary .is-ok {
  background: var(--ok-bg);
  border-color: #bbf7d0;
}

.demo-console-focus__summary .is-due.is-pulse {
  animation: demo-coda-pulse 1.2s var(--ease) 1;
  box-shadow: 0 0 0 2px rgb(153 27 27 / 0.28);
}

.demo-console-focus__row.is-alert.is-spotlight {
  box-shadow: inset 0 0 0 2px rgb(153 27 27 / 0.45);
  animation: demo-console-spotlight 1.4s var(--ease) 1;
}

@keyframes demo-console-spotlight {
  0%,
  100% {
    box-shadow: inset 0 0 0 2px rgb(153 27 27 / 0.35);
  }
  40% {
    box-shadow: inset 0 0 0 2px rgb(153 27 27 / 0.7);
    background: #fee2e2;
  }
}

.demo-console-focus__toolbar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.demo-console-focus__search {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-console-focus__add {
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.3rem 0.5rem;
  font-size: 0.52rem;
  font-weight: 800;
}

.demo-console-focus__table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  overflow: hidden;
}

.demo-console-focus__row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 0.35rem;
  padding: 0.38rem 0.45rem;
  font-size: 0.52rem;
  font-weight: 650;
  border-top: 1px solid var(--border);
  color: var(--ink);
}

.demo-console-focus__row--head {
  border-top: 0;
  background: #faf7f2;
  font-size: 0.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-console-focus__row.is-alert {
  background: var(--due-bg);
}

.demo-console-focus__site {
  font-weight: 700;
}

.demo-console-focus__row .tone-ok {
  color: #15803d;
}

.demo-console-focus__row .tone-due {
  color: #b91c1c;
}

.demo-console-focus__row .tone-progress {
  color: #a16207;
}

/* Field chrome — simplified real app */
.demo-field {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5f1ea;
  color: #1a1714;
  font-size: 0.62rem;
  overflow: hidden;
}

.demo-field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid #e4ddd2;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.demo-field__icon-btn,
.demo-field__sync {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b6358;
  flex-shrink: 0;
}

.demo-field__icon-btn svg,
.demo-field__sync svg {
  width: 0.95rem;
  height: 0.95rem;
}

.demo-field__sync {
  color: #15803d;
}

.demo-field__sync.is-spot {
  box-shadow: 0 0 0 2px rgb(21 128 61 / 0.35);
  border-radius: 0.45rem;
}

.demo-field__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1714;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-field__panel {
  margin: 0.55rem 0.55rem 0;
  padding: 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid #e4ddd2;
  background: #fff;
}

.demo-field__panel--muted {
  background: #faf7f2;
}

.demo-field__panel-title {
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9184;
}

.demo-field__status {
  display: grid;
  gap: 0.3rem;
}

.demo-field__card {
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e4ddd2;
  background: #faf7f2;
  font-weight: 650;
  color: #3d342c;
  font-size: 0.58rem;
}

.demo-field__card--progress {
  border-color: #f0d090;
  background: rgb(250 243 224);
  color: #5c4a32;
}

.demo-field__card--warn {
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}

.demo-field__defects {
  margin: 0.55rem 0.55rem 0;
  padding: 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  transition: box-shadow 0.3s var(--ease);
}

.demo-field__defects.is-spot {
  box-shadow: 0 0 0 2px rgb(153 27 27 / 0.22);
}

.demo-field__defects-title {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #7f1d1d;
}

.demo-field__defect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.demo-field__defect-list li {
  font-size: 0.58rem;
  font-weight: 650;
  color: #991b1b;
  padding: 0.3rem 0.4rem;
  border-radius: 0.4rem;
  background: rgb(255 255 255 / 0.55);
}

.demo-field__defect-list li[hidden] {
  display: none !important;
}

.demo-field__defect-list li.is-new {
  animation: demo-defect-in 0.45s var(--ease);
}

@keyframes demo-defect-in {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.demo-field__snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 650;
  color: #6b6358;
}

.demo-field__snapshot strong {
  display: block;
  font-size: 0.72rem;
  color: #1a1714;
}

.demo-field__sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.5rem 0.55rem 0.4rem;
  background: #fff;
  border-bottom: 1px solid #e4ddd2;
}

.demo-field__sticky-eye {
  margin: 0;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9184;
}

.demo-field__progress {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1a1714;
}

.demo-field__progress-track {
  margin-top: 0.3rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #e4ddd2;
  overflow: hidden;
}

.demo-field__progress-bar {
  display: block;
  height: 100%;
  background: #c9a24a;
  border-radius: inherit;
  transition: width 0.35s var(--ease);
}

.demo-field__group {
  margin: 0.5rem 0.55rem;
  border: 1px solid #e4ddd2;
  border-radius: 0.85rem;
  background: #fff;
  overflow: hidden;
}

.demo-field__group-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: #faf7f2;
  border-bottom: 1px solid #e4ddd2;
  font-size: 0.58rem;
  font-weight: 700;
  color: #3d342c;
}

.demo-field__group-head strong {
  flex: 1;
}

.demo-field__group-head span:last-child {
  color: #9a9184;
  font-weight: 650;
}

.demo-field__chev {
  color: #c9a24a;
  font-size: 0.7rem;
}

.demo-field__row {
  padding: 0.55rem;
  border-top: 1px solid #f0ebe3;
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.demo-field__row:first-of-type {
  border-top: 0;
}

.demo-field__row.is-pass {
  border-left: 3px solid #86efac;
  background: rgb(240 253 244 / 0.45);
}

.demo-field__row.is-fail {
  border-left: 3px solid #fca5a5;
  background: rgb(254 242 242 / 0.55);
}

.demo-field__row.is-pending.is-active {
  box-shadow: inset 0 0 0 1px rgb(201 162 74 / 0.55);
}

.demo-field__row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.demo-field__asset {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c9a24a;
}

.demo-field__area {
  margin: 0.1rem 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1a1714;
}

.demo-field__fault {
  margin: 0.2rem 0 0;
  font-size: 0.55rem;
  font-weight: 700;
  color: #b91c1c;
}

.demo-field__fault[hidden],
.demo-field__badge[hidden],
.demo-field__change[hidden],
.demo-field__actions[hidden] {
  display: none !important;
}

.demo-field__change {
  margin: 0.25rem 0 0;
  font-size: 0.5rem;
  font-weight: 650;
  color: #9a9184;
}

.demo-field__badge {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-field__badge--pass {
  background: #bbf7d0;
  color: #14532d;
}

.demo-field__badge--fail {
  background: #fecaca;
  color: #7f1d1d;
}

.demo-field__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.demo-field__pass,
.demo-field__fail {
  appearance: none;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.45rem 0.35rem;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

.demo-field__pass {
  background: #16a34a;
}

.demo-field__pass.is-pulse {
  animation: demo-pass-pulse 0.85s var(--ease) 1;
}

.demo-field__fail {
  background: #dc2626;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.demo-field__fail.is-pulse {
  animation: demo-fail-pulse 0.9s var(--ease) infinite;
}

@keyframes demo-fail-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgb(220 38 38 / 0.25);
  }
}

@keyframes demo-pass-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }
  45% {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgb(22 163 74 / 0.28);
  }
}

.demo-field__nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.1rem;
  padding: 0.35rem 0.25rem 0.45rem;
  background: #1a1714;
  color: #9ca3af;
  text-align: center;
  font-size: 0.48rem;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-field__nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.2rem 0.1rem;
  border-radius: 0.4rem;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.demo-field__nav svg {
  width: 0.95rem;
  height: 0.95rem;
}

.demo-field__nav .is-active {
  color: #c9a24a;
}

.demo-field__nav .is-press {
  color: #c9a24a;
  background: rgb(201 162 74 / 0.16);
  transform: scale(0.94);
  box-shadow: 0 0 0 1px rgb(201 162 74 / 0.35);
}

.demo-field__test-foot {
  margin-top: 0.45rem;
}

.demo-field__test-foot[hidden] {
  display: none;
}

.demo-field__complete {
  appearance: none;
  border: 0;
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.62rem 0.5rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #16a34a;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease);
}

.demo-field__complete.is-press {
  transform: scale(0.98);
  background: #15803d;
}

.demo-field__toast {
  position: absolute;
  left: 50%;
  bottom: 3.4rem;
  transform: translateX(-50%);
  z-index: 8;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #1a1714;
  color: #f5f1ea;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgb(26 23 20 / 0.25);
}

.demo-field__toast[hidden] {
  display: none !important;
}

/* Log failure sheet — matches Field switch-sheet */
.demo-fail-sheet {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.demo-fail-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
}

.demo-fail-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(26 23 20 / 0.45);
}

.demo-fail-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  overflow: auto;
  background: #fff;
  border-radius: 1.1rem 1.1rem 0 0;
  padding: 0.4rem 0.7rem 0.75rem;
  transform: translateY(108%);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 -10px 28px rgb(26 23 20 / 0.18);
}

.demo-fail-sheet.is-open .demo-fail-sheet__panel {
  transform: translateY(0);
}

.demo-fail-sheet__handle {
  width: 2.4rem;
  height: 0.25rem;
  border-radius: 999px;
  background: #e4ddd2;
  margin: 0.15rem auto 0.5rem;
}

.demo-fail-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.demo-fail-sheet__head strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

.demo-fail-sheet__head span {
  display: block;
  margin-top: 0.1rem;
  color: #6b6358;
  font-weight: 600;
  font-size: 0.58rem;
}

.demo-fail-sheet__close {
  font-size: 1.1rem;
  line-height: 1;
  color: #9a9184;
  font-weight: 500;
}

.demo-fail-sheet__field {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.55rem;
}

.demo-fail-sheet__field > span:first-child {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9184;
}

.demo-fail-sheet__select {
  border: 1px solid #e4ddd2;
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  background: #faf7f2;
  font-size: 0.65rem;
  font-weight: 650;
  color: #1a1714;
}

.demo-fail-sheet__select .is-placeholder {
  color: #9a9184;
}

.demo-fail-sheet__select.is-filled {
  border-color: #c9a24a;
  background: rgb(250 243 224);
}

.demo-fail-sheet__options {
  display: grid;
  gap: 0.2rem;
}

.demo-fail-sheet__options[hidden] {
  display: none !important;
}

.demo-fail-sheet__options button {
  appearance: none;
  border: 1px solid #e4ddd2;
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.4rem 0.5rem;
  text-align: left;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 650;
  color: #1a1714;
  cursor: pointer;
}

.demo-fail-sheet__options button.is-selected {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.demo-fail-sheet__notes {
  min-height: 2.2rem;
  border: 1px solid #e4ddd2;
  border-radius: 0.55rem;
  background: #faf7f2;
  padding: 0.4rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #1a1714;
  line-height: 1.35;
}

.demo-fail-sheet__placeholder {
  color: #9a9184;
}

.demo-fail-sheet__placeholder[hidden] {
  display: none !important;
}

.demo-fail-sheet__caret {
  display: inline-block;
  width: 0.08rem;
  height: 0.85em;
  margin-left: 1px;
  background: #1a1714;
  vertical-align: text-bottom;
  animation: demo-caret 0.8s steps(1) infinite;
}

.demo-fail-sheet__caret[hidden] {
  display: none !important;
}

@keyframes demo-caret {
  50% {
    opacity: 0;
  }
}

.demo-fail-sheet__photo {
  border: 1.5px dashed #d0c7b8;
  border-radius: 0.65rem;
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: #faf7f2;
}

.demo-fail-sheet__photo strong {
  display: block;
  font-size: 0.62rem;
  color: #3d342c;
}

.demo-fail-sheet__photo p {
  margin: 0.15rem 0 0;
  font-size: 0.5rem;
  font-weight: 650;
  color: #9a9184;
}

.demo-fail-sheet__photo.is-ready {
  border-style: solid;
  border-color: #fecaca;
  background: #fef2f2;
}

.demo-fail-sheet__photo.is-ready strong {
  color: #991b1b;
}

.demo-fail-sheet__save {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 0.35rem;
}

.demo-fail-sheet__save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-fail-sheet__save.is-pulse:not(:disabled) {
  animation: demo-fail-pulse 0.9s var(--ease) infinite;
}

.demo-fail-sheet__cancel {
  width: 100%;
  appearance: none;
  border: 1px solid #e4ddd2;
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  background: #fff;
  color: #6b6358;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: default;
}

@keyframes demo-coda-pulse {
  0%,
  100% {
    box-shadow: none;
  }
  40% {
    box-shadow: inset 0 0 0 1px rgb(153 27 27 / 0.35);
  }
}

.demo-tour__controls {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.demo-tour__btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.demo-tour__btn:hover {
  border-color: rgb(26 23 20 / 0.28);
  background: var(--cream-hi);
}

.demo-tour__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-tour__btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.demo-tour__btn--primary:hover:not(:disabled) {
  background: #2a241c;
  border-color: #2a241c;
}

.demo-tour__btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--stone);
  font-weight: 650;
}

.demo-tour__btn--ghost[aria-pressed='true'] {
  color: var(--gold-lo);
}

.demo-tour__btn[hidden] {
  display: none !important;
}

.demo-tour__note {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stone);
}

.demo-tour__cta {
  margin-top: 0.35rem;
  display: flex;
}

.feature-band--compact {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Sticky header sits above; pull hero up so atmosphere stays full-bleed under the bar */
  margin-top: -4.75rem;
  padding: 7.75rem 0 3.5rem;
  color: var(--on-dark);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgb(201 162 74 / 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgb(92 74 50 / 0.55), transparent 50%),
    linear-gradient(165deg, #1a1714 0%, #2a241c 42%, #1a1714 100%);
}

@media (max-width: 899px) {
  .hero {
    /* Leave room for the (dark) trust strip so hero + strip fill the first screen as
       one block. Content is anchored to the top, so a tall screen only ever adds space
       at the bottom — never an odd gap at the top. */
    min-height: calc(100vh - 9rem);
    min-height: calc(100svh - 9rem);
    justify-content: flex-start;
    padding-top: clamp(7rem, 4.75rem + 6svh, 9.5rem);
    padding-bottom: 2rem;
  }

  /* Dark cushion below the strip keeps the "For contractors…" line above the fold while
     ensuring the light section below never peeks in before scrolling. */
  .trust-strip {
    padding-bottom: 3.25rem;
  }
}

.hero__stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 960px) {
  .hero__stage {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: center;
  }
}

.hero__veil {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(245 241 234 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(245 241 234 / 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: veil-drift 28s linear infinite;
}

@keyframes veil-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

.hero__mark {
  position: absolute;
  right: clamp(-2rem, -4vw, 2rem);
  top: 12%;
  width: min(38vw, 18rem);
  opacity: 0.1;
  filter: brightness(1.4);
  animation: mark-in 1.2s var(--ease) both;
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.96);
  }
  to {
    opacity: 0.1;
    transform: none;
  }
}

.hero__phone {
  display: none;
  pointer-events: none;
  justify-self: end;
  transform: rotate(2.5deg);
  animation: phone-in 1.1s var(--ease) 0.25s both;
  -webkit-user-select: none;
  user-select: none;
}

@media (min-width: 960px) {
  .hero__phone {
    display: block;
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) rotate(2.5deg);
  }
  to {
    opacity: 1;
    transform: rotate(2.5deg);
  }
}

.hero__phone-frame {
  width: 11.5rem;
  padding: 0.55rem;
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #3a342c, #1a1714);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.45);
  border: 1px solid rgb(245 241 234 / 0.12);
}

.hero__phone-screen {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 9 / 16;
}

.tm {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
}

.mini-ui {
  padding: 0.85rem 0.7rem;
  color: var(--ink);
  font-size: 0.65rem;
  height: 100%;
  background: var(--cream);
}

.mini-ui__lockup {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.mini-ui__lockup img {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
}

.mini-ui__lockup strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mini-ui__lockup span {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--gold-lo);
}

.mini-ui__card {
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(26 23 20 / 0.04);
}

.mini-ui__title {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

.mini-ui__pills {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.mini-ui__pill {
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.5rem;
  width: fit-content;
}

.mini-ui__pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.mini-ui__pill--warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.hero__inner {
  position: relative;
  max-width: 36rem;
  animation: hero-copy 0.9s var(--ease) 0.1s both;
}

@keyframes hero-copy {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.35rem, 6.5vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero__tagline {
  margin: 0.85rem 0 0;
  max-width: 30rem;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgb(245 241 234 / 0.92);
}

.hero__lede {
  margin: 0.85rem 0 0;
  max-width: 30rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgb(245 241 234 / 0.78);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__actions--section {
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--gold-hi);
  box-shadow: 0 10px 22px rgb(201 162 74 / 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgb(245 241 234 / 0.28);
}

.btn--ghost:hover {
  border-color: rgb(245 241 234 / 0.55);
  background: rgb(245 241 234 / 0.06);
}

.btn--ghost-ink {
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost-ink:hover {
  border-color: var(--stone);
  background: rgb(26 23 20 / 0.04);
}

.section--cream .btn--primary,
.section--elevated .btn--primary {
  color: var(--ink);
}

.hero__beta {
  margin: 1.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(245 241 234 / 0.55);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}

.section--cream {
  background: var(--cream);
}

.section--elevated {
  background: var(--cream-hi);
  border-block: 1px solid var(--border);
}

/* Closing trio (Why / Trust / FAQ) — one measure, even rhythm */
.section--close {
  padding: clamp(3rem, 6vw, 4.25rem) 0;
}

.section--close + .section--close {
  border-top: 0;
}

.section--close.section--elevated {
  border-bottom: 0;
}

.section--close.section--cream {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__inner--close .section__title {
  max-width: 40rem;
}

.section__inner--close .contrast,
.section__inner--close .outcome-list,
.section__inner--close .faq,
.section__inner--close .trust-meta,
.section__inner--close .trust-copy,
.section__inner--close .hero__actions {
  max-width: none;
  width: 100%;
}

.section__inner--close .contrast {
  margin-top: 1.5rem;
}

.section__inner--close .outcome-list {
  margin-top: 1.25rem;
}

.section__inner--close .hero__actions--section {
  margin-top: 1.5rem;
}

.section__inner--close .faq {
  margin-top: 1.5rem;
}

.section__label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.section__title {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__lede {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.6;
}

/* Pain list */
.pain-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.pain-list li {
  position: relative;
  padding: 0 0 0 1.35rem;
  font-size: 1rem;
  font-weight: 550;
  color: var(--ink-soft);
  line-height: 1.45;
}

.pain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 2px;
  background: var(--gold-lo);
}

/* Showcase devices */
.showcase {
  display: grid;
  gap: 3rem;
  margin-top: 2.75rem;
  align-items: end;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: minmax(14rem, 18rem) 1fr;
    gap: 3rem;
  }
}

.showcase__item {
  margin: 0;
}

.showcase__item figcaption {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.45;
}

.showcase__item figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* Decorative product/PDF chrome — read as screenshots, not copy */
.device,
.feature-band__visual,
.paper-flip__frame,
.hero__phone-frame {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.device--phone {
  width: min(100%, 17.5rem);
  margin-inline: auto;
  padding: 0.65rem;
  border-radius: 1.75rem;
  background: linear-gradient(165deg, #2c2620, #12100e);
  box-shadow: 0 20px 40px rgb(26 23 20 / 0.18);
  border: 1px solid rgb(26 23 20 / 0.35);
  position: relative;
}

.device__screen {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 9 / 17.5;
  display: flex;
  flex-direction: column;
}

.device--laptop {
  width: 100%;
}

.device__bezel {
  padding: 0.65rem 0.65rem 0;
  border-radius: 0.85rem 0.85rem 0 0;
  background: #2a241c;
  border: 1px solid #3d342c;
  border-bottom: 0;
  box-shadow: 0 16px 40px rgb(26 23 20 / 0.12);
}

.device__screen--wide {
  aspect-ratio: 16 / 10;
  border-radius: 0.35rem 0.35rem 0 0;
}

.device__base {
  height: 0.7rem;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(180deg, #3a342c, #1a1714);
  border-radius: 0 0 0.5rem 0.5rem;
  position: relative;
}

.device__base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 42%;
  height: 0.55rem;
  background: #2a241c;
  border-radius: 0 0 0.65rem 0.65rem;
}

/* On small screens the laptop mock is too narrow for the desktop-tuned Console UI, so
   render it on a desktop-like canvas and scale it down as a faithful screenshot rather
   than letting the fixed text overflow and clip. Container units keep it fitting at any
   phone width. Desktop is unaffected. */
@media (max-width: 899px) {
  .device--laptop .device__screen--wide {
    container-type: inline-size;
    position: relative;
  }

  .device--laptop .console-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 200cqw;
    height: 125cqw; /* 200cqw * 10/16 to keep the 16:10 screen */
    transform: scale(0.5);
    transform-origin: top left;
  }
}

/* Field UI mock — stylised Field overview */
.field-ui {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  font-size: 0.68rem;
  color: var(--ink);
  background: var(--cream);
  overflow: hidden;
}

.field-ui__header {
  display: grid;
  grid-template-columns: 1.6rem 1fr 1.6rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid var(--border);
}

.field-ui__home,
.field-ui__sync {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  color: var(--ink-soft);
}

.field-ui__home svg,
.field-ui__sync svg,
.field-ui__nav svg {
  width: 0.95rem;
  height: 0.95rem;
}

.field-ui__title {
  margin: 0;
  text-align: center;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-ui__sync {
  color: var(--ok);
}

.field-ui__sync--pulse {
  animation: sync-pulse 2.4s var(--ease) infinite;
}

@keyframes sync-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(201 162 74 / 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgb(201 162 74 / 0.22);
  }
}

.field-ui__panel {
  margin: 0 0.75rem 0.55rem;
  padding: 0.65rem;
  border-radius: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(26 23 20 / 0.04);
}

.field-ui__panel-label {
  margin: 0 0 0.45rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-ui__status {
  display: grid;
  gap: 0.35rem;
}

.field-ui__card {
  padding: 0.5rem 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--cream-hi);
}

.field-ui__card span {
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--ink-soft);
  line-height: 1.3;
}

.field-ui__card--ok {
  border-color: #bbf7d0;
  background: var(--ok-bg);
}

.field-ui__card--ok span {
  color: #14532d;
}

.field-ui__card--warn {
  border-color: #e8d296;
  background: var(--warn-bg);
}

.field-ui__card--warn span {
  color: #5c4a32;
}

.field-ui__defects {
  margin: 0 0.75rem 0.55rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.85rem;
  border: 1px solid #fecaca;
  background: var(--due-bg);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.field-ui__defects strong {
  color: #7f1d1d;
  font-size: 0.72rem;
}

.field-ui__defects span {
  color: #9f1239;
  font-weight: 500;
  font-size: 0.58rem;
}

.field-ui__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.field-ui__checks li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--cream-hi);
  font-size: 0.6rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.field-ui__checks .check-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
}

.field-ui__checks .is-pass {
  border-color: #bbf7d0;
  background: var(--ok-bg);
  color: #14532d;
}

.field-ui__checks .is-pass .check-mark {
  background: var(--ok);
  color: #fff;
}

.field-ui__checks .is-pass .check-mark::before {
  content: '✓';
}

.field-ui__checks .is-fail {
  border-color: #fecaca;
  background: var(--due-bg);
  color: #7f1d1d;
}

.field-ui__checks .is-fail .check-mark {
  background: var(--due);
  color: #fff;
}

.field-ui__checks .is-fail .check-mark::before {
  content: '!';
}

.field-ui__nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.1rem;
  padding: 0.45rem 0.35rem 0.55rem;
  background: var(--ink);
  color: #9ca3af;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 700;
}

.field-ui__nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0;
}

.field-ui__nav .is-active {
  color: var(--gold);
}

/* Console UI mock — stylised Sites console */
.console-ui {
  height: 100%;
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.58rem;
}

.console-ui__nav {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0.7rem 0.55rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.console-ui__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.console-ui__brand img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  flex-shrink: 0;
}

.console-ui__brand strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.console-ui__brand span {
  display: block;
  font-size: 0.5rem;
  font-weight: 650;
  color: var(--gold-lo);
}

.console-ui__links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 650;
  color: var(--stone);
}

.console-ui__links span,
.console-ui__foot span {
  padding: 0.35rem 0.4rem;
  border-radius: 0.45rem;
}

.console-ui__links .is-active {
  background: var(--warn-bg);
  color: var(--gold-lo);
}

.console-ui__foot {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--muted);
  font-weight: 600;
}

.console-ui__main {
  padding: 0.65rem 0.75rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--cream);
}

.console-ui__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin: -0.65rem -0.75rem 0;
  padding: 0.55rem 0.75rem;
}

.console-ui__eyebrow {
  margin: 0;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.console-ui__top h3 {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.console-ui__org {
  font-weight: 600;
  color: var(--stone);
  font-size: 0.55rem;
  white-space: nowrap;
}

.console-ui__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.console-ui__summary div {
  padding: 0.4rem 0.35rem;
  border-radius: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.console-ui__summary strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

.console-ui__summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.console-ui__summary .is-due {
  background: var(--due-bg);
  border-color: #fecaca;
}

.console-ui__summary .is-warn {
  background: var(--warn-bg);
  border-color: #e8d296;
}

.console-ui__summary .is-ok {
  background: var(--ok-bg);
  border-color: #bbf7d0;
}

.console-ui__toolbar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.console-ui__search {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 550;
}

.console-ui__add {
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.console-ui__table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  overflow: hidden;
}

.console-ui__row {
  display: grid;
  grid-template-columns: 1.35fr 0.55fr 1.15fr 1.15fr;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
  font-weight: 600;
}

.console-ui__row--head {
  border-top: 0;
  background: var(--cream-hi);
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.console-ui__site {
  color: var(--gold-lo);
  font-weight: 700;
}

.tone {
  display: inline-flex;
  width: fit-content;
  font-size: 0.52rem;
  font-weight: 700;
}

.tone--ok {
  color: #15803d;
}

.tone--warn {
  color: #a16207;
}

.tone--due {
  color: #b91c1c;
}

/* Steps */
.steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: none;
}

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

.steps li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--ink);
  color: var(--gold-hi);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.55;
}

/* Features */
.feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list--grid {
  gap: 1.25rem 2rem;
}

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

  .feature-list--grid li:last-child {
    grid-column: 1 / -1;
    max-width: 28rem;
  }
}

.feature-list li {
  padding: 0 0 0 1.15rem;
  position: relative;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--gold);
  transform: rotate(45deg);
}

.feature-list strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* Sample paperwork — real PDF page flips */
.paper-samples {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 960px) {
  .paper-samples {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.paper-sample {
  margin: 0;
}

.paper-sample figcaption {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.45;
}

.paper-sample figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.paper-sample__pdf {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.paper-sample__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-top: 0.5rem;
}

.paper-flip {
  display: grid;
  gap: 0.75rem;
}

.paper-flip__frame {
  position: relative;
  background: #fff;
  border: 1px solid #d0c7b8;
  border-radius: 0.25rem;
  box-shadow: 0 16px 36px rgb(26 23 20 / 0.1);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.paper-sample:hover .paper-flip__frame {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 24px 48px rgb(26 23 20 / 0.16);
}

.paper-flip__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.paper-flip__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgb(26 23 20 / 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.paper-flip__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.paper-flip__meta {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--stone);
  text-align: center;
  flex: 1;
}

.paper-flip__nav {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--cream-hi);
  color: var(--ink);
  border-radius: 0.45rem;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 5.5rem;
}

.paper-flip__nav:hover:not(:disabled) {
  background: var(--cream);
  border-color: var(--ink-soft);
}

.paper-flip__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.paper-flip__nav:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Feature bands */
.feature-band {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.feature-band--cream {
  background: var(--cream);
}

.feature-band--elevated {
  background: var(--cream-hi);
  border-block: 1px solid var(--border);
}

.feature-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-band__inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.75rem;
  }

  .feature-band__inner--flip .feature-band__copy {
    order: 2;
  }

  .feature-band__inner--flip .feature-band__visual {
    order: 1;
  }
}

.feature-band__title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.feature-band__copy p {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.6;
}

.feature-band__list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.feature-band__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.feature-band__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--gold);
  transform: rotate(45deg);
}

.feature-band__list a {
  color: var(--gold-lo);
  font-weight: 700;
}

.feature-card {
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgb(26 23 20 / 0.06);
}

.feature-card__kicker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lo);
  margin-bottom: 0.45rem;
}

.feature-card > strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature-card__timer {
  font-size: 2rem !important;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.feature-card > p,
.feature-card__meta {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.45;
}

.feature-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.feature-card__progress {
  margin-top: 0.85rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgb(26 23 20 / 0.08);
  overflow: hidden;
}

.feature-card__progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold));
  transition: width 1.1s var(--ease);
}

.reveal.is-in .feature-card__progress-bar {
  width: var(--progress, 0%);
}

.feature-card--stack {
  padding: 0.65rem;
  display: grid;
  gap: 0.4rem;
}

.feature-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 650;
}

.feature-card__row--ok {
  background: var(--ok-bg);
  border-color: #bbf7d0;
  color: #14532d;
}

.feature-card__row--due {
  background: var(--due-bg);
  border-color: #fecaca;
  color: #7f1d1d;
}

.feature-card--docs {
  display: grid;
  gap: 0.55rem;
}

.feature-card--docs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--cream);
  border: 1px solid var(--border);
}

.feature-card--docs strong {
  font-size: 0.9rem;
}

.feature-card--docs span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stone);
}

.feature-card--defect {
  background: var(--due-bg);
  border-color: #fecaca;
}

.feature-card--defect strong {
  color: #7f1d1d;
}

.feature-card--defect p {
  color: #9f1239;
}

.feature-card--defect > span {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7f1d1d;
}

/* Old way vs Beacon */
.contrast {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .contrast {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.contrast__col {
  padding: 1.15rem 1.2rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contrast__col--beacon {
  border-color: #e8d296;
  background: var(--warn-bg);
}

.contrast__col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contrast__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.contrast__col li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-soft);
  line-height: 1.4;
}

.contrast__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 2px;
  background: var(--muted);
}

.contrast__col--beacon li::before {
  background: var(--gold-lo);
}

.outcome-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 36rem;
}

.outcome-list li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.925rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.outcome-list li::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.4em;
  border-radius: 999px;
  background: var(--gold-lo);
  flex-shrink: 0;
}

/* FAQ */
.faq {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 0 1rem;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  float: right;
  color: var(--gold-lo);
  font-weight: 700;
}

.faq__item[open] summary::after {
  content: '–';
}

.faq__item p {
  margin: 0 0 1rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.55;
}

/* Trust */
.trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.trust-meta span {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.trust-copy {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.85rem;
}

.trust-copy p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.6;
}

.trust-copy__link a {
  color: var(--gold-lo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cta-band {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--border);
  box-shadow: inset 0 3px 0 var(--gold);
}

.cta-band .section__title {
  max-width: none;
  margin-inline: auto;
}

.cta-band .section__lede {
  margin-inline: auto;
  color: var(--ink-soft);
}

.cta-band .hero__actions {
  justify-content: center;
}

.cta-band__note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--stone);
}

/* —— Legal / privacy —— */
.topbar--solid {
  position: static;
  background: #1a1714;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.legal {
  background: var(--cream);
  padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
}

.legal__inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}

.legal__title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.legal__meta {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--stone);
}

.legal__lede {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.6;
}

.legal__callout {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid #e8d296;
  background: var(--warn-bg);
}

.legal__callout strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.legal__callout ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}

.legal__toc {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.legal__toc strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.legal__toc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.legal__toc a {
  color: var(--gold-lo);
  text-decoration: none;
}

.legal__toc a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal__section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal__section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal__section h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.legal__section p,
.legal__section li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1.65;
}

.legal__section p {
  margin: 0 0 0.85rem;
}

.legal__section ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.legal__section a {
  color: var(--gold-lo);
  font-weight: 700;
}

.legal__table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal__table th,
.legal__table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.45;
}

.legal__table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream-hi);
}

.legal__table tr:last-child td {
  border-bottom: 0;
}

.legal__section code {
  font-size: 0.85em;
  word-break: break-word;
}

.legal__footnote {
  margin-top: 1.25rem !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

.legal__back {
  margin: 2.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.legal__back a {
  color: var(--gold-lo);
  text-decoration: none;
}

.legal__back a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* —— Footer —— */
.footer {
  padding: 2rem 0 2.5rem;
  background: #120f0d;
  color: rgb(245 241 234 / 0.55);
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  color: rgb(245 241 234 / 0.75);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: var(--gold-hi);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Live status dots */
.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgb(201 162 74 / 0.45);
  animation: live-pulse 2.2s var(--ease) infinite;
}

.live-dot--warn {
  background: var(--warn);
  box-shadow: 0 0 0 0 rgb(166 124 46 / 0.4);
  animation-name: live-pulse-warn;
}

.live-dot--due {
  background: var(--due);
  box-shadow: 0 0 0 0 rgb(153 27 27 / 0.35);
  animation-name: live-pulse-due;
}

.live-dot--gold {
  background: var(--gold-mid);
}

.feature-card__meta .live-dot {
  margin-top: 0.4rem;
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(201 162 74 / 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px rgb(201 162 74 / 0);
  }
}

@keyframes live-pulse-warn {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(166 124 46 / 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgb(166 124 46 / 0);
  }
}

@keyframes live-pulse-due {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(153 27 27 / 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgb(153 27 27 / 0);
  }
}

/* Staggered cascade for checklist / result rows */
.cascade-item {
  opacity: 0;
  transform: translateX(-0.45rem);
}

.reveal.is-in .cascade-item {
  animation: cascade-in 0.55s var(--ease) both;
}

.reveal.is-in .cascade-item:nth-child(1) {
  animation-delay: 0.12s;
}

.reveal.is-in .cascade-item:nth-child(2) {
  animation-delay: 0.28s;
}

.reveal.is-in .cascade-item:nth-child(3) {
  animation-delay: 0.44s;
}

.reveal.is-in .cascade-item:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes cascade-in {
  from {
    opacity: 0;
    transform: translateX(-0.45rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Cookie consent (UK PECR) —— */
.cookie-banner {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem var(--page-pad-x) calc(1rem + env(safe-area-inset-bottom));
  background: var(--cream-hi);
  color: var(--ink);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 32px rgb(26 23 20 / 0.12);
}

.cookie-banner[hidden] {
  display: none;
}

body.cookie-banner-visible {
  padding-bottom: 12rem;
}

@media (min-width: 48rem) {
  body.cookie-banner-visible {
    padding-bottom: 7.5rem;
  }
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}

.cookie-banner__copy {
  flex: 1 1 18rem;
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.cookie-banner__title:focus {
  outline: none;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cookie-banner__text a {
  color: var(--gold-lo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-banner__btn {
  appearance: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 10.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cookie-banner__btn--reject {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

.cookie-banner__btn--reject:hover {
  background: #2a241c;
  border-color: #2a241c;
}

.cookie-banner__btn--accept {
  background: var(--gold);
  color: var(--ink);
}

.cookie-banner__btn--accept:hover {
  background: var(--gold-hi);
}

@media (max-width: 40rem) {
  .cookie-banner__btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }
}

/* —— Resource / template pages (SEO landing) —— */
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.resource-landing {
  background: var(--cream);
}

/* Guide articles — continuous reading flow, not zebra section bands */
.resource-landing--article .resource-section,
.resource-landing--article .resource-section--alt {
  background: transparent;
  border: none;
}

.resource-landing--article .resource-toc {
  padding-bottom: 0.25rem;
}

.resource-landing--article .resource-section {
  padding: clamp(1.35rem, 3vw, 1.9rem) 0;
}

.resource-landing--article .resource-toc + .resource-section {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.resource-landing--article .resource-section + .resource-section {
  border-top: 1px solid var(--border);
}

.resource-landing--article .resource-section--alt .resource-which__col {
  background: var(--surface);
}

.resource-landing--article .resource-section--alt .resource-mistakes li {
  background: var(--surface);
}

.resource-landing__inner,
.resource-section__inner,
.resource-toc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}

.resource-breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--stone);
}

.resource-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.resource-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.resource-breadcrumb span[aria-hidden="true"] {
  margin: 0 0.4rem;
  opacity: 0.55;
}

.resource-updated {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--stone);
}

/* Light hero — template pages fit the first screen on desktop */
.resource-hero {
  padding: clamp(1.5rem, 4vh, 2.75rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.resource-hero .resource-landing__inner {
  width: 100%;
}

.resource-hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .resource-hero:has(.resource-hero__grid) {
    min-height: calc(100svh - 4.75rem);
    padding: 1.15rem 0;
    display: flex;
    align-items: center;
  }

  .resource-hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    width: 100%;
  }
}

.resource-hero__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.resource-hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.resource-hero__lede {
  margin: 0.95rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
}

.resource-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.resource-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.resource-chips span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--border);
}

.resource-hero__preview {
  padding: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  box-shadow: 0 14px 36px rgb(26 23 20 / 0.08);
}

.resource-hero__preview .paper-sample {
  margin: 0;
}

.resource-hero__preview .paper-flip {
  gap: 0.5rem;
}

.resource-hero__preview .paper-flip__frame {
  width: 100%;
  aspect-ratio: 210 / 297;
}

.resource-hero__preview .paper-flip__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 960px) {
  .resource-hero__preview {
    width: max-content;
    max-width: min(26rem, 38vw);
  }

  .resource-hero__preview .paper-flip__frame {
    --page-h: calc(100svh - 12.75rem);
    height: min(var(--page-h), calc(26rem * 297 / 210));
    width: min(calc(var(--page-h) * 210 / 297), 26rem);
    max-width: 100%;
    aspect-ratio: 210 / 297;
  }
}

.resource-hero__preview .paper-sample:hover .paper-flip__frame {
  transform: none;
  box-shadow: 0 16px 36px rgb(26 23 20 / 0.1);
}

.resource-hero--hub .resource-hub-cards {
  margin-top: 1.75rem;
}

/* Content sections */
.resource-section {
  padding: clamp(1.7rem, 3.8vw, 2.4rem) 0;
}

.resource-hero + .resource-section,
.resource-toc + .resource-section {
  padding-top: 1.5rem;
}

.resource-section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.resource-section--alt + .resource-section--alt {
  border-top: none;
}

.resource-section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.resource-section > .resource-section__inner > p,
.resource-section__lede {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
}

.resource-section a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.resource-section a:hover {
  color: var(--gold-lo);
}

.resource-section ul,
.resource-section ol {
  margin: 0 0 0.25rem;
  padding-left: 1.25rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.resource-section li + li {
  margin-top: 0.4rem;
}

.resource-toc {
  padding-top: 0.85rem;
  padding-bottom: 0;
}

.resource-toc__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.resource-toc__box strong {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.resource-toc__box ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-toc__box a {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.resource-toc__box a:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
  background: var(--cream-hi);
}

/* What's included cards */
.resource-included {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  .resource-included {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .resource-included--5 {
    grid-template-columns: repeat(6, 1fr);
  }

  .resource-included--5 > :nth-child(-n + 3) {
    grid-column: span 2;
  }

  .resource-included--5 > :nth-child(4) {
    grid-column: 2 / span 2;
  }

  .resource-included--5 > :nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.resource-included__card {
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.resource-section--alt .resource-included__card {
  background: var(--cream);
}

.resource-included__card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.resource-included__card p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--stone);
}

/* Mistakes list */
.resource-mistakes {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.resource-mistakes li {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.resource-section--alt .resource-mistakes li {
  background: var(--cream);
}

.resource-mistakes strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.resource-mistakes p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Comparison table */
.resource-compare {
  margin: 1.25rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 14px 36px rgb(26 23 20 / 0.06);
}

.resource-compare table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

.resource-compare th,
.resource-compare td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  vertical-align: middle;
}

.resource-compare thead th {
  padding: 1.05rem 1.15rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.resource-compare thead th:first-child {
  width: 28%;
}

.resource-compare thead .resource-compare__spotlight {
  background: linear-gradient(180deg, #f8edd6 0%, #f3e4bf 100%);
  box-shadow: inset 0 3px 0 var(--gold);
}

.resource-compare__badge {
  display: block;
  width: fit-content;
  margin: 0 0 0.35rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: var(--ink);
}

.resource-compare tbody th {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream-hi);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.resource-compare tbody td {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}

.resource-compare tbody .resource-compare__spotlight {
  background: rgb(201 162 74 / 0.1);
  color: var(--ink);
  font-weight: 650;
}

.resource-compare tbody tr:last-child th,
.resource-compare tbody tr:last-child td {
  border-bottom: none;
}

.resource-compare__cell {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.resource-compare__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.resource-compare__icon--yes {
  background: rgb(201 162 74 / 0.22);
  color: var(--gold-lo);
}

.resource-compare__icon--no {
  background: rgb(26 23 20 / 0.07);
  color: var(--stone);
}

/* Hub cards */
.resource-hub-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .resource-hub-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.resource-hub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgb(26 23 20 / 0.06);
}

.resource-hub-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.resource-hub-card__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.resource-hub-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.25rem 1.35rem;
}

.resource-hub-card__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.resource-hub-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.resource-hub-card__title a {
  color: inherit;
  text-decoration: none;
}

.resource-hub-card__title a:hover {
  color: var(--gold-lo);
}

.resource-hub-card__text {
  flex: 1;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--stone);
}

.resource-hub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.resource-hub-card__actions .btn {
  font-size: 0.88rem;
  padding: 0.72rem 1.1rem;
}

.resource-which {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .resource-which {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.resource-which__col {
  padding: 1.25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
}

.resource-section--alt .resource-which__col {
  background: var(--cream);
}

.resource-which__col h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.resource-which__col p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--stone);
}

.resource-which__col a {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Main CTA — last section */
.resource-cta {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: inset 0 3px 0 var(--gold);
}

.resource-cta__inner {
  display: grid;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
  align-items: center;
}

@media (min-width: 800px) {
  .resource-cta__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 2.5rem;
  }
}

.resource-cta__copy {
  min-width: 0;
}

.resource-cta__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.resource-cta h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.resource-cta__lede {
  margin: 0.7rem 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.resource-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 800px) {
  .resource-cta__actions {
    justify-content: flex-end;
  }
}

.resource-cta__note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--stone);
}

@media (min-width: 800px) {
  .resource-cta__note {
    text-align: right;
  }
}

.resource-section .faq {
  margin-top: 1rem;
}

/* ── Guide articles (editorial layout) ── */
.guide-page {
  background: var(--surface);
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3rem, 7vw, 4.5rem);
}

.guide-page__shell {
  max-width: var(--guide-measure);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

.guide-article__breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone);
}

.guide-article__breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.guide-article__breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.guide-article__breadcrumb span[aria-hidden="true"] {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.guide-article__header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.guide-article__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.9rem;
}

.guide-pill {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: var(--ink);
}

.guide-pill--paperwork {
  background: linear-gradient(135deg, #3d342c 0%, var(--ink) 100%);
}

.guide-pill--register {
  background: linear-gradient(135deg, #4a4036 0%, #2a241f 100%);
}

.guide-article__meta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone);
}

.guide-article__intro {
  margin: 1.35rem 0 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
}

.guide-article__intro + .guide-article__intro {
  margin-top: 1rem;
}

.guide-figure {
  margin: 1.75rem 0 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.guide-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.guide-toc {
  margin: 2rem 0 0;
  padding: 1.15rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--cream-hi);
}

.guide-toc__label {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guide-toc a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--gold-lo);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.guide-article__body {
  margin-top: 2.25rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
}

.guide-article__body h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.guide-article__body h2:first-child {
  margin-top: 0;
}

.guide-article__body p {
  margin: 0 0 1rem;
}

.guide-article__body p:last-child {
  margin-bottom: 0;
}

.guide-article__body ul,
.guide-article__body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.guide-article__body li + li {
  margin-top: 0.45rem;
}

.guide-article__body li strong {
  color: var(--ink);
  font-weight: 600;
}

.guide-article__body a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.guide-article__body a:hover {
  color: var(--gold-lo);
}

.guide-glance {
  display: grid;
  gap: 0.75rem;
  margin: 1.15rem 0 1.25rem;
}

@media (min-width: 520px) {
  .guide-glance {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-glance__col {
  padding: 1rem 1.05rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--cream-hi) 0%, var(--surface) 100%);
}

.guide-glance__col--annual {
  border-color: rgb(201 162 74 / 0.35);
  box-shadow: inset 0 3px 0 var(--gold);
}

.guide-glance__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.guide-glance__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.guide-glance__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--stone);
}

.guide-table-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 22px rgb(26 23 20 / 0.04);
}

.guide-table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.guide-table th,
.guide-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.guide-table thead th {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #f8edd6 0%, #f3e4bf 100%);
  border-bottom: 2px solid rgb(201 162 74 / 0.35);
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: none;
}

.guide-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  background: var(--cream-hi);
}

.guide-download {
  display: grid;
  gap: 1rem;
  margin: 1.15rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--cream-hi);
  align-items: center;
}

@media (min-width: 520px) {
  .guide-download {
    grid-template-columns: 7.5rem 1fr;
  }
}

.guide-download__thumb {
  display: block;
  width: 100%;
  max-width: 7.5rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  box-shadow: 0 6px 16px rgb(26 23 20 / 0.08);
}

.guide-download__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.guide-download__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.guide-download__text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--stone);
}

.guide-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guide-download .btn {
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
}

.guide-aside {
  margin: 1.5rem 0;
  padding: 1.15rem 1.2rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 0.65rem 0.65rem 0;
  background: linear-gradient(90deg, rgb(201 162 74 / 0.12) 0%, var(--cream-hi) 28%);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}

.guide-aside__label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.guide-aside p {
  margin: 0;
}

.guide-aside p + p {
  margin-top: 0.65rem;
}

.guide-aside a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.guide-aside a:hover {
  color: var(--gold-lo);
}

.guide-faq {
  margin-top: 2.75rem;
  padding: 1.5rem 1.2rem;
  border-radius: 0.75rem;
  background: var(--cream-hi);
  border: 1px solid var(--border);
}

.guide-faq > h2,
.guide-more > h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.guide-faq__item {
  margin: 0 0 1.35rem;
}

.guide-faq__item:last-child {
  margin-bottom: 0;
}

.guide-faq__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.guide-faq__item p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}

.guide-more {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.guide-more__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .guide-more__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-more__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.guide-more__card:hover {
  border-color: rgb(201 162 74 / 0.45);
  box-shadow: 0 10px 28px rgb(26 23 20 / 0.08);
  transform: translateY(-2px);
}

.guide-more__card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.guide-more__card-body {
  padding: 0.95rem 1rem 1.05rem;
}

.guide-more__card-meta {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.guide-more__card-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.guide-more__card-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--stone);
}

.guide-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--cream-hi);
  box-shadow: inset 0 3px 0 var(--gold);
}

.guide-cta__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

.guide-cta h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.guide-cta__lede {
  margin: 0.65rem 0 0;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}

.guide-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.guide-cta__actions .btn {
  font-size: 0.9rem;
  padding: 0.72rem 1.15rem;
}

.guide-cta__note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stone);
}

.resource-download-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone);
}

/* Guide hub — text cards (no PDF thumb) */
.resource-hub-cards--guides {
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .resource-hub-cards--guides {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .resource-hub-cards--guides {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.resource-hub-card--text .resource-hub-card__body {
  padding-top: 1.35rem;
}

/* Guide hub cards use standard thumb layout (see .resource-hub-card__thumb) */

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

.resource-read-next {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

.resource-section--alt .resource-read-next {
  background: var(--surface);
}

.resource-read-next strong {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-lo);
}

/* —— 404 —— */
body:has(.error-page) {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 8vh, 5rem) 0 3.5rem;
  background: var(--cream);
}

.error-page__inner {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
  text-align: center;
}

.error-page__art {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  margin: 0 auto 1.15rem;
  color: var(--gold-lo);
}

.error-page__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.error-page__lede {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
