/* =========================================================
   YOOBIC story-led case study — text-only page
   No product screens. Tight, editorial layout.
   ========================================================= */

.ys-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
}

/* Override case.css global `p { display: flex }` rule —
   we want normal paragraph flow on this page. */
.ys-main p {
  display: block;
  gap: 0;
}

/* ---------- Hero ---------- */
.ys-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.ys-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1.5rem 0;
}

.ys-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.01em;
}

.ys-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.ys-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem 0;
}

.ys-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem 0;
}

.ys-meta-item {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ys-confidentiality {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(34, 197, 94, 0.5);
  padding: 0.85rem 1rem;
  margin: 0;
  border-radius: 0 6px 6px 0;
}

.ys-confidentiality em {
  color: #fff;
  font-style: italic;
}

/* ---------- Scope strip ---------- */
.ys-scope {
  margin: 0 0 4rem 0;
}

.ys-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.ys-scope-cell {
  background: #000;
  padding: 1.5rem 1.25rem;
  text-align: left;
}

.ys-scope-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.4rem;
}

.ys-scope-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ---------- Generic section ---------- */
.ys-section {
  margin: 0 0 4rem 0;
}

.ys-section-intro {
  color: rgba(255, 255, 255, 0.65);
  margin: -0.5rem 0 2rem 0;
  font-size: 0.95rem;
}

.ys-section-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  margin-left: 0.4rem;
  transition: color 0.2s, border-color 0.2s;
}

.ys-section-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

[data-theme="light"] .ys-section-intro { color: rgba(0, 0, 0, 0.65); }
[data-theme="light"] .ys-section-link {
  color: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .ys-section-link:hover {
  color: #111;
  border-bottom-color: #111;
}

.ys-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.005em;
}

.ys-h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.6rem 0;
  color: #fff;
}

.ys-prose p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.1rem 0;
}

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

.ys-prose em {
  color: #fff;
  font-style: italic;
}

/* ---------- Chapters ---------- */
.ys-chapter {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ys-chapter:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ys-chapter-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ys-chapter-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.ys-chapter-year {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ys-chapter-body p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.ys-chapter-body p strong {
  color: #fff;
}

.ys-chapter-body em {
  color: #fff;
  font-style: italic;
}

/* ---------- 3-column grid ---------- */
.ys-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ys-grid-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
}

.ys-cell-title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem 0;
}

.ys-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ys-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.ys-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

/* ---------- Lessons (numbered editorial list) ---------- */
.ys-lessons {
  list-style: none;
  counter-reset: lesson;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ys-lessons li {
  counter-increment: lesson;
  position: relative;
  padding-left: 3rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.ys-lessons li::before {
  content: counter(lesson, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
}

.ys-lessons li strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- Quotes ---------- */
.ys-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.ys-quote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.ys-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 1rem 0;
  color: rgba(255, 255, 255, 0.92);
}

.ys-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ys-quote-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.ys-quote-role {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- CTA ---------- */
.ys-cta {
  margin: 4rem 0 0 0;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.ys-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.ys-cta-body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin: 0 auto 1.5rem auto;
}

.ys-cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ys-cta-actions .btn,
.ys-cta-actions .btn-ghost {
  width: auto;
  min-width: 200px;
  flex: 0 0 auto;
}

/* Local copy of .btn-ghost for this page (case.css doesn't define it) */
.ys-main .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  height: 2.85rem;
  background-color: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ys-main .btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .ys-main .btn-ghost {
  color: #111;
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .ys-main .btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.4);
}

/* =========================================================
   Light mode overrides
   ========================================================= */

[data-theme="light"] .ys-main { color: #111; }

[data-theme="light"] .ys-eyebrow,
[data-theme="light"] .ys-chapter-year,
[data-theme="light"] .ys-cell-title { color: rgba(0, 0, 0, 0.55); }

[data-theme="light"] .ys-title em,
[data-theme="light"] .ys-prose em,
[data-theme="light"] .ys-chapter-body em,
[data-theme="light"] .ys-confidentiality em { color: #111; }

[data-theme="light"] .ys-subtitle { color: rgba(0, 0, 0, 0.85); }

[data-theme="light"] .ys-meta-item {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.78);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ys-confidentiality {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .ys-hero {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ys-scope-grid { background: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .ys-scope-cell { background: #fff; }
[data-theme="light"] .ys-scope-num { color: #111; }
[data-theme="light"] .ys-scope-label { color: rgba(0, 0, 0, 0.6); }

[data-theme="light"] .ys-prose p,
[data-theme="light"] .ys-chapter-body p,
[data-theme="light"] .ys-list li,
[data-theme="light"] .ys-lessons li { color: rgba(0, 0, 0, 0.78); }

[data-theme="light"] .ys-h3,
[data-theme="light"] .ys-chapter-body p strong,
[data-theme="light"] .ys-lessons li strong,
[data-theme="light"] .ys-quote-name,
[data-theme="light"] .ys-cta-title { color: #111; }

[data-theme="light"] .ys-chapter,
[data-theme="light"] .ys-chapter:last-child { border-color: rgba(0, 0, 0, 0.1); }

[data-theme="light"] .ys-chapter-num { color: rgba(0, 0, 0, 0.3); }

[data-theme="light"] .ys-grid-cell,
[data-theme="light"] .ys-quote {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ys-quote blockquote { color: rgba(0, 0, 0, 0.88); }
[data-theme="light"] .ys-quote-role { color: rgba(0, 0, 0, 0.55); }

[data-theme="light"] .ys-lessons li::before { color: rgba(0, 0, 0, 0.4); }

[data-theme="light"] .ys-cta {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(0, 0, 0, 0.02));
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ys-cta-body { color: rgba(0, 0, 0, 0.7); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  .ys-main { padding: 5rem 1.25rem 3rem; }

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

  .ys-grid-3 { grid-template-columns: 1fr; }

  .ys-chapter {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ys-chapter-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }

  .ys-chapter-num { font-size: 1.4rem; }

  .ys-cta { padding: 2.25rem 1.25rem; }

  .ys-cta-actions .btn,
  .ys-cta-actions .btn-ghost {
    width: 100%;
    min-width: 0;
  }
}
