@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root { --font-manrope: 'Manrope'; }

:root {
  --bg: #f2f4f6;
  --surface: #ffffff;
  --surface-2: #e9edf1;
  --ink: #334155;
  --ink-strong: #1e293b;
  --ink-soft: #64748b;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --coral: #ff6b5d;
  --coral-deep: #d8483b;
  --coral-soft: #fff0ee;
  --radius: 10px;
  --radius-sm: 7px;
  --maxw: 1180px;
  --shadow: 0 10px 28px rgba(51, 65, 85, 0.1);
  --shadow-soft: 0 4px 14px rgba(51, 65, 85, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink-strong);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Shelf header (left wordmark + thin shelf label rail) ---------- */
.shelf-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.shelf-header-inner {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--ink-strong);
  color: var(--coral);
}

.wordmark-text strong {
  display: block;
  color: var(--ink-strong);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wordmark-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.shelf-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shelf-rail-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.shelf-rail-tick {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--coral);
}

.shelf-rail-label:hover {
  border-color: var(--coral);
  color: var(--ink-strong);
}

main {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Lead (left-aligned, modular, image board on the right) ---------- */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 64px 0 52px;
}

.lead h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.lead-lede {
  margin: 22px 0 0;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.lead-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.lead-meta-item {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.lead-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.lead-board {
  height: clamp(240px, 30vw, 360px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.04), rgba(30, 41, 59, 0.22)),
    url("/images/lucidshelf-lead.jpg") center / cover no-repeat,
    linear-gradient(135deg, #ff8a7e 0%, #ff6b5d 42%, #475569 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.lead-board::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 3px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 -34px 0 rgba(255, 255, 255, 0.32), 0 -68px 0 rgba(255, 255, 255, 0.18);
}

/* ---------- Section heading ---------- */
.band-heading {
  margin-bottom: 24px;
}

.band-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.band-heading p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.shelves,
.matrix-preview,
.recent,
.about {
  padding: 50px 0;
  border-top: 1px solid var(--line);
}

/* ---------- Shelves (signature: labeled spine + horizontal card row) ---------- */
.shelf {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px dashed var(--line-strong);
}

.shelf:first-of-type {
  border-top: 0;
}

.shelf-spine {
  position: relative;
  padding-left: 16px;
}

.shelf-spine::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--coral);
}

.shelf-tag {
  display: inline-block;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shelf-spine h3 {
  margin: 12px 0 7px;
  font-size: 1.16rem;
}

.shelf-spine p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.shelf-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.compare-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.compare-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.compare-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.compare-fit {
  margin: 2px 0 0;
  display: grid;
  gap: 10px;
}

.fit-line {
  display: grid;
  gap: 3px;
}

.fit-line dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fit-line dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.fit-yes dt {
  color: var(--coral-deep);
}

.fit-no dt {
  color: var(--ink-soft);
}

.fit-line {
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
}

.fit-yes {
  border-left-color: var(--coral);
}

/* ---------- Criteria matrix ---------- */
.matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table.criteria-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.criteria-matrix th,
.criteria-matrix td {
  text-align: left;
  vertical-align: top;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.criteria-matrix th:last-child,
.criteria-matrix td:last-child {
  border-right: 0;
}

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

.criteria-matrix thead th {
  background: var(--ink-strong);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}

.criteria-matrix thead th:first-child {
  background: var(--coral);
}

.criteria-matrix tbody th {
  background: var(--surface-2);
  color: var(--ink-strong);
  font-weight: 800;
  white-space: nowrap;
}

.criteria-matrix tbody td {
  color: var(--ink-soft);
}

/* ---------- Recent reviews ---------- */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.recent-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.recent-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.recent-chip {
  align-self: flex-start;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.recent-card strong {
  font-size: 1.16rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.recent-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.recent-date {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- About ---------- */
.about h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  margin-bottom: 18px;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.note-list li {
  position: relative;
  padding: 16px 18px 16px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--coral);
}

/* ---------- Footer ---------- */
.site-footer {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 30px auto 0;
  padding: 30px 0 56px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-brand strong {
  color: var(--ink-strong);
  font-size: 1.08rem;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-desc {
  margin: 10px 0 16px;
  max-width: 480px;
  line-height: 1.6;
  font-size: 0.92rem;
}

.footer-disclosure {
  display: inline-block;
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Article (single column, fit panel + matrix signature) ---------- */
.article-shell {
  max-width: 768px;
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--coral-deep);
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4.5vw, 48px);
  box-shadow: var(--shadow-soft);
}

.article-chip {
  display: inline-block;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-head h1 {
  margin: 15px 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.18;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.article-lede {
  margin: 26px 0 0;
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--ink-strong);
  font-weight: 600;
  padding-left: 16px;
  border-left: 3px solid var(--coral);
}

/* Best fit / not a fit two-panel block (signature) */
.fit-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}

.fit-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px 20px;
  background: var(--surface);
}

.fit-col-yes {
  border-top: 4px solid var(--coral);
  background: var(--coral-soft);
}

.fit-col-no {
  border-top: 4px solid var(--line-strong);
  background: var(--surface-2);
}

.fit-col-head {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fit-col-yes .fit-col-head {
  color: var(--coral-deep);
}

.fit-col-no .fit-col-head {
  color: var(--ink-soft);
}

.fit-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fit-col li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.fit-col-yes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--coral-deep);
  border-bottom: 2px solid var(--coral-deep);
  transform: rotate(-45deg);
}

.fit-col-no li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 11px;
  height: 2px;
  background: var(--muted);
}

.matrix-block {
  margin: 30px 0 8px;
}

.matrix-block-title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-bottom: 14px;
}

/* Article body (NUDGEO semantic HTML) */
.article-content {
  margin-top: 30px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.78;
}

.article-content h2 {
  margin: 38px 0 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  padding-left: 14px;
  border-left: 4px solid var(--coral);
}

.article-content h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--coral-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--ink-strong);
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.article-content ul li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--coral);
}

.article-content ol {
  counter-reset: step;
}

.article-content ol li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  line-height: 1.6;
  counter-increment: step;
}

.article-content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  background: var(--surface-2);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-strong);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content thead th {
  background: var(--ink-strong);
  color: #fff;
  font-weight: 700;
}

/* FAQ + sources */
.faq-section,
.source-note {
  margin-top: 38px;
}

.faq-section h2,
.source-note h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  margin-bottom: 10px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-strong);
  list-style: none;
  display: flex;
  gap: 10px;
}

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

.faq-section summary::before {
  content: "+";
  color: var(--coral);
  font-weight: 800;
}

.faq-section details[open] summary::before {
  content: "–";
}

.faq-section details p {
  margin: 10px 0 0 22px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.source-note {
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.source-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.article-foot {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-deep);
  font-weight: 800;
}

.back-link::before {
  content: "←";
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 36px;
  }

  .lead-board {
    order: -1;
  }

  .shelf {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 640px) {
  .shelf-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .shelf-rail {
    justify-content: flex-start;
  }

  .fit-panel {
    grid-template-columns: 1fr;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
