/* Qozee website — one stylesheet, no build step.
   Design: "the building ledger". The property tree (property -> floor -> unit -> bed)
   is the one bold element; everything else stays quiet. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #f7f8f6;
  --ink: #14232b;
  --ink-soft: #223840;
  --muted: #5b6b72;
  --muted-strong: #3f5159;
  --teal: #1b5e72;
  --teal-deep: #12414f;
  --teal-soft: #e2edef;
  --leaf: #3e8e63;
  --leaf-soft: #e3efe8;
  --sun: #e9a23b;
  --sun-soft: #fbeed6;
  --sun-ink: #8a5a09;
  --err: #c8453b;
  --surface: #ffffff;
  --surface-2: #f0f4f2;
  --line: #d6dfe2;
  --line-strong: #b6c5ca;
  --on-teal: #ffffff;

  --radius-btn: 8px;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --header-h: 72px;
  --font:
    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a20;
    --ink: #e9f1f2;
    --ink-soft: #d6e2e5;
    --muted: #93a6ad;
    --muted-strong: #b7c7cc;
    --teal: #6cc0d1;
    --teal-deep: #8ad4e0;
    --teal-soft: #122c35;
    --leaf: #6cc79a;
    --leaf-soft: #123024;
    --sun: #efb35a;
    --sun-soft: #3a2c14;
    --sun-ink: #f0be74;
    --err: #ef8a80;
    --surface: #16232a;
    --surface-2: #121d24;
    --line: #26373f;
    --line-strong: #374b55;
    --on-teal: #07222b;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

a:hover {
  color: var(--teal-deep);
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.021em;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  text-wrap: balance;
}

/* 1.25 scale: 14 / 16 / 20 / 25 / 31 / 39 / 61 */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8125rem);
}

h2 {
  font-size: clamp(1.5625rem, 3.2vw, 2.4375rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

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

/* Every anchored heading clears the sticky header. */
[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 780px);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section-sm {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted-strong);
  max-width: 68ch;
}

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

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 34px;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  .brand img {
    filter: invert(1);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-btn);
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--teal);
  border-radius: 0;
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--on-teal);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--on-teal);
}

.btn-accent {
  background: var(--sun);
  color: #241705;
}

.btn-accent:hover {
  color: #241705;
  background: color-mix(in srgb, var(--sun) 85%, #000);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: " \2192";
  display: inline-block;
}

/* Hero */
.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero .lede {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--leaf);
}

/* The building: floors -> rooms, each room in a real state. */
.hero-visual {
  margin: 0;
}

.building {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.building-floor {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
}

.building-floor + .building-floor {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.building-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.building-rooms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.room {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(5px);
  animation: room-in 0.45s ease forwards;
}

.room--occupied {
  background: var(--leaf-soft);
  border-color: color-mix(in srgb, var(--leaf) 42%, var(--line));
  color: var(--leaf);
}

.room--due {
  background: var(--sun-soft);
  border-color: color-mix(in srgb, var(--sun) 48%, var(--line));
  color: var(--sun-ink);
}

.room--tour {
  background: var(--teal-soft);
  border-color: color-mix(in srgb, var(--teal) 36%, var(--line));
  color: var(--teal);
}

.building-floor:nth-child(2) .room {
  animation-delay: 0.12s;
}

.building-floor:nth-child(3) .room {
  animation-delay: 0.24s;
}

.building-floor:nth-child(4) .room {
  animation-delay: 0.36s;
}

@keyframes room-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.building-legend {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Trust strip */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0 0.5rem;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
  padding-left: 1.2rem;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  color: var(--teal);
  flex: 0 0 auto;
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Section headings */
.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
  margin-inline: auto;
}

.section-head h2 {
  margin-bottom: 0.6rem;
}

/* Grids and flat panels */
.grid {
  display: grid;
  gap: 1.1rem;
}

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

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

.card {
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  color: var(--teal);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

.icon-box--accent {
  color: var(--sun-ink);
}

@media (prefers-color-scheme: dark) {
  .icon-box--accent {
    color: var(--sun);
  }
}

/* Two-column feature list: icon left, hairline between rows. */
.feature-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-cols li {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-cols li:nth-child(odd) {
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.feature-cols li:nth-child(even) {
  padding-left: clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.feature-cols .icon-box {
  margin: 0;
  flex: 0 0 auto;
}

.feature-cols strong {
  display: block;
  margin-bottom: 0.1rem;
}

.feature-cols p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted-strong);
}

/* Tick list */
.tick-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted-strong);
}

.tick-list li {
  position: relative;
  padding-left: 1.5rem;
}

.tick-list li + li {
  margin-top: 0.45rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--leaf);
}

/* Split media */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.media-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 30, 0.74);
  color: #fff;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 0.85rem;
}

.feature-list .icon-box {
  width: 36px;
  height: 36px;
  margin: 0;
  flex: 0 0 auto;
}

.feature-list .icon-box svg {
  width: 20px;
  height: 20px;
}

.feature-list strong {
  display: block;
  margin-bottom: 0.1rem;
}

.feature-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-strong);
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 1.2rem;
  border-top: 2px solid var(--teal);
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--teal);
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-strong);
}

/* Roles */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.role-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.role-card--owner {
  background: linear-gradient(160deg, #12414f, #082c38);
  border-color: transparent;
  color: #fff;
}

.role-card--owner h3,
.role-card--owner .role-label {
  color: #fff;
}

.role-card--owner p,
.role-card--owner li {
  color: rgba(255, 255, 255, 0.78);
}

.role-card--owner .tick-list li::before {
  background: var(--sun);
}

.role-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
}

.role-label svg {
  width: 16px;
  height: 16px;
}

.role-card h3 {
  font-size: 1.45rem;
}

.role-card .tick-list {
  font-size: 0.95rem;
}

.role-link {
  display: inline-block;
  margin-top: 1.25rem;
}

.role-card--owner .role-link {
  color: var(--sun);
}

.role-card--owner .role-link:hover {
  color: #ffd08a;
}

/* Compliance strip */
.compliance {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.compliance-point {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.compliance-point svg {
  width: 17px;
  height: 17px;
  margin-right: 0.35rem;
  vertical-align: -3px;
  color: var(--leaf);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #12414f, #0a2731 65%, #123b46);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  position: relative;
  color: #fff;
}

.cta-band p {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
  margin-inline: auto;
}

.cta-band .btn-row {
  position: relative;
  justify-content: center;
}

.cta-band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Footer */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-brand .brand {
  margin-bottom: 0.8rem;
}

.footer-col h2 {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col h2 a {
  color: inherit;
  text-decoration: none;
}

.footer-col h2 a:hover {
  color: var(--ink);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col a {
  color: var(--muted-strong);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--muted-strong);
}

/* Page header */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.page-hero .lede {
  max-width: 66ch;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Legal pages: narrow reading column, sticky TOC, numbered sections. */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.86rem;
}

.toc summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted-strong);
  list-style: none;
}

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

.toc summary::after {
  content: " \25BE";
  color: var(--muted);
}

.toc ol {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.toc li + li {
  margin-top: 0.35rem;
}

.toc a {
  color: var(--muted-strong);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal {
  max-width: 68ch;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-meta strong {
  color: var(--muted-strong);
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.legal h3 {
  margin-top: 1.6rem;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.legal li {
  overflow-wrap: anywhere;
}

.legal ul,
.legal ol {
  margin-bottom: 1.1rem;
}

.legal-history {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.legal-history h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.policy-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.policy-list a {
  font-weight: 600;
  text-decoration: none;
}

.policy-list p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--sun-soft);
}

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

.callout strong {
  color: var(--ink);
}

.callout--info {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}

/* FAQ / details */
.faq-list {
  display: grid;
  gap: 0.6rem;
  max-width: 820px;
  margin-inline: auto;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 1.2rem;
}

details.faq[open] {
  border-color: var(--line-strong);
}

details.faq summary {
  cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  font-weight: 600;
  list-style: none;
  position: relative;
}

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

details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--teal);
}

details.faq[open] summary::after {
  content: "\2212";
}

details.faq .faq-body {
  padding: 0 0 1.15rem;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

details.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.contact-card p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--muted-strong);
}

.contact-card a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-card .icon-box {
  margin-bottom: 1rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
}

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

.table-wrap th {
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.not-found .code {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--teal);
  opacity: 0.25;
  margin-bottom: -1.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .compliance {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0;
  }

  .trust-item:nth-child(3) {
    border-left: 0;
    padding-left: 0.5rem;
  }

  .trust-item:nth-child(3),
  .trust-item:nth-child(4) {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 40px -20px rgba(13, 34, 48, 0.4);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
  }

  .nav-links a[aria-current="page"] {
    border-radius: var(--radius-btn);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .nav-cta {
    margin: 0.4rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .feature-cols,
  .steps,
  .role-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-cols li:nth-child(odd) {
    padding-right: 0;
  }

  .feature-cols li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .legal-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 460px) {
  .container,
  .narrow {
    width: min(100% - 1.5rem, var(--container));
  }

  .btn-row .btn {
    width: 100%;
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item,
  .trust-item:nth-child(3) {
    border-left: 0;
    padding-left: 0.5rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
  }

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

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

  .room {
    opacity: 1;
    transform: none;
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .btn,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .legal-layout {
    display: block;
  }

  .legal {
    max-width: none;
  }

  .legal a {
    color: #000;
    text-decoration: underline;
  }
}
