/* ================================================================
   LUCEN.AI — Design System
   Editorial × Financial-grade PropTech
   ================================================================ */

/* -----  Design Tokens  ----- */
:root {
  --ink:          #0A0A0A;
  --ink-soft:     #1F1F1F;
  --ink-muted:    #4A4A4A;
  --paper:        #FAFAF5;
  --paper-soft:   #F2F1EA;
  --paper-sink:   #E8E7DF;
  --rule:         #E5E4DD;
  --rule-strong:  #D4D3CC;
  --muted:        #6B7280;
  --muted-soft:   #9CA3AF;

  --blue:         #1652F0;
  --blue-dark:    #0F3BBF;
  --blue-soft:    #E8EEFE;
  --blue-ink:     #0A1E5C;

  --green:        #16A34A;
  --lime:         #65A30D;
  --amber:        #F59E0B;
  --red:          #DC2626;
  --rose:         #F43F5E;

  --shadow-xs: 0 1px 2px rgba(10,10,10,.04);
  --shadow-sm: 0 2px 8px rgba(10,10,10,.05);
  --shadow-md: 0 8px 24px rgba(10,10,10,.08);
  --shadow-lg: 0 20px 60px rgba(10,10,10,.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-w: 1240px;
  --max-w-text: 740px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* -----  Reset  ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

/* -----  Typography  ----- */
.display-xxl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variation-settings: 'opsz' 144;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}
.eyebrow-plain::before { display: none; }
.lead {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}
.caption {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.45;
}
.mono { font-family: var(--font-mono); }
.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
em.accent {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

/* -----  Layout  ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.container-text {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.section {
  padding: 6rem 0;
  position: relative;
}
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-lg { padding: 6rem 0; }
  .container, .container-narrow, .container-text { padding: 0 1rem; }
}

/* -----  Navigation  ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .875rem 0;
  background: rgba(250, 250, 245, .82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.nav.scrolled {
  border-bottom-color: var(--rule);
  padding: .625rem 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .7; }
.nav-logo .dot { color: var(--blue); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: .9375rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
  padding: .25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width .25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: flex;
  gap: .75rem;
  align-items: center;
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
}
.nav-dropdown-trigger::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}
.nav-dropdown.open .nav-dropdown-trigger::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + .5rem);
  left: -1rem;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: .5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .2s var(--ease);
}
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-panel a {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.nav-dropdown-panel a:hover {
  background: var(--paper-soft);
}
.nav-dropdown-panel a::after { display: none; }
.nav-dropdown-panel a strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9375rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.nav-dropdown-panel a span {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-mobile-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  display: block;
  position: relative;
}
.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s;
}
.nav-mobile-toggle span::before { top: -6px; }
.nav-mobile-toggle span::after { top: 6px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }
}

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 99;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}
.nav-mobile-panel.open { display: block; }
.nav-mobile-panel a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.nav-mobile-panel a span {
  display: block;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.nav-mobile-panel .nav-mobile-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* -----  Buttons  ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.125rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all .2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 82, 240, .28);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost {
  color: var(--ink-soft);
  padding: .5rem .75rem;
}
.btn-ghost:hover { color: var(--blue); }
.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}
.btn-arrow::after {
  content: '→';
  transition: transform .2s;
  font-weight: 300;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* -----  Hero  ----- */
.hero {
  padding: 5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 3rem 0 4rem; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.65); }
}
.hero-title { margin-bottom: 1.5rem; }
.hero-sub { margin-bottom: 2rem; max-width: 540px; }
.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  padding: .75rem .875rem .75rem 1.125rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  max-width: 520px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.hero-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.hero-search-icon {
  width: 20px; height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .9375rem;
  min-width: 0;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search .btn {
  padding: .5rem 1rem;
  font-size: .8125rem;
}
.hero-trust {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-trust-item {
  font-size: .8125rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.hero-trust-check {
  width: 14px; height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

/* -----  Score Card Component  ----- */
.score-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transform: rotate(-.8deg);
  transition: transform .4s var(--ease);
}
.score-card:hover { transform: rotate(0) translateY(-4px); }
.score-card::before {
  content: 'LUCEN REPORT';
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 500;
}
.score-card-meta {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .25rem;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.score-card-address {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.score-ring-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.score-ring {
  position: relative;
  width: 128px; height: 128px;
  flex-shrink: 0;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-bg { stroke: var(--paper-soft); }
.score-ring-fg {
  stroke-linecap: round;
  stroke-dasharray: 345;
  stroke-dashoffset: 45;
  animation: draw-ring 1.6s var(--ease) forwards;
}
@keyframes draw-ring {
  from { stroke-dashoffset: 345; }
}
.score-ring-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  font-variation-settings: 'opsz' 144;
}
.score-ring-max {
  font-size: .6875rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 3px;
  letter-spacing: .05em;
}
.score-label-word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}
.score-label-small {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.score-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
}
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .8125rem;
}
.score-row-label {
  color: var(--ink-soft);
}
.score-row-bar {
  flex: 1;
  height: 3px;
  background: var(--paper-soft);
  border-radius: 2px;
  overflow: hidden;
  max-width: 44px;
}
.score-row-bar-fill {
  height: 100%;
  border-radius: 2px;
}
.score-row-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .75rem;
  min-width: 20px;
  text-align: right;
}

/* Score color classes */
.c-excellent { color: var(--green); }
.c-good      { color: var(--lime); }
.c-fair      { color: var(--amber); }
.c-poor      { color: var(--red); }
.bg-excellent { background: var(--green); stroke: var(--green); }
.bg-good      { background: var(--lime); stroke: var(--lime); }
.bg-fair      { background: var(--amber); stroke: var(--amber); }
.bg-poor      { background: var(--red); stroke: var(--red); }

/* -----  Sections  ----- */
.section-head {
  max-width: 760px;
  margin-bottom: 4rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p {
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 660px;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* -----  Logos / social proof strip  ----- */
.proof-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255,255,255,.5);
}
.proof-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  opacity: .55;
}
.proof-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -.01em;
}

/* -----  Stat cards / problem grid  ----- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: all .25s var(--ease);
}
.stat-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.625rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
  font-variation-settings: 'opsz' 96;
}
.stat-number-unit {
  font-size: .7em;
  color: var(--muted);
  font-weight: 400;
}
.stat-label {
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.stat-source {
  margin-top: .75rem;
  font-size: .6875rem;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* -----  How it works steps  ----- */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .hiw-grid { grid-template-columns: 1fr; } }
.hiw-step {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: all .3s var(--ease);
  position: relative;
}
.hiw-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.hiw-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -.015em;
  margin-bottom: .75rem;
}
.hiw-step p {
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.hiw-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.hiw-list li {
  font-size: .8125rem;
  font-family: var(--font-mono);
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  letter-spacing: .01em;
}
.hiw-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1px;
  background: var(--blue);
}

/* -----  Index grid (11 sub-indices)  ----- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
@media (max-width: 1024px) { .index-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .index-grid { grid-template-columns: repeat(2, 1fr); } }
.index-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.index-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.index-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.index-card:hover::before { transform: scaleX(1); }
.index-card-name {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.index-card-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}
.index-card-desc {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.4;
}

/* -----  Sample report preview (dark)  ----- */
.sample-preview {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.sample-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(250,250,245,.15);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.sample-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
}
.sample-addr {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: rgba(250,250,245,.6);
}
.sample-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: rgba(22,163,74,.15);
  border: 1px solid rgba(22,163,74,.3);
  border-radius: var(--radius-md);
}
.sample-score-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: #4ADE80;
  font-variation-settings: 'opsz' 144;
}
.sample-score-max {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: rgba(74,222,128,.7);
}
.sample-score-label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4ADE80;
}
.sample-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
@media (max-width: 900px) {
  .sample-body { grid-template-columns: 1fr; gap: 2rem; }
  .sample-preview { padding: 2rem; }
}
.sample-section-head {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,250,245,.5);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(250,250,245,.1);
}
.sample-concern {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(250,250,245,.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.sample-concern-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--amber);
  padding-top: 3px;
  font-weight: 500;
  min-width: 30px;
}
.sample-concern-text { flex: 1; }
.sample-concern-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 3px;
}
.sample-concern-src {
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: rgba(250,250,245,.5);
  letter-spacing: .04em;
}
.sample-concern-src a {
  color: #7FB7FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sample-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sample-aside-item { font-size: .875rem; line-height: 1.5; }
.sample-aside-label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,250,245,.5);
  margin-bottom: 4px;
  display: block;
}

/* -----  Persona tabs  ----- */
.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--paper-soft);
  border-radius: 100px;
  border: 1px solid var(--rule);
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.tab {
  padding: .625rem 1.375rem;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.tab.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-xs);
}
.tab:hover:not(.active) { color: var(--ink); }
.tab-panel { display: none; animation: fade-in .4s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .persona-grid { grid-template-columns: 1fr; gap: 2rem; } }
.persona-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.persona-feature {
  display: flex;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
}
.persona-feature:last-child { border-bottom: none; }
.persona-feature-icon {
  width: 28px; height: 28px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
}
.persona-feature-text h4 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.persona-feature-text p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* -----  Pricing cards  ----- */
.pricing-grid {
  display: grid;
  gap: 1rem;
}
.pricing-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.pricing-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .pricing-grid.c3, .pricing-grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing-grid.c3, .pricing-grid.c4 { grid-template-columns: 1fr; }
}
.pricing-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all .3s var(--ease);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.pricing-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pricing-card.featured .pricing-price { color: var(--paper); }
.pricing-card.featured .pricing-desc,
.pricing-card.featured .pricing-sub-price,
.pricing-card.featured .pricing-feature,
.pricing-card.featured .pricing-name { color: rgba(250,250,245,.85); }
.pricing-card.featured .pricing-feature::before { background: #7FB7FF; }
.pricing-card.featured .btn-primary { background: var(--paper); color: var(--ink); }
.pricing-card.featured .btn-primary:hover { background: var(--blue); color: var(--paper); }
.pricing-card.featured .pricing-features { border-top-color: rgba(250,250,245,.15); }
.pricing-badge {
  position: absolute;
  top: -10px;
  right: 1.25rem;
  background: var(--blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.015em;
  margin-bottom: .5rem;
}
.pricing-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 2.6em;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: .25rem;
  font-variation-settings: 'opsz' 144;
}
.pricing-price-unit {
  font-size: .875rem;
  color: var(--muted);
  font-weight: 400;
}
.pricing-sub-price {
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  min-height: 1.2em;
}
.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.pricing-feature {
  font-size: .875rem;
  line-height: 1.4;
  color: var(--ink-soft);
  padding-left: 1.25rem;
  position: relative;
}
.pricing-feature::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 10px; height: 1px;
  background: var(--blue);
}

/* -----  Trust cards  ----- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 2px solid var(--blue);
}
.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.015em;
  margin-bottom: .75rem;
}
.trust-card p {
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.55;
}
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  margin-top: 2.5rem;
}
.cert {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .5rem .75rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

/* -----  Why now / dark stat band  ----- */
.stat-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
}
@media (max-width: 768px) { .stat-band { padding: 3rem 1.5rem; } }
.stat-band-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.stat-band-head .eyebrow { color: #7FB7FF; }
.stat-band-head h2 { color: var(--paper); margin-bottom: 1rem; }
.stat-band-head p { color: rgba(250,250,245,.7); font-size: 1.125rem; }
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .stat-band-grid { grid-template-columns: repeat(2, 1fr); } }
.band-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: .75rem;
  color: var(--paper);
  font-variation-settings: 'opsz' 144;
}
.band-stat-num em { font-style: normal; color: #7FB7FF; }
.band-stat-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,250,245,.5);
  margin-bottom: .5rem;
}
.band-stat-desc {
  font-size: .875rem;
  color: rgba(250,250,245,.75);
  line-height: 1.5;
}

/* -----  FAQ  ----- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary::after {
  content: '+';
  font-weight: 300;
  font-size: 1.5rem;
  transition: transform .3s var(--ease);
  color: var(--blue);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-content {
  padding: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.6;
  max-width: 620px;
}

/* -----  CTA band  ----- */
.cta-band {
  background: var(--blue);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: var(--paper);
  max-width: 820px;
  margin: 0 auto 1rem;
}
.cta-band h2 em { color: rgba(255,255,255,.85); font-style: italic; font-weight: 400; }
.cta-band p {
  color: rgba(250,250,245,.85);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.cta-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ink); color: var(--paper); }
.cta-band .btn-secondary { border-color: rgba(250,250,245,.4); color: var(--paper); }
.cta-band .btn-secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* -----  About / team  ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-member { text-align: left; }
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--paper-soft), var(--blue-soft));
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--muted-soft);
  letter-spacing: -.02em;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: -.01em;
}
.team-role {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -----  Generic grids  ----- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) and (min-width: 901px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: all .25s var(--ease);
}
.feature-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.feature-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.feature-card p {
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.5;
}

/* -----  Footer  ----- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  background: var(--paper-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.footer-brand h3 span { color: var(--blue); }
.footer-brand p {
  color: var(--muted);
  font-size: .9375rem;
  max-width: 300px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.footer-social {
  display: flex;
  gap: .5rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: var(--ink-soft);
}
.footer-social a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-col a {
  color: var(--ink-soft);
  font-size: .9375rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* -----  Utility  ----- */
.hidden { display: none; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* -----  Page hero variant (non-home)  ----- */
.page-hero {
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 { margin-bottom: 1.25rem; max-width: 900px; }
.page-hero p { max-width: 680px; }
@media (max-width: 768px) { .page-hero { padding: 5rem 0 3rem; } }

/* -----  Methodology specific  ----- */
.method-weights {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.method-row {
  display: grid;
  grid-template-columns: 3fr 1fr 4fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  transition: background .15s;
}
.method-row:last-child { border-bottom: none; }
.method-row:hover { background: var(--paper-soft); }
.method-row-head {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.method-row-head:hover { background: var(--ink); }
.method-name { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.method-weight {
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-weight: 500;
}
.method-bar-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.method-bar {
  flex: 1;
  height: 6px;
  background: var(--paper-soft);
  border-radius: 3px;
  overflow: hidden;
  max-width: 120px;
}
.method-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}
.method-desc {
  font-size: .8125rem;
  color: var(--muted);
}
@media (max-width: 700px) {
  .method-row { grid-template-columns: 1fr; gap: .25rem; padding: 1rem; }
  .method-row-head { display: none; }
  .method-bar-wrap { max-width: 100%; }
}

/* -----  Code block / API sample  ----- */
.code-block {
  background: #0A0A0A;
  color: #E5E7EB;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.65;
  overflow-x: auto;
  border: 1px solid #1F1F1F;
}
.code-block .c-key { color: #93C5FD; }
.code-block .c-str { color: #86EFAC; }
.code-block .c-num { color: #FCD34D; }
.code-block .c-com { color: #6B7280; font-style: italic; }
.code-tabs {
  display: flex;
  gap: 1px;
  background: #1F1F1F;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: .5rem .5rem 0;
}
.code-tab {
  padding: .5rem 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: #9CA3AF;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  background: transparent;
}
.code-tab.active {
  background: #0A0A0A;
  color: #E5E7EB;
}
.code-tabs + .code-block {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: none;
}

/* -----  Alert / callout  ----- */
.callout {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--blue-ink);
}
.callout strong { font-weight: 600; }

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

/* -----  Accessibility focus  ----- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible {
  outline-offset: 3px;
}
