/* DERALO.AI Research — shared styles for static article/legal pages.
   Visual language matches public/landing.html: Space Grotesk + IBM Plex Mono,
   white/grey-blue/black palette, oklch orange accent. Keep in sync if the
   landing page palette changes. */

:root {
  --bg: #fafafa;
  --ink: #0a0e14;
  --ink-soft: #2c3b50;
  --muted: #5a6b82;
  --faint: #aab4c4;
  --border: #e8ecf2;
  --border-strong: #d6dce6;
  --card: #ffffff;
  --accent: oklch(0.72 0.15 60);
  --accent-dark: oklch(0.58 0.16 55);
  --accent-deep: oklch(0.5 0.14 55);
  --accent-soft: oklch(0.72 0.15 60 / 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
::selection { background: oklch(0.72 0.15 60 / 0.28); color: var(--ink); }

body {
  font-family: "Space Grotesk", -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: "IBM Plex Mono", monospace; }

a { color: inherit; }

/* Nav */
.rs-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
}
.rs-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.rs-logo-mark { display: inline-block; width: 13px; height: 13px; background: var(--accent); transform: rotate(45deg); }
.rs-logo-word { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.rs-logo-word span { color: var(--faint); }
.rs-nav-links { display: flex; align-items: center; gap: 28px; }
.rs-nav-link { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--muted); text-decoration: none; letter-spacing: 0.01em; }
.rs-nav-cta {
  font-family: "Space Grotesk", sans-serif; font-size: 13.5px; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 8px 16px;
  border: 1px solid var(--ink); border-radius: 5px;
}

/* Breadcrumb */
.rs-breadcrumb {
  max-width: 760px; margin: 0 auto; padding: 22px 40px 0;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--faint);
}
.rs-breadcrumb a { color: var(--muted); text-decoration: none; }
.rs-breadcrumb a:hover { color: var(--ink); }

/* Article shell */
.rs-article { max-width: 760px; margin: 0 auto; padding: 20px 40px 80px; }
.rs-eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase; margin-top: 18px;
}
.rs-eyebrow .dot { color: var(--accent-dark); }
h1.rs-title {
  margin: 20px 0 0; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 600;
}
.rs-dateline {
  margin: 14px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--faint);
}
.rs-standfirst {
  margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft);
  font-weight: 500;
}
.rs-byline {
  margin: 26px 0 0; padding: 16px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; color: var(--muted); line-height: 1.55;
}
.rs-byline strong { color: var(--ink); }

.rs-body { margin-top: 40px; font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.rs-body h2 {
  font-size: clamp(21px, 2.6vw, 26px); line-height: 1.25; letter-spacing: -0.015em;
  font-weight: 600; color: var(--ink); margin: 44px 0 14px;
}
.rs-body p { margin: 0 0 18px; }
.rs-body p:first-of-type { margin-top: 0; }
.rs-body strong { color: var(--ink); }
.rs-body ul, .rs-body ol { padding-left: 22px; margin: 0 0 18px; }
.rs-body li { margin: 0 0 8px; }
.rs-body a { color: var(--accent-deep); text-decoration-color: var(--accent); }

/* FAQ */
.rs-faq { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--border); }
.rs-faq h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 32px 0 18px; }
.rs-faq-item { margin: 0 0 20px; }
.rs-faq-q { font-weight: 600; color: var(--ink); font-size: 16px; margin: 0 0 6px; }
.rs-faq-a { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; margin: 0; }

/* Cross-links */
.rs-related { margin-top: 48px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.rs-related h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-family: "IBM Plex Mono", monospace; color: var(--muted); font-weight: 500; margin: 0 0 14px; }
.rs-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rs-related a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.rs-related a:hover { color: var(--accent-deep); }

/* Disclaimer footer (per article) */
.rs-disclaimer {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.6; color: var(--faint); font-style: italic;
}
.rs-disclaimer a { color: var(--muted); }

/* Site footer */
.rs-footer { border-top: 1px solid var(--border); background: var(--bg); margin-top: 40px; }
.rs-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.rs-footer-brand { display: flex; align-items: center; gap: 11px; }
.rs-footer-mark { display: inline-block; width: 11px; height: 11px; background: var(--accent); transform: rotate(45deg); }
.rs-footer-word { font-weight: 600; font-size: 14.5px; }
.rs-footer-word span { color: var(--faint); }
.rs-footer-mid { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--faint); letter-spacing: 0.02em; display: flex; gap: 18px; flex-wrap: wrap; }
.rs-footer-mid a { text-decoration: none; color: var(--faint); }
.rs-footer-mid a:hover { color: var(--muted); }
.rs-footer-copy { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--faint); }

/* Pillar page cluster list */
.rs-pillar-hero { max-width: 900px; margin: 0 auto; padding: 64px 40px 20px; }
.rs-pillar-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; margin: 20px 0 0; }
.rs-pillar-hero p { max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--muted); margin: 20px 0 0; }
.rs-clusters { max-width: 900px; margin: 40px auto 80px; padding: 0 40px; display: flex; flex-direction: column; gap: 32px; }
.rs-cluster h2 { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.rs-cluster-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rs-cluster-list li { border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.rs-cluster-list a { display: block; padding: 16px 18px; text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink); }
.rs-cluster-list a:hover { color: var(--accent-deep); }
.rs-cluster-list .rs-cluster-desc { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.rs-cluster-list .rs-soon { opacity: 0.5; }

/* Legal page */
.rs-legal { max-width: 760px; margin: 0 auto; padding: 60px 40px 80px; }
.rs-legal h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.rs-legal .rs-updated { margin: 14px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--faint); font-style: italic; }
.rs-legal h2 { font-size: 19px; font-weight: 600; margin: 36px 0 12px; }
.rs-legal p, .rs-legal ul { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.rs-legal ul { padding-left: 22px; }

/* Floating CTA */
.rs-cta-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  max-width: 320px; padding: 18px 20px;
  background: var(--ink); color: #fafafa;
  border: 1px solid var(--ink-soft); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10,14,20,0.25);
  transform: translateY(140%); opacity: 0; transition: transform 320ms cubic-bezier(0.16,1,0.3,1), opacity 320ms;
}
.rs-cta-float.rs-visible { transform: translateY(0); opacity: 1; }
.rs-cta-float .rs-cta-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--faint);
  cursor: pointer; font-size: 15px; line-height: 1; padding: 4px;
}
.rs-cta-float p.rs-cta-copy { margin: 0 22px 12px 0; font-size: 13.5px; line-height: 1.5; color: #d6dce6; }
.rs-cta-float a.rs-cta-link {
  display: inline-block; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 13.5px;
  color: var(--ink); text-decoration: none; padding: 9px 16px; background: var(--accent); border-radius: 6px;
}

@media (max-width: 640px) {
  .rs-nav { padding: 14px 20px; }
  .rs-nav-links { gap: 14px; }
  .rs-breadcrumb, .rs-article, .rs-pillar-hero, .rs-clusters, .rs-legal { padding-left: 20px; padding-right: 20px; }
  .rs-cta-float { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-cta-float { transition: none; }
}
