/* RSM& design tokens — measured from the live site (rsmand.live), 2026-09-24.
   Source of truth: the Webflow build. If this file and the site disagree, the site wins. */

:root {
  /* ---- Brand palette (the whole palette — there is no sixth colour) ---- */
  --rsm-fern:      #003630;  /* deep green. Stat tiles, R.96 panels, dark sections */
  --rsm-teal:      #00dbc2;  /* the accent. Big numerals, focus rings, one capability column */
  --rsm-off-white: #f2f2f2;  /* section and card fills that are not pure white */
  --rsm-black:     #000000;  /* body text, borders, footer, menu overlay */
  --rsm-white:     #ffffff;  /* page background, text on dark */

  /* Derived, used in the site's own custom code */
  --rsm-grid-line: rgba(0, 54, 48, 0.07);      /* the faint grid behind the R.96 section */
  --rsm-scrim:     rgba(0, 0, 0, 0.5);
  --rsm-hairline:  rgba(0, 0, 0, 0.12);

  /* ---- Type families (Adobe Fonts kit qrh2aqk — see CLAUDE.md, licensing) ---- */
  --rsm-font-display: "neue-haas-grotesk-display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rsm-font-text:    "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Display numbers its weights differently from Text. 500 is Roman, 600 is Medium.
     A Figma layer marked "Medium" means display 600, NOT 500. Display 400 is Light. */
  --rsm-display-light:  400;
  --rsm-display-roman:  500;
  --rsm-display-medium: 600;
  --rsm-text-regular:   400;
  --rsm-text-medium:    500;

  /* ---- Type scale: desktop (>= 992px). Line heights are unitless ratios. ---- */
  --rsm-hero:          80px;   --rsm-hero-lh:        0.9;
  --rsm-h1:            80px;   --rsm-h1-lh:          0.9;
  --rsm-h1-is-h2:      64px;   --rsm-h1-is-h2-lh:    0.9;
  --rsm-h2:            64px;   --rsm-h2-lh:          0.95;
  --rsm-h3:            64px;   --rsm-h3-lh:          0.95;
  --rsm-subhead:       32px;   --rsm-subhead-lh:     1.0;
  --rsm-eyebrow:       24px;   --rsm-eyebrow-lh:     1.12;
  --rsm-body-lg:       24px;   --rsm-body-lg-lh:     1.12;
  --rsm-label:         20px;   --rsm-label-lh:       1.12;
  --rsm-btn:           16px;   --rsm-btn-lh:         1.12;
  --rsm-caption:       16px;   --rsm-caption-lh:     1.12;

  /* Component-specific sizes that do not sit on the scale */
  --rsm-stat-num:      clamp(72px, 10.4vw - 30px, 120px);  /* lh 0.9, display 500 */
  --rsm-cap-label:     80px;   /* vertical capability label, lh 0.9 */
  --rsm-cap-copy:      28px;   /* lh 1.0, display 500 */
  --rsm-value-title:   36px;   /* lh 1.0, display 600 */
  --rsm-value-body:    28px;   /* lh 1.12, display 500 */
  --rsm-card-title:    32px;   /* lh 1.0, display 600 */
  --rsm-footer-lede:   26px;   /* lh 1.12, display 600 */
  --rsm-footer-cap:    22px;   /* lh 1.12 for links, 1.45 for address and phone */
  --rsm-menu-link:     80px;   /* lh 0.9, display 600 */

  /* Letter-spacing is 0 everywhere. This was a deliberate QA decision — do not add tracking. */
  --rsm-tracking: 0;

  /* ---- Layout ---- */
  --rsm-container:      1440px;
  --rsm-gutter:         38px;   /* desktop left/right padding, and the nav's inset */
  --rsm-gutter-mobile:  16px;
  --rsm-section-y:      80px;   /* vertical rhythm between sections */
  --rsm-nav-h:          32px;   /* the logo square; the nav band reads 80px tall */
  --rsm-nav-h-mobile:   64px;
  --rsm-nav-top:        24px;

  /* ---- Motion ---- */
  --rsm-ease-panel: cubic-bezier(0.2, 0.7, 0.2, 1);  /* capability columns, anything that expands */
  --rsm-dur-fast:   0.3s;   /* button fills, page transition, colour changes */
  --rsm-dur-panel:  0.45s;  /* flex-grow on the capability columns */
  --rsm-dur-menu:   0.6s;   /* full-screen menu wipe */
  --rsm-dur-reveal: 0.7s;   /* scroll reveal */
  --rsm-reveal-y:   32px;   /* how far a revealing element travels */

  /* ---- Focus ---- */
  --rsm-focus-ring:   2px solid var(--rsm-teal);
  --rsm-focus-offset: 2px;
}

@media (max-width: 991px) {
  :root {
    --rsm-hero: 56px;  --rsm-h1: 56px;  --rsm-h1-is-h2: 72px;  --rsm-h1-is-h2-lh: 0.9;
    --rsm-h2: 48px;    --rsm-h3: 48px;  --rsm-subhead: 28px;
  }
}

@media (max-width: 767px) {
  :root {
    --rsm-hero: min(80px, 21vw);   /* measured ~44px at 390px wide */
    --rsm-h1: 43px;  --rsm-h2: 39px;  --rsm-h3: clamp(44px, 14.5vw, 56px);
    --rsm-subhead: 24px;  --rsm-subhead-lh: 1.15;
    --rsm-gutter: var(--rsm-gutter-mobile);
    --rsm-nav-h: var(--rsm-nav-h-mobile);
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   App layer — things the socials tool needs that the marketing site never had.
   Everything above this line is design-handoff/tokens.css verbatim; keep it that way
   so a new handoff can be pasted over it.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Neutral ramp for app chrome (the site has none; off-white alone can't do five jobs) */
  --rsm-grey-50:  #fafafa;
  --rsm-grey-100: #f2f2f2;  /* = off-white */
  --rsm-grey-200: #e0e0e0;
  --rsm-grey-300: #c4c4c4;
  --rsm-grey-500: #6b6b6b;  /* 5.3:1 on white — the lightest grey allowed for text */
  --rsm-grey-700: #3d3d3d;

  /* Semantic states — muted, and never teal (teal means "RSM&", not "success") */
  --rsm-error:      #a4262c;  --rsm-error-bg:   #fbeeee;
  --rsm-success:    #2d6a3e;  --rsm-success-bg: #edf5ef;
  --rsm-warning:    #7a5200;  --rsm-warning-bg: #fbf4e6;

  --rsm-header-h: 64px;
}

html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--rsm-font-text);
  background: var(--rsm-white);
  color: var(--rsm-black);
  letter-spacing: var(--rsm-tracking);
}
:focus-visible { outline: var(--rsm-focus-ring); outline-offset: var(--rsm-focus-offset); }

/* ── Header (shared by every page) ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--rsm-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--rsm-gutter);
  background: var(--rsm-white); color: var(--rsm-black);
  border-bottom: 1px solid var(--rsm-black);
  box-shadow: inset 0 4px 0 var(--rsm-teal);  /* teal cap across the top */
}
.hdr-logo a { display: block; }
.hdr-logo img { display: block; height: 32px; width: auto; }
.hdr-right { display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity var(--rsm-dur-fast) ease; }
.hdr-right.nav-ready { opacity: 1; }
.hdr-link {
  position: relative;
  font-family: var(--rsm-font-text); font-weight: 500; font-size: 16px; line-height: 1.12;
  color: inherit; text-decoration: none; text-transform: none; letter-spacing: 0;
  padding: 10px 12px 10px 22px;
}
/* The footer-link square from the site: animates in on hover, stays on the current page */
.hdr-link::before {
  content: ''; position: absolute; left: 8px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; background: currentColor;
  transform: scale(0); transition: transform var(--rsm-dur-fast) ease;
}
.hdr-link:hover::before, .hdr-link.active::before { transform: scale(1); }
.hdr-link.active::before { background: var(--rsm-teal); outline: 1px solid var(--rsm-black); }
#rsm-account { margin-left: 12px; }

/* ── Buttons: 1px square outline; hover fills with a left-to-right wipe ── */
.rsm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 9px 16px;
  font-family: var(--rsm-font-text); font-weight: 500; font-size: 16px; line-height: 1.12;
  letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap;
  color: var(--rsm-black);
  background: linear-gradient(var(--rsm-black), var(--rsm-black)) no-repeat left / 0% 100% transparent;
  border: 1px solid var(--rsm-black); border-radius: 0;
  cursor: pointer;
  transition: background-size var(--rsm-dur-fast) ease, color var(--rsm-dur-fast) ease;
}
.rsm-btn:hover:not(:disabled) { background-size: 100% 100%; color: var(--rsm-white); }
/* Primary: solid black at rest, fern wipes in on hover */
.rsm-btn.is-solid {
  color: var(--rsm-white);
  background: linear-gradient(var(--rsm-fern), var(--rsm-fern)) no-repeat left / 0% 100% var(--rsm-black);
}
.rsm-btn.is-solid:hover:not(:disabled) { background-size: 100% 100%; border-color: var(--rsm-fern); }
.rsm-btn.is-accent {
  color: var(--rsm-black); border-color: var(--rsm-black);
  background: linear-gradient(var(--rsm-black), var(--rsm-black)) no-repeat left / 0% 100% var(--rsm-teal);
}
.rsm-btn.is-accent:hover:not(:disabled) { color: var(--rsm-white); }
/* On fern/black: white outline, white wipe; accent keeps its teal fill */
.rsm-btn.is-light { color: var(--rsm-white); border-color: var(--rsm-white);
  background-image: linear-gradient(var(--rsm-white), var(--rsm-white)); }
.rsm-btn.is-light:hover:not(:disabled) { color: var(--rsm-black); }
.rsm-btn.is-light.is-accent { color: var(--rsm-black); border-color: var(--rsm-teal); background-color: var(--rsm-teal); }
.rsm-btn.is-sm { min-height: 32px; padding: 6px 12px; font-size: 14px; }
.rsm-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Eyebrow / field label ── */
.rsm-eyebrow {
  font-family: var(--rsm-font-text); font-weight: 500; font-size: 14px; line-height: 1.12;
  letter-spacing: 0; text-transform: none; color: var(--rsm-black);
}

@media (max-width: 767px) {
  .site-header { padding: 0 var(--rsm-gutter-mobile); }
  .hdr-logo { flex-shrink: 0; }
  .hdr-logo img { height: 28px; }
  /* ponytail: nav scrolls sideways on phones; a real menu (handoff's full-screen wipe) if it gets crowded */
  .hdr-right { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .hdr-right::-webkit-scrollbar { display: none; }
  .hdr-link { font-size: 14px; padding: 10px 8px 10px 18px; white-space: nowrap; }
  .rsm-acct-email { display: none; }
  .hdr-link::before { left: 6px; }
}

/* Keep this block (handoff §5): no motion for people who ask for none */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
