/* ==========================================================================
   TrustBrick design system
   Navy is the brand. Orange is action. Green is confirmation.
   Everything else is quiet so those three can do the talking.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand ---------------------------------------------------------------- */
  --navy-900: #0a1330;
  --navy-850: #0d1a3d;
  --navy-800: #101f47;
  --navy-700: #16255c;
  --navy-600: #1e3272;
  --navy-500: #2a4392;
  --navy-400: #4560ac;
  --navy-200: #b9c4dd;
  --navy-100: #dde4f2;
  --navy-050: #eef2fa;

  --orange-700: #c53f0a;
  --orange-600: #e14a0e;
  --orange-500: #f4581c;
  --orange-400: #ff7a3d;
  --orange-100: #ffe6da;
  --orange-050: #fff4ef;

  --green-700: #0b6f30;
  --green-600: #0f8a3c;
  --green-500: #17a44b;
  --green-100: #d8f3e2;
  --green-050: #edfbf2;

  /* Neutrals -------------------------------------------------------------- */
  --ink-900: #10151f;
  --ink-800: #1f2633;
  --ink-700: #333c4d;
  --ink-600: #4a5468;
  --ink-500: #667186;
  --ink-400: #8a94a6;
  --ink-300: #b3bbc9;
  --line-strong: #cfd6e2;
  --line: #e2e7ef;
  --line-soft: #eef1f6;
  --surface: #ffffff;
  --surface-alt: #f7f8fb;
  --surface-sunk: #f1f3f8;

  /* Semantic -------------------------------------------------------------- */
  --positive: var(--green-600);
  --positive-bg: var(--green-050);
  --warning: #b45309;
  --warning-bg: #fff7e8;
  --critical: #c02626;
  --critical-bg: #fdeceb;
  --info: var(--navy-500);
  --info-bg: var(--navy-050);

  /* Type ------------------------------------------------------------------ */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  /* Fluid scale. The upper bounds are what a 1440px+ screen actually gets:
     body 18px, card headings 28px, section headings 56px, hero 88px. */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);      /*  11.5 - 13 px */
  --step--1: clamp(0.82rem, 0.79rem + 0.16vw, 0.95rem);   /*  13 - 15 px   */
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);      /*  16 - 18 px   */
  --step-1: clamp(1.12rem, 1.05rem + 0.34vw, 1.375rem);   /*  18 - 22 px   */
  --step-2: clamp(1.3rem, 1.15rem + 0.72vw, 1.75rem);     /*  21 - 28 px   */
  --step-3: clamp(1.6rem, 1.3rem + 1.45vw, 2.5rem);       /*  26 - 40 px   */
  --step-4: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);          /*  32 - 56 px   */
  --step-5: clamp(2.6rem, 1.55rem + 4.6vw, 5.5rem);       /*  42 - 88 px   */

  /* Space ----------------------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --sp-11: 10rem;

  /* Vertical rhythm between full-width sections: 80px small, 160px large. */
  --section-y: clamp(5rem, 2.6rem + 6vw, 10rem);
  --section-y-tight: clamp(3.5rem, 2rem + 3.6vw, 6.5rem);
  /* Gutter inside every container: 24px phone, 64px desktop. */
  --gutter: clamp(1.25rem, 0.6rem + 2.4vw, 4rem);

  /* Shape ----------------------------------------------------------------- */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* Elevation - used sparingly */
  --shadow-sm: 0 1px 2px rgba(16, 21, 31, 0.06);
  --shadow-md: 0 4px 16px -4px rgba(16, 21, 31, 0.1);
  --shadow-lg: 0 18px 44px -18px rgba(10, 19, 48, 0.28);

  /* Content widths. The site is designed for large desktops: 1440px is the
     working measure, 1680px for full-bleed compositions, 1120px for reading
     and 860px for forms and long-form prose. */
  /* Base tier (up to 1920). Wider tiers are stepped up in the media queries
     at the end of this file so ultrawide screens do not leave the content
     stranded in a narrow centre column. */
  --container: 1440px;
  --container-wide: 1680px;
  --container-mid: 1120px;
  --container-narrow: 900px;
  /* Reference spec: 78-88px desktop header. */
  --header-h: 84px;
  --header-h-scrolled: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.021em;
  color: var(--navy-800);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-size: var(--step-0); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-color: var(--navy-200); text-underline-offset: 3px; }
a:hover { color: var(--orange-600); text-decoration-color: currentColor; }

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

small { font-size: var(--step--1); }
strong { font-weight: 650; color: var(--ink-900); }

code, kbd { font-family: var(--font-mono); font-size: 0.9em; }

button, input, select, textarea { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* Focus: always visible, never noisy */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--navy-100); color: var(--navy-900); }

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  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;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy-800);
  color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--mid { max-width: var(--container-mid); }
.container--narrow { max-width: var(--container-narrow); }
/* Reading measure for the accordion. --narrow left the FAQ at 772px, reading as
   a column stranded in the middle of a wide page. The gutter is added back on
   top so the *content* stays 880px at every width, rather than shrinking again
   as --gutter grows on ultrawide screens. */
.container--faq { max-width: calc(55rem + 2 * var(--gutter)); }
/* Full-bleed row inside a container-bounded section. */
.container--flush { max-width: none; padding-inline: 0; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--alt { background: var(--surface-alt); }
.section--sunk { background: var(--surface-sunk); }
.section--navy {
  background: var(--navy-850);
  color: var(--navy-100);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a { color: #fff; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--ink-500); }
.text-small { font-size: var(--step--1); }

/* Small print is still prose. Without a measure the disclosure notes under the
   finder and the recommender ran the full container - about 280 characters a
   line on a 3440 display. Cards and table cells are already narrower than the
   cap, so it does nothing there. */
p.text-small { max-width: 80ch; }
.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 62ch;
}
.section--navy .lede { color: var(--navy-200); }

/* --------------------------------------------------------------------------
   4. Section headers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: var(--sp-3);
}
/* Icons ------------------------------------------------------------------- */
/* The icon() macro emits <svg class="icon"> with no width or height, so an
   unstyled context renders the SVG default of 300x150. This gives every icon
   a text-relative size; any component rule (.foo svg { ... }) is more
   specific and still wins. */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.16em;
}

.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  flex: none;
  background: var(--orange-500);
  border-radius: 2px;
}
/* The icon macro emits a bare <svg> with no dimensions; as a flex item it
   would stretch to the line box. */
.eyebrow svg { width: 1.05em; height: 1.05em; flex: none; }
.section--navy .eyebrow { color: var(--orange-400); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-8);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-7);
}
/* Basis applies to the main axis, so it is only meaningful while this is a
   row. The --center variant flips to a column, where a 30rem basis would
   become a 480px minimum HEIGHT and leave a large empty band under the copy. */
.section-head__text { max-width: 34ch; flex: 1 1 auto; min-width: min(100%, 22rem); }
.section-head:not(.section-head--center) > .section-head__text { flex-basis: 30rem; }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head .lede { max-width: 52ch; margin-bottom: 0; }

/* Heading left, supporting copy right - fills a wide row instead of leaving
   the right half of the viewport empty. */
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--sp-5) clamp(var(--sp-6), 5vw, var(--sp-9));
}
.section-head--split .section-head__text { max-width: none; }
.section-head--split .section-head__text h2 { max-width: 18ch; }
.section-head--split > :last-child:not(.section-head__text) { justify-self: end; }
/* When the head carries only a heading, let it use the full row. */
.section-head--split > .section-head__text:only-child { grid-column: 1 / -1; }
.section-head--split > .section-head__text:only-child h2 { max-width: 26ch; }

/* Centred marquee heading for the signature sections. */
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
/* `ch` here resolves against the container's 18px font, not the 56px heading,
   so it has to be an absolute measure or the heading wraps to a thin column. */
.section-head--center .section-head__text {
  max-width: min(100%, 50rem);
  /* Column direction: never stretch beyond the copy's own height. */
  flex: 0 0 auto;
  min-width: 0;
}
.section-head--center > * { flex: 0 0 auto; }
.section-head--center .lede { max-width: min(100%, 44rem); margin-inline: auto; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head__text { max-width: none; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-700);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.72rem 1.35rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; pointer-events: none; transform: none; box-shadow: none;
}

.btn--primary { --btn-bg: var(--orange-500); }
.btn--primary:hover { --btn-bg: var(--orange-600); }

.btn--navy { --btn-bg: var(--navy-700); }
.btn--navy:hover { --btn-bg: var(--navy-800); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-700);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--navy-050); --btn-border: var(--navy-200); }

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.14); }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--ink-600);
  --btn-border: transparent;
  padding-inline: 0.6rem;
}
.btn--quiet:hover { --btn-bg: var(--surface-sunk); --btn-fg: var(--navy-700); box-shadow: none; }

.btn--danger { --btn-bg: var(--critical); }
.btn--danger:hover { --btn-bg: #a11f1f; }

.btn--sm { padding: 0.45rem 0.85rem; font-size: var(--step--1); border-radius: var(--r-sm); }
.btn--lg { padding: 0.95rem 1.8rem; font-size: var(--step-1); }
.btn--block { width: 100%; }
.btn--icon { padding: 0.5rem; width: 2.25rem; height: 2.25rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-700);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
/* The mobile navigation sheet only exists below 1024px, where responsive.css
   makes it a fixed overlay. It must not take part in desktop layout. */
.mobile-nav { display: none; }
.nav-toggle { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.site-header--overlay {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header--overlay .nav__link,
.site-header--overlay .header__action { color: rgba(255, 255, 255, 0.86); }
.site-header--overlay .nav__link:hover,
.site-header--overlay .nav__link[aria-current="page"] { color: #fff; }
.site-header--overlay .logo__fallback-name { color: #fff; }
.site-header--overlay .logo__fallback-tag { color: rgba(255, 255, 255, 0.7); }
.site-header--overlay.is-stuck {
  position: sticky;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: var(--line);
}
.site-header--overlay.is-stuck .nav__link,
.site-header--overlay.is-stuck .header__action { color: var(--ink-700); }
.site-header--overlay.is-stuck .logo__fallback-name { color: var(--navy-800); }
.site-header--overlay.is-stuck .logo__fallback-tag { color: var(--ink-500); }

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-4), 2vw, var(--sp-7));
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease);
}
.site-header.is-stuck .header__inner { min-height: var(--header-h-scrolled); }

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
/* The supplied lockup is 1403 x 941. Only the height is set; width follows
   from the intrinsic ratio, so the mark can never be stretched. */
.logo__img {
  height: clamp(46px, 4.6vw, 72px);
  width: auto;
  display: block;
  transition: height var(--dur) var(--ease);
}
.site-header.is-stuck .logo__img { height: clamp(42px, 3.6vw, 56px); }

/* On the dark overlay header and the mobile sheet the navy half of the
   wordmark would disappear, so the mark sits on its own white plate rather
   than being recoloured. */
.site-header--overlay:not(.is-stuck) .logo__img,
.logo--sheet .logo__img {
  background: #fff;
  padding: 6px 10px;
  border-radius: var(--r-md);
  box-shadow: 0 2px 10px -4px rgba(10, 19, 48, 0.4);
}

.logo__fallback { display: flex; flex-direction: column; line-height: 1.05; }
.logo__fallback-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy-800); }
.logo__fallback-name span { color: var(--orange-500); }
.logo__fallback-tag {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, var(--sp-2));
  margin-inline: auto;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.7rem clamp(0.55rem, 0.9vw, 1.05rem);
  border-radius: var(--r-md);
  color: var(--ink-700);
  font-weight: 600;
  font-size: clamp(0.88rem, 0.82rem + 0.14vw, 1rem);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--navy-700); background: var(--navy-050); }
.nav__link[aria-current="page"] { color: var(--orange-600); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: -1px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.nav__caret { width: 0.7em; height: 0.7em; transition: transform var(--dur-fast) var(--ease); }
.nav__item[data-open="true"] .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 400px;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur);
}
.nav__item[data-open="true"] .nav__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__panel-link {
  display: block;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink-800);
  transition: background-color var(--dur-fast) var(--ease);
}
.nav__panel-link:hover { background: var(--navy-050); color: var(--navy-800); }
.nav__panel-link strong { display: block; font-weight: 650; margin-bottom: 2px; }
.nav__panel-link span { display: block; font-size: var(--step--1); color: var(--ink-500); }

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-2), 0.8vw, var(--sp-3));
  flex: none;
}
.header__cta {
  padding: 0.72rem 1.35rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header__cta-ghost {
  padding: 0.72rem 1.1rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
/* On the transparent overlay header the ghost button needs light treatment. */
.site-header--overlay:not(.is-stuck) .header__cta-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.site-header--overlay:not(.is-stuck) .header__cta-ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
}
@media (max-width: 1180px) {
  .header__cta-ghost { display: none; }
}
.header__action {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border: 0;
  background: transparent;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.header__action:hover { background: var(--navy-050); color: var(--navy-700); }
.header__action svg { width: 1.3rem; height: 1.3rem; }

.header__badge {
  position: absolute;
  top: 4px; right: 3px;
  min-width: 17px;
  padding: 0 4px;
  height: 17px;
  border-radius: var(--r-pill);
  background: var(--orange-500);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

.nav-toggle { display: none; }

/* Account menu ------------------------------------------------------------ */
.avatar {
  display: grid;
  place-items: center;
  width: 2.15rem; height: 2.15rem;
  border-radius: var(--r-pill);
  background: var(--navy-700);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.avatar--lg { width: 3.2rem; height: 3.2rem; font-size: 1.05rem; }
.avatar--orange { background: var(--orange-500); }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur);
  z-index: 60;
}
.menu[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.menu__header {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--sp-2);
}
.menu__header strong { display: block; }
.menu__header span { font-size: var(--step--1); color: var(--ink-500); word-break: break-all; }
.menu__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.55rem var(--sp-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-700);
  font-size: 0.93rem;
  transition: background-color var(--dur-fast) var(--ease);
}
.menu__link:hover { background: var(--navy-050); color: var(--navy-800); }
.menu__link svg { width: 1.05rem; height: 1.05rem; color: var(--ink-400); }
.menu__divider { height: 1px; background: var(--line-soft); margin: var(--sp-2) 0; }
.menu__section-label {
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card__body { padding: var(--sp-5); }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-soft);
}
.card__head h3, .card__head h2 { margin: 0; font-size: var(--step-1); }
.card__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line-soft);
  background: var(--surface-alt);
}

.grid { display: grid; gap: clamp(var(--sp-4), 1.6vw, var(--sp-6)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* auto-fit rather than auto-fill so a short row still fills the width. */
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (max-width: 1400px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: minmax(0, 1fr); }
}

/* Feature card ------------------------------------------------------------ */
.feature {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.feature:hover {
  border-color: var(--navy-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--navy-050);
  color: var(--navy-600);
  margin-bottom: var(--sp-4);
}
.feature__icon svg { width: 1.35rem; height: 1.35rem; }
.feature--orange .feature__icon { background: var(--orange-050); color: var(--orange-600); }
.feature--green .feature__icon { background: var(--green-050); color: var(--green-600); }
.feature h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.feature p { color: var(--ink-600); margin: 0; }

/* --------------------------------------------------------------------------
   8. Badges & pills
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.5;
  background: var(--surface-sunk);
  color: var(--ink-600);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--positive { background: var(--positive-bg); color: var(--green-700); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--critical { background: var(--critical-bg); color: var(--critical); }
.badge--info { background: var(--info-bg); color: var(--navy-600); }
.badge--neutral { background: var(--surface-sunk); color: var(--ink-600); }
.badge--navy { background: var(--navy-700); color: #fff; }
.badge--orange { background: var(--orange-500); color: #fff; }
.badge--outline { background: transparent; border-color: var(--line-strong); color: var(--ink-600); }
.badge--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--navy-050);
  color: var(--navy-700);
  font-size: var(--step--1);
  font-weight: 600;
}
.pill--light { background: rgba(255, 255, 255, 0.1); color: #fff; }

.demo-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-xs);
  background: repeating-linear-gradient(
    -45deg, var(--warning-bg), var(--warning-bg) 6px,
    #fdf1dd 6px, #fdf1dd 12px);
  color: var(--warning);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9. Notices
   -------------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.94rem;
  line-height: 1.55;
}
.notice svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 2px; }
.notice--info { background: var(--info-bg); border-color: var(--navy-100); color: var(--navy-700); }
.notice--positive { background: var(--positive-bg); border-color: var(--green-100); color: var(--green-700); }
.notice--warning { background: var(--warning-bg); border-color: #f6e0b8; color: var(--warning); }
.notice--critical { background: var(--critical-bg); border-color: #f7cfcd; color: var(--critical); }
.notice--legal {
  background: var(--surface-sunk);
  border-color: var(--line);
  color: var(--ink-600);
  font-size: var(--step--1);
}

.flashes {
  position: fixed;
  top: calc(var(--header-h) + var(--sp-4));
  right: var(--sp-5);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: min(400px, calc(100vw - 2 * var(--sp-5)));
  pointer-events: none;
}
.flash {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy-500);
  box-shadow: var(--shadow-lg);
  animation: flash-in var(--dur) var(--ease);
}
.flash--success { border-left-color: var(--green-500); }
.flash--error { border-left-color: var(--critical); }
.flash--warning { border-left-color: var(--orange-500); }
.flash__close {
  margin-left: auto;
  border: 0; background: transparent;
  color: var(--ink-400); cursor: pointer;
  padding: 0; line-height: 1;
}
.flash__close:hover { color: var(--ink-700); }

@keyframes flash-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.field__label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-700);
}
.field__label .req { color: var(--orange-600); margin-left: 2px; }
/* Capped like the other small print: a hint under a full-width textarea
   otherwise runs past 120 characters a line. */
.field__hint { margin-top: var(--sp-2); font-size: var(--step--1); color: var(--ink-500);
  max-width: 80ch; }
.field__error {
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--critical);
  font-weight: 600;
}

.input, .select, .textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-900);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(42, 67, 146, 0.14);
  outline: none;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--critical);
  box-shadow: 0 0 0 3px rgba(192, 38, 38, 0.12);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

.select {
  padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234a5468' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  cursor: pointer;
}

.input-group { display: flex; position: relative; align-items: stretch; }
.input-group .input { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group .btn { border-radius: 0 var(--r-md) var(--r-md) 0; }

/* A leading icon dropped straight into .input-group (no wrapper) sits inside
   the field's padding. Without an explicit size it would stretch to fill the
   flex line. */
.input-group > svg:first-child {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  color: var(--ink-400);
  pointer-events: none;
  z-index: 1;
}
.input-group > svg:first-child ~ .input {
  padding-left: 2.6rem;
  border-radius: var(--r-md);
}

.checkbox, .radio {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: 0.94rem;
  line-height: 1.45;
}
.checkbox input, .radio input {
  width: 1.05rem; height: 1.05rem;
  margin: 0.22rem 0 0;
  accent-color: var(--orange-500);
  cursor: pointer;
  flex: none;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.switch-row:last-child { border-bottom: 0; }

.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--sp-4); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

/* Segmented control ------------------------------------------------------- */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-sunk);
  border-radius: var(--r-md);
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   11. Property cards
   -------------------------------------------------------------------------- */
.property-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-200);
}
/* The photograph is the sell, so it carries roughly 55% of the card: 16/11 left
   it at about half and the card read as a data row with a picture attached. */
.property-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--navy-900);
}
.property-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.property-card:hover .property-card__media img { transform: scale(1.05); }
.property-card__tags {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
}
.property-card__fav {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-600);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.property-card__fav:hover { transform: scale(1.08); color: var(--orange-500); }
.property-card__fav[aria-pressed="true"] { color: var(--orange-500); }
.property-card__fav[aria-pressed="true"] svg { fill: currentColor; }
.property-card__fav svg { width: 1.1rem; height: 1.1rem; }

.property-card__body { padding: var(--sp-4) var(--sp-5); flex: 1; }
.property-card__title {
  font-size: var(--step-1);
  margin-bottom: var(--sp-1);
}
.property-card__title a { color: inherit; text-decoration: none; }
.property-card__title a:hover { color: var(--orange-600); }
.property-card__location {
  display: flex; align-items: center; gap: var(--sp-1);
  font-size: var(--step--1);
  color: var(--ink-500);
  margin-bottom: var(--sp-3);
}
.property-card__location svg { width: 0.9rem; height: 0.9rem; }
.property-card__specs {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--step--1);
  color: var(--ink-600);
}
.property-card__spec { display: flex; align-items: center; gap: var(--sp-2); }
.property-card__spec svg { width: 0.95rem; height: 0.95rem; color: var(--ink-400); }
.property-card__amenities {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.property-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line-soft);
  background: var(--surface-alt);
}
.property-card__price { line-height: 1.25; }
.property-card__price small {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.property-card__price strong {
  font-size: var(--step-1);
  color: var(--orange-600);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. Product cards
   -------------------------------------------------------------------------- */
/* Each card is tinted by the shelf it sits on and weighted by its price band,
   so a 99 rupee checklist and a 49,999 enterprise toolkit read as two rungs of
   one ladder rather than two identical document cards. Both cues come from the
   catalogue row (category slug, price_band) - nothing is illustrated by hand. */
.product-card {
  --pc-accent: var(--navy-500);
  --pc-tint: var(--navy-050);
  --pc-deep: var(--navy-700);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 23rem;
  padding: clamp(var(--sp-5), 1.8vw, var(--sp-6));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.product-card[data-category="property-essentials"] {
  --pc-accent: var(--orange-500); --pc-tint: var(--orange-050); --pc-deep: var(--orange-700);
}
.product-card[data-category="property-management"] {
  --pc-accent: var(--green-500); --pc-tint: var(--green-050); --pc-deep: var(--green-700);
}
.product-card[data-category="property-transactions"] {
  --pc-accent: var(--navy-400); --pc-tint: var(--navy-050); --pc-deep: var(--navy-600);
}
.product-card[data-category="broker"] {
  --pc-accent: var(--orange-600); --pc-tint: var(--orange-050); --pc-deep: var(--orange-700);
}
.product-card[data-category="agency"] {
  --pc-accent: var(--navy-500); --pc-tint: var(--navy-050); --pc-deep: var(--navy-700);
}
.product-card[data-category="enterprise"] {
  --pc-accent: var(--navy-700); --pc-tint: var(--navy-100); --pc-deep: var(--navy-800);
}

/* A tinted header band lifts the card away from looking like a file listing. */
.product-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5.25rem;
  background: linear-gradient(180deg, var(--pc-tint), transparent);
  pointer-events: none;
}
/* Accent rail: the fastest read of which shelf a card belongs to. */
.product-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--pc-accent);
  transition: height var(--dur) var(--ease);
}
.product-card > * { position: relative; }
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--pc-accent);
}
.product-card:hover::after { height: 5px; }

/* The shelf's own icon, used as a watermark rather than a new illustration. */
.product-card__motif {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  z-index: 0;
  color: var(--pc-accent);
  opacity: 0.08;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product-card__motif svg { width: 7.5rem; height: 7.5rem; }
.product-card:hover .product-card__motif { opacity: 0.14; transform: scale(1.06); }

.product-card__num {
  position: absolute;
  top: var(--sp-4); right: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--pc-accent);
  opacity: 0.28;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: opacity var(--dur) var(--ease);
}
.product-card:hover .product-card__num { opacity: 0.5; }

.product-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding-right: 3rem;
}
.product-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc-deep);
}
.product-card__type {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-sm);
  background: var(--pc-tint);
  border: 1px solid var(--pc-accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-deep);
}
.product-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-2);
  padding-right: 2.5rem;
}
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--pc-deep); }
.product-card__purpose {
  color: var(--ink-600);
  font-size: 0.93rem;
  margin-bottom: var(--sp-4);
  flex: 1;
}
.product-card__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
}
/* 44px minimum: these are the page's most-tapped controls. */
.product-card__foot .btn { padding: 0.7rem 1.1rem; min-height: 44px; }
.product-card__price {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.product-card__price--request {
  font-size: var(--step-0);
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0;
}
/* Price band decides how much weight the number carries, so the ladder is
   visible across a grid without reading a single figure. */
.product-card[data-tier="2000-10000"] .product-card__price { font-size: var(--step-2); }
.product-card[data-tier="10000-25000"] .product-card__price,
.product-card[data-tier="25000-plus"] .product-card__price {
  font-size: var(--step-3);
  color: var(--pc-deep);
}
.product-card[data-tier="25000-plus"] {
  border-color: var(--navy-200);
  box-shadow: var(--shadow-sm);
}
.product-card[data-tier="25000-plus"]::before { height: 7rem; }

.product-card[data-owned="true"] { border-color: var(--green-100); background: var(--green-050); }

/* --------------------------------------------------------------------------
   13. Filters
   -------------------------------------------------------------------------- */
.filter-bar {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.filter-bar--floating {
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
}
.filter-bar__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
  align-items: end;
}
.filter-bar__actions { display: flex; gap: var(--sp-2); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-600);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--navy-400); color: var(--navy-700); }
.chip[aria-pressed="true"] {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}
.chip__remove { display: inline-grid; place-items: center; opacity: 0.7; }
.chip__remove:hover { opacity: 1; }
.chip svg { width: 0.85rem; height: 0.85rem; }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.results-bar__count { color: var(--ink-600); font-size: 0.94rem; }
.results-bar__count strong { color: var(--ink-900); }

/* --------------------------------------------------------------------------
   14. States
   -------------------------------------------------------------------------- */
.state {
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
}
.state__icon {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-400);
}
.state__icon svg { width: 1.6rem; height: 1.6rem; }
.state h3 { margin: 0; font-size: var(--step-1); }
.state p { margin: 0; color: var(--ink-500); max-width: 46ch; }
.state--error { border-color: #f2c9c7; background: var(--critical-bg); }
.state--error .state__icon { color: var(--critical); border-color: #f2c9c7; }
.state[hidden] { display: none; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-sunk) 25%, var(--line-soft) 37%, var(--surface-sunk) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-card { height: 320px; border-radius: var(--r-lg); }
.skeleton-row { height: 44px; margin-bottom: var(--sp-2); }
.skeleton-line { height: 12px; margin-bottom: var(--sp-2); }

.spinner {
  width: 1.1em; height: 1.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.is-loading { position: relative; pointer-events: none; opacity: 0.65; }

/* --------------------------------------------------------------------------
   15. Steps & timelines
   -------------------------------------------------------------------------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
}
.steps li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1 1 160px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-500);
  margin: 0;
}
.steps__num {
  display: grid; place-items: center;
  width: 1.85rem; height: 1.85rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 0.78rem;
  flex: none;
}
.steps li[data-state="done"] {
  background: var(--green-050);
  border-color: var(--green-100);
  color: var(--green-700);
}
.steps li[data-state="done"] .steps__num {
  background: var(--green-500); border-color: var(--green-500); color: #fff;
}
.steps li[data-state="current"] {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
  font-weight: 600;
}
.steps li[data-state="current"] .steps__num {
  background: var(--orange-500); border-color: var(--orange-500); color: #fff;
}

.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline__item { position: relative; padding-bottom: var(--sp-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-6) + 4px);
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--navy-400);
}
.timeline__item[data-tone="warning"]::before { border-color: var(--orange-500); }
.timeline__item[data-tone="critical"]::before { border-color: var(--critical); }
.timeline__item[data-tone="positive"]::before { border-color: var(--green-500); }
.timeline__when {
  font-size: var(--step--1);
  color: var(--ink-500);
  font-weight: 600;
}
.timeline__title { font-weight: 600; margin: 2px 0; }
.timeline__detail { font-size: 0.9rem; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   16. Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
}
.accordion__trigger:hover { color: var(--orange-600); }
.accordion__icon {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.accordion__icon svg { width: 0.8rem; height: 0.8rem; }
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
  background: var(--navy-050);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__trigger[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__body { padding-bottom: var(--sp-5); color: var(--ink-600); max-width: 78ch; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--navy-200);
  padding-top: var(--sp-8);
  margin-top: var(--sp-9);
}
.site-footer a { color: var(--navy-200); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
  gap: clamp(var(--sp-5), 2.4vw, var(--sp-8));
  padding-block: var(--sp-8) var(--sp-7);
}
@media (max-width: 1280px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
.footer__col--contact ul a,
.footer__address {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-2);
  line-height: 1.5;
}
.footer__col--contact svg { width: 1rem; height: 1rem; flex: none; margin-top: 3px; color: var(--orange-400); }
.footer__address { color: var(--navy-200); font-size: var(--step--1); }
.footer__logo { margin-bottom: var(--sp-5); }
.footer__logo .logo__img { height: 62px; }
.footer__brand p { color: var(--navy-200); font-size: 0.92rem; max-width: 34ch; }

.footer__logo img { width: auto; }
.footer__col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--sp-3); font-size: 0.92rem; }
.footer__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer__social a {
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  transition: background-color var(--dur-fast) var(--ease);
}
.footer__social a:hover { background: var(--orange-500); }
.footer__social svg { width: 1.05rem; height: 1.05rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--navy-200);
}
.footer__bottom nav { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal {
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(185, 196, 221, 0.75);
  max-width: 100ch;
}

/* --------------------------------------------------------------------------
   18. Modal & drawer
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  background: rgba(10, 19, 48, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.modal[data-open="true"] { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform var(--dur) var(--ease);
}
.modal[data-open="true"] .modal__panel { transform: none; }
.modal__panel--wide { width: min(980px, 100%); }
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { margin: 0; font-size: var(--step-2); }
.modal__head p { margin: var(--sp-1) 0 0; color: var(--ink-500); font-size: 0.92rem; }
.modal__body { padding: var(--sp-5) var(--sp-6); overflow-y: auto; flex: 1; }
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.modal__close {
  border: 0; background: transparent;
  color: var(--ink-400); cursor: pointer;
  padding: var(--sp-1); line-height: 1;
  border-radius: var(--r-sm);
}
.modal__close:hover { color: var(--ink-800); background: var(--surface-sunk); }
.modal__close svg { width: 1.25rem; height: 1.25rem; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   19. Search overlay
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10, 19, 48, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
  padding-top: 12vh;
}
.search-overlay[data-open="true"] { opacity: 1; visibility: visible; }
.search-overlay__panel {
  width: min(680px, calc(100vw - 2 * var(--sp-5)));
  margin-inline: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform var(--dur) var(--ease);
}
.search-overlay[data-open="true"] .search-overlay__panel { transform: none; }
.search-overlay__input {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.search-overlay__input svg { width: 1.2rem; height: 1.2rem; color: var(--ink-400); flex: none; }
.search-overlay__input input {
  flex: 1;
  border: 0;
  font-size: var(--step-1);
  background: transparent;
}
.search-overlay__input input:focus { outline: none; }
.search-overlay__results { max-height: 55vh; overflow-y: auto; padding: var(--sp-3); }
.search-group + .search-group { margin-top: var(--sp-4); }
.search-group__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: var(--sp-2) var(--sp-3);
}
.search-result {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
}
.search-result:hover, .search-result:focus-visible { background: var(--navy-050); }
.search-result__text { flex: 1; min-width: 0; }
.search-result__text strong { display: block; font-weight: 600; }
.search-result__text span {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result__meta { font-size: var(--step--1); color: var(--ink-500); font-weight: 600; flex: none; }
.search-result__thumb {
  width: 44px; height: 34px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex: none;
}
.search-overlay__foot {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: var(--step--1);
  color: var(--ink-500);
  display: flex; gap: var(--sp-4); flex-wrap: wrap;
}
.kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   20. Tables (public-facing)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { font-size: 0.93rem; }
.table th, .table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table th {
  background: var(--surface-alt);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-alt); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   21. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 320ms; }

/* --------------------------------------------------------------------------
   21b. JS-driven state hooks
   -------------------------------------------------------------------------- */

/* Lazy images fade in once decoded, so cards do not flash a grey box. */
img[loading="lazy"] { opacity: 0; transition: opacity 420ms var(--ease); }
img[loading="lazy"].is-loaded { opacity: 1; }
img[loading="lazy"].is-error {
  opacity: 1;
  background: var(--navy-050);
  /* Hide the browser's broken-image glyph. */
  color: transparent;
  font-size: 0;
}
html:not([data-js="on"]) img[loading="lazy"] { opacity: 1; }

/* Refresh buttons spin while their table reloads. */
@keyframes tb-spin { to { transform: rotate(360deg); } }
.is-spinning svg { animation: tb-spin 620ms linear infinite; }

/* Keyboard selection in the search overlay. */
.search-result.is-active {
  background: var(--navy-050);
  outline: 2px solid var(--navy-400);
  outline-offset: -2px;
}

/* Inline tag clusters inside table cells. */
.tag-cluster { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* ==========================================================================
   24. Authentication pages
   ========================================================================== */
.site-header--minimal { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header--minimal .header__inner { justify-content: space-between; }

.auth {
  display: grid;
  /* Reference spec: navy architectural panel on the LEFT at 45%, the white
     authentication panel on the RIGHT at 55%. The columns are assigned
     explicitly because the aside follows the form in the markup - the form
     stays first in source order so keyboard and screen-reader users reach the
     actual task before the brand panel. */
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}
.auth__aside { grid-column: 1; grid-row: 1; }
.auth__form-col { grid-column: 2; grid-row: 1; }
.auth__form-col {
  display: grid;
  place-items: center;
  padding: var(--sp-8) var(--sp-5);
}
/* Reference spec: 400-460px form column. */
.auth__form { width: min(440px, 100%); }
/* Reference spec: 54-58px inputs, 8-10px radius, no heavy card shadow. */
.auth__form .input,
.auth__form .select {
  min-height: 56px;
  /* 0.9rem block padding pushed the box to 59px, past the 54-58px the
     reference allows; min-height carries the size instead. */
  padding: 0.7rem 1rem;
  border-radius: 10px;
}
.auth__form .btn { border-radius: 10px; }
.auth__form .btn--lg { min-height: 56px; font-size: 1rem; }
.auth__secure {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: var(--ink-500);
}
.auth__secure svg { width: 1rem; height: 1rem; color: var(--green-600, #17a44b); flex: none; }
.auth__form h1 { font-size: var(--step-3); margin-bottom: var(--sp-2); }
.auth__form > p:first-of-type { color: var(--ink-500); margin-bottom: var(--sp-6); }
.auth__legal { font-size: var(--step--1); color: var(--navy-200); margin-top: var(--sp-6); }
.auth__legal a { color: #fff; }

.auth__aside {
  display: flex;
  align-items: center;
  padding: var(--sp-8) var(--sp-7);
  background:
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 70%, var(--navy-600) 100%);
  color: #fff;
}
.auth__aside-inner { max-width: 420px; margin-inline: auto; }
.auth__aside .eyebrow { color: var(--orange-400); }
.auth__aside h2 { color: #fff; font-size: var(--step-2); margin-bottom: var(--sp-3); }
.auth__aside > div > p { color: var(--navy-200); }

.auth__points { list-style: none; margin: var(--sp-6) 0 0; padding: 0; }
.auth__points li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.auth__points li:first-child { border-top: 0; }
.auth__points strong { display: block; color: #fff; font-weight: 650; }
.auth__points span { color: var(--navy-200); font-size: 0.9rem; }
.auth__point-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: var(--r-md);
  background: rgba(244, 88, 28, 0.16);
  color: var(--orange-400);
}
.auth__point-icon svg { width: 1rem; height: 1rem; }

@media (max-width: 900px) {
  /* Stacked. The form keeps the first row: putting the brand panel above a
     sign-in form on a phone buries the only task the page exists for. */
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth__aside { grid-column: 1; grid-row: 2; padding: var(--sp-7) var(--sp-5); }
  .auth__form-col { grid-column: 1; grid-row: 1; padding: var(--sp-7) var(--sp-4); }
  /* Reference spec: full width minus 32px, >=52px controls, no overflow. */
  .auth__form { width: 100%; max-width: none; }
  .auth__form .input,
  .auth__form .select { min-height: 52px; }
  .auth__form .btn--lg { min-height: 52px; }
}

/* Reveal button inside .input-group ---------------------------------------- */
.input-group__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.9rem;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface-alt);
  color: var(--ink-500);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.input-group__btn:hover { background: var(--navy-050); color: var(--navy-700); }
.input-group__btn svg { width: 1.05rem; height: 1.05rem; }
.input-group .input { border-radius: var(--r-md) 0 0 var(--r-md); }

/* Password strength meter -------------------------------------------------- */
.strength { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.strength__track {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.strength__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink-300);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.strength__fill[data-tone="critical"] { background: var(--critical); }
.strength__fill[data-tone="warning"] { background: var(--warning); }
.strength__fill[data-tone="positive"] { background: var(--positive); }
.strength__label { font-size: var(--step--1); font-weight: 650; color: var(--ink-500); min-width: 5.5rem; }
.strength__label[data-tone="critical"] { color: var(--critical); }
.strength__label[data-tone="warning"] { color: var(--warning); }
.strength__label[data-tone="positive"] { color: var(--positive); }

/* Role picker -------------------------------------------------------------- */
.role-picker { display: grid; gap: var(--sp-2); }
.role-option {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.role-option:hover { border-color: var(--navy-400); background: var(--navy-050); }
.role-option input { margin-top: 0.25rem; accent-color: var(--orange-500); flex: none; }
.role-option__body strong { display: block; font-weight: 650; color: var(--ink-800); }
.role-option__body span { display: block; font-size: var(--step--1); color: var(--ink-500); }
.role-option:has(input:checked),
.role-option.is-selected {
  border-color: var(--navy-500);
  background: var(--navy-050);
  box-shadow: inset 0 0 0 1px var(--navy-500);
}

/* ==========================================================================
   25. Two-column detail layout (product, property, contact)
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-7);
  align-items: start;
}
.detail-aside { position: sticky; top: calc(var(--header-h) + var(--sp-5)); display: grid; gap: var(--sp-4); }
@media (max-width: 980px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
}

/* Compact product reference ------------------------------------------------ */
.mini-product {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mini-product:hover { border-color: var(--navy-400); transform: translateY(-1px); }
.mini-product__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-600);
  padding-top: 2px;
}
.mini-product__text strong { display: block; color: var(--ink-800); font-weight: 650; font-size: 0.92rem; }
.mini-product__text span { display: block; font-size: var(--step--1); color: var(--ink-500); }

/* ==========================================================================
   26. Long-form prose (legal, descriptions)
   ========================================================================== */
.prose { max-width: 72ch; color: var(--ink-700); line-height: 1.72; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-7); color: var(--navy-800); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-6); color: var(--navy-800); }
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose li + li { margin-top: var(--sp-2); }
.prose a { color: var(--navy-600); }
.prose strong { color: var(--ink-900); }

.legal-doc { max-width: 76ch; }
.legal-doc h2 { scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }

.numbered-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.numbered-list li { counter-increment: step; display: flex; gap: var(--sp-4); align-items: flex-start; }
.numbered-list li::before {
  content: counter(step, decimal-leading-zero);
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: var(--r-md);
  background: var(--navy-050);
  color: var(--navy-600);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.numbered-list strong { display: block; color: var(--ink-800); font-weight: 650; }
.numbered-list span { color: var(--ink-600); font-size: 0.94rem; }

/* ==========================================================================
   27. Radio lists (payment method, catalogue filters)
   ========================================================================== */
.radio-list { display: grid; gap: var(--sp-2); }
.radio-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 0.94rem;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.radio-row:hover { border-color: var(--navy-400); background: var(--navy-050); }
.radio-row input { margin-top: 0.2rem; accent-color: var(--orange-500); flex: none; }
.radio-row strong { display: block; font-weight: 650; color: var(--ink-800); }
.radio-row span { display: block; font-size: var(--step--1); color: var(--ink-500); }
.radio-row:has(input:checked) { border-color: var(--navy-500); background: var(--navy-050); }

/* ==========================================================================
   28. Small shared pieces
   ========================================================================== */
.chip--light { background: var(--navy-050); border-color: var(--navy-100); color: var(--navy-700); }

.reference-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-700);
}

.text-danger { color: var(--critical); }

.span-5 { grid-column: span 5; }

.input--lg { padding: 0.95rem 1.1rem; font-size: var(--step-1); }
.input--sm { padding: 0.4rem 0.6rem; font-size: var(--step--1); }

.modal__scrim { position: absolute; inset: 0; background: transparent; }

.chart__area { fill: var(--navy-100); opacity: 0.55; }
.chart__line { fill: none; stroke: var(--navy-500); stroke-width: 2; }
.chart[data-tone="orange"] .chart__area { fill: var(--orange-100); }
.chart[data-tone="orange"] .chart__line { stroke: var(--orange-500); }
.chart[data-tone="green"] .chart__area { fill: var(--green-100); }
.chart[data-tone="green"] .chart__line { stroke: var(--green-600); }

.page-hero--slim { padding-block: var(--sp-7) var(--sp-6); }

/* Search results page ------------------------------------------------------ */
.search-page-form { display: flex; gap: var(--sp-3); max-width: 640px; }
.search-page-form .input { flex: 1; }
.search-results { display: grid; gap: var(--sp-6); }
.search-result__thumb--icon {
  display: grid;
  place-items: center;
  background: var(--navy-050);
  color: var(--navy-500);
}

/* Fade-up used by JS-rendered cards ---------------------------------------- */
@keyframes tb-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}


/* --------------------------------------------------------------------------
   Pipeline - shared by the broker console, operations room and the
   enterprise solutions page, so it lives here rather than in home.css.
   -------------------------------------------------------------------------- */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: stretch;
  /* It is an <ol>: the stage numbers are rendered, so the markers are not. */
  list-style: none;
  margin: 0;
  padding: 0;
}
.pipeline__stage {
  position: relative;
  flex: 1 1 130px;
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.pipeline__stage::after {
  content: "";
  position: absolute;
  right: calc(-1 * var(--sp-2) - 1px);
  top: 50%;
  translate: 0 -50%;
  width: var(--sp-2);
  height: 2px;
  background: var(--line-strong);
  z-index: 1;
}
.pipeline__stage:last-child::after { display: none; }
.pipeline__count {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pipeline__label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-600);
  margin-top: var(--sp-1);
}
.pipeline__desc { font-size: 0.72rem; color: var(--ink-400); margin-top: var(--sp-1); }
.pipeline__stage[data-hot="true"] {
  border-color: var(--orange-400);
  background: var(--orange-050);
}
.pipeline__stage[data-hot="true"] .pipeline__count { color: var(--orange-600); }


.pipeline--light .pipeline__stage {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-700);
}
.pipeline--light .pipeline__label { color: var(--navy-800); }
.pipeline--light .pipeline__desc { color: var(--ink-500); }
.pipeline--light .pipeline__count { color: var(--orange-600); }
.pipeline--compact .pipeline__stage { padding: var(--sp-3) var(--sp-4); }
.pipeline--compact .pipeline__desc { display: none; }


/* --------------------------------------------------------------------------
   21c. Large-desktop and ultrawide tiers
   -------------------------------------------------------------------------- */
/* Content keeps growing past 1920 instead of sitting in a fixed 1440 column.
   Prose measures stay capped separately so line length never runs away. */
@media (min-width: 1921px) {
  :root {
    --container: 1800px;
    --container-wide: 2000px;
    --gutter: 4.5rem;
  }
}
@media (min-width: 2400px) {
  :root {
    --container: 2100px;
    --container-wide: 2280px;
    --gutter: 5rem;
  }
}
@media (min-width: 3000px) {
  :root {
    --container: 2300px;
    --container-wide: 2400px;
    --gutter: 5.5rem;
  }
  /* Extra breathing room rather than longer text lines. */
  .section { padding-block: 11rem; }
}

/* --------------------------------------------------------------------------
   21d. Minimum tap targets (WCAG 2.5.8 / platform guidance)
   -------------------------------------------------------------------------- */
@media (pointer: coarse), (max-width: 1024px) {
  .btn,
  .header__action,
  .nav-toggle,
  .chip,
  .icon-btn,
  .accordion__trigger,
  .finder__option {
    min-height: 44px;
  }
  .btn { padding-block: 0.72rem; }
  .btn--sm { padding-block: 0.6rem; }
  .chip { display: inline-flex; align-items: center; padding-block: 0.6rem; }
  .icon-btn { width: 44px; height: 44px; }
  .header__action { width: 44px; height: 44px; }
  .nav-toggle { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .property-card:hover, .product-card:hover, .feature:hover, .btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero-3d, .flashes, .btn, .console-sidebar { display: none !important; }
  body { color: #000; background: #fff; }
  .card, .table-wrap { border-color: #999; }
}
