/* ==========================================================================
   REVE Chat Version 4 — shared base (loaded on every page: the site header and footer use it too).
   Design: reve-chat-website V4 "Light Editorial" (https://reve-chat-website.vercel.app/).
   Everything is scoped to .rc (the header root, the footer root and the homepage <main>),
   so old pages are not affected. Class names: rc-<part>-<element>.
   ========================================================================== */

.rc {
  --rc-ink: #14121f;          /* headings, dark buttons */
  --rc-ink-2: #3d3950;        /* body copy */
  --rc-ink-3: #67637a;        /* muted copy */
  --rc-line: rgba(20, 18, 31, 0.12);
  --rc-violet: #5b3fd0;       /* eyebrows, serif accents, links */
  --rc-violet-light: #b79cff; /* accents on the dark section */
  --rc-purple: #412375;       /* primary gradient */
  --rc-max: 1320px;
  --rc-gutter: clamp(20px, 3vw, 40px);
  --rc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rc-font: 'Google Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rc-font-text: 'Inter', 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rc-font-label: 'Manrope', 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rc-font-serif: 'Instrument Serif', 'Times New Roman', serif;
  font-family: var(--rc-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--rc-ink);
  -webkit-font-smoothing: antialiased;
}
/* the homepage (main, header and footer roots get .rc-home) uses Manrope for headings, navigation and buttons */
.rc-home {
  --rc-font: 'Manrope', 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.rc *, .rc *::before, .rc *::after { box-sizing: border-box; }
.rc :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.rc :where(h1, h2, h3, h4) { color: inherit; font-family: var(--rc-font); }
.rc :where(ul, ol) { list-style: none; }
.rc :where(img, svg, video, iframe) { display: block; max-width: 100%; }
.rc :where(svg) { vertical-align: baseline; }
.rc :where(a), .rc :where(a):hover { color: inherit; text-decoration: none; font-family: inherit; }
.rc :where(button) { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.rc :where(p) { z-index: auto; }
.rc :where(dt) { font-weight: inherit; }
/* the old theme's css/web.css + web1.css hide every <br> on small screens; Version 4 headings keep their line breaks */
.rc br { display: inline; }
.rc :focus-visible { outline: 2px solid var(--rc-violet); outline-offset: 3px; border-radius: 6px; }
.rc em { font-family: var(--rc-font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* container: Bootstrap .container-fluid + this class = the design's 1320px width and fluid gutter */
.rc .rc-container {
  max-width: var(--rc-max);
  margin-inline: auto;
  padding-inline: var(--rc-gutter);
}

/* sections */
.rc-section { position: relative; padding: 80px 0; scroll-margin-top: 60px; }
@media (max-width: 1000px) { .rc-section { padding: 64px 0; } }
@media (max-width: 700px) { .rc-section { padding: 48px 0; } }

/* section heading: title (+ eyebrow) and an optional subtitle */
.rc-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 820px; margin-bottom: 40px; }
@media (max-width: 700px) { .rc-section-head { margin-bottom: 32px; } }
.rc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rc-font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rc-violet);
}
.rc-section-title {
  font-size: clamp(34px, 3.5vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -0.022em;
  text-wrap: balance; max-width: 16ch;
}
.rc-section-title em { font-size: 1.1em; color: var(--rc-violet); }
.rc-section-subtitle {
  font-family: var(--rc-font-text); font-size: 16px; line-height: 1.6; color: var(--rc-ink-2); max-width: 464px; /* the design's 46ch as vercel resolves it; ch varies with the theme's Inter files */
}

/* buttons: .rc-btn + one of -dark / -outline / -primary (+ -lg) */
.rc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--rc-font); font-size: 14px; font-weight: 500; line-height: 1.55; white-space: nowrap;
  transition: transform 0.2s var(--rc-ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.rc-btn svg { flex: none; }
.rc-btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.rc-btn-dark { background: var(--rc-ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(65, 35, 117, 0.7); }
.rc-btn-dark:hover { background: #2a2540; color: #fff; transform: translateY(-2px); }
.rc-btn-white { background: #fff; color: var(--rc-ink); }
.rc-btn-white:hover { background: #efe9ff; color: var(--rc-ink); transform: translateY(-2px); }
.rc-btn-outline { background: transparent; color: var(--rc-ink); border-color: var(--rc-line); }
.rc-btn-outline:hover { background: rgba(20, 18, 31, 0.04); color: var(--rc-ink); }
.rc-btn-primary {
  color: #fff; background-color: var(--rc-purple);
  background-image: linear-gradient(94deg, #412375 0%, #5d369e 48%, #412375 100%);
  box-shadow: 0 10px 24px -12px rgba(65, 35, 117, 0.7);
}
.rc-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(65, 35, 117, 0.8); }

/* scroll reveal: js/rc-v4-base.js adds .rc-js to <html> and .is-in to [data-reveal] in view */
.rc-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--rc-ease), transform 0.8s var(--rc-ease); }
.rc-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rc-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
