/* ═══════════════════════════════════════════════════════════════
   RadCall — Guide Template Stylesheet
   Shared by all /guides/* pages. Matches landing.html design system.
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES (mirror landing.html :root exactly) ── */
:root {
  --bg:        #0b0f14;
  --bg2:       #111620;
  --bg3:       #181f2e;
  --bg4:       #1e2737;
  --border:    rgba(100,160,255,0.10);
  --border2:   rgba(100,160,255,0.20);
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #64748b;
  --accent:    #3b82f6;
  --accent2:   #60a5fa;
  --accent-bg: rgba(59,130,246,0.10);
  --teal:      #14b8a6;
  --teal-bg:   rgba(20,184,166,0.10);
  --green:     #22c55e;
  --green-bg:  rgba(34,197,94,0.08);
  --amber:     #f59e0b;
  --amber-bg:  rgba(245,158,11,0.08);
  --purple:    #a78bfa;
  --radius:    10px;
  --font:      'IBM Plex Sans', system-ui, sans-serif;
  --mono:      'IBM Plex Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER (identical to landing.html) ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: rgba(11,15,20,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -0.4px;
}
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo-rad  { color: var(--accent2); }
.logo-call { color: var(--text); }

.header-nav { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  padding: 7px 14px; border-radius: 7px; border: 1px solid var(--border2);
  background: transparent; color: var(--text2); font-family: var(--font);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-ghost:hover { color: var(--text); }
.btn-primary {
  padding: 8px 18px; border-radius: 7px; border: none;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-primary:hover { background: #2563eb; }

/* ── NOTICE BAR ── */
.rc-notice {
  margin-top: 56px; /* push below fixed header */
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 9px 28px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--text3);
}
.rc-notice a {
  color: var(--accent2); text-decoration: none; white-space: nowrap;
  transition: color 0.15s;
}
.rc-notice a:hover { color: var(--text); }
.rc-notice .notice-text { flex: 1; }
.rc-notice .notice-dismiss {
  background: none; border: none; cursor: pointer;
  color: var(--text3); font-size: 16px; line-height: 1;
  padding: 0 2px; transition: color 0.15s; flex-shrink: 0;
}
.rc-notice .notice-dismiss:hover { color: var(--text2); }

/* ── GUIDE LAYOUT ── */
.guide-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 28px 80px;
}
/* When notice bar is hidden, account for fixed header only */
.guide-main.no-notice { padding-top: 92px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--text3); margin-bottom: 28px;
}
.breadcrumb a { color: var(--text3); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb-sep { color: var(--text3); opacity: 0.5; }

/* ── GUIDE HEADER ── */
.guide-header { margin-bottom: 28px; }
.guide-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.guide-category {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal);
  background: var(--teal-bg); border: 1px solid rgba(20,184,166,0.20);
  padding: 3px 10px; border-radius: 20px;
}
.guide-updated {
  font-size: 12px; color: var(--text3); font-family: var(--mono);
}
.guide-header h1 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700; letter-spacing: -0.6px;
  color: var(--text); line-height: 1.25;
  margin-bottom: 10px;
}
.guide-description {
  font-size: 14px; color: var(--text2); line-height: 1.65;
}

/* ── QUICK SUMMARY BOX ── */
.guide-summary {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 36px;
}
.summary-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}
.guide-summary p {
  font-size: 13.5px; color: var(--text2); line-height: 1.65; margin: 0;
}

/* ── GUIDE BODY TYPOGRAPHY ── */
.guide-body { color: var(--text); }

.guide-body h2 {
  font-size: 16px; font-weight: 700; color: var(--text);
  letter-spacing: -0.3px; margin: 36px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.guide-body h2:first-child { margin-top: 0; }

.guide-body h3 {
  font-size: 13.5px; font-weight: 600; color: var(--text2);
  margin: 24px 0 8px; letter-spacing: 0;
}

.guide-body p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.75; }
.guide-body p:last-child { margin-bottom: 0; }

.guide-body ul,
.guide-body ol {
  margin: 0 0 16px 20px; font-size: 14.5px; line-height: 1.75;
}
.guide-body li { margin-bottom: 4px; }
.guide-body li:last-child { margin-bottom: 0; }

.guide-body strong { color: var(--text); font-weight: 600; }
.guide-body em     { color: var(--text2); }

.guide-body a { color: var(--accent2); text-decoration: none; border-bottom: 1px dotted rgba(96,165,250,0.35); transition: color 0.15s, border-color 0.15s; }
.guide-body a:hover { color: var(--text); border-color: rgba(96,165,250,0.6); }

.guide-body code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; color: var(--accent2);
}

.guide-body hr {
  border: none; border-top: 1px solid var(--border); margin: 28px 0;
}

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: var(--radius); border: 1px solid var(--border); }

.guide-body table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.guide-body thead { background: var(--bg3); }
.guide-body th {
  text-align: left; padding: 9px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text2);
  border-bottom: 1px solid var(--border2);
  white-space: nowrap;
}
.guide-body td {
  padding: 10px 14px; vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text2); line-height: 1.55;
}
.guide-body tbody tr:last-child td { border-bottom: none; }
.guide-body tbody tr:hover td { background: rgba(100,160,255,0.03); }
.guide-body td strong { color: var(--text); }

/* ── NOTE / CALLOUT ── */
.guide-note {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 13.5px; color: var(--text2); line-height: 1.65;
}
.guide-note p { margin: 0; }
.guide-note strong { color: var(--text); }

.guide-note.tip   { border-left-color: var(--teal);  }
.guide-note.warn  { border-left-color: var(--amber); }
.guide-note.alert { border-left-color: #ef4444; }

/* ── CASE EXAMPLE LINKS ── */
.guide-cases { display: flex; flex-direction: column; gap: 3px; margin: 0 0 20px; }
.case-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 7px;
  background: var(--bg2); border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.case-item:hover { border-color: var(--border2); background: var(--bg3); }
.case-title { font-size: 13.5px; color: var(--text2); transition: color 0.15s; }
.case-item:hover .case-title { color: var(--text); }
.case-src { font-size: 11.5px; color: var(--accent2); white-space: nowrap; flex-shrink: 0; }

/* ── DIVIDER ── */
.guide-divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── KEY TAKEAWAYS (wrapper pages) ── */
.guide-takeaways {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.takeaways-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.takeaways-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.takeaways-list li {
  font-size: 13.5px; color: var(--text2); line-height: 1.55;
  padding-left: 16px; position: relative;
}
.takeaways-list li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--teal); font-size: 11px; top: 2px;
}

/* ── APP LINK BLOCK (wrapper pages) ── */
.guide-app-link {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 32px 0 0;
}
.app-link-body { flex: 1; min-width: 180px; }
.app-link-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 4px;
}
.app-link-title {
  font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px;
}
.app-link-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.app-link-actions {
  display: flex; flex-direction: column; gap: 8px; align-self: center; flex-shrink: 0;
}
.app-link-btn-primary {
  display: inline-block; text-align: center;
  padding: 9px 20px; border-radius: 7px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background 0.15s; white-space: nowrap;
}
.app-link-btn-primary:hover { background: #2563eb; }
.app-link-btn-secondary {
  display: inline-block; text-align: center;
  padding: 8px 20px; border-radius: 7px;
  border: 1px solid var(--border2); background: transparent;
  color: var(--text2); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: color 0.15s, border-color 0.15s; white-space: nowrap;
}
.app-link-btn-secondary:hover { color: var(--text); border-color: var(--accent2); }

/* Short intro section on wrapper pages */
.guide-intro { margin-bottom: 28px; }

@media (max-width: 640px) {
  .guide-app-link { flex-direction: column; gap: 16px; }
  .app-link-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ── INLINE CTA ── */
.guide-cta {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 40px 0 0;
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
}
.guide-cta-text {
  flex: 1; min-width: 200px;
  font-size: 13px; color: var(--text2); line-height: 1.6;
}
.guide-cta-text strong { color: var(--text); font-size: 13.5px; display: block; margin-bottom: 4px; }
.guide-cta-link {
  align-self: center; white-space: nowrap; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--accent2);
  text-decoration: none; padding: 7px 16px;
  border: 1px solid rgba(96,165,250,0.3); border-radius: 7px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.guide-cta-link:hover {
  background: var(--accent-bg); border-color: var(--accent2); color: var(--text);
}

/* ── RELATED GUIDES ── */
.guide-related { margin-top: 48px; }
.related-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 14px;
}
.related-list { display: flex; flex-direction: column; gap: 2px; }
.related-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 7px; text-decoration: none;
  color: var(--text2); font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.related-item:hover {
  background: var(--bg2); border-color: var(--border); color: var(--text);
}
.related-arrow { color: var(--text3); font-size: 12px; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 80px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text3);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text3); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text2); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .guide-main { padding: 28px 18px 64px; }
  .header-inner { padding: 0 18px; }
  .footer-inner { padding: 0 18px; }
  .guide-cta { flex-direction: column; gap: 14px; }
  .guide-cta-link { align-self: flex-start; }
  .btn-ghost { display: none; }
  .rc-notice { padding: 9px 18px; }
  .guide-summary { padding: 14px 16px; }
}
