/* Retained Learning Thesis — namespaced to #rl-app */
/* Editorial authority aesthetic: Newsreader display + DM Sans body */

#rl-app {
  --navy-deep: #0B1426;
  --navy-mid: #152240;
  --offwhite: #F7F6F2;
  --rl-white: #FFFFFF;
  --blue: #3B7FD9;
  --green: #1A9B6C;
  --amber: #C47F17;
  --red: #C44D2B;
  --lgray: #A0A0A0;
  --dgray: #4A4A4A;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dgray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sub-navigation */
#rl-app .rl-subnav {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
#rl-app .rl-subnav a {
  color: var(--lgray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
#rl-app .rl-subnav a:hover { color: var(--rl-white); }
#rl-app .rl-subnav a.active { color: var(--rl-white); border-bottom-color: var(--blue); }
#rl-app .rl-subnav .rl-cta {
  background: var(--blue);
  color: var(--rl-white) !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600 !important;
  border-bottom: none;
}
#rl-app .rl-subnav .rl-cta:hover { background: #2d6cbf; }
@media (max-width: 768px) {
  #rl-app .rl-subnav { gap: 16px; top: 56px; }
  #rl-app .rl-subnav .rl-cta { display: none; }
}

/* Typography — Newsreader for display, DM Sans for body */
#rl-app .type-hero {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.08;
  font-optical-sizing: auto;
}
#rl-app .type-h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
#rl-app .type-h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
#rl-app .type-h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.35;
}
#rl-app .type-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
#rl-app .type-small { font-size: 14px; font-weight: 400; line-height: 1.6; }
#rl-app .type-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* Spacing scale: 16 / 32 / 40 / 80 / 120 */

/* Sections */
#rl-app .rl-section { padding: 120px 24px; position: relative; }
#rl-app .section-narrow { max-width: 880px; margin: 0 auto; }
#rl-app .section-wide { max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { #rl-app .rl-section { padding: 64px 20px; } }

/* Consistent vertical rhythm */
#rl-app .rl-section .type-h1 { margin-bottom: 32px; }
#rl-app .rl-section .type-body { margin-bottom: 16px; }
#rl-app .rl-section .type-body:last-child { margin-bottom: 0; }
#rl-app .rl-section .section-label + .type-h1 { margin-top: 0; }

/* Backgrounds with grain texture */
#rl-app .bg-navy {
  background: var(--navy-deep);
  color: var(--rl-white);
}
#rl-app .bg-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
#rl-app .bg-navy > * { position: relative; z-index: 1; }
#rl-app .bg-offwhite {
  background: var(--offwhite);
  color: var(--dgray);
}
#rl-app .bg-offwhite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}
#rl-app .bg-offwhite > * { position: relative; z-index: 1; }
#rl-app .bg-navy-mid { background: var(--navy-mid); color: var(--rl-white); }

/* Section labels */
#rl-app .section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}
#rl-app .label-blue { color: var(--blue); }

/* Buttons */
#rl-app .rl-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  position: relative;
}
#rl-app .rl-btn-filled {
  background: var(--blue);
  color: var(--rl-white);
  box-shadow: 0 2px 8px rgba(59, 127, 217, 0.25);
}
#rl-app .rl-btn-filled:hover {
  background: #2d6cbf;
  box-shadow: 0 4px 16px rgba(59, 127, 217, 0.35);
  transform: translateY(-1px);
}
#rl-app .rl-btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--rl-white);
}
#rl-app .rl-btn-ghost:hover {
  border-color: var(--rl-white);
  background: rgba(255,255,255,0.06);
}
#rl-app .rl-btn-ghost-dark { background: transparent; border: 1.5px solid var(--navy-deep); color: var(--navy-deep); }

/* Stat cards */
#rl-app .stat-card {
  background: var(--navy-deep);
  padding: 28px 24px;
  border-radius: 6px;
  border-left: 3px solid var(--blue);
  transition: transform 0.3s, box-shadow 0.3s;
}
#rl-app .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
#rl-app .stat-card .stat-number {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
#rl-app .stat-card .stat-label { font-size: 13px; color: var(--lgray); letter-spacing: 0.01em; }

/* Grids */
#rl-app .rl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
#rl-app .rl-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
#rl-app .rl-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { #rl-app .rl-grid-2, #rl-app .rl-grid-3, #rl-app .rl-grid-4 { grid-template-columns: 1fr; } }

/* Playbook cards */
#rl-app .playbook-card {
  background: var(--rl-white);
  padding: 40px;
  border-radius: 6px;
  border: 1px solid rgba(196, 77, 43, 0.2);
  transition: border-color 0.3s;
}
#rl-app .playbook-card:hover { border-color: var(--red); }
#rl-app .playbook-card h3 { color: var(--navy-deep); margin-bottom: 16px; font-family: 'Newsreader', Georgia, serif; }
#rl-app .playbook-card p { color: var(--dgray); line-height: 1.75; margin-bottom: 16px; }
#rl-app .dead-tag {
  display: inline-block;
  background: rgba(196,77,43,0.08);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Argument rows */
#rl-app .arg-row {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding-left 0.3s;
}
#rl-app .arg-row:hover { padding-left: 8px; }
#rl-app .arg-row:last-child { border-bottom: none; }
#rl-app .arg-icon { font-size: 24px; flex-shrink: 0; width: 48px; opacity: 0.8; }
#rl-app .arg-content h3 {
  color: var(--rl-white);
  margin-bottom: 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
}
#rl-app .arg-content p { color: var(--lgray); line-height: 1.75; }

/* Pullquote */
#rl-app .pullquote {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  text-align: center;
  padding: 48px 0;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Solution columns */
#rl-app .solution-col {
  padding: 36px;
  border-top: 2px solid var(--blue);
  background: var(--rl-white);
  border-radius: 0 0 6px 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}
#rl-app .solution-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
#rl-app .solution-col h3 { color: var(--navy-deep); margin-bottom: 12px; font-family: 'Newsreader', Georgia, serif; }
#rl-app .solution-col p { line-height: 1.75; }
#rl-app .solution-col.green { border-top-color: var(--green); }
#rl-app .solution-col.amber { border-top-color: var(--amber); }

/* Architecture flow */
#rl-app .arch-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 48px 0; }
#rl-app .arch-step {
  padding: 24px;
  border-radius: 6px;
  background: var(--navy-mid);
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.3s;
}
#rl-app .arch-step:hover { border-color: rgba(255,255,255,0.12); }
#rl-app .arch-step h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
#rl-app .arch-step p { font-size: 14px; color: var(--lgray); line-height: 1.6; }
#rl-app .arch-step.blue h4 { color: var(--blue); }
#rl-app .arch-step.green h4 { color: var(--green); }
#rl-app .arch-step.amber h4 { color: var(--amber); }
#rl-app .arch-step.white-accent h4 { color: var(--rl-white); }
#rl-app .arch-arrow { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.2); font-size: 18px; z-index: 2; }
@media (max-width: 768px) { #rl-app .arch-flow { grid-template-columns: 1fr; } #rl-app .arch-arrow { display: none; } }

/* Lego comparison */
#rl-app .lego-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; margin: 48px 0; }
#rl-app .lego-panel { text-align: center; }
#rl-app .lego-panel .label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--dgray);
}
#rl-app .lego-visual { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 16px; }
#rl-app .lego-block { border-radius: 3px; height: 24px; transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
#rl-app .lego-block.red { background: var(--red); }
#rl-app .lego-block.light-green { background: #8fd4b0; }
#rl-app .lego-block.dark-green { background: var(--green); }
#rl-app .lego-arrow { font-size: 48px; color: var(--dgray); opacity: 0.4; }
#rl-app .lego-ratio {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: -2px;
}
#rl-app .lego-caption { font-size: 14px; color: var(--dgray); max-width: 240px; margin: 0 auto; }
@media (max-width: 768px) { #rl-app .lego-comparison { grid-template-columns: 1fr; } #rl-app .lego-arrow { transform: rotate(90deg); } }

/* Economics table */
#rl-app .econ-table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 14px; }
#rl-app .econ-table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--navy-deep);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-deep);
}
#rl-app .econ-table td { padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--dgray); }
#rl-app .econ-table tr:last-child td {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
}

/* Capability cards */
#rl-app .cap-card {
  padding: 40px;
  border-radius: 6px;
  background: var(--navy-mid);
  border-top: 2px solid var(--blue);
  border: 1px solid rgba(255,255,255,0.04);
  border-top: 2px solid var(--blue);
  transition: transform 0.3s, border-color 0.3s;
}
#rl-app .cap-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.1); border-top-color: var(--blue); }
#rl-app .cap-card h3 { color: var(--rl-white); margin-bottom: 12px; font-family: 'Newsreader', Georgia, serif; }
#rl-app .cap-card p { color: var(--lgray); line-height: 1.75; }
#rl-app .cap-card.green { border-top-color: var(--green); }
#rl-app .cap-card:hover.green { border-top-color: var(--green); }
#rl-app .cap-card.amber { border-top-color: var(--amber); }
#rl-app .cap-card:hover.amber { border-top-color: var(--amber); }

/* K-curve evidence */
#rl-app .k-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
#rl-app .k-evidence h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
#rl-app .k-evidence p { font-size: 14px; color: var(--lgray); line-height: 1.75; }
#rl-app .k-upper h4 { color: var(--green); }
#rl-app .k-lower h4 { color: var(--red); }
@media (max-width: 768px) { #rl-app .k-evidence { grid-template-columns: 1fr; } }

/* Valuation blocks */
#rl-app .val-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
#rl-app .val-block {
  padding: 40px;
  border-radius: 6px;
  background: var(--rl-white);
  border: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
#rl-app .val-block:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
#rl-app .val-block.green-border { border-color: var(--green); }
#rl-app .val-block .val-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dgray);
  margin-bottom: 8px;
}
#rl-app .val-block .val-multiple {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
#rl-app .val-block.green-border .val-multiple { color: var(--green); }
#rl-app .val-block .val-signals { list-style: none; padding: 0; margin: 0; }
#rl-app .val-block .val-signals li {
  font-size: 14px;
  color: var(--dgray);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
#rl-app .val-block .val-signals li:last-child { border-bottom: none; }
@media (max-width: 768px) { #rl-app .val-blocks { grid-template-columns: 1fr; } }

/* Contract grid */
#rl-app .contract-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 40px; }
#rl-app .contract-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
  margin-bottom: 12px;
}
#rl-app .contract-col p { font-size: 15px; line-height: 1.75; }
@media (max-width: 768px) { #rl-app .contract-grid { grid-template-columns: 1fr; } }

/* Assessment cards */
#rl-app .assess-card {
  padding: 40px;
  border-radius: 6px;
  background: var(--rl-white);
  border-top: 2px solid var(--blue);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
}
#rl-app .assess-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
#rl-app .assess-card h3 { color: var(--navy-deep); margin-bottom: 8px; font-family: 'Newsreader', Georgia, serif; }
#rl-app .assess-card .assess-time { font-size: 13px; color: var(--lgray); margin-bottom: 8px; }
#rl-app .assess-card .assess-output { font-size: 14px; color: var(--dgray); margin-bottom: 20px; }
#rl-app .assess-card.green { border-top-color: var(--green); }
#rl-app .assess-card.amber { border-top-color: var(--amber); }

/* Assessment UI */
#rl-app .assess-progress { height: 2px; background: rgba(59,127,217,0.15); border-radius: 2px; margin-bottom: 48px; }
#rl-app .assess-progress-fill { height: 100%; background: var(--blue); border-radius: 2px; transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
#rl-app .assess-question { margin-bottom: 48px; }
#rl-app .assess-question label {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 20px;
}
#rl-app .assess-question select,
#rl-app .assess-question input[type="number"] {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-bottom: 2px solid rgba(0,0,0,0.1);
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}
#rl-app .assess-question select:focus,
#rl-app .assess-question input[type="number"]:focus { border-bottom-color: var(--blue); }
#rl-app .assess-question input[type="range"] { width: 100%; max-width: 400px; accent-color: var(--blue); height: 4px; }
#rl-app .range-value {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 8px;
}
#rl-app .radio-group { display: flex; flex-direction: column; gap: 12px; }
#rl-app .radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
#rl-app .radio-option:hover { border-color: var(--blue); background: rgba(59,127,217,0.03); }
#rl-app .radio-option.selected { border-color: var(--blue); background: rgba(59,127,217,0.06); }
#rl-app .radio-option input { display: none; }
#rl-app .radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lgray); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
#rl-app .radio-option.selected .radio-dot { border-color: var(--blue); }
#rl-app .radio-option.selected .radio-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
#rl-app .assess-nav { display: flex; gap: 16px; margin-top: 48px; }

/* Results */
#rl-app .result-score {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 80px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -3px;
}
#rl-app .result-label { font-size: 18px; color: var(--dgray); margin-bottom: 32px; }
#rl-app .result-diagnosis { padding: 32px; background: var(--rl-white); border-radius: 6px; border-left: 3px solid var(--blue); margin-bottom: 32px; }
#rl-app .result-diagnosis p { line-height: 1.75; }
#rl-app .result-gaps { margin-bottom: 32px; }
#rl-app .result-gap { padding: 20px 24px; background: var(--rl-white); border-radius: 6px; margin-bottom: 12px; border-left: 3px solid var(--amber); }
#rl-app .result-gap h4 { font-size: 14px; font-weight: 600; color: var(--navy-deep); margin-bottom: 4px; }
#rl-app .result-gap p { font-size: 14px; color: var(--dgray); }

/* Calculator */
#rl-app .calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
#rl-app .calc-input label { display: block; font-size: 14px; font-weight: 500; color: var(--navy-deep); margin-bottom: 8px; }
#rl-app .calc-input input[type="number"] { width: 100%; padding: 12px 16px; font-size: 18px; font-family: 'DM Sans', sans-serif; border: none; border-bottom: 2px solid rgba(0,0,0,0.1); background: transparent; outline: none; }
#rl-app .calc-input input[type="number"]:focus { border-bottom-color: var(--blue); }
#rl-app .calc-input input[type="range"] { width: 100%; accent-color: var(--blue); }
#rl-app .calc-result-hero { text-align: center; padding: 48px; background: var(--navy-deep); border-radius: 8px; margin-bottom: 32px; position: relative; overflow: hidden; }
#rl-app .calc-result-hero::before { content: ''; position: absolute; inset: 0; background: var(--grain); background-size: 256px; pointer-events: none; opacity: 0.5; }
#rl-app .calc-delta {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 72px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -3px;
  position: relative;
}
#rl-app .calc-subtitle { font-size: 17px; color: var(--lgray); margin-top: 8px; position: relative; }
@media (max-width: 768px) { #rl-app .calc-inputs { grid-template-columns: 1fr; } }

/* Animations — smoother easing */
#rl-app .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#rl-app .fade-up.visible { opacity: 1; transform: translateY(0); }
#rl-app .stagger-1 { transition-delay: 0.12s; }
#rl-app .stagger-2 { transition-delay: 0.24s; }
#rl-app .stagger-3 { transition-delay: 0.36s; }

/* Chart */
#rl-app .chart-container { width: 100%; max-width: 880px; margin: 40px auto; position: relative; }
#rl-app .chart-footnote { font-size: 11px; color: var(--lgray); margin-top: 16px; line-height: 1.6; opacity: 0.7; }

/* Pages */
#rl-app .rl-page { display: none; }
#rl-app .rl-page.active { display: block; }

/* Blockquote */
#rl-app blockquote {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.7;
  color: var(--dgray);
  border-left: 2px solid var(--blue);
  padding-left: 24px;
  margin: 32px 0;
}
#rl-app .bg-navy blockquote { color: var(--lgray); border-left-color: var(--blue); }

/* Bottom bar */
#rl-app .bottom-bar {
  background: var(--navy-mid);
  padding: 20px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--lgray);
  font-style: italic;
  border-radius: 6px;
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.04);
}

/* Email capture */
#rl-app .email-capture { display: flex; gap: 12px; max-width: 480px; margin: 24px auto 0; }
#rl-app .email-capture input { flex: 1; padding: 12px 16px; font-size: 16px; font-family: 'DM Sans', sans-serif; border: none; border-bottom: 2px solid rgba(255,255,255,0.2); background: transparent; color: var(--rl-white); outline: none; }
#rl-app .email-capture input::placeholder { color: var(--lgray); }
#rl-app .email-capture input:focus { border-bottom-color: var(--blue); }
#rl-app .email-capture button { padding: 12px 24px; background: var(--blue); color: var(--rl-white); border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }

/* Paper */
#rl-app .paper-body { max-width: 720px; margin: 0 auto; }
#rl-app .paper-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy-deep);
  margin: 56px 0 20px;
  padding-top: 56px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
#rl-app .paper-body h2:first-of-type { border-top: none; padding-top: 0; }
#rl-app .paper-body p { font-size: 17px; line-height: 1.8; color: var(--dgray); margin-bottom: 22px; }
#rl-app .paper-body strong { font-weight: 600; color: var(--navy-deep); }
#rl-app .paper-body .paper-lede {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  line-height: 1.65;
  color: var(--navy-deep);
  font-weight: 400;
  margin-bottom: 36px;
  border-left: 3px solid var(--blue);
  padding-left: 24px;
}
#rl-app .paper-body ol { margin: 16px 0 20px 24px; }
#rl-app .paper-body ol li { font-size: 17px; line-height: 1.8; color: var(--dgray); margin-bottom: 8px; }
#rl-app .paper-pullquote {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  border-left: 2px solid var(--blue);
  padding: 16px 28px;
  margin: 40px 0;
  opacity: 0.9;
}
#rl-app .paper-conclusion {
  background: var(--navy-deep);
  color: var(--rl-white);
  padding: 56px;
  border-radius: 8px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
#rl-app .paper-conclusion::before { content: ''; position: absolute; inset: 0; background: var(--grain); background-size: 256px; pointer-events: none; opacity: 0.5; }
#rl-app .paper-conclusion p { color: var(--lgray); position: relative; }
#rl-app .paper-conclusion strong { color: var(--rl-white); }

/* About */
#rl-app .about-content { max-width: 720px; margin: 0 auto; }
#rl-app .about-content h1 { color: var(--navy-deep); margin-bottom: 24px; font-family: 'Newsreader', Georgia, serif; }
#rl-app .about-content h2 { color: var(--navy-deep); margin-bottom: 16px; font-family: 'Newsreader', Georgia, serif; }
#rl-app .about-content p { line-height: 1.8; margin-bottom: 18px; }
#rl-app .about-divider { border: none; border-top: 1px solid rgba(0,0,0,0.06); margin: 48px 0; }

/* Smooth scroll */
#rl-app * { scroll-behavior: smooth; }

/* Paper Cards */
#rl-app .paper-card {
  background: var(--rl-white);
  border-radius: 8px;
  padding: 48px;
  margin-bottom: 32px;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
#rl-app .paper-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
#rl-app .paper-card .card-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
#rl-app .paper-card .card-number {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--lgray);
  position: absolute;
  top: 20px;
  right: 24px;
}
#rl-app .paper-card h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 20px;
  border: none;
  padding-top: 0;
}
#rl-app .paper-card p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--dgray);
  margin-bottom: 16px;
}
#rl-app .paper-card p:last-of-type { margin-bottom: 0; }
#rl-app .paper-card strong { font-weight: 600; color: var(--navy-deep); }
#rl-app .paper-card .paper-pullquote {
  margin: 24px 0;
  padding: 16px 24px;
}
#rl-app .paper-card .card-share {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
#rl-app .paper-card .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--dgray);
  background: rgba(0,0,0,0.03);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
#rl-app .paper-card .share-btn:hover {
  background: rgba(0,0,0,0.06);
  color: var(--navy-deep);
}
#rl-app .paper-card .share-btn i { font-size: 11px; }
#rl-app .paper-card .share-btn.whatsapp:hover { background: #25D366; color: white; }

/* Card variants */
#rl-app .paper-card.card-dark {
  background: var(--navy-deep);
  border-color: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
#rl-app .paper-card.card-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
#rl-app .paper-card.card-dark > *:not(.card-number) { position: relative; z-index: 1; }
#rl-app .paper-card.card-dark .card-number { z-index: 2; }
#rl-app .paper-card.card-dark h2 { color: var(--rl-white); }
#rl-app .paper-card.card-dark p { color: var(--lgray); }
#rl-app .paper-card.card-dark .card-label { color: var(--blue); }
#rl-app .paper-card.card-dark .card-share { border-top-color: rgba(255,255,255,0.06); }
#rl-app .paper-card.card-dark .share-btn { color: var(--lgray); background: rgba(255,255,255,0.06); }
#rl-app .paper-card.card-dark .share-btn:hover { background: rgba(255,255,255,0.12); color: var(--rl-white); }

@media (max-width: 768px) {
  #rl-app .paper-card { padding: 28px 20px; }
  #rl-app .paper-card .card-number { display: none; }
}

/* Selection */
#rl-app ::selection { background: rgba(59, 127, 217, 0.15); color: inherit; }

/* Email Gate Modal */
#rl-app .email-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 20, 38, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.35s;
}
#rl-app .email-gate-overlay.active {
  opacity: 1;
  visibility: visible;
}

#rl-app .email-gate-modal {
  background: var(--rl-white);
  border-radius: 8px;
  padding: 56px 48px;
  max-width: 440px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#rl-app .email-gate-overlay.active .email-gate-modal {
  transform: scale(1) translateY(0);
}

#rl-app .email-gate-modal h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
#rl-app .email-gate-modal p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dgray);
  margin-bottom: 28px;
}

#rl-app .email-gate-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: var(--navy-deep);
  outline: none;
  margin-bottom: 24px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
#rl-app .email-gate-input::placeholder { color: var(--lgray); }
#rl-app .email-gate-input:focus { border-bottom-color: var(--blue); }

#rl-app .email-gate-btn {
  display: block;
  width: 100%;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rl-white);
  background: var(--blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(59, 127, 217, 0.25);
}
#rl-app .email-gate-btn:hover {
  background: #2d6cbf;
  box-shadow: 0 4px 16px rgba(59, 127, 217, 0.35);
  transform: translateY(-1px);
}
#rl-app .email-gate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#rl-app .email-gate-dismiss {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--lgray);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
#rl-app .email-gate-dismiss:hover { color: var(--navy-deep); }

@media (max-width: 768px) {
  #rl-app .email-gate-modal {
    padding: 40px 24px;
    width: 94%;
  }
}
