/* Public landing page (templates/reachmodel.html, served at /).
   Standalone: dark, its own palette, never loads the app stylesheets.
   Change a token here, not a rule. */

:root {
  /* Surfaces, darkest to lightest */
  --rm-bg-footer: #050505;
  --rm-bg: #0a0a0a;
  --rm-bg-alt: #0e0e0e;
  --rm-surface: #141414;
  --rm-surface-raised: #161616;
  --rm-glow: #0d1a2b;

  /* Lines */
  --rm-border-divider: #1c1c1c;
  --rm-border-chrome: #1f1f1f;
  --rm-border: #242424;
  --rm-border-field: #2a2a2a;
  --rm-border-outline: #3a3a3a;
  --rm-border-accent: #1f3a5f;

  /* Text, brightest to dimmest */
  --rm-text: #f5f5f5;
  --rm-text-soft: #d0d0d0;
  --rm-text-body: #c8c8c8;
  --rm-text-nav: #b5b5b5;
  --rm-text-lead: #a8a8a8;
  --rm-muted: #9a9a9a;
  --rm-subtle: #8a8a8a;
  --rm-faint: #7a7a7a;
  --rm-dim: #6a6a6a;
  --rm-legal: #5a5a5a;

  /* Brand blue */
  --rm-accent: #4a90e2;
  --rm-accent-soft: #5b9bd5;
  --rm-accent-deep: #2f5faa;
  --rm-on-accent: var(--rm-bg);

  /* Translucent */
  --rm-header-bg: rgba(10, 10, 10, 0.85);
  --rm-overlay: rgba(5, 5, 5, 0.78);
  --rm-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

  /* Gradients */
  --rm-grad-accent: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-deep));
  --rm-grad-logo: linear-gradient(135deg, var(--rm-accent-soft), var(--rm-accent-deep));
  --rm-grad-hero: radial-gradient(ellipse at 50% 0%, var(--rm-glow) 0%, var(--rm-bg) 60%);
  --rm-grad-feature: linear-gradient(135deg, var(--rm-glow), var(--rm-surface));
  --rm-fade-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);

  /* Layout */
  --rm-gutter: 5%;
  --rm-gutter-sm: 6%;
  --rm-section-pad-y: 90px;
  --rm-content-max: 1100px;

  /* Boxes */
  --rm-radius-btn: 4px;
  --rm-radius-field: 6px;
  --rm-radius-card: 10px;
  --rm-radius-frame: 12px;
  --rm-radius-panel: 14px;
  --rm-card-pad: 28px;
  --rm-card-pad-md: 22px;
  --rm-card-pad-sm: 20px;

  /* Headings */
  --rm-h2: clamp(28px, 4vw, 42px);
  --rm-h2-sm: clamp(26px, 4vw, 38px);
  --rm-h2-mobile: 26px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

body {
  margin: 0;
  padding: 0;
  background: var(--rm-bg);
  color: var(--rm-text);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.rm-accent { color: var(--rm-accent); }

/* ---------- Brand (header + footer) ---------- */
.rm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.rm-brand-header { font-size: 18px; letter-spacing: 0.5px; }
.rm-brand-footer { justify-content: center; font-size: 17px; margin-bottom: 10px; }

.rm-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--rm-grad-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--rm-on-accent);
}
.rm-logo-sm { width: 30px; height: 30px; font-size: 13px; }

/* ---------- Header ---------- */
.rm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--rm-gutter);
  background: var(--rm-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rm-border-chrome);
}
.rm-nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--rm-text-nav); }
.rm-nav-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.rm-nav-link { color: var(--rm-text-nav); text-decoration: none; }

/* ---------- Buttons ---------- */
/* Colour: primary (gradient) or outline. Size: lg / md / nav / block / form. */
.rm-btn-primary {
  background: var(--rm-grad-accent);
  color: var(--rm-on-accent);
  border-radius: var(--rm-radius-btn);
  font-weight: 700;
  text-decoration: none;
}
.rm-btn-outline {
  border: 1px solid var(--rm-border-outline);
  color: var(--rm-text);
  border-radius: var(--rm-radius-btn);
  font-weight: 600;
  text-decoration: none;
}
.rm-btn-lg { padding: 15px 32px; font-size: 15px; }
.rm-btn-md { padding: 12px 24px; font-size: 14px; }
.rm-btn-nav { padding: 10px 22px; font-weight: 600; white-space: nowrap; }
.rm-btn-block { display: block; text-align: center; padding: 14px; }
.rm-btn-form {
  width: 100%;
  border: none;
  padding: 16px;
  border-radius: var(--rm-radius-field);
  font-size: 15px;
  cursor: pointer;
}
.rm-btn-row { display: flex; gap: 14px; }
.rm-btn-row-wrap { flex-wrap: wrap; }

/* ---------- Sections ---------- */
.rm-section {
  padding: var(--rm-section-pad-y) var(--rm-gutter);
  background: var(--rm-bg);
}
.rm-section-alt { background: var(--rm-bg-alt); }
.rm-section-center { text-align: center; }
.rm-section-divided { border-bottom: 1px solid var(--rm-border-divider); }

.rm-section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.rm-section-head-narrow { max-width: 640px; margin-bottom: 50px; }

.rm-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--rm-accent-soft);
  margin-bottom: 16px;
}
.rm-h2 { font-size: var(--rm-h2); font-weight: 800; margin: 0 0 16px; }
.rm-h2-sm { font-size: var(--rm-h2-sm); }
.rm-section-lead { color: var(--rm-muted); font-size: 16px; }

/* ---------- Text roles ---------- */
.rm-caption { color: var(--rm-subtle); font-size: 13px; }
.rm-caption-sm { color: var(--rm-subtle); font-size: 12px; }
.rm-caption-lg { color: var(--rm-subtle); font-size: 14px; }
.rm-fineprint { color: var(--rm-dim); font-size: 12px; margin-top: 14px; }

/* ---------- Stats ---------- */
.rm-stat-value { font-weight: 800; color: var(--rm-accent); }
.rm-stat-xl { font-size: 40px; }
.rm-stat-lg { font-size: 34px; }
.rm-stat-md { font-size: 30px; }
.rm-stat-sm { font-size: 24px; }

/* ---------- Cards ---------- */
.rm-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius-card);
  padding: var(--rm-card-pad);
}
.rm-card-raised { background: var(--rm-surface-raised); }
.rm-card-md { padding: var(--rm-card-pad-md); }
.rm-card-sm { padding: var(--rm-card-pad-sm); }

/* ---------- Grids ---------- */
.rm-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--rm-content-max);
  margin: 0 auto 50px;
}
.rm-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 60px;
}
.rm-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  max-width: var(--rm-content-max);
  margin: 0 auto;
}
.rm-grid-2-spaced { margin-bottom: 50px; }

/* Two stat cards side by side (stacked on phones) */
.rm-flex-2 { display: flex; gap: 20px; margin-bottom: 24px; }
.rm-flex-2 > * { flex: 1; }
.rm-flex-2-tight { margin-bottom: 20px; }

/* ---------- Analytics / agency results ---------- */
.rm-metric-label { font-size: 12px; color: var(--rm-faint); margin-bottom: 6px; }
.rm-metric-note { margin-top: 6px; }

.rm-media-frame {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius-frame);
  padding: 20px;
  display: flex;
  justify-content: center;
  min-height: 280px;
}
.rm-media-frame-center { align-items: center; color: var(--rm-dim); font-size: 13px; }

.rm-video {
  width: 100%;
  max-width: 720px;
  border-radius: var(--rm-radius-card);
  display: block;
  margin: 0 auto;
}
.rm-video-portrait { max-width: 360px; }

.rm-wide-stat { margin-bottom: 30px; }
.rm-steps { margin-bottom: 26px; }
.rm-step { display: flex; gap: 12px; margin-bottom: 14px; }
.rm-step:last-child { margin-bottom: 0; }
.rm-step-num { color: var(--rm-accent); font-weight: 800; font-size: 14px; }
.rm-step-text { font-size: 14px; color: var(--rm-text-body); }

.rm-cta-block { border-top: 1px solid var(--rm-border); padding-top: 26px; }
.rm-cta-block-tight { padding-top: 24px; }
.rm-cta-title { margin: 0 0 8px; font-size: 20px; }
.rm-cta-text { color: var(--rm-muted); font-size: 14px; margin: 0 0 18px; }

/* ---------- Hero ---------- */
.rm-hero {
  position: relative;
  overflow: hidden;
  padding: 120px var(--rm-gutter) 100px;
  text-align: center;
  background: var(--rm-grad-hero);
}
.rm-hero-inner { max-width: 800px; margin: 0 auto; }
.rm-hero .rm-eyebrow { margin-bottom: 20px; }
.rm-hero-title {
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.08;
}
.rm-hero-lead { font-size: 19px; color: var(--rm-text-lead); max-width: 600px; margin: 0 auto 40px; }
.rm-hero-stats { display: flex; justify-content: center; gap: 60px; margin-bottom: 44px; flex-wrap: wrap; }
.rm-cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Mentorship ---------- */
.rm-feature-title { margin: 0 0 10px; font-size: 18px; }
.rm-feature-text { color: var(--rm-muted); font-size: 14px; margin: 0 0 16px; }
.rm-feature-tag { font-size: 12px; color: var(--rm-accent-soft); }

.rm-mentorship-cta {
  max-width: var(--rm-content-max);
  margin: 0 auto;
  background: var(--rm-grad-feature);
  border: 1px solid var(--rm-border-accent);
  border-radius: var(--rm-radius-panel);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.rm-mentorship-title { margin: 0 0 14px; font-size: 24px; }
.rm-mentorship-text { color: var(--rm-text-lead); font-size: 15px; margin: 0; }
.rm-perk { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
/* the last perk sits above the button (its sibling is an <a>, not a div) */
.rm-perk:last-of-type { margin-bottom: 26px; }
.rm-perk-name { font-weight: 700; font-size: 14px; }
.rm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rm-accent); }

/* ---------- Pricing ---------- */
.rm-pricing .rm-h2 { margin-bottom: 12px; }
.rm-pricing .rm-section-lead { margin: 0 0 50px; }
.rm-pricing-card {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  background: var(--rm-surface);
  border: 2px solid var(--rm-accent);
  border-radius: var(--rm-radius-panel);
  padding: 40px;
  text-align: left;
}
.rm-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rm-accent);
  color: var(--rm-on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
}
.rm-plan-name { margin: 10px 0 6px; font-size: 22px; }
.rm-plan-text { color: var(--rm-muted); font-size: 14px; margin: 0 0 20px; }
.rm-price { font-size: 32px; margin-bottom: 4px; }
.rm-price-note { margin-bottom: 26px; }
.rm-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  color: var(--rm-text-soft);
  font-size: 14px;
}
.rm-plan-features li { padding: 9px 0; border-top: 1px solid var(--rm-border); }

/* ---------- Team ---------- */
.rm-team-grid {
  max-width: var(--rm-content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.rm-team-lead { display: flex; flex-direction: column; }
.rm-team-title { margin: 0 0 14px; font-size: 20px; }
.rm-team-text { color: var(--rm-text-lead); font-size: 14px; margin: 0 0 20px; }
.rm-bullet { color: var(--rm-text-soft); font-size: 14px; margin-bottom: 8px; }
.rm-bullet:last-child { margin-bottom: 0; }
.rm-team-points { display: grid; grid-template-rows: repeat(3, 1fr); gap: 18px; }
.rm-point-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }

/* ---------- Proof ---------- */
.rm-proof .rm-h2 { margin-bottom: 50px; }
.rm-proof-stats { display: flex; justify-content: center; gap: 80px; margin-bottom: 70px; }
.rm-subhead { font-size: 22px; margin: 0 0 30px; }
.rm-subhead-tight { margin-bottom: 10px; }
.rm-proof-text { color: var(--rm-muted); font-size: 15px; margin: 0 0 24px; }

/* Carousel: the script duplicates the items and loops the track at -50%. */
@keyframes rm-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.rm-carousel {
  overflow: hidden;
  width: 100%;
  max-width: var(--rm-content-max);
  margin: 0 auto 60px;
  -webkit-mask-image: var(--rm-fade-mask);
  mask-image: var(--rm-fade-mask);
}
.rm-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: rm-scroll linear infinite;
  animation-duration: 30s;
}
.rm-carousel:hover .rm-carousel-track { animation-play-state: paused; }
/* Each item keeps its own aspect ratio (`style="--rm-ratio: w/h"`) at a shared
   height, so a portrait screenshot, a landscape one and a wide strip all show
   in full instead of being cropped to one fixed box. */
.rm-carousel-item {
  flex: 0 0 auto;
  height: 340px;
  max-width: 560px;
  aspect-ratio: var(--rm-ratio);
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius-card);
  overflow: hidden;
}
.rm-carousel-item > img,
.rm-carousel-item > video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Application form ---------- */
.rm-apply .rm-h2 { margin-bottom: 14px; }
.rm-form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius-panel);
  padding: 40px;
}
.rm-form-step { font-size: 13px; color: var(--rm-accent-soft); margin-bottom: 18px; font-weight: 700; }
.rm-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.rm-form-2col-tight { margin-bottom: 8px; }
.rm-field-group { margin-bottom: 26px; }
.rm-input {
  background: var(--rm-bg-alt);
  border: 1px solid var(--rm-border-field);
  border-radius: var(--rm-radius-field);
  padding: 13px;
  color: var(--rm-text);
  font-size: 16px;
  width: 100%;
}
.rm-input-full { grid-column: 1 / -1; }
.rm-textarea { resize: vertical; font-family: inherit; margin-bottom: 16px; }
.rm-form-hint { color: var(--rm-faint); font-size: 12px; margin-bottom: 22px; }
/* The application form's honeypot: off-screen, never seen by a person. */
.rm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rm-form-note {
  background: var(--rm-bg-alt);
  border: 1px solid var(--rm-border-field);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 28px;
}
.rm-form-note-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.rm-form-note-text { color: var(--rm-muted); font-size: 13px; }
.rm-form-legal { text-align: center; color: var(--rm-dim); font-size: 12px; margin-top: 16px; }

/* ---------- Thank-you dialog ---------- */
.rm-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--rm-overlay);
  backdrop-filter: blur(6px);
}
.rm-dialog {
  max-width: 440px;
  width: 100%;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-accent);
  border-radius: var(--rm-radius-panel);
  padding: 36px;
  text-align: center;
  box-shadow: var(--rm-shadow);
}
.rm-dialog-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--rm-grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--rm-on-accent);
}
.rm-dialog-title { margin: 0 0 12px; font-size: 22px; }
.rm-dialog-text { color: var(--rm-text-lead); font-size: 15px; margin: 0 0 26px; }
.rm-dialog .rm-btn-form { padding: 14px; }

/* ---------- Footer ---------- */
.rm-footer {
  padding: 50px var(--rm-gutter) 30px;
  background: var(--rm-bg-footer);
  border-top: 1px solid var(--rm-border-chrome);
  text-align: center;
}
.rm-footer-tagline { margin-bottom: 20px; }
.rm-footer-links { display: flex; justify-content: center; gap: 24px; font-size: 14px; margin-bottom: 24px; }
.rm-footer-link { color: var(--rm-subtle); text-decoration: none; }
.rm-footer-legal { color: var(--rm-legal); font-size: 12px; }

/* ---------- Responsive (kept last: same-specificity overrides) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rm-carousel-track { animation: none; }
}

@media (max-width: 768px) {
  .rm-nav-links { display: none; }
  .rm-nav-actions .rm-nav-contact { display: none; }
  .rm-hero-stats { gap: 32px; }
  .rm-grid-2 { grid-template-columns: 1fr; }
  .rm-flex-2 { flex-direction: column; }
  .rm-grid-3 { grid-template-columns: 1fr; }
  .rm-form-2col { grid-template-columns: 1fr; }
  .rm-proof-stats { gap: 40px; }
}

@media (max-width: 480px) {
  .rm-header { padding: 14px var(--rm-gutter); }
  .rm-section,
  .rm-hero { padding-left: var(--rm-gutter-sm); padding-right: var(--rm-gutter-sm); }
  .rm-hero { padding-top: 70px; padding-bottom: 60px; }
  .rm-hero-title { font-size: 34px; }
  .rm-hero-lead { font-size: 16px; }
  .rm-hero-stats { gap: 24px; margin-bottom: 32px; }
  .rm-hero-stats .rm-stat-value { font-size: 26px; }
  .rm-cta-row { flex-direction: column; align-items: stretch; }
  .rm-cta-row a { text-align: center; }
  .rm-h2 { font-size: var(--rm-h2-mobile); }
  .rm-mentorship-cta { padding: 26px; grid-template-columns: 1fr; }
  .rm-mentorship-cta .rm-mentorship-title { font-size: 20px; }
  .rm-pricing-card { padding: 26px; }
  .rm-proof-stats { gap: 28px; flex-wrap: wrap; justify-content: center; }
  .rm-form-card { padding: 24px; }
  .rm-team-grid { grid-template-columns: 1fr; }
  .rm-carousel-item { height: 260px; }
}
