@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/figtree/figtree-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/figtree/figtree-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/figtree/figtree-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/figtree/figtree-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/figtree/figtree-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/figtree/figtree-latin-900-normal.woff2') format('woff2');
}

:root {
  /* Deep navy and cream with one bright action, the way established trade
     software looks; the blues are the Contractor Marketing app's own. */
  --navy: #0e2742;
  --navy-2: #163556;
  --cream: #f5f7f9;
  --paper: #f5f7f9;
  --paper-2: #eef1f4;
  --paper-3: #eef1f4;
  --card: #ffffff;
  --ink: #0e2742;
  --ink-2: #263a52;
  --ink-3: #4b5a6b;
  --muted: #66707c;
  --line: #dfe4ea;
  --field-line: #8a96a3;
  --line-soft: #e9edf1;
  --accent: #2a5382;
  --accent-hover: #1f4268;
  --accent-soft: #e9eff7;
  --accent-on-dark: #8cbff2;
  --bright: #8cbff2;
  --bright-hover: #a9d0f6;
  --hivis: var(--accent);
  --hivis-deep: var(--accent-hover);
  --hivis-soft: var(--accent-soft);
  --blue: #2a5382;
  --blue-soft: #eef1f4;
  --star: #2a5382;
  --ok: #1a6349;
  --ok-soft: #e3f0e9;
  --danger: #b3261e;
  --danger-soft: #fae6e4;
  --warn-soft: #f5f7f9;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-hard: 0 1px 2px rgba(14, 39, 66, 0.06);
  --shadow-card: 0 1px 2px rgba(14, 39, 66, 0.05);
  --font-display: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  line-height: 1.1;
  color: var(--ink);
}

h1,
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

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

h3,
.h3 {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
}

.h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.9em;
}

hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 1rem 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.site-header :focus-visible,
.hero :focus-visible,
.section-ink :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.admin-nav :focus-visible,
.page-head-ink :focus-visible {
  outline-color: var(--accent-on-dark);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

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

main:focus {
  outline: none;
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  fill: currentColor;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.narrow {
  max-width: 820px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.nowrap {
  white-space: nowrap;
}

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

.lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.center-text .lede {
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0 0 0.6rem;
}

.kicker-hivis {
  color: var(--accent-on-dark);
}

.row {
  display: flex;
  align-items: center;
}

.gap-s {
  gap: 0.6rem;
}

.center {
  justify-content: center;
}

.wrap-row {
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.stack-l {
  display: grid;
  gap: 1.6rem;
  align-content: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr;
  gap: 0.9rem 1rem;
}

.inline {
  display: inline;
}

.demo-banner {
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line-soft);
}

.demo-banner .wrap {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.demo-banner strong {
  font-weight: 700;
  margin-right: 0.35rem;
  color: var(--accent);
}

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 22.5%;
}



.brand-word {
  display: inline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-top {
  margin-right: 0.24em;
}

.brand-bottom {

}

.header-search {
  display: flex;
  flex: 1;
  max-width: 480px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid transparent;
}

.header-search:focus-within {
  border-color: var(--accent);
  background: #fff;
}

.header-search input {
  border: 0;
  padding: 0.55rem 0.9rem;
  min-width: 0;
  flex: 1;
  background: transparent;
  color: var(--ink);
}

.header-search input + label + input {
  border-left: 1px solid var(--line);
  flex: 0.8;
}

.header-search input:focus {
  outline: none;
}

.header-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}


.nav-form {
  margin: 0;
}

.nav-link-button {
  background: none;
  border: 0;
  cursor: pointer;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 600;
}

.flash {
  border-bottom: 1px solid var(--line-soft);
  animation: flash-in 0.35s ease-out;
}

.flash-success {
  background: var(--ok-soft);
}

.flash-info {
  background: var(--blue-soft);
}

.flash-error {
  background: var(--danger-soft);
}

.flash-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.flash-row p {
  margin: 0;
  flex: 1;
  font-weight: 600;
}

.flash-close {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3rem;
}

@keyframes flash-in {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  color: var(--btn-fg);
  border-color: var(--ink-3);
}

.btn:active {
  transform: none;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-hivis {
  --btn-bg: var(--pop);
  --btn-fg: #fff;
  border-color: var(--pop);
}

.btn-hivis:hover {
  --btn-bg: var(--pop-hover);
  --btn-fg: #fff;
  border-color: var(--pop-hover);
}

.btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  border-color: var(--ink);
}

.btn-ink:hover {
  --btn-bg: var(--ink-2);
}

.btn-danger {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
}

.btn-ghost {
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover {
  box-shadow: none;
  background: var(--paper-2);
}

.btn-ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.btn-ghost-light:hover {
  box-shadow: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 0.42rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

.btn-sm:hover {
  border-color: var(--ink-3);
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 600;
}

.linklike.danger,
.danger {
  color: var(--danger);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  border-bottom-color: var(--ink);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip.is-on .icon-star {
  color: #fff;
}

.chip.is-static {
  cursor: default;
  background: transparent;
}

.chip.is-static:hover {
  border-color: var(--line);
  color: var(--ink-2);
}

.chip-quiet {
  border-color: transparent;
  background: transparent;
}

.chip-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding-left: 0.3rem;
  border-left: 1px solid currentColor;
  opacity: 0.8;
}

.icon-star {
  width: 0.9em;
  height: 0.9em;
  color: var(--star);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card);
  line-height: 1.3;
  text-decoration: none;
}

.badge .icon {
  width: 1.05em;
  height: 1.05em;
}

.badge-muted {
  background: var(--paper-2);
  border-color: transparent;
}

.badge-ok {
  background: var(--ok-soft);
  border-color: transparent;
  color: var(--ok);
}

.badge-ink {
  background: var(--paper-2);
  border-color: transparent;
  color: var(--ink);
}

.badge-blue {
  background: var(--paper-2);
  border-color: transparent;
  color: var(--ink-2);
}

.badge-danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger);
}

.badge-dashed {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

a.badge-dashed:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.badge-demo {
  background: var(--paper-2);
  border-color: transparent;
  color: var(--muted);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  color: var(--ok);
  background: var(--ok-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0.3rem;
}

.stamp .icon {
  width: 1em;
  height: 1em;
}

.stamp-mini {
  font-size: 0.78rem;
  margin: 0 0.3rem 0 0;
}

.stamp-big {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px -10px rgba(26, 99, 73, 0.6);
}

.stars {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}

.stars > svg {
  display: block;
  overflow: visible;
}

.stars-sm > svg {
  width: 96px;
  height: 18px;
}

.stars-md > svg {
  width: 128px;
  height: 24px;
}

.stars-lg > svg {
  width: 192px;
  height: 36px;
}

.star-empty {
  fill: #e4dccb;
  stroke: #c9bea6;
  stroke-width: 0.8;
}

.star-full {
  fill: var(--star);
  stroke: none;
}

.bar {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 3px;
  overflow: hidden;
}

.bar-track {
  fill: var(--paper-2);
}

.bar-fill {
  fill: var(--hivis);
}

.bar-ink .bar-fill {
  fill: var(--ink-2);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hs-field {
  display: grid;
  padding: 0.35rem 0.8rem;
  color: var(--ink);
}

.hs-field + .hs-field {
  border-left: 1px solid var(--line);
}

.hs-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.hs-field input {
  border: 0;
  padding: 0.15rem 0;
  font-size: 1.05rem;
  background: transparent;
  min-width: 0;
}

.hs-field input:focus {
  outline: none;
}

.hs-field:focus-within label {
  color: var(--blue);
}

.hs-field:focus-within {
  box-shadow: inset 0 -3px 0 var(--blue);
}

.dim-text {
  fill: var(--hivis);
  stroke: none;
  font-family: var(--font-mono);
  font-size: 12px;
  text-anchor: middle;
  letter-spacing: 0.1em;
}

.ticket-line,
.review-ticket {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-tight {
  padding-top: 1.5rem;
}

.section-alt {
  background: var(--paper-2);
}

.section-ink {
  background: var(--ink);
  color: #fff;
}

.section-ink h2,
.section-ink h3 {
  color: #fff;
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin: 0;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-cta {
  margin: 2rem 0 0;
}

.trade-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
}

.trade-tile {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.3rem;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.trade-tile:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.trade-icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.trade-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.05;
}

.trade-blurb {
  font-size: 0.88rem;
  color: var(--ink-3);
}

.trade-count {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.principles,
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.principles li {
  border-top: 0;
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
}

.principles p {
  color: var(--ink-3);
  font-size: 0.97rem;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.steps .principle-num {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.steps p {
  color: var(--ink-3);
  font-size: 0.97rem;
  margin: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.mini-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.mini-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  height: 100%;
  transition: border-color 0.15s, transform 0.15s;
}

.mini-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--ink);
}

.mini-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.mini-name {
  font-weight: 700;
  line-height: 1.2;
}

.mini-score {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mini-score strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-band p {
  color: #c7d0da;
  max-width: 56ch;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.page-head {
  padding: clamp(1.8rem, 4vw, 3rem) 0 1.4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
  margin-bottom: 0.3rem;
}

.page-head p {
  margin: 0.2rem 0 0;
}

.page-head-slim {
  padding-bottom: 1rem;
}

.page-head-ink {
  background: var(--ink);
  color: #fff;
  border-bottom: 0;
}

.page-head-ink h1 {
  color: #fff;
}

.page-head-ink .lede {
  color: #d5dde7;
  margin-bottom: 1.4rem;
}

.page-head-dash {
  padding-bottom: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.crumbs a {
  color: var(--ink-3);
}

.search-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2rem;
  padding-top: 1.6rem;
  padding-bottom: 3rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 16px;
}

.filters-details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.2rem;
}

.filters-details > summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0.6rem;
}

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

.filter-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend,
.group > legend,
.rate-input > legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
}

.field input[type='text'],
.field input[type='email'],
.field input[type='password'],
.field input[type='search'],
.field input[type='tel'],
.field input[type='url'],
.field input[type='number'],
.field input[type='month'],
.field input[type='date'],
.field select,
.field textarea,
.admin-filter input,
.admin-filter select,
.review-filters select,
.sort-form select,
.select-sm,
.input-sm,
.copy-field {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-filter input:focus,
.admin-filter select:focus,
.review-filters select:focus,
.review-filters input:focus,
.sort-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input[type='file'] {
  padding: 0.5rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  width: 100%;
}

.field-hint {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
}

.field-hint.warn {
  color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--danger) !important;
}

.radio-list,
.check-list {
  display: grid;
  gap: 0.35rem;
}

.radio-list label,
.check-list label,
.check label,
.check-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.4;
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--ink);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  flex: none;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.results-bar p {
  margin: 0;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.sort-form select {
  width: auto;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
}

.result-list {
  display: grid;
  gap: 0.9rem;
}

.result {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 150px;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.result:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}

.result-monogram,
.profile-monogram {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
  text-decoration: none;
  flex: none;
}

.mini-card .result-monogram,
.contractor-mini .result-monogram {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

/* Initials sit on one quiet grey, whatever the name. */
.tone-0, .tone-1, .tone-2, .tone-3, .tone-4, .tone-5, .tone-6, .tone-7 { background: var(--paper-2); color: var(--ink); }

.result-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  margin: 0;
  line-height: 1.05;
}

.result-name a {
  color: var(--ink);
  text-decoration: none;
}

.result-name a:hover {
  text-decoration: underline;
  text-decoration-color: var(--hivis);
  text-decoration-thickness: 3px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  color: var(--ink-3);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.result-snippet {
  margin: 0.8rem 0 0;
  border-left: 3px solid var(--star);
  background: var(--paper);
  border-radius: 0 4px 4px 0;
  padding: 0.7rem 0.9rem;
}

.result-snippet p {
  margin: 0 0 0.2rem;
  color: var(--ink-2);
}

.result-snippet footer {
  font-size: 0.8rem;
  color: var(--muted);
}

.result-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.score-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 0.9;
}

.verified-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
}

.empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

.empty p {
  color: var(--ink-3);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 0.8rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.6rem 0 0;
  justify-content: center;
}

.page-link {
  min-width: 2.4rem;
  text-align: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.page-link:hover {
  border-color: var(--accent);
}

.page-link.is-current {
  background: var(--ink);
  color: var(--accent-on-dark);
  border-color: var(--accent);
}

.page-gap {
  padding: 0.4rem 0.2rem;
  color: var(--muted);
}

.how-ranked {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: 0.92rem;
}

.how-ranked .icon {
  color: var(--blue);
  width: 1.5em;
  height: 1.5em;
}

.how-ranked p {
  margin: 0;
}

.profile-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.6rem 0 2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
}

.profile-id {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.profile-monogram {
  width: 88px;
  height: 88px;
  font-size: 2.2rem;
  border-radius: 22px;
}

.profile-name {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin-bottom: 0.3rem;
}

.profile-tagline {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin: 0 0 0.4rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  color: var(--ink-3);
  font-size: 0.93rem;
  margin: 0 0 0.6rem;
}

.trade-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trade-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.trade-chips a:hover {
  background: var(--accent-soft);
}

.score-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
}

.score-top {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.score-top p {
  margin: 0;
}

.score-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.6rem;
  line-height: 0.8;
  letter-spacing: -0.01em;
}

.score-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  margin-top: 0.2rem !important;
}

.score-empty {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0;
}

.trend {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--paper);
}

.trend.up {
  background: var(--ok-soft);
  color: var(--ok);
}

.trend.down {
  background: var(--danger-soft);
  color: var(--danger);
}

.score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.score-actions .inline {
  display: contents;
}

.claim-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1.5px dashed var(--line);
  font-size: 0.9rem;
}

.claim-note .icon {
  width: 1.5em;
  height: 1.5em;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  align-items: start;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.review-filters {
  display: grid;
  gap: 0.7rem;
  margin: 0.6rem 0 1.2rem;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.star-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.review-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
}

.search-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: #fff;
}

.search-inline:focus-within {
  border-color: var(--accent);
}

.search-inline input {
  border: 0;
  flex: 1;
  min-width: 0;
  background: transparent;
  padding: 0.15rem 0;
}

.search-inline input:focus {
  outline: none;
}

.check-inline {
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
}

.select-inline select {
  width: auto;
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
}

.review-list {
  display: grid;
  gap: 1rem;
}

.review {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.4rem 1rem;
  scroll-margin-top: 90px;
}

.review.is-verified {
  border-left: 1px solid var(--line-soft);
}

.review:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--hivis);
}

.review-ticket {
  margin-bottom: 0.8rem;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
  color: var(--ink);
}

.review-who {
  display: grid;
  line-height: 1.3;
  min-width: 0;
  flex: 1;
}

.review-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  align-self: flex-start;
}

.review-about {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
}

.review-about a {
  font-weight: 700;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.rating-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.review-title {
  font-size: 1.2rem;
  margin: 0.4rem 0 0.35rem;
  line-height: 1.25;
}

.review-title a {
  color: var(--ink);
  text-decoration: none;
}

.review-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--hivis);
  text-decoration-thickness: 3px;
}

.review-body p {
  margin: 0 0 0.6em;
  color: var(--ink-2);
}

.review-compact .review-body p {
  font-size: 0.95rem;
}

.review-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8rem 1.5rem;
  margin: 0.8rem 0 0.4rem;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border-radius: 10px;
}

.subscores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.35rem 1.4rem;
  margin: 0;
  flex: 1 1 360px;
}

.subscores > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.subscores dt {
  font-size: 0.84rem;
  color: var(--ink-3);
}

.subscores dd {
  margin: 0;
}

.pips {
  display: inline-flex;
  gap: 3px;
}

.pips i {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: var(--paper-3);
}

.pips i.on {
  background: var(--ink-2);
}

.hire-again {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.hire-again.yes {
  color: var(--ok);
}

.hire-again.no {
  color: var(--danger);
}

.photo-strip {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0.4rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.photo-strip img {
  width: 132px;
  height: 99px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform 0.15s;
}

.photo-strip a:hover img {
  transform: scale(1.03);
  border-color: var(--accent);
}

.review-update {
  margin: 0.8rem 0 0.2rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--ink-3);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
}

.review-update p {
  margin: 0 0 0.4rem;
}

.review-update p:last-child {
  margin: 0;
}

.review-update .kicker::before,
.owner-reply .kicker::before {
  display: none;
}

.owner-reply {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 0.9rem 1rem;
}

.owner-reply p {
  margin: 0 0 0.45rem;
  color: var(--ink-2);
}

.owner-reply p:last-child {
  margin: 0;
}

.owner-reply .kicker {
  color: var(--ink);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin: 0.8rem 0;
  font-size: 0.93rem;
  border: 1.5px solid transparent;
}

.notice .icon {
  margin-top: 0.1rem;
  width: 1.25em;
  height: 1.25em;
}

.notice-dispute,
.notice-warn {
  background: var(--paper);
  border-color: var(--line);
}

.notice-danger {
  background: var(--danger-soft);
  border-color: #efbab5;
  color: #7a1b15;
}

.notice-info {
  background: var(--paper);
  border-color: var(--line);
}

.reply-box {
  margin-top: 0.9rem;
  border: 1.5px dashed var(--ink-3);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}

.reply-box summary {
  cursor: pointer;
  font-weight: 700;
}

.reply-box[open] summary {
  margin-bottom: 0.6rem;
}

.reply-box textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1.5px dashed var(--line);
}

.review-actions form {
  margin: 0;
}

.profile-side,
.form-aside,
.single-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  color: var(--ink);
}

.side-card p:last-child {
  margin-bottom: 0;
}

.side-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 0 0 0.8rem;
}

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

.dist a,
.dist-wide li {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
}

.dist a:hover .bar-fill {
  fill: var(--hivis-deep);
}

.dist-n {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.scorecard {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.scorecard > div {
  display: grid;
  gap: 0.2rem;
}

.scorecard dt {
  font-size: 0.86rem;
  font-weight: 600;
}

.scorecard dd {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 0.6rem;
}

.scorecard dd span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: right;
}

.fact {
  margin: 0.4rem 0;
  font-size: 0.93rem;
}

.fact strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

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

.side-transparency .plain-list li {
  font-size: 0.9rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--paper-3);
}

.contact-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
}

.contact-list > div {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.contact-list dt {
  color: var(--ink-3);
}

.contact-list dd {
  margin: 0;
  font-size: 0.93rem;
}

.demo-note {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--paper-2);
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.area-list li {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.88rem;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  padding-top: 1.6rem;
  padding-bottom: 3.5rem;
  align-items: start;
}

.manage {
  margin-top: 2rem;
}

.manage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.manage-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.manage-card h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}

.contractor-mini {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
}

.contractor-mini > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.contractor-mini:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  padding-top: 1.6rem;
  padding-bottom: 3.5rem;
  align-items: start;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

.group {
  border: 0;
  border-top: 1.5px dashed var(--line);
  padding: 1.1rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.group > legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0 0.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
}

.group-proof {
  background: var(--blue-soft);
  border: 1.5px solid #c3d4ec;
  border-radius: var(--radius);
  padding: 1rem;
}

.group-proof > legend {
  background: var(--blue-soft);
  padding: 0 0.5rem;
  border-radius: 6px;
}

.group-proof p {
  margin: 0;
}

.rate-input {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.rate-input > legend {
  margin-bottom: 0.4rem;
}

.rate-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rate-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rate-stars label {
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  line-height: 0;
}

.rate-stars label svg {
  width: 26px;
  height: 26px;
  fill: #e4dccb;
  stroke: #c9bea6;
  stroke-width: 0.8;
  transition: transform 0.12s ease, fill 0.12s ease;
}

.rate-lg .rate-stars label svg {
  width: 46px;
  height: 46px;
}

.rate-stars:not(:hover):has(input:nth-of-type(1):checked) label:nth-of-type(-n + 1) svg,
.rate-stars:not(:hover):has(input:nth-of-type(2):checked) label:nth-of-type(-n + 2) svg,
.rate-stars:not(:hover):has(input:nth-of-type(3):checked) label:nth-of-type(-n + 3) svg,
.rate-stars:not(:hover):has(input:nth-of-type(4):checked) label:nth-of-type(-n + 4) svg,
.rate-stars:not(:hover):has(input:nth-of-type(5):checked) label:nth-of-type(-n + 5) svg,
.rate-stars label:not(.rate-clear):hover svg,
.rate-stars label:not(.rate-clear):has(~ label:not(.rate-clear):hover) svg {
  fill: var(--hivis);
  stroke: none;
}

.rate-stars label:not(.rate-clear):hover svg {
  transform: scale(1.1);
}

.rate-stars input:focus-visible + label {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
}

.rate-clear {
  line-height: 1.2 !important;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.2rem 0.5rem !important;
  margin-left: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px !important;
}

.rate-clear-input:checked + .rate-clear {
  background: var(--paper-2);
  color: var(--ink);
}

.rate-input.has-error .rate-stars {
  outline: 2px solid var(--danger);
  outline-offset: 4px;
  border-radius: 6px;
}

.subscore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.subscore-grid .rate-input > legend {
  font-size: 0.9rem;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--paper-2);
  border-radius: 12px;
  width: fit-content;
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 0.45rem 1.05rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 9px;
  color: var(--ink-3);
}



.segmented input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.12);
}

.segmented input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--accent-soft), 0 1px 3px rgba(10, 22, 40, 0.12);
}

.check {
  padding: 0.8rem 0.9rem;
  background: var(--paper);
  border-radius: 10px;
}

.check label {
  font-size: 0.93rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.45rem;
}

.check-tile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  background: #fff;
}

.check-tile:has(input:checked) {
  border-color: var(--accent);
  background: var(--hivis-soft);
}

.check-tile input {
  margin: 0;
}

.copy-field {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-width: 220px;
  cursor: copy;
}

.quoted-review {
  margin: 0;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-3);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quoted-title {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.quoted-review p:last-child {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
}

.auth {
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  background: var(--paper-2);
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.auth-card .notice {
  margin-top: 0;
}

.auth-card > p {
  margin-top: 1rem;
}

.auth-mark {
  width: 60px;
  height: 60px;
  margin-bottom: 0.6rem;
}

.error-page {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.error-code {
  color: var(--accent);
}

.tabs {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  margin-top: 1rem;
  scrollbar-width: none;
}

.tabs a {
  padding: 0.6rem 0.9rem;
  border-bottom: 3px solid transparent;
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.tabs a:hover {
  color: var(--ink);
}

.tabs a.is-active {
  color: var(--ink);
  border-bottom-color: var(--hivis);
}

.tab-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--paper-2);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  color: var(--ink-2);
}

.tabs-sm {
  margin-top: 0.6rem;
}

.tabs-sm a {
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.6rem;
  padding-top: 1.6rem;
  padding-bottom: 3.5rem;
  align-items: start;
}

.dash-single {
  padding-top: 1.6rem;
  padding-bottom: 3.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}

.stat dt {
  font-size: 0.83rem;
  color: var(--ink-3);
  font-weight: 600;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
}

.stat-row-wide .stat {
  flex-direction: column;
}

.stat-row-wide .stat dt {
  order: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.panel-hivis {
  background: var(--hivis-soft);
  border-color: var(--hivis);
}

.panel-danger {
  border-color: #efbab5;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.panel-head .h2 {
  margin: 0;
}

.panel-head .h2 a {
  color: var(--ink);
  text-decoration: none;
}

.nudge-list,
.notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.nudge-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

.notif-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.notif-list li:last-child {
  border-bottom: 0;
}

.notif-list li > div {
  display: grid;
  gap: 0.1rem;
}

.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.5rem;
  background: var(--paper-3);
  flex: none;
}

.notif-list .is-unread .notif-dot {
  background: var(--hivis-deep);
  box-shadow: 0 0 0 3px var(--hivis-soft);
}

.notif-list .is-unread a {
  font-weight: 700;
}

.dash-review {
  display: grid;
  gap: 0.4rem;
}

.dash-review-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.biz-panel {
  display: grid;
  gap: 1rem;
}

.trend-chart {
  background: var(--paper);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.month-bars {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  min-height: 110px;
}

.month-bars li {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.month-bars svg {
  width: 100%;
  max-width: 34px;
  height: 64px;
}

.month-bar {
  fill: var(--hivis);
  stroke: var(--ink);
  stroke-width: 1;
}

.month-avg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.month-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

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

.table thead th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--ink-3);
  background: var(--paper);
  white-space: nowrap;
}

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

.table-dense th,
.table-dense td {
  padding: 0.55rem 0.7rem;
}

.table form {
  margin: 0;
}

.compare-table tbody th {
  font-weight: 700;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.admin-nav {
  background: var(--ink);
  color: #fff;
  padding: 1.4rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-nav-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent-on-dark);
  margin: 0 0.6rem 0.8rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #d5dde7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-nav a .count {
  margin-left: auto;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-nav a.is-active {
  background: var(--accent-on-dark);
  color: var(--ink);
}

.admin-nav a.is-active .count {
  background: var(--ink);
  color: var(--accent-on-dark);
}

.admin-role {
  margin: auto 0.6rem 0;
  padding-top: 1rem;
  color: #97a4b3;
}

.admin-main {
  padding: 1.6rem clamp(1rem, 3vw, 2.2rem) 3rem;
  display: grid;
  gap: 1.2rem;
  align-content: start;
  min-width: 0;
}

.admin-head h1 {
  margin-bottom: 0.2rem;
}

.admin-head p {
  margin: 0.2rem 0 0;
}

.queue-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.queue-card {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.queue-card.has-items {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.queue-card:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.queue-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
}

.mod-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.mod-meta {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.mod-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mod-title a {
  color: var(--ink);
}

.mod-body {
  font-size: 0.95rem;
  color: var(--ink-2);
  max-height: 260px;
  overflow: auto;
}

.mod-flags {
  border-left: 1.5px dashed var(--line);
  padding-left: 1.2rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

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

.flag-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  border-radius: 8px;
}

.flag-list li .badge {
  justify-self: start;
}

.flag-list li p {
  margin: 0.2rem 0 0;
}

.flag-list .is-closed {
  opacity: 0.6;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  align-items: center;
}

.admin-filter input {
  flex: 1 1 240px;
  width: auto;
}

.admin-filter select {
  width: auto;
}

.select-sm,
.input-sm {
  width: auto;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

.kv {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.92rem;
}

.kv > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.6rem;
}

.kv dt {
  color: var(--ink-3);
  font-weight: 600;
}

.kv dd {
  margin: 0;
}

.proof-file {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
}

.proof-file .icon {
  width: 2rem;
  height: 2rem;
  color: var(--blue);
}

.action-menu summary {
  list-style: none;
}

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

.action-panel {
  margin-top: 0.6rem;
  padding: 0.7rem;
  background: var(--paper);
  border-radius: 8px;
  min-width: 300px;
}

.prose {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc a {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
}

.toc a:hover {
  background: var(--accent-soft);
}

.defs {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.defs > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
}

.defs dd {
  margin: 0;
  color: var(--ink-2);
}

.formula {
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--ink);
  color: var(--accent-on-dark);
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  display: inline-block;
}

.site-footer {
  background: var(--ink);
  color: #c7d0da;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2.8rem;
  padding-bottom: 2rem;
}

.footer-tag {
  margin-top: 1rem;
  max-width: 40ch;
  font-size: 0.93rem;
}

.footer-head {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-on-dark);
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: #e9edf2;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-on-dark);
  text-decoration: underline;
}

.footer-fine {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  padding-bottom: 1.4rem;
  font-size: 0.82rem;
  color: #8e9bab;
}

.footer-fine p {
  margin: 0;
}

/* Homeowner review and proposal pages */

.hw-head {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.6rem, 5vw, 2.8rem) 0 clamp(3.2rem, 8vw, 4.4rem);
}

.hw-head h1 {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 0.01em;
  margin: 0.2rem 0 0.4rem;
}

.hw-head .lede {
  color: rgba(244, 240, 230, 0.82);
  margin: 0;
}

.hw-head .kicker {
  color: var(--accent-on-dark);
}

.hw-body {
  margin-top: clamp(-2.6rem, -6vw, -2rem);
  padding-bottom: 3rem;
  position: relative;
}

.hw-card,
.hw-form .hw-step,
.lic-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 4vw, 1.6rem);
  box-shadow: var(--shadow-card);
}

.hw-card > * + *,
.lic-sheet > * + * {
  margin-top: 0.8rem;
}

.hw-card > :first-child,
.lic-sheet > :first-child {
  margin-top: 0;
}

.hw-ticket {
  position: relative;
  background: var(--card);
  border-radius: 6px;
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow: 0 22px 40px -26px rgba(22, 32, 43, 0.75), 0 0 0 1px rgba(22, 32, 43, 0.08);
  transform: rotate(-0.6deg);
}

.hw-ticket::before,
.hw-ticket::after {
  content: '';
  position: absolute;
  top: 44px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
}

.hw-ticket::before {
  left: -8px;
}

.hw-ticket::after {
  right: -8px;
}

.hw-ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  padding-bottom: 0.7rem;
  border-bottom: 1.5px dashed var(--line);
  margin-bottom: 0.8rem;
}

.hw-ticket-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.05;
  margin: 0;
}

.hw-ticket-line {
  margin: 0.2rem 0 0;
  color: var(--ink-3);
}

.hw-ticket-license {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.75rem;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-size: 0.92rem;
}

.hw-ticket-license .icon {
  flex: none;
  margin-top: 0.2rem;
}

.hw-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.hw-photos figure {
  margin: 0;
  position: relative;
}

.hw-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hw-photos figcaption {
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.hw-form .hw-step {
  display: grid;
  gap: 1rem;
  margin: 0;
  min-width: 0;
}

.hw-step > legend {
  float: left;
  width: 100%;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
  padding: 0;
  margin-bottom: 0.2rem;
}

.hw-num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.hw-choices {
  display: grid;
  gap: 0.5rem;
}

.hw-choices-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hw-choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.hw-choice input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--ink);
}

.hw-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background: var(--hivis-soft);
}

.hw-dispute {
  display: none;
}

.hw-step:has(input[value='no']:checked) .hw-dispute {
  display: grid;
}

.hw-form:has(input[name='happened'][value='no']:checked) .hw-step:not(:first-of-type) {
  opacity: 0.45;
}

.hw-subs {
  display: grid;
  gap: 0.4rem;
}

.hw-subs .rate-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.hw-subs .rate-input > legend {
  float: left;
}

.hw-stars {
  display: flex;
  gap: 0.2rem;
}

.hw-stars svg {
  width: 26px;
  height: 26px;
  fill: var(--line);
}

.hw-stars svg.on {
  fill: var(--hivis-deep);
}

.hw-quote {
  font-size: 1.05rem;
  border-left: 3px solid var(--hivis);
  padding-left: 0.9rem;
  white-space: pre-line;
}

.hw-done h2 {
  margin: 0.4rem 0 0;
}

.hw-meta {
  display: grid;
  gap: 0.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
}

.hw-meta p {
  margin: 0;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hw-meta .icon {
  color: var(--blue);
  margin-top: 0.2rem;
}

.hw-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.hw-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.hw-tier input {
  position: absolute;
  right: 1rem;
  top: 1.1rem;
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--ink);
}

.hw-tier.is-recommended {
  border-color: var(--accent);
}

.hw-tier:has(input:checked),
.hw-tier.is-chosen {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--ink), 0 18px 34px -24px rgba(22, 32, 43, 0.8);
  background: #fff;
}

.hw-tier-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hw-tier-level {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
}

.hw-tier-flag {
  background: var(--hivis);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.hw-tier-name {
  font-weight: 700;
  line-height: 1.3;
  padding-right: 1.8rem;
}

.hw-tier-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
}

.hw-tier-summary {
  color: var(--ink-3);
  font-size: 0.93rem;
}

.hw-tier-list,
.hw-tier-warranty {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  border-top: 1.5px dashed var(--line);
  padding-top: 0.6rem;
}

.hw-tier-list span {
  padding-left: 1.1rem;
  position: relative;
}

.hw-tier-list span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--hivis-deep);
  border-radius: 1px;
}

.hw-tier-warranty {
  color: var(--blue);
  font-weight: 600;
}

.hw-terms {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.hw-notices {
  white-space: pre-line;
  font-size: 0.88rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.8rem;
}

.hw-pad canvas {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 10 / 3;
  background: #fff;
  border: 1.5px dashed var(--ink-3);
  border-radius: var(--radius-sm);
  touch-action: none;
}

.hw-pad .btn {
  margin-top: 0.4rem;
}

.hw-deposit {
  border-top: 1.5px dashed var(--line);
  padding-top: 0.8rem;
}

.hw-decline {
  text-align: center;
}

.hw-order {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.8rem;
}

.hw-order-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lic-sheet-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  margin: 0.2rem 0 0.1rem;
}

.lic-number {
  font-family: var(--font-mono);
  margin: 0;
}

.lic-rows {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
}

.lic-rows > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-soft);
}

.lic-rows dt {
  font-weight: 700;
}

.lic-rows dd {
  margin: 0;
}

.lic-checked {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--warn-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.93rem;
}

.lic-checked .icon {
  flex: none;
  margin-top: 0.2rem;
}

.lic-history {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.lic-history li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.lic-others {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lic-others li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.lic-others p {
  margin: 0.15rem 0;
}

.verify-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
  margin: 0;
}

.job-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.job-pair {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.job-pair-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--ink);
}

.job-pair-photos figure {
  margin: 0;
  position: relative;
}

.job-pair-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.job-pair-photos figcaption {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  background: rgba(22, 32, 43, 0.85);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.66rem;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
}

.job-pair p {
  margin: 0;
  padding: 0.6rem 0.8rem 0.7rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hw-tiers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lic-rows > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hw-ticket {
    transform: none;
  }
}

@media (max-width: 1200px) {
  .header-search {
    display: none;
  }
}

@media (max-width: 1080px) {

  .principles,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid,
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .manage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {

  .hero-grid,
  .cta-grid,
  .profile-grid,
  .profile-layout,
  .single-layout,
  .form-layout,
  .dash-grid,
  .search-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .review-grid,
  .mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters {
    position: static;
  }

  .filters-details:not([open]) {
    padding-bottom: 0.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.8rem var(--gutter);
  }

  .admin-nav-title,
  .admin-role {
    display: none;
  }

  .queue-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mod-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .mod-flags {
    border-left: 0;
    border-top: 1.5px dashed var(--line);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-word {
    font-size: 1.16rem;
  }

  .hs-field + .hs-field {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .principles,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .result {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .result .result-monogram {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .result-score {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1.5px dashed var(--line);
  }

  .score-num {
    font-size: 1.8rem;
  }

  .profile-id {
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .subscore-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .review {
    padding: 1rem;
  }

  .review-date {
    display: none;
  }

  .defs > div,
  .kv > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .queue-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .rate-lg .rate-stars label svg {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .demo-banner,
  .review-actions,
  .filters,
  .hazard {
    display: none;
  }
}

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

.demo-note p {
  margin: 0;
}

.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.city-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.city-list a:hover {
  border-color: var(--accent);
  background: var(--hivis-soft);
}

.city-n {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.section-cities {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.active-filters {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.active-filters a span {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  line-height: 1;
}

.active-filters a:hover {
  background: var(--ink-2);
  color: var(--accent-on-dark);
}

.active-filters .clear-all {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding-right: 0.75rem;
}

.active-filters .clear-all:hover {
  background: var(--card);
  color: var(--ink);
}

.author-link {
  color: var(--ink);
  text-decoration: none;
}

.author-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--hivis);
  text-decoration-thickness: 3px;
}

.cost-snapshot {
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cost-snapshot .dist li {
  grid-template-columns: 150px 1fr 36px;
}

.cost-label {
  font-size: 0.85rem;
}

.reviewer-head {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.reviewer-head .avatar {
  width: 76px;
  height: 76px;
  font-size: 1.7rem;
}

.reviewer-layout {
  padding-top: 1.6rem;
  padding-bottom: 3.5rem;
  display: grid;
  gap: 1.4rem;
}

.ask-update {
  margin-top: 0.7rem;
}

.ask-update p {
  margin: 0;
}

.job-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0;
  font-size: 0.86rem;
}

.job-facts > div {
  display: flex;
  gap: 0.35rem;
}

.job-facts dt {
  color: var(--ink-3);
}

.job-facts dd {
  margin: 0;
  font-weight: 700;
}

.deposit-high {
  color: var(--danger);
}

a.stamp {
  text-decoration: none;
}

a.stamp:hover {
  color: var(--ink);
  border-color: var(--accent);
}

a.badge {
  text-decoration: none;
}

.profile-jobs {
  margin-bottom: 2rem;
}

.license-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid #c3d4ec;
  background: var(--blue-soft);
  font-size: 0.95rem;
  max-width: 64ch;
}

.license-line .icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--blue);
}

.license-line-warn {
  background: var(--paper);
  border-color: var(--line);
}

.license-line-warn .icon {
  color: var(--ink);
}

.row {
  flex-wrap: wrap;
}

code {
  overflow-wrap: anywhere;
}

.compare-table,
.invites-table {
  min-width: 640px;
}

.copy-field {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .profile-layout .profile-side {
    order: -1;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .admin-nav .admin-nav-title,
  .admin-nav .admin-role {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .trade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .trade-tile {
    padding: 0.8rem;
  }

  .trade-blurb {
    display: none;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat dd {
    font-size: 1.7rem;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .table-wrap {
    max-width: 100%;
  }

  .hw-done code,
  .lic-number strong {
    overflow-wrap: anywhere;
  }

  .month-bars {
    overflow-x: auto;
  }
}

.quote-list li {
  padding: 0.8rem 0;
  border-top: 1.5px solid var(--line-soft);
}

.quote-item.is-new {
  border-left: 4px solid var(--hivis);
  padding-left: 0.7rem;
}

.quote-list p {
  margin: 0 0 0.3rem;
}

.tab-count-new {
  background: var(--hivis);
  color: #fff;
}

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

.stack > *,
.stack-l > *,
.panel,
.wrap {
  min-width: 0;
}

.license-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  max-width: 640px;
}

.fact-tile {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  border-left-width: 5px;
}

.fact-tile.is-ok {
  border-left-color: var(--ok);
}

.fact-tile.is-bad {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.fact-tile:hover {
  border-color: var(--accent);
}

.fact-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--ink-3);
}

.fact-tile strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.fact-meta {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.fact-foot {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .license-facts {
    gap: 0.4rem;
  }

  .fact-tile {
    padding: 0.55rem 0.6rem;
  }

  .fact-tile strong {
    font-size: 1.15rem;
  }

  .fact-meta {
    font-size: 0.72rem;
  }
}

.badge-preview {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

/* Star tiles */
.stars svg .tile-empty rect { fill: #dcdde3; }
.stars svg .tile-full rect { fill: var(--star); }
.stars svg .tile-star path { fill: #fff; }
.site-header .btn-hivis,
.site-nav a.btn {
  --btn-bg: var(--bright);
  --btn-fg: var(--navy);
  border-color: var(--bright);
}
.site-header .btn-hivis:hover,
.site-nav a.btn:hover {
  --btn-bg: var(--bright-hover);
  border-color: var(--bright-hover);
}

/* Review cards and profiles, laid out the way people know from review
   sites: who wrote it, the tiles, the date, a bold title, the text, the job,
   then quiet actions; the business reply set in under it. */
.review { padding: 1.3rem 1.5rem 1rem; }
.review-head { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line-soft); }
.review-head .avatar { width: 40px; height: 40px; font-size: 0.85rem; }
.review-who strong { font-size: 1rem; }
.review-who strong a { color: var(--ink); text-decoration: none; }
.review-who strong a:hover { text-decoration: underline; }
.review-rating { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; }
.review-verified { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--ok); font-weight: 700; font-size: 0.86rem; text-decoration: none; }
.review-verified:hover { text-decoration: underline; color: var(--ok); }
.review-verified .icon { width: 1em; height: 1em; }
.review-rating .review-date { margin-left: auto; color: var(--muted); font-size: 0.88rem; }
.review-title { font-family: var(--font-body); font-weight: 800; font-size: 1.12rem; line-height: 1.3; margin: 0 0 0.45rem; }
.review-title a { color: var(--ink); text-decoration: none; }
.review-title a:hover { text-decoration: underline; }
.review-body p { color: var(--ink-2); line-height: 1.6; }
.review-job { font-size: 0.92rem; color: var(--muted); margin: 0.2rem 0 0.8rem; }
.review-job strong { color: var(--ink-2); font-weight: 700; }
.review-original { margin: -0.4rem 0 0.6rem; }
.review .badge-row { margin: 0 0 0.6rem; }
.review-actions { border-top: 1px solid var(--line-soft); margin-top: 0.8rem; padding-top: 0.7rem; }
.review-actions .chip { border: 0; background: transparent; padding: 0.35rem 0.5rem; color: var(--ink-3); font-weight: 600; border-radius: 6px; }
.review-actions .chip:hover { background: var(--paper-2); color: var(--ink); }
.review-actions .chip.is-on { background: var(--accent-soft); color: var(--accent); }
.owner-reply { background: var(--paper); border-left: 3px solid var(--navy); border-radius: 0 8px 8px 0; padding: 0.9rem 1.1rem; margin: 0.6rem 0 0.4rem 1.5rem; }

.profile-head { background: #fff; border-bottom: 1px solid var(--line); padding: 1.4rem 0 1.8rem; }
.profile-name { font-weight: 900; font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; }
.profile-monogram { width: 96px; height: 96px; border-radius: 12px; border: 1px solid var(--line); background: #fff !important; color: var(--navy); font-weight: 900; }
.score-card { border: 0; background: transparent; padding: 0; }
.score-top { align-items: center; }
.score-big { font-weight: 900; color: var(--ink); }
.score-word { font-weight: 800; font-size: 1.15rem; margin: 0.35rem 0 0; }
.score-actions .btn { min-width: 11rem; }
.crumbs, .crumbs a { color: var(--muted); }
body { background: var(--paper); }

/* Inner pages carry the front page's paper: a white head with a torn edge
   over the cream page, headings set the same way, no small label above. */
.page-head,
.page-head-ink { position: relative; z-index: 1; background: #fff; color: var(--ink); border-bottom: 0; padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(1.8rem, 3.4vw, 2.6rem); }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -21px; height: 22px; background: #fff; -webkit-mask: url('/static/img/tex/torn-bottom-navy.svg') 0 0 / 100% 100% no-repeat; mask: url('/static/img/tex/torn-bottom-navy.svg') 0 0 / 100% 100% no-repeat; pointer-events: none; }
.page-head h1, .page-head-ink h1 { color: var(--ink); max-width: 22ch; }
.page-head .lede, .page-head-ink .lede { color: var(--ink-2); font-size: 18px; line-height: 28px; max-width: 60ch; }
.page-head-ink .lede { margin-bottom: 1.6rem; }
.page-head + .section, .page-head + section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.page-head .crumbs { margin-bottom: 1rem; }
.page-head h1, .page-head-ink h1 { margin-bottom: 0.8rem; }
.page-head + .wrap, .page-head + div[class^="wrap"] { padding-top: clamp(2.8rem, 5vw, 3.8rem); padding-bottom: clamp(2.8rem, 5vw, 4rem); }

/* The front page, the header, and the footer, laid out section for section
   the way established trade software lays out its site: a utility bar, a
   white bar with one blue button, a hero with two slow columns of real
   trade photos, cream sections with grey tiles, torn white paper between
   the cream sections, tape labels, and a big footer. Light throughout. The words,
   photos, and marks are this site's own. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter/inter-latin-700-normal.woff2') format('woff2'); }
:root {
  --navy: #0d2a45;
  --navy-deep: #0a2238;
  --ink: #0d2a45;
  --pop: #1a6349;
  --pop-hover: #145238;
  --on-pop: #ffffff;
  --mark: #1f8a5b;
  --sky: #3f78b8;
  --star: #1f8a5b;
  --band: #ffffff;
  --tape: #e9edf2;
  --hair: #e3e8ed;
  --bright: var(--pop);
  --bright-hover: var(--pop-hover);
  --cream: #f5f7f9;
  --tile: #eef1f4;
  --tile-hover: #e4e9ee;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Figtree', ui-sans-serif, system-ui, sans-serif;
}
body { font-size: 16px; line-height: 1.5; }
.j-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.icon { flex: none; }

/* Utility bar and main bar */
.util-bar { background: var(--cream); color: var(--navy); border-bottom: 1px solid var(--hair); }
.util-row { display: flex; justify-content: flex-end; align-items: center; gap: 0; height: 40px; }
.util-row > a, .util-button { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font: 400 15px/24px var(--font-body); text-decoration: none; padding: 0 16px; background: none; border: 0; cursor: pointer; }
.util-row > a + a, .util-row > a + form { border-left: 1px solid rgba(13, 42, 69, 0.25); }
.util-row > :last-child { padding-right: 0; }
.util-row > a:hover, .util-button:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.util-row .icon { width: 18px; height: 18px; }
.util-row .count { margin-left: 4px; background: var(--pop); color: var(--on-pop); }

.site-header { background: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--hair); box-shadow: none; }
.header-row { display: flex; align-items: center; gap: 40px; height: 73px; min-height: 0; }
/* the lockup is 586.9 by 110 */
.brand-logo { display: block; height: 44px; width: 234.8px; }
.site-header .brand { gap: 10px; }
.brand-word { font: 800 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 32px; flex: 1; margin: 0; }
.site-nav > a, .nav-menu-button { display: inline-flex; align-items: center; gap: 4px; height: 73px; padding: 0; color: var(--navy); font: 600 14px/1 var(--font-body); letter-spacing: 0.1px; text-decoration: none; background: none; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap; }
.site-nav > a:hover, .nav-menu-button:hover, .site-nav > a.is-active { color: var(--pop); background: none; }
.nav-menu-button .icon { width: 16px; height: 16px; transition: transform 0.15s ease; }
.nav-menu { position: relative; }
.nav-panel { display: none; position: absolute; top: 100%; left: -24px; width: 520px; background: #fff; color: var(--ink); border-radius: 0 0 4px 4px; border: 1px solid var(--hair); border-top: 0; box-shadow: 0 16px 32px rgba(13, 42, 69, 0.14); padding: 16px; }
.nav-menu:hover .nav-panel, .nav-menu.is-open .nav-panel { display: block; }
.nav-menu.is-open .nav-menu-button .icon { transform: rotate(180deg); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 3px; color: var(--ink); font: 500 15px/24px var(--font-body); text-decoration: none; }
.nav-panel a:hover { background: var(--cream); color: var(--ink); }
.nav-panel ul .icon { width: 20px; height: 20px; color: var(--navy); }
.nav-panel-all { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 14px !important; font-weight: 700 !important; }
.nav-panel-all .icon { width: 18px; height: 18px; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav-aside { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font: 600 14px/1 var(--font-body); letter-spacing: 0.1px; text-decoration: none; white-space: nowrap; }
.nav-aside:hover { color: var(--pop); }
.nav-aside .icon { width: 18px; height: 18px; }
.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 4px; background: var(--pop); color: var(--on-pop) !important; font: 800 14px/1 var(--font-display); letter-spacing: 0.1px; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: var(--pop-hover); color: var(--on-pop); }
.nav-account { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.site-header :focus-visible, .util-bar :focus-visible { outline: 2px solid var(--pop); outline-offset: 2px; }

/* Shared pieces */
.j-cream { background: var(--cream); color: var(--ink); }
.j-band { background: var(--band); color: var(--navy); }
.j-h2 { font: 800 40px/48px var(--font-display); letter-spacing: 0; text-align: center; margin: 0 auto 40px; max-width: 1000px; color: inherit; }
.j-squiggle { position: relative; white-space: nowrap; }
.j-squiggle::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: -10px; height: 12px; background: var(--mark); -webkit-mask: url('/static/img/tex/squiggle.svg') center / 100% 100% no-repeat; mask: url('/static/img/tex/squiggle.svg') center / 100% 100% no-repeat; }
.j-btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 13px 29px; border: 3px solid var(--pop); border-radius: 4px; font: 800 18px/1 var(--font-display); text-decoration: none; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.j-btn-fill { background: var(--pop); color: var(--on-pop); }
.j-btn-fill:hover { background: var(--pop-hover); border-color: var(--pop-hover); color: var(--on-pop); }
.j-btn-line { background: transparent; color: var(--pop); }
.j-btn-line:hover { background: rgba(26, 99, 73, 0.06); color: var(--pop); }
.j-btn-dark { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 4px; background: var(--navy); color: #fff; font: 800 16px/1 var(--font-display); text-decoration: none; white-space: nowrap; }
.j-btn-dark:hover { background: var(--navy-2); color: #fff; }
.j-center { display: flex; justify-content: center; margin-top: 48px; }
.j-small { margin: 16px 0 0; text-align: center; font: 700 14px/20px var(--font-body); }
.j-who-mark { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.j-who-mark svg { width: 34px; height: 24px; }

/* Torn white paper edges, drawn over the neighbouring cream section */
.j-torn { position: relative; padding: 72px 0; }
.j-torn::before, .j-torn::after { content: ''; position: absolute; left: 0; right: 0; height: 22px; background: var(--band); pointer-events: none; z-index: 1; }
.j-torn::before { top: -21px; -webkit-mask: url('/static/img/tex/torn-top-navy.svg') 0 0 / 100% 100% no-repeat; mask: url('/static/img/tex/torn-top-navy.svg') 0 0 / 100% 100% no-repeat; }
.j-torn::after { bottom: -21px; -webkit-mask: url('/static/img/tex/torn-bottom-navy.svg') 0 0 / 100% 100% no-repeat; mask: url('/static/img/tex/torn-bottom-navy.svg') 0 0 / 100% 100% no-repeat; }

/* Hero */
.page-home main { background: var(--cream); }
.j-hero { background: #fff; color: var(--navy); overflow: hidden; }
.j-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 502px; gap: 56px; height: 690px; }
.j-hero-copy { align-self: center; max-width: 600px; }
.j-hero h1 { font: 800 50px/56px var(--font-display); letter-spacing: 0; color: var(--navy); margin: 0 0 16px; max-width: 520px; }
.j-hero-copy > p { font: 400 18px/28px var(--font-body); color: var(--ink-2); margin: 0 0 32px; max-width: 560px; }
.j-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.j-hero-proof { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.j-hero-proof li { display: flex; align-items: center; gap: 12px; font: 400 14px/20px var(--font-body); color: var(--ink-3); }
.j-hero-proof strong { display: block; font: 700 16px/24px var(--font-body); color: var(--navy); }
.j-proof-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.j-proof-icon .icon { width: 22px; height: 22px; }
.j-wall { display: grid; grid-template-columns: 243px 243px; gap: 16px; height: 690px; overflow: hidden; }
.j-col { display: grid; gap: 16px; align-content: start; will-change: transform; }
.j-col figure { position: relative; margin: 0; width: 243px; height: 289px; overflow: hidden; }
.j-col img { width: 100%; height: 100%; object-fit: cover; }
.j-col figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 16px 30px; background: linear-gradient(transparent, rgba(4, 18, 32, 0.75)); color: #fff; font: 400 14px/20px var(--font-body); }
.j-col figcaption::before { content: ''; position: absolute; left: 16px; bottom: 18px; width: 2px; height: 40px; background: #fff; }
.j-col figcaption strong { display: block; font-weight: 700; line-height: 24px; }
.j-col-a { animation: j-up 70s linear infinite; }
.j-col-b { animation: j-down 70s linear infinite; }
@keyframes j-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes j-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

/* The system: tabs over real screens */
.j-system { padding: 72px 0; }
.j-tablist { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 0 0 40px; }
.j-tablist [role="tab"] { padding: 8px 16px; border: 3px solid transparent; border-radius: 90px; background: var(--tile); color: var(--navy); font: 800 16px/24px var(--font-display); cursor: pointer; }
.j-tablist [role="tab"]:hover { background: var(--tile-hover); }
.j-tablist [role="tab"][aria-selected="true"] { border-color: var(--navy); background: #fff; }
.j-tablist [role="tab"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.j-panel { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); max-width: 1200px; height: 480px; margin: 0 auto; background: var(--tile); border-radius: 4px; overflow: hidden; }
.j-panel[hidden] { display: none; }
.j-collage { position: relative; overflow: hidden; }
.j-screen { position: absolute; left: 128px; top: 64px; width: 560px; bottom: -24px; background: #fff; border: 8px solid #10263b; border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 12px 32px rgba(13, 42, 69, 0.18); }
.j-screen img { width: 100%; height: auto; }
.j-kpis { position: absolute; left: 40px; top: 48px; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 144px; }
.j-kpis li { background: #fff; border-radius: 6px; padding: 10px 12px 12px; box-shadow: 0 4px 14px rgba(13, 42, 69, 0.12); }
.j-kpis span { display: block; font: 500 11px/16px var(--font-body); color: var(--ink-3); }
.j-kpis strong { display: flex; align-items: center; gap: 6px; font: 800 18px/24px var(--font-display); color: var(--navy); }
.j-kpis i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: #eef0f2; }
.j-panel-text { padding: 48px 48px 40px 24px; align-self: center; }
.j-panel-text h3 { font: 800 24px/32px var(--font-display); margin: 0 0 16px; color: var(--navy); }
.j-panel-text > p { font: 400 16px/24px var(--font-body); margin: 0 0 24px; color: var(--navy); }
.j-panel-text hr { border: 0; border-top: 1px solid rgba(13, 42, 69, 0.25); margin: 32px 0 24px; }
.j-panel-text .j-fact { margin: 0 0 8px; }
.j-panel-text .j-fact strong { font: 700 16px/24px var(--font-body); }
.j-panel-text .j-note { margin: 0 0 16px; }
.j-who { display: flex; align-items: center; gap: 12px; margin: 0; font: 400 14px/20px var(--font-body); }
.j-who strong { display: block; font-weight: 700; font-size: 16px; line-height: 24px; }

/* Facts on tape */
.j-stats .j-h2 { font-size: 32px; line-height: 40px; margin-bottom: 48px; }
.j-tapes { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; text-align: center; }
.j-tapes strong { display: inline-block; padding: 8px 24px; background: var(--tape); -webkit-mask: url('/static/img/tex/tape.svg') center / 100% 100% no-repeat; mask: url('/static/img/tex/tape.svg') center / 100% 100% no-repeat; color: var(--navy); font: 800 24px/32px var(--font-display); transform: rotate(-1deg); }
.j-tapes li:nth-child(even) strong { transform: rotate(1deg); }
.j-tapes span { display: block; margin: 16px auto 0; max-width: 240px; font: 400 16px/24px var(--font-body); }
.j-join { display: flex; max-width: 520px; margin: 56px auto 0; }
.j-join input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 1px solid #c9c5bb; border-right: 0; border-radius: 4px 0 0 4px; background: #fff; color: var(--navy); font: 400 16px/24px var(--font-body); }
.j-join input:focus { outline: 3px solid var(--pop); outline-offset: 0; }
.j-join button { height: 56px; padding: 0 24px; border: 0; border-radius: 0 4px 4px 0; background: var(--pop); color: var(--on-pop); font: 800 16px/1 var(--font-display); cursor: pointer; white-space: nowrap; }
.j-join button:hover { background: var(--pop-hover); }

/* Photo strip */
.j-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 160px; overflow: hidden; background: var(--cream); }
.j-strip img { width: 100%; height: 160px; object-fit: cover; }

/* Three columns */
.j-three { padding: 72px 0; }
.j-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.j-three-item { text-align: center; }
.j-three-item h3 { font: 800 24px/32px var(--font-display); margin: 32px 0 16px; color: var(--navy); }
.j-three-item p { font: 400 16px/24px var(--font-body); margin: 0 auto; max-width: 340px; }
.j-art { position: relative; height: 260px; display: grid; place-items: center; background: url('/static/img/tex/patch.svg') center / 100% 100% no-repeat; }
.j-snip { position: relative; z-index: 1; width: 280px; background: #fff; border-radius: 8px; padding: 16px; text-align: left; box-shadow: 0 6px 20px rgba(13, 42, 69, 0.14); font: 400 12px/16px var(--font-body); color: var(--navy); transform: rotate(-1.5deg); }
.j-three-item:nth-child(2) .j-snip { transform: rotate(1.2deg); }
.j-three-item:nth-child(3) .j-snip { transform: rotate(-0.8deg); }
.j-snip > strong { display: block; font: 800 15px/20px var(--font-display); margin: 8px 0 10px; }
.j-snip-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.j-snip-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; }
.j-snip-ok .icon, .j-snip-tag .icon, .j-snip-reply .icon { width: 14px; height: 14px; }
.j-snip-date { color: var(--muted); }
.j-snip-line { display: block; height: 7px; border-radius: 4px; background: #e6e8eb; margin: 0 0 7px; }
.j-snip-line.j-short { width: 62%; }
.j-snip-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 8px; border-radius: 4px; background: var(--tile); color: var(--navy); font-weight: 600; }
.j-snip-reply { margin-top: 8px; padding: 10px 10px 4px; border-left: 3px solid var(--navy); background: var(--cream); }
.j-snip-reply > span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 8px; }
.j-snip-scores { display: grid; gap: 10px; }
.j-bar { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 10px; font-weight: 600; }
.j-bar i { display: block; height: 8px; border-radius: 4px; background: #e6e8eb; overflow: hidden; }
.j-bar i::before { content: ''; display: block; height: 100%; width: 96%; border-radius: 4px; background: var(--navy); }
.j-bar:nth-child(2) i::before { width: 88%; }
.j-bar:nth-child(3) i::before { width: 74%; }
.j-bar:nth-child(4) i::before { width: 90%; }
.j-bar:nth-child(5) i::before { width: 100%; }
.j-doodle { position: absolute; z-index: 2; pointer-events: none; background: var(--navy); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.j-doodle-a { --m: url('/static/img/tex/arrow-swoop.svg'); height: 36px; }
.j-doodle-b { --m: url('/static/img/tex/arrow-curl.svg'); height: 52px; }
.j-doodle-c { --m: url('/static/img/tex/sparks.svg'); height: 34px; background: var(--mark); }
.j-doodle-a { width: 96px; left: 4px; top: 18px; transform: rotate(-12deg); }
.j-doodle-b { width: 78px; right: 6px; top: 12px; transform: scaleX(-1) rotate(-8deg); }
.j-doodle-c { width: 34px; right: 26px; top: 22px; }

/* Trades */
.j-trades { padding: 72px 0; }
.j-trades .j-center { margin-top: 32px; }
.j-trade-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.j-trade-grid a { display: flex; flex-direction: column; justify-content: space-between; height: 96px; padding: 16px; border-radius: 4px; background: var(--tile); color: var(--navy); text-decoration: none; font: 700 16px/24px var(--font-body); transition: background 0.15s ease; }
.j-trade-grid a:hover { background: var(--tile-hover); color: var(--navy); }
.j-trade-grid .icon { width: 24px; height: 24px; }
.j-places { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; max-width: 1200px; margin: 32px auto 0; }
.j-places h3 { margin: 0; font: 700 16px/24px var(--font-body); color: var(--navy); }
.j-places ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.j-places a { color: var(--navy); font: 400 16px/24px var(--font-body); text-decoration: underline; text-decoration-color: rgba(13, 42, 69, 0.3); text-underline-offset: 4px; }
.j-places a:hover { color: var(--navy); text-decoration-color: currentColor; }
.j-more { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font: 700 16px/24px var(--font-body); text-decoration: none; }
.j-more:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.j-more .icon { width: 18px; height: 18px; }

/* A quote card, then the closing search */
.j-backed { padding: 72px 0 80px; }
.j-quote { position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 32px; background: var(--cream); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.j-quote-mark { position: absolute; right: -40px; top: -30px; width: 460px; height: 300px; color: rgba(13, 42, 69, 0.05); }
.j-quote blockquote { margin: 0; position: relative; }
.j-quote blockquote p { font: 800 24px/32px var(--font-display); max-width: 688px; margin: 0; color: var(--navy); }
.j-quote figcaption { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 24px; font: 400 14px/20px var(--font-body); }
.j-quote figcaption strong { display: block; font-weight: 700; font-size: 16px; line-height: 24px; }
.j-quote figcaption a { color: var(--pop); }
.j-quote figcaption a:hover { color: var(--navy); }
.j-close { text-align: center; margin-top: 72px; }
.j-close h2 { font: 800 32px/40px var(--font-display); margin: 0 0 16px; color: var(--navy); }
.j-close p { max-width: 600px; margin: 0 auto; font: 400 16px/24px var(--font-body); }
.j-close .j-small { margin-top: 16px; font: 700 14px/20px var(--font-body); }
.j-close .j-join { margin-top: 32px; }

/* Help cards */
.j-help { padding: 96px 0 72px; }
.j-h2-help { max-width: none; }
.j-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 1200px; margin: 0 auto; }
.j-card { display: flex; flex-direction: column; background: var(--tile); border-radius: 4px; overflow: hidden; color: var(--navy); text-decoration: none; transition: background 0.15s ease; }
.j-card:hover { background: var(--tile-hover); color: var(--navy); }
.j-card-img { display: block; height: 350px; overflow: hidden; background: var(--tile); }
.j-card-img img { width: 100%; height: 100%; object-fit: cover; }
.j-card-shot { padding: 40px 40px 0; background: var(--tile); }
.j-card-shot img { object-position: top left; border-radius: 6px 6px 0 0; box-shadow: 0 8px 24px rgba(13, 42, 69, 0.12); }
.j-card-body { display: flex; flex-direction: column; padding: 24px; font: 400 16px/24px var(--font-body); }
.j-card-body strong { font: 800 24px/32px var(--font-display); margin-bottom: 8px; }
.j-card-body em { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font: 700 16px/24px var(--font-body); font-style: normal; }
.j-card-body em .icon { width: 22px; height: 22px; transition: transform 0.15s ease; }
.j-card:hover em .icon { transform: translateX(3px); }
.j-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.j-card-wide .j-card-body { flex: 0 1 520px; }
.j-card-doodles { flex: 1; display: flex; justify-content: space-around; align-items: center; gap: 24px; padding: 24px 40px; }
.j-card-doodles svg { height: 128px; width: 128px; color: var(--mark); stroke: var(--navy); fill: none; }
.j-card-doodles svg:nth-child(2) { transform: rotate(-4deg); }
.j-card-doodles svg:nth-child(3) { transform: rotate(5deg); }

/* Footer */
.site-footer { background: #fff; color: var(--navy); padding: 64px 0 0; margin: 0; border-top: 1px solid var(--hair); }
.page-home .site-footer { position: relative; }
.footer-logo { display: inline-flex; margin-bottom: 48px; }
.footer-logo .brand-logo { height: 64px; width: 341.5px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 221px)) minmax(0, 1fr); gap: 32px; padding: 0 0 48px; }
.footer-head { font: 800 18px/28px var(--font-display); color: var(--navy); margin: 0 0 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: block; }
.footer-links a { color: var(--navy); font: 400 14px/24px var(--font-body); text-decoration: none; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.footer-side { justify-self: end; max-width: 260px; font: 400 14px/24px var(--font-body); }
.footer-side a { color: var(--navy); font-weight: 600; text-decoration: none; }
.footer-side a:hover { text-decoration: underline; color: var(--navy); }
.footer-side p { margin: 12px 0 0; color: var(--ink-3); }
.footer-fine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; border-top: 0; font: 400 14px/24px var(--font-body); color: var(--ink-3); position: relative; }
.footer-fine::before { content: ''; position: absolute; left: 40px; right: 40px; top: 0; border-top: 1px solid var(--hair); }
.footer-fine nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-fine a { color: var(--navy); text-decoration: none; }
.footer-fine a:hover { color: var(--navy); text-decoration: underline; }
.site-footer:has(.footer-fine:only-child) { padding-top: 0; }

@media (prefers-reduced-motion: reduce) { .j-col-a, .j-col-b { animation: none; } }

@media (max-width: 1180px) {
  .site-nav { gap: 24px; }
  .header-row { gap: 28px; }
  .nav-aside { display: none; }
  .j-hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
  .j-wall { grid-template-columns: 202px 202px; }
  .j-col figure { width: 202px; height: 240px; }
  .j-screen { left: 104px; width: 480px; }
}

@media (max-width: 1024px) {
  .util-bar { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: #fff; border-top: 1px solid var(--hair); box-shadow: 0 24px 32px rgba(13, 42, 69, 0.16); max-height: calc(100vh - 73px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .nav-menu-button { height: auto; width: 100%; justify-content: space-between; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--hair); }
  .nav-panel { position: static; width: auto; box-shadow: none; background: transparent; padding: 4px 0 12px; }
  .nav-menu:hover .nav-panel { display: none; }
  .nav-menu.is-open .nav-panel { display: block; }
  .nav-panel ul { grid-template-columns: 1fr; }
  .nav-panel { border: 0; }
  .nav-panel a { color: var(--navy); padding: 8px 0; }
  .nav-panel a:hover { background: none; color: var(--pop); }
  .nav-panel ul .icon { color: var(--navy); }
  .nav-panel-all { border-top-color: var(--hair); }
  .nav-end { margin: 20px 0 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-aside { display: inline-flex; padding: 8px 0; font-size: 16px; }
  .nav-cta { justify-content: center; height: 52px; font-size: 18px; }
  .nav-account { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
  .nav-account a, .nav-account .nav-link-button { color: var(--navy); font: 600 16px/24px var(--font-body); padding: 0; text-decoration: none; background: none; border: 0; }
  .nav-account .count { margin-left: 6px; background: var(--pop); color: var(--on-pop); }
}

@media (max-width: 900px) {
  .j-wrap { padding: 0 20px; }
  .j-hero-grid { grid-template-columns: minmax(0, 1fr); height: auto; gap: 40px; padding-top: 48px; }
  .j-hero h1 { font-size: 40px; line-height: 48px; }
  .j-hero-actions { flex-direction: column; }
  .j-hero-actions .j-btn { width: 100%; }
  .j-hero-proof { flex-direction: column; gap: 24px; }
  .j-wall { display: block; height: auto; margin: 0 -20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .j-col { display: flex; gap: 16px; width: max-content; }
  .j-col-b { display: none; }
  .j-col figure { width: 220px; height: 262px; }
  .j-col-a { animation: j-left 80s linear infinite; }
  @keyframes j-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
  .j-h2 { font-size: 32px; line-height: 40px; }
  .j-panel { grid-template-columns: minmax(0, 1fr); height: auto; }
  .j-collage { height: 320px; }
  .j-screen { left: 120px; top: 40px; width: 440px; }
  .j-kpis { left: 16px; top: 24px; width: 136px; }
  .j-panel-text { padding: 32px 24px 40px; }
  .j-tapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .j-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 100px; }
  .j-strip img { height: 100px; }
  .j-strip img:nth-child(n + 4) { display: none; }
  .j-three-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .j-trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-cards { grid-template-columns: minmax(0, 1fr); }
  .j-card-img { height: 240px; }
  .j-card-wide { flex-direction: column; align-items: stretch; }
  .j-card-wide .j-card-body { flex: none; }
  .j-card-doodles { padding: 0 24px 32px; justify-content: space-between; }
  .j-card-doodles svg { height: 84px; width: 84px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-side { justify-self: start; grid-column: 1 / -1; }
  .footer-fine::before { left: 20px; right: 20px; }
}

@media (max-width: 560px) {
  .header-row { gap: 12px; }
  .site-header .brand-logo { height: 38px; width: 202.8px; }
  .j-hero h1 { font-size: 36px; line-height: 44px; }
  .j-tablist { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px 32px; padding: 4px 20px; scrollbar-width: none; }
  .j-tablist::-webkit-scrollbar { display: none; }
  .j-tablist [role="tab"] { flex: none; }
  .j-collage { height: 280px; }
  .j-screen { left: 96px; top: 32px; width: 360px; border-width: 6px; }
  .j-kpis { width: 120px; gap: 8px; }
  .j-kpis li { padding: 8px 10px 10px; }
  .j-kpis strong { font-size: 15px; line-height: 20px; }
  .j-stats .j-h2 { font-size: 28px; line-height: 36px; }
  .j-tapes { grid-template-columns: minmax(0, 1fr); }
  .j-join { flex-direction: column; gap: 12px; }
  .j-join input, .j-join button { flex: none; border-radius: 4px; width: 100%; }
  .j-trade-grid a { height: 88px; font-size: 15px; line-height: 20px; }
  .j-quote { padding: 32px 24px; }
  .j-quote blockquote p { font-size: 20px; line-height: 28px; }
  .j-close h2 { font-size: 28px; line-height: 36px; }
  .footer-logo .brand-logo { height: 52px; width: 277.4px; }
  .footer-fine { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .site-header .brand-logo { height: 34px; width: 181.4px; }
}

/* Motion on the front page. The hero settles in on load, sections rise in
   once as they reach the screen (with a timed fallback), the tabs advance on
   their own with a thin progress line, a scroll story swaps real phone
   screens, and real reviews drift past. All of it stops under Reduce Motion. */
:root {
  --panel-shadow: 0 1px 2px rgba(13, 42, 69, 0.04), 0 1px 1px rgba(13, 42, 69, 0.02);
  --panel-shadow-hover: 0 6px 18px rgba(13, 42, 69, 0.08);
}
@keyframes j-settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.j-hero-copy > * { animation: j-settle 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.j-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.j-hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.j-hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.j-wall { animation: j-settle 0.9s 0.2s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.j-trade-grid li, .j-cards > a, .j-three-item, .j-tapes li { transition: transform 0.25s ease; }
.j-trade-grid a, .j-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.j-trade-grid a:hover, .j-card:hover { transform: translateY(-2px); }
.j-card-img img { transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.j-card:hover .j-card-img img { transform: scale(1.03); }

/* Tabs: the active one fills a thin line while it waits to advance */
.j-tablist [role="tab"] { position: relative; overflow: hidden; }
.j-tablist [role="tab"]::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--pop); }
.j-tabs.is-auto [role="tab"][aria-selected="true"]::after { animation: j-progress var(--tab-ms, 7000ms) linear forwards; }
.j-tabs.is-paused [role="tab"][aria-selected="true"]::after { animation-play-state: paused; }
@keyframes j-progress { from { width: 0; } to { width: 100%; } }
.j-panel:not([hidden]) { animation: j-fade 0.5s ease both; }
.j-panel:not([hidden]) .j-screen { animation: j-lift 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.j-panel:not([hidden]) .j-kpis li { animation: j-settle 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.j-panel:not([hidden]) .j-kpis li:nth-child(2) { animation-delay: 0.08s; }
.j-panel:not([hidden]) .j-kpis li:nth-child(3) { animation-delay: 0.16s; }
@keyframes j-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes j-lift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* The scroll story: steps on the left, a pinned phone on the right */
.j-story { background: #fff; padding: 88px 0 72px; border-top: 1px solid var(--hair); }
.j-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; max-width: 1100px; margin: 0 auto; }
.j-beats { list-style: none; margin: 0; padding: 0; }
.j-beat { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.j-beat-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--hair); font: 700 14px/1 var(--font-body); color: var(--ink-3); margin-bottom: 16px; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.j-beat h3 { font: 700 28px/34px var(--font-display); letter-spacing: -0.022em; margin: 0 0 12px; color: var(--navy); }
.j-beat p { font: 400 17px/27px var(--font-body); color: var(--ink-3); margin: 0; max-width: 44ch; }
.js .j-beat h3, .js .j-beat p { transition: opacity 0.4s ease; }
.js .j-beat:not(.on) h3, .js .j-beat:not(.on) p { opacity: 0.32; }
.j-beat.on .j-beat-num { background: var(--pop); border-color: var(--pop); color: #fff; }
.j-pin { position: sticky; top: calc(50vh - min(34vh, 380px)); height: min(68vh, 760px); display: flex; justify-content: center; }
.j-phone { position: relative; height: 100%; aspect-ratio: 428 / 900; filter: drop-shadow(0 40px 50px rgba(13, 42, 69, 0.22)) drop-shadow(0 4px 10px rgba(13, 42, 69, 0.08)); }
.j-phone img { position: absolute; left: 2.92%; top: 1.39%; width: 94.16%; height: 97.22%; max-width: none; object-fit: cover; object-position: center top; border-radius: 15.5% / 7.14%; background: #fff; }
.j-phone::after { content: ''; position: absolute; top: 0; bottom: 0; left: -0.75%; right: -0.75%; background: url('/static/img/frame.svg') 0 0 / 100% 100% no-repeat; pointer-events: none; z-index: 3; }
.j-pin .j-phone img { opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.j-pin .j-phone img.on { opacity: 1; transform: none; z-index: 2; }
.j-phone-inline { display: none; }

/* Real reviews, drifting in two rows */
.j-voices { background: var(--cream); padding: 80px 0 64px; border-top: 1px solid var(--hair); overflow: hidden; }
.j-voice-row { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.j-voice-row + .j-voice-row { margin-top: 16px; }
.j-voice-track { display: flex; gap: 16px; width: max-content; animation: j-drift 70s linear infinite; }
.j-voice-rev .j-voice-track { animation-direction: reverse; animation-duration: 80s; }
.j-voice-row:hover .j-voice-track, .j-voice-row:focus-within .j-voice-track { animation-play-state: paused; }
@keyframes j-drift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.j-voice { display: flex; flex-direction: column; gap: 8px; width: 340px; padding: 20px; background: #fff; border: 1px solid var(--hair); border-radius: 8px; box-shadow: var(--panel-shadow); color: var(--navy); text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.j-voice:hover { color: var(--navy); border-color: #cfd6de; box-shadow: var(--panel-shadow-hover); }
.j-voice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.j-voice-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font: 600 13px/1 var(--font-body); }
.j-voice-ok .icon { width: 14px; height: 14px; }
.j-voice strong { font: 700 16px/22px var(--font-body); }
.j-voice-body { font: 400 14px/21px var(--font-body); color: var(--ink-3); }
.j-voice-who { margin-top: auto; padding-top: 6px; font: 400 13px/18px var(--font-body); color: var(--muted); }
.j-voice-who b { color: var(--navy); font-weight: 600; }
.j-voices .j-center { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  .j-hero-copy > *, .j-wall, .j-panel:not([hidden]), .j-panel:not([hidden]) .j-screen, .j-panel:not([hidden]) .j-kpis li { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .j-voice-track { animation: none; }
  .j-voice-row { overflow-x: auto; }
  .j-tabs.is-auto [role="tab"][aria-selected="true"]::after { animation: none; }
  .j-pin .j-phone img { transition: none; }
}
@media (max-width: 900px) {
  .j-story { padding: 64px 0 40px; }
  .j-story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .j-pin { display: none; }
  .j-beat { min-height: 0; padding: 28px 0; }
  .js .j-beat:not(.on) h3, .js .j-beat:not(.on) p { opacity: 1; }
  .j-phone-inline { display: block; height: auto; width: min(70%, 300px); margin: 28px auto 0; }
  .j-phone-inline img { position: absolute; }
  .j-beat h3 { font-size: 24px; line-height: 30px; }
  .j-voice { width: 290px; }
}
.j-trade-grid a span small { display: block; margin-top: 2px; font: 400 13px/18px var(--font-body); color: var(--ink-3); }
.j-trade-grid a { height: auto; min-height: 96px; gap: 14px; }

/* Polish: the collage keeps the screen readable with the fact cards in a
   row along its bottom edge, and the story sits on white between the photo
   strip and the cream sections. */
.j-screen { left: 48px; right: -32px; width: auto; top: 44px; }
.j-kpis { left: 24px; top: auto; bottom: 24px; width: auto; display: flex; gap: 10px; }
.j-kpis li { width: 140px; }
.j-story { border-top: 0; padding: 80px 0 48px; }
.j-story .j-h2 { margin-bottom: 8px; }
.j-beat { min-height: 52vh; }
.j-beat-num { border-radius: 50%; }
.j-beat h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
@media (max-width: 1180px) {
  .j-screen { left: 40px; width: auto; }
}
@media (max-width: 900px) {
  .j-screen { left: 32px; right: -24px; top: 28px; width: auto; }
  .j-kpis { left: 16px; bottom: 16px; top: auto; width: auto; }
  .j-kpis li { width: 124px; }
}
@media (max-width: 560px) {
  .j-screen { left: 20px; right: -20px; top: 20px; width: auto; }
  .j-kpis { left: 12px; bottom: 12px; gap: 6px; }
  .j-kpis li { width: 104px; }
}
@media (max-width: 560px) { .j-kpis { display: none; } }

.review-photos-edit {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.review-photos-edit li {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}
