@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4eee7;
  --bg-soft: #fbf7f2;
  --surface: rgba(255, 252, 248, 0.9);
  --surface-strong: #fffdf9;
  --surface-deep: #efe7de;
  --line: rgba(74, 64, 53, 0.12);
  --line-strong: rgba(74, 64, 53, 0.2);
  --text: #3f3832;
  --muted: #847b70;
  --gold: #b39449;
  --gold-strong: #8c7033;
  --sage-accent: #6f867d;
  --sage-soft: rgba(111, 134, 125, 0.12);
  --ink-accent: #3e5c6e;
  --blue-soft: rgba(62, 92, 110, 0.11);
  --clay: #bd755f;
  --clay-soft: rgba(189, 117, 95, 0.12);
  --olive: #8c9254;
  --olive-soft: rgba(140, 146, 84, 0.12);
  --stone: #bbb2a3;
  --accent: #d9c9b4;
  --success: #5d8f6e;
  --warning: #af8741;
  --danger: #aa5d52;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 28px 70px rgba(63, 56, 50, 0.12);
  --heading-font: "Cormorant Garamond", Georgia, serif;
  --body-font: "Manrope", "Segoe UI", sans-serif;
}

/* Sprint 1/2: landing comercial + diagnostico legal */
.conversion-landing {
  max-width: 1180px;
}

.conversion-landing .site-header {
  margin-bottom: 14px;
}

.conversion-landing .site-nav button {
  border: 0;
}

.conversion-hero,
.authority-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.conversion-hero-copy,
.conversion-hero-media,
.risk-card,
.diagnostic-band,
.service-product,
.authority-copy,
.authority-media,
.faq-grid article,
.diagnostic-dialog,
.diagnostic-result {
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.88);
  box-shadow: var(--shadow);
}

.conversion-hero-copy {
  border-radius: 26px;
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  align-content: center;
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(246, 240, 232, 0.94)),
    radial-gradient(circle at 12% 0%, rgba(179, 148, 73, 0.16), transparent 34%);
}

.conversion-hero-copy h1 {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 5.2vw, 5.35rem);
  line-height: 0.94;
  margin: 14px 0 16px;
}

.conversion-hero-copy p,
.authority-copy p,
.diagnostic-band p,
.faq-grid p,
.risk-card p,
.service-product p {
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.94rem;
}

.risk-checklist {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.risk-checklist span {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 12px;
  border: 1px solid rgba(170, 93, 82, 0.15);
  background: rgba(170, 93, 82, 0.065);
  color: #5e3d38;
  font-weight: 700;
}

.risk-checklist span::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fffdf9;
  font-size: 0.72rem;
}

.conversion-trust {
  margin-top: 18px;
}

.conversion-hero-copy blockquote {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: #5f5145;
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 1.75vw, 1.65rem);
  line-height: 1.14;
}

.conversion-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 520px;
  background: #2d2823;
}

.conversion-hero-media img,
.authority-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-diagnostic-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  color: #fffaf0;
  background: rgba(39, 34, 29, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-diagnostic-card span {
  color: #e7d4a1;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-diagnostic-card strong {
  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.02;
}

.risk-grid,
.service-product-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

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

.risk-card,
.service-product,
.faq-grid article {
  border-radius: 16px;
  padding: 18px;
}

.risk-icon {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-strong);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.risk-card h3,
.service-product h3,
.faq-grid h3,
.authority-copy h2,
.diagnostic-band h2 {
  font-family: var(--heading-font);
  line-height: 0.98;
  margin: 8px 0 12px;
}

.risk-card h3,
.service-product h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.08;
}

.risk-card strong,
.service-product strong {
  display: block;
  color: #5d4c38;
  margin-top: 12px;
}

.diagnostic-band {
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 270px);
  align-items: center;
  gap: clamp(26px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(63, 56, 50, 0.95), rgba(74, 64, 53, 0.9)),
    radial-gradient(circle at top right, rgba(179, 148, 73, 0.22), transparent 40%);
  color: #fffaf0;
}

.diagnostic-band.section-block {
  padding: clamp(30px, 4vw, 46px);
}

.diagnostic-band > div {
  min-width: 0;
  max-width: 900px;
}

.diagnostic-band .eyebrow,
.diagnostic-band p {
  color: rgba(255, 250, 240, 0.78);
}

.diagnostic-band h2 {
  color: #fffaf0;
  max-width: 760px;
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  line-height: 1.14;
  margin-right: 0;
  margin-top: 10px;
  margin-bottom: 16px;
}

.diagnostic-band .btn {
  width: 100%;
  max-width: 270px;
  justify-self: end;
  white-space: normal;
  text-align: center;
  line-height: 1.16;
  min-height: 54px;
}

.diagnostic-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.diagnostic-points span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(255, 250, 240, 0.86);
}

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

.service-product {
  display: grid;
  align-content: start;
}

.service-product span {
  color: var(--gold-strong);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.service-product a,
.service-product button {
  justify-self: start;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--gold-strong);
  font-weight: 800;
  padding: 0;
}

.service-product.is-featured {
  background:
    linear-gradient(180deg, rgba(179, 148, 73, 0.18), rgba(255, 252, 248, 0.92)),
    rgba(255, 252, 248, 0.88);
  border-color: rgba(179, 148, 73, 0.28);
}

.authority-section {
  margin-top: 18px;
}

.authority-media,
.authority-copy {
  border-radius: 22px;
  overflow: hidden;
}

.authority-copy {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  align-content: center;
}

.authority-copy h2 {
  font-size: clamp(2rem, 3.25vw, 3.2rem);
  line-height: 1.02;
}

.authority-stats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.authority-stats span {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(179, 148, 73, 0.08);
  color: #66533d;
  font-weight: 700;
}

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

.faq-grid h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.diagnostic-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(31, 27, 24, 0.58);
  backdrop-filter: blur(8px);
}

.diagnostic-dialog {
  width: min(980px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 24px;
  padding: 24px;
  background: #fffdf9;
}

.diagnostic-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.diagnostic-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 0.95;
  margin: 8px 0 0;
}

.diagnostic-form {
  display: grid;
  gap: 18px;
}

.diagnostic-question {
  border: 1px solid rgba(74, 64, 53, 0.1);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 12px;
  background: rgba(246, 240, 232, 0.46);
}

.diagnostic-question legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-weight: 800;
  color: #3c342e;
}

.diagnostic-question legend span {
  color: var(--gold-strong);
  letter-spacing: 0.12em;
}

.diagnostic-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.diagnostic-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.diagnostic-options input {
  width: auto;
}

.diagnostic-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding-top: 8px;
}

.diagnostic-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.diagnostic-result {
  border-radius: 20px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(246, 240, 232, 0.94)),
    radial-gradient(circle at top right, rgba(179, 148, 73, 0.16), transparent 34%);
}

.diagnostic-result h3 {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
  margin: 10px 0;
}

.diagnostic-result > strong {
  display: block;
  color: var(--gold-strong);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.score-grid span {
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(179, 148, 73, 0.08);
  color: #66533d;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .risk-grid,
  .service-product-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .conversion-hero,
  .authority-section {
    grid-template-columns: 1fr;
  }

  .conversion-hero-copy,
  .conversion-hero-media {
    min-height: auto;
  }

  .conversion-hero-media {
    aspect-ratio: 4 / 3;
  }

  .diagnostic-band {
    display: grid;
    grid-template-columns: 1fr;
  }

  .diagnostic-band.section-block {
    padding: 24px 20px;
  }

  .diagnostic-band .btn {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .risk-grid,
  .service-product-grid,
  .faq-grid,
  .diagnostic-lead-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .conversion-hero-copy {
    padding: 20px;
  }

  .conversion-hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: 0.98;
  }

  .hero-diagnostic-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .diagnostic-dialog {
    padding: 18px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(179, 148, 73, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(187, 178, 163, 0.18), transparent 24%),
    linear-gradient(135deg, #f5efe9 0%, #f3ece5 42%, #f8f4ef 100%);
  color: var(--text);
  font-family: var(--body-font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 56, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 56, 50, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-shell,
.app-shell,
.login-shell {
  position: relative;
  z-index: 1;
}

.site-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: rgba(255, 251, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand-lockup,
.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: min(320px, 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-landing {
  margin-bottom: 26px;
}

.hero-copy,
.hero-art,
.hero-panel,
.glass-card,
.timeline-step,
.feature-tile,
.metric-card,
.panel,
.soft-panel,
.login-brand-panel,
.login-form-panel,
.auth-card,
.sidebar,
.topbar,
.entity-card,
.modal-card,
.detail-card,
.value-band article,
.closing-cta {
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-art {
  border-radius: 38px;
  padding: 34px;
}

.hero-copy h1,
.hero-copy h2,
.auth-card h2,
.section-heading h2,
.panel-header h3,
#screen-title,
.entity-card h3,
.closing-cta h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 6vw, 6rem);
  margin: 14px 0 18px;
}

.hero-copy h2 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  margin: 14px 0 16px;
}

.hero-copy p,
.auth-card p,
.section-heading p,
.card-copy,
.hero-side-card p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  color: var(--gold-strong);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.77rem;
  font-weight: 800;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(179, 148, 73, 0.25);
  background: rgba(179, 148, 73, 0.08);
  color: var(--gold-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-chip.soft {
  background: rgba(187, 178, 163, 0.16);
  border-color: rgba(187, 178, 163, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #c7ab61 100%);
  color: #fffaf0;
  box-shadow: 0 14px 32px rgba(179, 148, 73, 0.22);
}

.btn-secondary {
  background: rgba(255, 251, 247, 0.72);
  border-color: var(--line);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.hero-actions,
.toolbar-actions,
.table-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-strip,
.meta-grid,
.stats-row,
.tag-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-strip {
  margin-top: 26px;
}

.trust-strip span,
.meta-grid span,
.stats-row span,
.mini-list span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(74, 64, 53, 0.08);
  color: var(--muted);
}

.hero-art {
  display: grid;
  align-items: stretch;
}

.compass-panel {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(239, 231, 222, 0.7)),
    radial-gradient(circle at top, rgba(179, 148, 73, 0.16), transparent 48%);
}

.hero-mark {
  width: min(360px, 100%);
  margin: 0 auto;
  align-self: center;
}

.hero-panel-card,
.hero-side-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(74, 64, 53, 0.08);
}

.value-band,
.card-grid,
.timeline-grid {
  display: grid;
  gap: 18px;
}

.value-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.value-band article,
.glass-card,
.timeline-step,
.feature-tile,
.detail-card,
.entity-card,
.metric-card,
.row-card,
.auth-card {
  border-radius: 24px;
  padding: 22px;
}

.section-block {
  margin-top: 18px;
  padding: 18px 0;
  scroll-margin-top: 132px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.04;
  margin: 8px 0;
}

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

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

.timeline-step span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.closing-cta {
  margin-top: 28px;
  border-radius: 32px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.closing-cta h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  margin: 10px 0 0;
}

.legal-hero,
.story-grid,
.service-columns,
.method-grid,
.platform-content {
  display: grid;
  gap: 22px;
}

.legal-hero {
  grid-template-columns: 1.02fr 1fr;
  margin-bottom: 22px;
}

.legal-hero-copy,
.legal-video-shell,
.story-copy-card,
.story-image-card,
.service-card,
.service-image-card,
.method-card,
.quote-card,
.platform-shell,
.platform-media {
  border-radius: 34px;
}

.legal-hero-copy {
  padding: 42px 40px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 243, 237, 0.94)),
    radial-gradient(circle at top left, rgba(179, 148, 73, 0.16), transparent 32%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-hero-copy h1 {
  font-family: var(--heading-font);
  font-size: clamp(3.8rem, 6vw, 6.5rem);
  line-height: 0.9;
  margin: 18px 0 20px;
}

.legal-hero-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 62ch;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.trust-metrics article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(74, 64, 53, 0.08);
}

.trust-metrics strong,
.service-card strong,
.method-card strong,
.platform-list strong,
.story-copy-card h2 {
  display: block;
}

.trust-metrics span,
.asset-credit,
.platform-list p,
.service-card p,
.method-card p,
.quote-card p {
  color: var(--muted);
}

.legal-video-shell {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #1f1b18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 30, 26, 0.08), rgba(34, 30, 26, 0.68)),
    radial-gradient(circle at top right, rgba(179, 148, 73, 0.28), transparent 34%);
}

.hero-floating-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 26px;
  color: #f7f2ea;
  background: rgba(30, 26, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 6px;
}

.hero-floating-card p {
  margin: 0;
  color: rgba(247, 242, 234, 0.82);
}

.hero-floating-mark {
  width: 88px;
  flex: 0 0 auto;
}

.sector-ribbon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sector-ribbon span,
.story-points span {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 64, 53, 0.09);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
}

.story-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.story-image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-image-card img,
.service-image-card img,
.platform-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy-card {
  padding: 36px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-copy-card h2 {
  font-family: var(--heading-font);
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 0.95;
  margin: 14px 0 16px;
}

.story-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.legal-heading {
  max-width: 900px;
}

.service-columns {
  grid-template-columns: 1fr 1fr 0.92fr;
  align-items: stretch;
}

.service-column {
  display: grid;
  gap: 18px;
}

.service-card,
.method-card,
.quote-card,
.platform-shell {
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card {
  background: rgba(255, 252, 248, 0.84);
}

.service-card strong {
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 0.95;
  margin: 10px 0 8px;
}

.feature-service {
  background: linear-gradient(180deg, rgba(179, 148, 73, 0.12), rgba(255, 252, 248, 0.92));
}

.service-image-card {
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.method-card {
  background: rgba(255, 252, 248, 0.84);
}

.method-card span {
  display: inline-flex;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.method-card strong {
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 0.95;
  margin: 12px 0 10px;
}

.quote-card {
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(63, 56, 50, 0.94), rgba(45, 40, 36, 0.98)),
    radial-gradient(circle at top right, rgba(179, 148, 73, 0.18), transparent 38%);
  color: #f7f2ea;
}

.quote-card p {
  color: rgba(247, 242, 234, 0.86);
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 1.04;
  margin: 0;
}

.platform-shell {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.94), rgba(248, 243, 237, 0.96)),
    radial-gradient(circle at top left, rgba(179, 148, 73, 0.12), transparent 30%);
}

.platform-content {
  grid-template-columns: 1fr 0.92fr;
  align-items: stretch;
}

.platform-list {
  display: grid;
  gap: 14px;
}

.platform-list article {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.platform-list strong {
  font-family: var(--heading-font);
  font-size: 1.9rem;
  line-height: 0.95;
  margin-bottom: 8px;
}

.platform-media {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-closing {
  border: 1px solid rgba(74, 64, 53, 0.12);
}

.asset-credit {
  margin-top: 12px;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
}

.login-brand-panel,
.login-form-panel {
  border-radius: 38px;
  padding: 30px;
}

.login-copy h1 {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 4.2vw, 4.8rem);
  line-height: 0.95;
  margin: 18px 0 14px;
}

.login-points {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.login-points article {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(74, 64, 53, 0.08);
}

.login-form-panel {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(440px, 100%);
}

.auth-card h2 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  margin: 14px 0 8px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.checkbox-field span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--gold-strong);
  text-transform: uppercase;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(74, 64, 53, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(179, 148, 73, 0.45);
  box-shadow: 0 0 0 4px rgba(179, 148, 73, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  margin-top: 12px;
  color: var(--danger);
}

body.app-body {
  background:
    linear-gradient(135deg, rgba(111, 134, 125, 0.1) 0 14%, transparent 14% 58%, rgba(179, 148, 73, 0.09) 58% 72%, transparent 72%),
    linear-gradient(180deg, #f6f0e8 0%, #eee6dc 100%);
}

body.app-body::before {
  display: none;
}

.app-body .btn-primary {
  background: linear-gradient(135deg, var(--sage-accent), var(--ink-accent));
  color: #fffdf9;
  box-shadow: 0 12px 24px rgba(62, 92, 110, 0.18);
}

.app-body .btn-secondary {
  background: #fffdfa;
  color: #3f3832;
  border-color: rgba(74, 64, 53, 0.12);
  box-shadow: 0 8px 18px rgba(63, 56, 50, 0.04);
}

.app-body .btn {
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 750;
}

.app-body .brand-chip {
  padding: 8px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.app-body input,
.app-body select,
.app-body textarea {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffdfa;
  border-color: rgba(74, 64, 53, 0.14);
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 16px;
  min-height: 100vh;
  padding: 16px;
}

.app-body {
  background:
    linear-gradient(135deg, rgba(111, 134, 125, 0.1) 0 14%, transparent 14% 58%, rgba(179, 148, 73, 0.09) 58% 72%, transparent 72%),
    linear-gradient(180deg, #f6f0e8 0%, #eee6dc 100%);
}

.app-body .sidebar,
.app-body .topbar,
.app-body .panel,
.app-body .soft-panel,
.app-body .entity-card,
.app-body .metric-card,
.app-body .row-card,
.app-body .detail-card,
.app-body .modal-card {
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: none;
  border: 1px solid rgba(74, 64, 53, 0.09);
  box-shadow: 0 14px 34px rgba(63, 56, 50, 0.08);
}

.sidebar {
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(242, 235, 226, 0.95) 100%),
    linear-gradient(90deg, rgba(111, 134, 125, 0.12), transparent);
}

.sidebar-logo {
  width: 100%;
  max-width: 210px;
}

.sidebar-brand {
  display: grid;
  gap: 14px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  align-content: start;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #72685d;
  font-size: 0.96rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item::before {
  content: attr(data-nav-icon);
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 9px;
  color: var(--gold-strong);
  background: rgba(179, 148, 73, 0.1);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.nav-parent {
  justify-content: space-between;
}

.nav-parent span:first-of-type {
  flex: 1;
}

.nav-caret {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-submenu {
  display: none;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(74, 64, 53, 0.1);
}

.nav-group.expanded .nav-submenu {
  display: grid;
}

.nav-subitem {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #7b7065;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-subitem::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(111, 134, 125, 0.34);
}

.nav-subitem.active,
.nav-subitem:hover {
  color: #322d28;
  background: rgba(111, 134, 125, 0.08);
}

.nav-item.active,
.nav-item:hover {
  color: #352f2a;
  background: rgba(255, 253, 249, 0.94);
  border-color: rgba(179, 148, 73, 0.16);
  transform: translateX(2px);
}

.nav-item.active::before,
.nav-item:hover::before {
  color: #fffdf9;
  background: linear-gradient(135deg, var(--sage-accent), var(--gold));
}

.sidebar-footer {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-footer strong {
  color: var(--text);
  font-size: 0.94rem;
}

.main-area {
  min-width: 0;
}

.topbar {
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98), rgba(255, 253, 249, 0.9)),
    linear-gradient(90deg, rgba(111, 134, 125, 0.14), rgba(179, 148, 73, 0.12));
}

.topbar-left,
.topbar-right,
.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right {
  margin-left: auto;
}

.user-badge {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.user-badge strong {
  font-size: 0.94rem;
}

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

.app-body #screen-title,
.app-body .panel-header h3,
.app-body .entity-card h3,
.app-body .modal-header h3,
.app-body .section-toolbar h2,
.app-body .hero-copy h2 {
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #322d28;
}

.app-body #screen-title {
  margin: 4px 0 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.app-body .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(74, 64, 53, 0.14);
  background: #fffdfa;
  color: var(--text);
}

.content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.screen {
  display: none;
  min-width: 0;
}

.screen.active {
  display: block;
}

.hero-panel {
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 16px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(245, 239, 230, 0.96) 100%);
  border: 1px solid rgba(74, 64, 53, 0.1);
  box-shadow: 0 10px 26px rgba(63, 56, 50, 0.06);
}

.app-body .hero-copy {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-body .hero-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.app-body .hero-copy p {
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-side-card {
  align-self: stretch;
  display: grid;
  align-content: start;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(74, 64, 53, 0.1);
}

.hero-side-card strong {
  margin: 8px 0 10px;
  font-size: 1rem;
  line-height: 1.35;
  color: #352f2a;
}

.hero-side-card p {
  font-size: 0.94rem;
  line-height: 1.64;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 98px;
  padding: 16px;
  border-left: 4px solid rgba(111, 134, 125, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -18px 0 auto;
  width: 92px;
  height: 100%;
  transform: skewX(-12deg);
  background: rgba(111, 134, 125, 0.08);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(63, 56, 50, 0.11);
}

.metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.metric-card .metric-head span,
.metric-card strong {
  color: var(--muted);
}

.metric-card .metric-head span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 10px;
  color: #fffdf9;
  background: linear-gradient(135deg, var(--sage-accent), var(--gold));
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.metric-value {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: #2f2a26;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  font-size: 0.84rem;
}

.metric-ok {
  border-left-color: var(--success);
  background: linear-gradient(180deg, rgba(93, 143, 110, 0.08), rgba(255, 253, 249, 0.96));
}

.metric-ok .metric-mark {
  background: linear-gradient(135deg, var(--success), var(--olive));
}

.metric-warning {
  border-left-color: var(--warning);
  background: linear-gradient(180deg, rgba(175, 135, 65, 0.1), rgba(255, 253, 249, 0.96));
}

.metric-warning .metric-mark {
  background: linear-gradient(135deg, var(--warning), var(--gold));
}

.metric-danger {
  border-left-color: var(--danger);
  background: linear-gradient(180deg, rgba(170, 93, 82, 0.11), rgba(255, 253, 249, 0.96));
}

.metric-danger .metric-mark {
  background: linear-gradient(135deg, var(--danger), var(--clay));
}

.metric-neutral {
  border-left-color: var(--sage-accent);
}

.metric-neutral .metric-mark {
  background: linear-gradient(135deg, var(--ink-accent), var(--sage-accent));
}

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

.dashboard-panel-alerts {
  border-left: 4px solid var(--danger);
}

.alerts-list {
  display: grid;
  gap: 14px;
}

.alert-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-left: 4px solid var(--sage-accent);
}

.alert-detail-card.critical {
  border-left-color: var(--danger);
}

.alert-detail-card.high {
  border-left-color: var(--warning);
}

.alert-detail-card h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.alert-detail-main {
  display: grid;
  gap: 12px;
}

.alert-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-left: 4px solid var(--sage-accent);
}

.report-hero h3 {
  margin: 6px 0 10px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.report-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.62;
}

.report-date {
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 14px;
  border: 1px solid rgba(74, 64, 53, 0.1);
  border-radius: 12px;
  background: #fbf8f4;
}

.report-date span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.report-wide {
  grid-column: 1 / -1;
}

.report-panel {
  min-width: 0;
  overflow-x: auto;
}

.report-panel .data-table {
  min-width: 620px;
}

.report-bars {
  display: grid;
  gap: 12px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.report-bar-row strong {
  color: var(--ink);
  text-align: right;
}

.report-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(74, 64, 53, 0.08);
}

.report-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage-accent), var(--gold));
}

.panel,
.soft-panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px;
}

.panel::before,
.soft-panel::before,
.entity-card::before,
.row-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(111, 134, 125, 0.72), rgba(179, 148, 73, 0.68), rgba(189, 117, 95, 0.48));
  opacity: 0.72;
}

.entity-card,
.row-card {
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.entity-card:hover,
.row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(63, 56, 50, 0.1);
}

.report-panel {
  overflow-x: auto;
}

.panel-header {
  margin-bottom: 14px;
}

.panel-header h3,
.entity-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-toolbar h2 {
  margin: 6px 0 0;
  font-size: 1.55rem;
  line-height: 1.14;
}

.search-input {
  min-width: 280px;
}

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

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

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(74, 64, 53, 0.14);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.78);
}

.segment-button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segment-button.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(63, 56, 50, 0.1);
}

.matter-pipeline-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.matter-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(270px, 1fr));
  gap: 14px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 8px;
}

.kanban-column {
  min-height: 360px;
  border: 1px solid rgba(74, 64, 53, 0.11);
  border-radius: 14px;
  background: rgba(250, 247, 240, 0.76);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.kanban-column.is-over {
  border-color: var(--gold-strong);
  background: rgba(231, 212, 161, 0.18);
  box-shadow: inset 0 0 0 2px rgba(175, 135, 65, 0.18);
}

.kanban-column-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(74, 64, 53, 0.1);
}

.kanban-column-header strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
}

.kanban-dropzone {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 280px;
  padding: 12px;
}

.kanban-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(74, 64, 53, 0.18);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.kanban-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(74, 64, 53, 0.12);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 26px rgba(63, 56, 50, 0.08);
}

.kanban-card.is-dragging {
  opacity: 0.55;
}

.kanban-card-meta,
.kanban-card-stats {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.kanban-card-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--ink);
  font-weight: 700;
}

.kanban-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.entity-card {
  padding: 18px;
}

.client-card {
  position: relative;
  border-left: 4px solid var(--sage-accent);
}

.entity-head,
.row-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.72;
}

.is-ok {
  color: var(--success);
  border-color: rgba(93, 143, 110, 0.18);
  background: linear-gradient(180deg, rgba(93, 143, 110, 0.11), rgba(93, 143, 110, 0.05));
}

.is-warning {
  color: var(--warning);
  border-color: rgba(175, 135, 65, 0.18);
  background: linear-gradient(180deg, rgba(175, 135, 65, 0.12), rgba(175, 135, 65, 0.05));
}

.is-danger {
  color: var(--danger);
  border-color: rgba(170, 93, 82, 0.18);
  background: linear-gradient(180deg, rgba(170, 93, 82, 0.12), rgba(170, 93, 82, 0.05));
}

.is-neutral {
  color: var(--muted);
  border-color: rgba(132, 123, 112, 0.16);
  background: rgba(132, 123, 112, 0.08);
}

.table-subline,
.row-subline,
.row-meta,
.muted {
  color: var(--muted);
}

.table-subline,
.row-subline {
  font-size: 0.86rem;
  line-height: 1.55;
}

.row-meta {
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.row-card {
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: #fbf8f4;
}

.row-card strong {
  font-size: 0.98rem;
}

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

.row-card.compact {
  padding: 14px;
}

.meta-grid {
  margin: 14px 0;
}

.client-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(74, 64, 53, 0.08);
  border-bottom: 1px solid rgba(74, 64, 53, 0.08);
}

.client-meta-list div {
  min-width: 0;
}

.client-meta-list span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-strong);
  font-weight: 800;
}

.client-meta-list strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #3f3832;
  word-break: break-word;
}

.meta-grid span,
.mini-list span {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(247, 243, 236, 0.92);
  border: 1px solid rgba(74, 64, 53, 0.08);
}

.stats-row {
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.client-stat-strip {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.client-stat-strip article {
  display: grid;
  gap: 2px;
}

.client-stat-strip strong {
  font-family: var(--body-font);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #2f2a26;
}

.client-stat-strip span {
  font-size: 0.82rem;
  color: var(--muted);
}

.stats-row strong {
  font-family: var(--body-font);
  font-size: 1.35rem;
  font-weight: 700;
}

.compact-stats {
  margin: 12px 0;
}

.compact-stats strong {
  font-size: 1rem;
}

.compact-stats span {
  padding: 6px 8px;
  border-radius: 8px;
}

.alert-row {
  position: relative;
  border-left: 4px solid rgba(74, 64, 53, 0.14);
}

.alert-row.critical {
  border-left-color: var(--danger);
  background: rgba(170, 93, 82, 0.065);
}

.alert-row.high {
  border-left-color: var(--warning);
  background: rgba(175, 135, 65, 0.07);
}

.alert-row.medium {
  border-left-color: var(--sage-accent);
}

.timeline-row {
  border-left: 4px solid rgba(175, 135, 65, 0.42);
}

.mini-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.client-focus {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sage-soft);
  border: 1px solid rgba(111, 134, 125, 0.18);
}

.client-focus span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d756d;
  font-weight: 800;
}

.client-focus strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  color: #2f2a26;
}

.card-copy {
  min-height: 54px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-compact {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.action-link {
  padding: 0;
  background: transparent;
  border: none;
  color: var(--gold-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.action-link:hover {
  color: var(--text);
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(74, 64, 53, 0.08);
  vertical-align: top;
}

.data-table th {
  color: var(--gold-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.diagnostic-option-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 240px;
}

.diagnostic-option-preview span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(111, 134, 125, 0.09);
  color: #5d665f;
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(74, 64, 53, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

.workspace-shell {
  display: grid;
  gap: 14px;
}

.workspace-empty {
  padding: 22px;
}

.workspace-empty h2 {
  margin: 10px 0 12px;
  font-family: var(--body-font);
  font-size: 1.55rem;
  line-height: 1.14;
  color: #322d28;
}

.workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.workspace-header h2 {
  margin: 8px 0 12px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.12;
  color: #322d28;
}

.workspace-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workspace-back {
  display: inline-flex;
  margin-bottom: 12px;
}

.workspace-meta {
  margin-bottom: 0;
}

.workspace-header-side {
  display: grid;
  gap: 14px;
}

.workspace-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workspace-stat {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: #fbf8f4;
}

.workspace-stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.3rem;
  line-height: 1;
  color: #2f2a26;
}

.workspace-stat span {
  display: block;
  font-size: 0.8rem;
  color: #4f473f;
  font-weight: 700;
}

.workspace-stat small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

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

.workspace-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-tab {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(74, 64, 53, 0.1);
  background: rgba(255, 253, 249, 0.92);
  color: #6c6258;
  font-weight: 700;
}

.workspace-tab.active {
  background: rgba(179, 148, 73, 0.12);
  border-color: rgba(179, 148, 73, 0.18);
  color: #3c352f;
}

.workspace-body {
  display: grid;
  gap: 14px;
}

.workspace-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-payments-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.client-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.client-attention-panel {
  border-left: 3px solid var(--danger);
}

.client-snapshot-panel {
  border-left: 3px solid var(--sage-accent);
}

.snapshot-list {
  display: grid;
  gap: 12px;
}

.snapshot-list article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  border-radius: 12px;
  background: #fbf8f4;
}

.snapshot-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.snapshot-list strong {
  color: #2f2a26;
  line-height: 1.25;
}

.snapshot-list small {
  color: var(--muted);
  line-height: 1.45;
}

.client-timeline-panel {
  border-left: 3px solid var(--gold);
}

.client-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.client-timeline-grid h4 {
  margin: 0 0 12px;
  color: #2f2a26;
  font-size: 0.98rem;
}

.client-timeline-list {
  display: grid;
  gap: 12px;
}

.client-timeline-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
}

.timeline-marker {
  position: relative;
  width: 11px;
  height: 11px;
  margin-top: 19px;
  border-radius: 999px;
  background: var(--sage-accent);
  box-shadow: 0 0 0 4px rgba(111, 134, 125, 0.1);
}

.timeline-marker::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 5px;
  width: 1px;
  height: calc(100% + 86px);
  background: rgba(74, 64, 53, 0.12);
}

.client-timeline-item:last-child .timeline-marker::after {
  display: none;
}

.timeline-marker.is-danger {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(170, 93, 82, 0.12);
}

.timeline-marker.is-warning {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(175, 135, 65, 0.13);
}

.timeline-marker.is-ok {
  background: var(--success);
}

.client-timeline-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.client-timeline-card .eyebrow {
  display: block;
  margin-bottom: 5px;
}

.ai-summary-panel {
  border-left: 3px solid var(--sage-accent);
}

.ai-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.ai-summary-head h3 {
  margin: 8px 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #2f2a26;
}

.ai-summary-head p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.ai-summary-empty {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: #fbf8f4;
}

.ai-summary-empty strong,
.ai-summary-topline strong {
  color: #2f2a26;
}

.ai-summary-topline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ai-summary-topline article {
  padding: 16px 18px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: #fbf8f4;
}

.ai-summary-topline span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6f867d;
}

.ai-summary-topline strong {
  font-size: 1.1rem;
}

.ai-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ai-summary-block {
  padding: 18px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: #ffffff;
}

.ai-summary-block-featured {
  grid-column: span 2;
  background: #fbf8f4;
}

.ai-summary-block h4 {
  margin: 0 0 10px;
  font-size: 0.96rem;
  color: #2f2a26;
}

.ai-summary-block p,
.ai-summary-block small {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ai-summary-block small {
  display: block;
  margin-top: 8px;
}

.ai-summary-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.ai-summary-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(74, 64, 53, 0.08);
  color: var(--muted);
  line-height: 1.6;
}

.workspace-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-section-card {
  min-height: 100%;
}

.workspace-stack {
  display: grid;
  gap: 12px;
}

.workspace-entity-card {
  border-radius: 14px;
  border: 1px solid rgba(74, 64, 53, 0.08);
  background: #fbf8f4;
  box-shadow: none;
}

.workspace-projects-grid {
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.38fr);
  align-items: start;
}

.workspace-project-panel {
  display: grid;
  gap: 14px;
}

.workspace-project-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workspace-project-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.workspace-project-block {
  display: grid;
  gap: 14px;
}

.workspace-project-block .panel-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #2f2a26;
}

.workspace-project-block .row-card {
  background: rgba(255, 255, 255, 0.84);
}

.project-list-card {
  border-left: 3px solid transparent;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-list-card:hover {
  transform: translateY(-1px);
  border-left-color: rgba(179, 148, 73, 0.45);
  background: #fffdf9;
}

.project-list-card.is-active {
  border-left-color: var(--gold);
  background: #fffdf9;
  box-shadow: 0 16px 30px rgba(63, 56, 50, 0.08);
}

.project-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.workspace-note-card {
  border-left: 3px solid rgba(111, 134, 125, 0.22);
}

.project-page-shell {
  display: grid;
  gap: 16px;
}

.project-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.project-page-header h2 {
  margin: 8px 0 12px;
  font-family: var(--body-font);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: #322d28;
}

.project-page-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-page-wide {
  grid-column: span 2;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(33, 30, 27, 0.2);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  border-radius: 18px;
  padding: 20px;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin: 8px 0 0;
  font-size: 1.55rem;
  line-height: 1.12;
}

.form-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(74, 64, 53, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.checkbox-field input {
  width: auto;
}

.diagnostic-options-editor {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(74, 64, 53, 0.1);
  background: rgba(255, 255, 255, 0.54);
}

.diagnostic-options-editor.is-hidden-for-text {
  display: none;
}

.diagnostic-options-editor .panel-header {
  margin-bottom: 2px;
}

.diagnostic-options-editor .panel-header h3 {
  font-family: var(--body-font);
  font-size: 0.98rem;
}

.diagnostic-option-head,
.diagnostic-option-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(68px, 86px)) 40px;
  gap: 8px;
  align-items: center;
}

.diagnostic-option-head {
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnostic-option-row input {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
}

.detail-lines {
  display: grid;
  gap: 10px;
}

.detail-lines span {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(74, 64, 53, 0.08);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fffaf0;
  background: var(--success);
  box-shadow: 0 14px 30px rgba(63, 56, 50, 0.16);
}

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

@media print {
  .sidebar,
  .topbar,
  .section-toolbar .toolbar-actions,
  .toast,
  .modal-root {
    display: none !important;
  }

  .app-shell {
    display: block;
    padding: 0;
  }

  .screen {
    display: none !important;
  }

  #section-reports {
    display: block !important;
  }

  .panel,
  .metric-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}

@media (max-width: 1180px) {
  .hero,
  .login-shell,
  .hero-panel,
  .dashboard-grid,
  .workspace-header {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .report-kpi-grid,
  .services-grid,
  .platform-grid,
  .timeline-grid,
  .card-grid,
  .workspace-overview-grid,
  .matter-pipeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-projects-grid,
  .workspace-project-content,
  .workspace-project-summary,
  .project-page-header,
  .project-page-main,
  .alert-detail-card,
  .report-hero,
  .report-grid,
  .client-command-grid,
  .client-timeline-grid {
    grid-template-columns: 1fr;
  }

  .project-page-wide {
    grid-column: auto;
  }

  .value-band {
    grid-template-columns: 1fr;
  }

  .legal-hero,
  .story-grid,
  .service-columns,
  .platform-content {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    border-radius: 30px;
    padding: 18px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 20px auto 20px 20px;
    width: min(320px, calc(100vw - 40px));
    height: auto;
    transform: translateX(-120%);
    transition: transform 220ms ease;
    z-index: 12;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .topbar-left {
    align-items: start;
  }

  .topbar-right {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .app-body {
    overflow-x: hidden;
  }

  .site-shell {
    width: min(100%, calc(100% - 20px));
  }

  .site-header,
  .section-toolbar,
  .topbar,
  .closing-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav,
  .toolbar-actions,
  .hero-actions,
  .table-actions {
    width: 100%;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .kpi-grid,
  .services-grid,
  .platform-grid,
  .timeline-grid,
  .card-grid,
  .matter-grid,
  .form-grid,
  .detail-grid,
  .method-grid,
  .trust-metrics,
  .workspace-overview-grid,
  .workspace-stat-grid,
  .workspace-project-summary,
  .matter-pipeline-summary,
  .client-meta-list,
  .project-page-main {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    width: 100%;
  }

  .segment-button {
    flex: 1;
  }

  .matter-board {
    grid-auto-flow: column;
    grid-auto-columns: minmax(268px, 82vw);
    grid-template-columns: none;
    max-width: calc(100vw - 24px);
  }

  .report-bar-row {
    grid-template-columns: 1fr 34px;
  }

  .report-bar-row span {
    grid-column: 1 / -1;
  }

  .diagnostic-option-head {
    display: none;
  }

  .diagnostic-option-row {
    grid-template-columns: 1fr 1fr;
    padding: 10px 0;
    border-bottom: 1px solid rgba(74, 64, 53, 0.08);
  }

  .diagnostic-option-label {
    grid-column: 1 / -1;
  }

  .report-panel .data-table {
    min-width: 560px;
  }

  .ai-summary-head,
  .ai-summary-footer {
    flex-direction: column;
  }

  .ai-summary-topline,
  .ai-summary-grid {
    grid-template-columns: 1fr;
  }

  .ai-summary-block-featured {
    grid-column: auto;
  }

  .login-body,
  .app-shell {
    padding: 12px;
  }

  .login-brand-panel,
  .login-form-panel,
  .hero-copy,
  .hero-art,
  .panel,
  .soft-panel,
  .entity-card,
  .modal-card {
    padding: 20px;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .brand-logo {
    width: 100%;
  }

  .legal-hero-copy,
  .story-copy-card,
  .platform-shell {
    padding: 24px;
  }

  .legal-video-shell {
    min-height: 420px;
  }

  .hero-floating-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
  }
}

body.landing-body {
  background:
    radial-gradient(circle at top left, rgba(15, 98, 254, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 18%, #f3f8ff 100%);
  color: #16324f;
}

body.landing-body::before {
  display: none;
}

.landing-page {
  width: min(1280px, calc(100% - 32px));
  padding: 18px 0 56px;
}

.landing-page .site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  margin-bottom: 28px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 50, 79, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(16, 45, 77, 0.08);
  backdrop-filter: blur(12px);
}

.landing-page .site-nav {
  color: #4d6783;
  font-size: 0.95rem;
}

.landing-page .site-nav a:hover {
  color: #16324f;
}

.landing-page .btn-primary {
  background: linear-gradient(135deg, #0f62fe 0%, #0057e5 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 98, 254, 0.22);
}

.landing-page .btn-secondary {
  background: #ffffff;
  border-color: rgba(22, 50, 79, 0.14);
  color: #16324f;
}

.clio-hero,
.clio-card-grid,
.clio-unified-section,
.results-grid,
.method-flow,
.support-grid,
.hero-proof-row,
.clio-stat-strip,
.clio-cta-row,
.clio-checks {
  display: grid;
  gap: 20px;
}

.clio-hero {
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  padding: 34px 0 18px;
}

.clio-hero-copy h1,
.clio-heading h2,
.clio-unified-copy h2,
.clio-closing h2 {
  font-family: var(--body-font);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.clio-hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(3.6rem, 6vw, 6.4rem);
  max-width: 11ch;
}

.clio-hero-copy p,
.clio-heading p,
.clio-unified-copy p,
.result-card p,
.support-card p,
.flow-step p,
.testimonial-panel span,
.hero-proof-row span,
.clio-card-copy p,
.asset-credit {
  color: #5d7792;
  line-height: 1.72;
}

.clio-cta-row {
  grid-auto-flow: column;
  justify-content: start;
  gap: 14px;
  margin: 24px 0 26px;
}

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

.hero-proof-row article,
.clio-stat-strip article,
.result-card,
.support-card,
.flow-step {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(22, 50, 79, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 45, 77, 0.06);
}

.hero-proof-row strong,
.clio-stat-strip strong,
.clio-card-copy strong,
.result-card strong,
.support-card strong,
.flow-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #16324f;
}

.clio-hero-media {
  position: relative;
  min-height: 640px;
}

.hero-device {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 640px;
  border-radius: 34px;
  background: #dbe7f6;
  border: 1px solid rgba(22, 50, 79, 0.08);
  box-shadow: 0 32px 60px rgba(16, 45, 77, 0.12);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-device-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 40, 69, 0.04), rgba(11, 40, 69, 0.26)),
    radial-gradient(circle at top right, rgba(15, 98, 254, 0.18), transparent 34%);
}

.hero-mini-card {
  position: absolute;
  max-width: 290px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 50, 79, 0.08);
  box-shadow: 0 18px 32px rgba(16, 45, 77, 0.12);
}

.hero-mini-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0f62fe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-mini-card strong {
  color: #16324f;
  line-height: 1.35;
}

.card-a {
  top: 36px;
  left: -24px;
}

.card-b {
  right: -18px;
  bottom: 42px;
}

.clio-stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 42px;
}

.clio-feature-band,
.clio-results-section,
.clio-method-section,
.clio-support-section {
  padding: 54px 0 10px;
}

.clio-heading {
  max-width: 880px;
  margin-bottom: 22px;
}

.clio-heading h2 {
  margin: 12px 0 14px;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
}

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

.clio-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(22, 50, 79, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(16, 45, 77, 0.08);
}

.clio-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.clio-card-copy {
  padding: 22px;
}

.clio-card-copy strong {
  font-size: 1.28rem;
  line-height: 1.25;
}

.clio-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #3c5e7f;
  line-height: 1.7;
}

.clio-list li + li {
  margin-top: 6px;
}

.clio-unified-section {
  grid-template-columns: 0.96fr 1.04fr;
  align-items: center;
  padding: 56px 0 8px;
}

.media-panel {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(22, 50, 79, 0.08);
  box-shadow: 0 24px 44px rgba(16, 45, 77, 0.08);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.clio-unified-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(2.6rem, 4vw, 4.1rem);
}

.clio-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.clio-checks span {
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 98, 254, 0.12);
  background: #f5f9ff;
  color: #22476d;
}

.text-link {
  color: #0f62fe;
  font-weight: 700;
}

.results-grid {
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
}

.testimonial-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #0a4dd4 0%, #0f62fe 100%);
  color: #ffffff;
  box-shadow: 0 24px 46px rgba(15, 98, 254, 0.2);
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  opacity: 0.5;
}

.testimonial-copy {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.12rem;
  line-height: 1.7;
}

.testimonial-panel strong {
  display: block;
  margin-bottom: 6px;
}

.testimonial-panel span {
  color: rgba(255, 255, 255, 0.78);
}

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

.flow-step span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0f62fe;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

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

.clio-closing {
  margin-top: 42px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(22, 50, 79, 0.08);
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
  box-shadow: 0 18px 40px rgba(16, 45, 77, 0.06);
}

.clio-closing h2 {
  margin: 10px 0 8px;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
}

@media (max-width: 1180px) {
  .clio-hero,
  .clio-unified-section,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .clio-card-grid,
  .support-grid,
  .method-flow,
  .hero-proof-row,
  .clio-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-mini-card {
    position: static;
    max-width: none;
  }

  .clio-hero-media {
    min-height: 0;
    display: grid;
    gap: 16px;
  }

  .hero-device {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  .landing-page {
    width: min(100%, calc(100% - 16px));
  }

  .landing-page .site-header,
  .clio-closing {
    padding: 18px;
  }

  .clio-hero,
  .clio-card-grid,
  .clio-unified-section,
  .results-grid,
  .method-flow,
  .support-grid,
  .hero-proof-row,
  .clio-stat-strip,
  .clio-checks {
    grid-template-columns: 1fr;
  }

  .clio-cta-row {
    grid-auto-flow: row;
  }

  .clio-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

  .hero-device {
    min-height: 360px;
  }

  .media-panel img {
    min-height: 360px;
  }
}

body.landing-body {
  background: linear-gradient(180deg, #f5f0ea 0%, #fbf8f3 100%);
  color: #403732;
}

.landing-page {
  width: min(1280px, calc(100% - 32px));
  padding: 12px 0 56px;
}

.landing-page .site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 10px;
  background: rgba(248, 244, 238, 0.92);
  border: 1px solid rgba(187, 178, 163, 0.42);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(63, 55, 50, 0.08);
  backdrop-filter: blur(10px);
}

.landing-page .site-nav {
  color: #7e7467;
}

.landing-page .site-nav a:hover {
  color: #403732;
}

.landing-page .btn-primary {
  background: linear-gradient(135deg, #b39449 0%, #9f8442 100%);
  color: #faf7f1;
  box-shadow: 0 14px 28px rgba(179, 148, 73, 0.24);
}

.landing-page .btn-secondary {
  background: rgba(250, 247, 241, 0.9);
  color: #403732;
  border-color: rgba(187, 178, 163, 0.65);
}

.warm {
  color: #b39449;
}

.compass-hero {
  position: relative;
  margin: 0 calc(50% - 50vw) 26px;
  padding: 68px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(179, 148, 73, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(111, 134, 125, 0.16), transparent 24%),
    linear-gradient(135deg, #f5eee6 0%, #ece1d5 48%, #f6efe8 100%);
}

.compass-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 56, 50, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 56, 50, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.compass-hero-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.compass-stage,
.compass-proof-strip article,
.compass-stage,
.service-intro-band article {
  border-radius: 30px;
  border: 1px solid rgba(191, 178, 159, 0.48);
  box-shadow: 0 18px 36px rgba(63, 55, 50, 0.06);
}

.compass-hero-intro {
  max-width: 940px;
  padding: 0 8px;
}

.compass-hero-intro h1 {
  margin: 12px 0 16px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(3.1rem, 4.6vw, 5rem);
  line-height: 0.92;
  color: #403732;
}

.compass-hero-intro p {
  max-width: 64ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: #70675d;
}

.compass-stage {
  padding: 32px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0%, rgba(255, 251, 246, 0.62) 34%, rgba(240, 232, 221, 0.86) 100%);
  display: grid;
  grid-template-columns: minmax(520px, 1.24fr) minmax(280px, 0.76fr);
  gap: 28px;
  align-items: center;
}

.compass-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compass-proof-strip article,
.service-intro-band article {
  padding: 20px;
  background: rgba(251, 247, 242, 0.88);
}

.compass-proof-strip article,
.service-intro-band article {
  height: 100%;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.compass-proof-strip strong,
.service-intro-band strong,
.service-sell-copy strong,
.service-result-grid strong,
.service-support-card h2,
.service-human-copy h2,
.service-heading h2,
.service-closing h2,
.service-contact-copy h2 {
  color: #403732;
}

.compass-proof-strip span,
.service-intro-band span,
.service-sell-copy p,
.service-list,
.service-human-copy p,
.service-result-grid p,
.service-result-grid small,
.service-method-copy p,
.method-step p,
.service-support-card p,
.service-contact-copy p,
.asset-credit {
  color: #7b7368;
  line-height: 1.72;
}

.compass-rose {
  position: relative;
  min-height: 720px;
}

.compass-hanger,
.compass-crown,
.compass-ring,
.compass-face,
.compass-axis,
.compass-diagonal,
.compass-star,
.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.compass-hanger {
  top: 44px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 10px solid rgba(189, 146, 58, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(255, 247, 220, 0.56),
    0 10px 22px rgba(88, 68, 32, 0.14);
}

.compass-crown {
  top: 106px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f8d783 0%, #d8a840 68%, #ad7f26 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 228, 0.45),
    0 10px 18px rgba(88, 68, 32, 0.14);
}

.compass-ring-outer {
  width: min(40vw, 520px);
  height: min(40vw, 520px);
  border-radius: 50%;
  border: 12px solid rgba(196, 152, 59, 0.92);
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 220, 0.65),
    inset 0 0 0 14px rgba(111, 84, 25, 0.08),
    0 22px 42px rgba(88, 68, 32, 0.12);
  background: radial-gradient(circle at center, rgba(255, 253, 249, 0.42) 0%, rgba(255, 253, 249, 0) 64%);
}

.compass-ring-inner {
  width: min(28vw, 350px);
  height: min(28vw, 350px);
  border-radius: 50%;
  border: 2px dashed rgba(140, 112, 51, 0.28);
}

.compass-face {
  width: min(36vw, 468px);
  height: min(36vw, 468px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 249, 235, 0.92) 36%, rgba(246, 233, 205, 0.88) 100%);
  border: 5px solid rgba(65, 52, 33, 0.82);
  box-shadow:
    inset 0 0 0 10px rgba(255, 252, 245, 0.56),
    inset 0 0 28px rgba(143, 111, 51, 0.08);
}

.compass-axis-vertical {
  width: 1px;
  height: min(43vw, 560px);
  background: linear-gradient(180deg, rgba(140, 112, 51, 0.08) 0%, rgba(140, 112, 51, 0.5) 50%, rgba(140, 112, 51, 0.08) 100%);
}

.compass-axis-horizontal {
  width: min(43vw, 560px);
  height: 1px;
  background: linear-gradient(90deg, rgba(140, 112, 51, 0.08) 0%, rgba(140, 112, 51, 0.5) 50%, rgba(140, 112, 51, 0.08) 100%);
}

.compass-diagonal {
  width: min(36vw, 460px);
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 134, 125, 0.06) 0%, rgba(111, 134, 125, 0.34) 50%, rgba(111, 134, 125, 0.06) 100%);
}

.compass-diagonal-left {
  transform: translate(-50%, -50%) rotate(45deg);
}

.compass-diagonal-right {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.compass-star {
  width: min(22vw, 272px);
  height: min(22vw, 272px);
}

.compass-star::before,
.compass-star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  clip-path: polygon(50% 0%, 62% 38%, 50% 100%, 38% 38%);
  transform: translate(-50%, -50%);
}

.compass-star-long::before {
  width: 76px;
  height: 272px;
  background: linear-gradient(180deg, rgba(58, 56, 53, 0.96) 0%, rgba(33, 31, 29, 0.88) 100%);
}

.compass-star-long::after {
  width: 76px;
  height: 272px;
  background: linear-gradient(180deg, rgba(58, 56, 53, 0.96) 0%, rgba(33, 31, 29, 0.88) 100%);
  transform: translate(-50%, -50%) rotate(90deg);
}

.compass-star-short::before {
  width: 58px;
  height: 214px;
  background: linear-gradient(180deg, rgba(95, 92, 86, 0.78) 0%, rgba(58, 56, 53, 0.72) 100%);
  transform: translate(-50%, -50%) rotate(45deg);
}

.compass-star-short::after {
  width: 58px;
  height: 214px;
  background: linear-gradient(180deg, rgba(95, 92, 86, 0.78) 0%, rgba(58, 56, 53, 0.72) 100%);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.compass-needle {
  width: 300px;
  height: 300px;
  z-index: 2;
  transition: transform 260ms ease;
}

.compass-needle-north,
.compass-needle-south {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.14));
}

.compass-needle-north {
  width: 62px;
  height: 196px;
  background: linear-gradient(180deg, #ef6a58 0%, #cb4738 100%);
  clip-path: polygon(50% 0%, 100% 100%, 50% 82%, 0% 100%);
  transform: translate(-50%, -86%);
}

.compass-needle-south {
  width: 62px;
  height: 196px;
  background: linear-gradient(180deg, #567d9e 0%, #2f5876 100%);
  clip-path: polygon(50% 100%, 100% 0%, 50% 18%, 0% 0%);
  transform: translate(-50%, -14%);
}

.compass-needle-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f8d783 0%, #d8a840 68%, #ad7f26 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 228, 0.45),
    0 8px 14px rgba(88, 68, 32, 0.16);
}

.compass-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(244, 236, 227, 0.94) 100%);
  border: 1px solid rgba(140, 112, 51, 0.2);
  box-shadow: 0 18px 34px rgba(63, 55, 50, 0.08);
}

.compass-core::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(140, 112, 51, 0.12);
}

.compass-core-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.compass-core-mark img {
  width: 100%;
  height: auto;
}

.compass-core span {
  font-family: var(--heading-font);
  font-size: 1.55rem;
  color: #403732;
}

.compass-core small {
  color: #7b7368;
  line-height: 1.4;
}

.compass-point {
  position: absolute;
  min-width: 176px;
  max-width: 224px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(191, 178, 159, 0.52);
  background: rgba(255, 252, 247, 0.9);
  color: #5f564d;
  box-shadow: 0 16px 28px rgba(63, 55, 50, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.compass-point:hover,
.compass-point.is-active {
  border-color: rgba(140, 112, 51, 0.42);
  background: #fffaf4;
  color: #403732;
  box-shadow: 0 20px 34px rgba(63, 55, 50, 0.1);
}

.compass-point strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.1;
}

.compass-point-direction {
  display: inline-flex;
  margin-bottom: 8px;
  color: #a07f35;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.compass-point-north {
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.compass-point-east {
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
}

.compass-point-south {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.compass-point-west {
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
}

.compass-point-north:hover,
.compass-point-north.is-active,
.compass-point-south:hover,
.compass-point-south.is-active {
  transform: translate(-50%, -2px);
}

.compass-point-east:hover,
.compass-point-east.is-active {
  transform: translate(0, calc(-50% - 2px));
}

.compass-point-west:hover,
.compass-point-west.is-active {
  transform: translate(0, calc(-50% - 2px));
}

.compass-letter {
  position: absolute;
  color: rgba(61, 50, 37, 0.82);
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 247, 220, 0.56);
}

.compass-letter-north {
  top: 142px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-letter-east {
  top: 50%;
  right: 144px;
  transform: translateY(-50%);
}

.compass-letter-south {
  bottom: 142px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-letter-west {
  top: 50%;
  left: 144px;
  transform: translateY(-50%);
}

.compass-detail-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(191, 178, 159, 0.48);
  background: rgba(255, 252, 247, 0.88);
  box-shadow: 0 18px 34px rgba(63, 55, 50, 0.08);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compass-detail-card h2 {
  margin: 10px 0 14px;
  font-family: var(--heading-font);
  font-size: clamp(2.3rem, 3.5vw, 3.4rem);
  line-height: 0.95;
  color: #403732;
}

.compass-detail-card p {
  margin: 0;
  color: #746c62;
  line-height: 1.8;
}

.compass-detail-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}

.compass-detail-points span {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(191, 178, 159, 0.42);
  background: rgba(246, 240, 233, 0.78);
  color: #554c44;
}

.service-intro-band,
.service-card-grid,
.service-human,
.service-result-grid {
  display: grid;
  gap: 18px;
}

.service-intro-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1280px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}

.service-heading {
  max-width: 900px;
  margin-bottom: 22px;
}

.service-heading h2,
.service-human-copy h2,
.service-support-card h2,
.service-closing h2,
.service-contact-copy h2 {
  margin: 12px 0 14px;
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 0.98;
}

.service-heading h2 {
  font-size: clamp(2.35rem, 4vw, 3.7rem);
}

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

.service-sell-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(199, 192, 180, 0.58);
  background: #fcfaf7;
  box-shadow: 0 18px 38px rgba(63, 55, 50, 0.06);
}

.service-sell-card img {
  width: 100%;
  aspect-ratio: 1.32 / 1;
  object-fit: cover;
}

.service-sell-copy {
  padding: 24px;
}

.service-sell-copy strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.service-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.service-list li + li {
  margin-top: 6px;
}

.service-human {
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  padding: 28px 0 10px;
}

.service-human-copy {
  padding-right: 28px;
}

.service-human-copy h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.service-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.service-tags span {
  padding: 11px 14px;
  border-radius: 999px;
  background: #f3ece4;
  border: 1px solid rgba(187, 178, 163, 0.58);
  color: #5d544b;
}

.service-human-media {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(199, 192, 180, 0.58);
  box-shadow: 0 20px 40px rgba(63, 55, 50, 0.08);
}

.service-human-media img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.service-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.service-results-heading {
  margin-bottom: 0;
}

.service-results-note {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(186, 171, 148, 0.4);
  background:
    radial-gradient(circle at top right, rgba(179, 148, 73, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(244, 235, 222, 0.94) 0%, rgba(250, 246, 240, 0.96) 100%);
  box-shadow: 0 18px 34px rgba(63, 55, 50, 0.06);
}

.service-results-note strong {
  display: block;
  margin: 10px 0 12px;
  font-size: 1.22rem;
  line-height: 1.35;
  color: #403732;
}

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

.result-card {
  min-height: 240px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(199, 192, 180, 0.5);
  background: linear-gradient(180deg, rgba(253, 250, 246, 0.96) 0%, rgba(247, 241, 232, 0.92) 100%);
  box-shadow: 0 16px 30px rgba(63, 55, 50, 0.05);
}

.result-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.38rem;
  line-height: 1.16;
}

.result-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 148, 73, 0.2);
  background: rgba(179, 148, 73, 0.08);
  color: #a07f35;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-result-grid small {
  display: block;
  margin-top: 18px;
  font-size: 0.95rem;
}

.result-card-featured {
  min-height: 220px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(179, 148, 73, 0.16), transparent 38%),
    linear-gradient(135deg, #f8efe3 0%, #efe2d0 100%);
}

.result-card-featured strong {
  font-size: 1.28rem;
}

.result-card-featured .result-kicker {
  margin-bottom: 14px;
  padding: 6px 11px;
  font-size: 0.69rem;
}

.result-card-featured small {
  margin-top: 14px;
  font-size: 0.9rem;
}

.result-card-accent {
  background: linear-gradient(135deg, #4c4036 0%, #3f352f 100%);
  border-color: rgba(176, 152, 112, 0.36);
}

.result-card-accent strong,
.result-card-accent p,
.result-card-accent small {
  color: rgba(247, 241, 231, 0.92);
}

.result-card-accent .result-kicker {
  background: rgba(247, 241, 231, 0.12);
  border-color: rgba(247, 241, 231, 0.2);
  color: #f2ddaf;
}

.service-method-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start;
}

.service-method-copy {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(199, 192, 180, 0.48);
  background:
    radial-gradient(circle at bottom left, rgba(179, 148, 73, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(250, 246, 240, 0.96) 0%, rgba(243, 236, 227, 0.92) 100%);
  box-shadow: 0 18px 34px rgba(63, 55, 50, 0.05);
}

.service-method-copy h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.45rem);
  line-height: 1.08;
}

.service-method-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-left: 24px;
}

.service-method-grid::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(179, 148, 73, 0.68) 0%, rgba(179, 148, 73, 0.08) 100%);
}

.method-step {
  position: relative;
  padding: 18px 18px 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(199, 192, 180, 0.46);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 16px 30px rgba(63, 55, 50, 0.05);
}

.method-step::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b39449;
  box-shadow: 0 0 0 5px rgba(179, 148, 73, 0.12);
}

.service-method-grid article span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #b39449;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.method-step em {
  display: block;
  margin-bottom: 10px;
  color: #93877a;
  font-size: 0.88rem;
  font-style: normal;
}

.method-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.service-support {
  padding: 18px 0 4px;
}

.service-support-card {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(0, 1.04fr);
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(199, 192, 180, 0.52);
  background:
    linear-gradient(135deg, rgba(249, 244, 237, 0.98) 0%, rgba(239, 230, 220, 0.94) 100%);
  box-shadow: 0 20px 40px rgba(63, 55, 50, 0.06);
}

.service-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: stretch;
}

.service-support-grid article {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(199, 192, 180, 0.44);
  background: rgba(255, 253, 250, 0.84);
}

.service-support-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: #403732;
}

.service-support-card h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.service-closing {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 26px;
  border-radius: 34px;
  border: 1px solid rgba(199, 192, 180, 0.58);
  background:
    radial-gradient(circle at top right, rgba(179, 148, 73, 0.18), transparent 36%),
    linear-gradient(180deg, #fbf7f2 0%, #f1e8dd 100%);
  box-shadow: 0 20px 42px rgba(63, 55, 50, 0.06);
}

.service-closing h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
}

.service-closing-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-left: 24px;
  border-left: 1px solid rgba(179, 148, 73, 0.18);
}

.service-closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-closing-tags span {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid rgba(179, 148, 73, 0.2);
  color: #5d544b;
}

.service-contact {
  padding-top: 10px;
}

.service-contact-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(199, 192, 180, 0.54);
  background:
    radial-gradient(circle at bottom left, rgba(179, 148, 73, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(250, 246, 240, 0.98) 0%, rgba(244, 237, 229, 0.96) 100%);
  box-shadow: 0 20px 42px rgba(63, 55, 50, 0.06);
}

.service-contact-copy h2 {
  font-size: clamp(1.75rem, 2.75vw, 2.55rem);
  line-height: 1.08;
}

.service-contact-points {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.service-contact-points article {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(199, 192, 180, 0.42);
  background: rgba(255, 253, 250, 0.8);
}

.service-contact-points strong {
  display: block;
  margin-bottom: 6px;
  color: #403732;
}

.service-contact-points span {
  color: #7b7368;
  line-height: 1.64;
}

.service-contact-form {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(199, 192, 180, 0.46);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 34px rgba(63, 55, 50, 0.06);
}

.service-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-contact-form .btn-block {
  margin-top: 8px;
}

.form-feedback.is-success {
  color: #6e7d45;
}

@media (max-width: 1180px) {
  .compass-proof-strip,
  .service-intro-band,
  .service-card-grid,
  .service-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compass-hero-shell,
  .compass-stage,
  .service-results-layout,
  .service-method-shell,
  .service-support-card,
  .service-closing,
  .service-contact-shell,
  .service-human {
    grid-template-columns: 1fr;
  }

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

  .service-human-copy {
    padding-right: 0;
  }

  .service-closing-side {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid rgba(179, 148, 73, 0.18);
  }

  .compass-hero-intro {
    max-width: none;
    padding: 0;
  }
}

@media (max-width: 720px) {
  .landing-page {
    width: min(100%, calc(100% - 16px));
    padding-top: 10px;
  }

  .compass-hero {
    padding: 46px 0 24px;
    margin-bottom: 14px;
  }

  .compass-hero-shell,
  .service-intro-band {
    width: min(100%, calc(100% - 24px));
  }

  .compass-hero-intro,
  .compass-stage,
  .compass-detail-card {
    padding: 0;
  }

  .compass-hero-intro h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .compass-hero-intro p {
    max-width: none;
  }

  .compass-stage,
  .compass-detail-card,
  .compass-proof-strip article {
    padding: 22px;
  }

  .compass-rose {
    min-height: 560px;
  }

  .compass-proof-strip,
  .service-intro-band,
  .service-card-grid,
  .service-result-grid,
  .service-support-grid,
  .service-contact-grid {
    grid-template-columns: 1fr;
  }

  .compass-point {
    min-width: 136px;
    max-width: 156px;
    padding: 12px 14px;
  }

  .compass-point strong {
    font-size: 1rem;
  }

  .compass-ring-outer {
    width: min(72vw, 340px);
    height: min(72vw, 340px);
    border-width: 9px;
  }

  .compass-ring-inner {
    width: min(48vw, 224px);
    height: min(48vw, 224px);
  }

  .compass-face {
    width: min(64vw, 300px);
    height: min(64vw, 300px);
  }

  .compass-axis-vertical {
    height: min(78vw, 390px);
  }

  .compass-axis-horizontal {
    width: min(78vw, 390px);
  }

  .compass-diagonal {
    width: min(62vw, 300px);
  }

  .compass-star-long::before,
  .compass-star-long::after {
    width: 54px;
    height: 192px;
  }

  .compass-star-short::before,
  .compass-star-short::after {
    width: 42px;
    height: 148px;
  }

  .compass-needle {
    width: 220px;
    height: 220px;
  }

  .compass-needle-north,
  .compass-needle-south {
    width: 48px;
    height: 150px;
  }

  .compass-needle-cap {
    width: 30px;
    height: 30px;
  }

  .compass-core {
    width: 142px;
    height: 142px;
  }

  .compass-core span {
    font-size: 1.28rem;
  }

  .compass-letter-north {
    top: 98px;
  }

  .compass-letter-east {
    right: 98px;
  }

  .compass-letter-south {
    bottom: 98px;
  }

  .compass-letter-west {
    left: 98px;
  }

  .result-card-featured {
    grid-column: auto;
  }

  .service-method-grid {
    padding-left: 18px;
  }

  .service-support-card,
  .service-contact-shell,
  .service-contact-form {
    padding: 20px;
  }

  .service-contact-copy h2,
  .service-closing h2,
  .service-method-copy h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .service-human-media img {
    min-height: 320px;
  }
}

/* Final mobile polish for conversion landing */
@media (max-width: 720px) {
  .conversion-landing .site-header {
    align-items: center;
    border-radius: 18px;
    padding: 10px 12px;
  }

  .conversion-landing .brand-logo {
    max-width: 150px;
  }

  .conversion-landing .site-nav {
    justify-content: flex-end;
    gap: 7px;
  }

  .conversion-landing .site-nav a:not(.btn) {
    display: none;
  }

  .conversion-landing .site-nav .btn,
  .conversion-landing .site-nav button.btn {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .conversion-landing .site-nav .btn-secondary {
    display: none;
  }
}
