/* =============================================================
   Addictivity Marketing Roadmap — shared chassis
   Cream background + magenta accent + N27/Space Grotesk/DM Sans
   Builds on shared/colors_and_type.css (design system tokens)
   ============================================================= */

:root {
  /* The roadmap product runs on cream (paper) as the primary surface,
     not the dark site canvas. We re-alias for clarity. */
  --rm-bg:          var(--addict-paper);     /* #f9f4ee */
  --rm-bg-soft:     var(--addict-paper-soft);
  --rm-bg-deep:     #f0eae1;                 /* a touch darker for the footer band */
  --rm-card:        #ffffff;
  --rm-ink:         #1a1a1a;
  --rm-ink-warm:    #3a3236;
  --rm-ink-mid:     #6b6068;
  --rm-ink-soft:    #8b8088;
  --rm-line:        rgba(26,26,26,0.10);
  --rm-line-soft:   rgba(26,26,26,0.06);

  --rm-magenta:     var(--addict-primary);   /* #6d184f */
  --rm-magenta-700: var(--addict-primary-700);
  --rm-magenta-tint:rgba(109,24,79,0.06);
  --rm-magenta-tint-2: rgba(109,24,79,0.12);

  /* The signature roadmap gradient = magenta → coral → pink */
  --rm-gradient:    linear-gradient(120deg, #6d184f 0%, #c43e8a 60%, #fd736d 100%);
  --rm-gradient-soft: linear-gradient(120deg, rgba(109,24,79,0.08) 0%, rgba(196,62,138,0.08) 60%, rgba(253,115,109,0.08) 100%);

  --rm-success: #1f6f3c;
  --rm-warning: #a05a00;
  --rm-danger:  #b73838;

  --rm-radius-sm: 8px;
  --rm-radius:    14px;
  --rm-radius-lg: 20px;
  --rm-radius-xl: 28px;

  --rm-shadow-xs: 0 1px 2px rgba(26,26,26,0.04);
  --rm-shadow-sm: 0 4px 14px rgba(26,26,26,0.06);
  --rm-shadow-md: 0 12px 30px rgba(26,26,26,0.08);
  --rm-shadow-lg: 0 30px 80px rgba(26,26,26,0.14);
  --rm-shadow-glow: 0 30px 80px rgba(109,24,79,0.18);

  --rm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* , *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rm-bg);
  color: var(--rm-ink);
  font-family: var(--addict-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hard rule from the brand: no italics anywhere. */
em, i, cite, address { font-style: normal; }

a { color: inherit; }

/* ---- Type primitives ----
   Per addictivity.com: Space Grotesk 500 for headlines, never bolder than 600
   except in tags/buttons. We keep N27 as a fallback for licensing flexibility. */
.rm-display {
  font-family: var(--addict-font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--rm-ink);
}
.rm-h1 { font-family: var(--addict-font-display); font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.rm-h2 { font-family: var(--addict-font-display); font-weight: 500; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.rm-h3 { font-family: var(--addict-font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: var(--rm-ink); }
.rm-h4 { font-family: var(--addict-font-display); font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0; color: var(--rm-ink); }

.rm-body { font-family: var(--addict-font-body); font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--rm-ink-warm); }
.rm-lead { font-family: var(--addict-font-body); font-weight: 400; font-size: 19px; line-height: 1.5; color: var(--rm-ink-warm); }
.rm-meta { font-family: var(--addict-font-body); font-size: 14px; color: var(--rm-ink-mid); }
.rm-mono { font-family: var(--addict-font-mono); font-size: 13px; letter-spacing: 0.02em; }

.rm-eyebrow {
  font-family: var(--addict-font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-magenta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rm-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* Gradient accent text — used on one or two words inside an N27 headline */
.rm-grad {
  background: var(--rm-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rm-grad-shimmer 60s linear infinite;
}
@keyframes rm-grad-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---- Layout ---- */
.rm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.rm-container--narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .rm-container, .rm-container--narrow { padding: 0 20px; }
}

/* ---- Buttons ---- */
.rm-btn {
  font-family: var(--addict-font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 220ms var(--rm-ease), box-shadow 220ms var(--rm-ease), background 220ms var(--rm-ease);
  white-space: nowrap;
}
.rm-btn--primary {
  background: var(--rm-magenta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(109,24,79,0.22);
}
.rm-btn--primary:hover {
  background: #0a0915;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(10,9,21,0.28);
}
.rm-btn--lg { padding: 18px 28px; font-size: 16px; }
.rm-btn--xl { padding: 20px 32px; font-size: 17px; }

.rm-btn--ghost {
  background: transparent;
  color: var(--rm-magenta);
  border: 1px solid rgba(109,24,79,0.28);
}
.rm-btn--ghost:hover { background: var(--rm-magenta-tint); }

.rm-btn--white {
  background: #fff;
  color: var(--rm-magenta);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.rm-btn--white:hover { transform: translateY(-1px); }

.rm-btn .arrow {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 12px;
  line-height: 1;
  margin-left: 2px;
  transition: transform 220ms var(--rm-ease), background 220ms;
}
.rm-btn--white .arrow { background: rgba(109,24,79,0.12); }
.rm-btn--ghost .arrow { background: var(--rm-magenta-tint); }
.rm-btn:hover .arrow { transform: translateX(3px); }

/* ---- Top nav ---- */
.rm-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249,244,238,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rm-line);
}
.rm-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rm-nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rm-ink); }
.rm-nav__logo img { height: 22px; }
.rm-nav__tag {
  font-family: var(--addict-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-ink-mid);
  padding-left: 14px;
  border-left: 1px solid var(--rm-line);
}
.rm-nav__link {
  font-family: var(--addict-font-display);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: var(--rm-ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 200ms;
}
.rm-nav__link:hover { background: rgba(26,26,26,0.04); }
@media (max-width: 720px) {
  .rm-nav__tag { display: none; }
  .rm-nav__inner { padding: 14px 20px; }
}

/* ---- Hub strip at top of each screen (for the design pack) ---- */
.rm-hubstrip {
  background: var(--rm-ink);
  color: rgba(255,255,255,0.86);
  padding: 10px 0;
  font-family: var(--addict-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.rm-hubstrip__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rm-hubstrip a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.rm-hubstrip a:hover { color: #fd9bd0; }
.rm-hubstrip__center { opacity: 0.55; }
@media (max-width: 640px) {
  .rm-hubstrip__center { display: none; }
}

/* ---- Footer ---- */
.rm-footer {
  background: var(--rm-bg-deep);
  border-top: 1px solid var(--rm-line);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.rm-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.rm-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rm-line);
}
.rm-footer__brand img { height: 22px; margin-bottom: 16px; }
.rm-footer__brand p { font-size: 14px; color: var(--rm-ink-warm); line-height: 1.5; max-width: 320px; margin: 0 0 14px; }
.rm-footer__brand .addr { font-family: var(--addict-font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--rm-ink-mid); line-height: 1.7; }

.rm-footer__col h4 {
  font-family: var(--addict-font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--rm-ink);
  margin: 0 0 14px;
}
.rm-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-footer__col a {
  font-family: var(--addict-font-body);
  font-size: 14px;
  text-decoration: none;
  color: var(--rm-ink-warm);
}
.rm-footer__col a:hover { color: var(--rm-magenta); }
.rm-footer__legal {
  padding-top: 24px;
  font-family: var(--addict-font-mono);
  font-size: 11px;
  color: var(--rm-ink-mid);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .rm-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rm-footer__brand { grid-column: 1 / -1; }
}

/* ---- Cards ---- */
.rm-card {
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-lg);
  padding: 28px;
  transition: transform 220ms var(--rm-ease), box-shadow 220ms var(--rm-ease);
}
.rm-card:hover { transform: translateY(-2px); box-shadow: var(--rm-shadow-sm); }

/* ---- Form fields ---- */
.rm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rm-field__label {
  font-family: var(--addict-font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--rm-ink);
  letter-spacing: -0.005em;
}
.rm-field__label .opt {
  font-family: var(--addict-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-ink-mid);
  margin-left: 8px;
}
.rm-input, .rm-select, .rm-textarea {
  font-family: var(--addict-font-body);
  font-size: 16px;
  color: var(--rm-ink);
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 200ms, box-shadow 200ms;
  width: 100%;
}
.rm-input:focus, .rm-select:focus, .rm-textarea:focus {
  outline: 0;
  border-color: var(--rm-magenta);
  box-shadow: 0 0 0 4px rgba(109,24,79,0.10);
}
.rm-textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.rm-field__hint {
  font-family: var(--addict-font-body);
  font-size: 13px;
  color: var(--rm-ink-mid);
}

/* Choice cards (used by survey single/multi-select) */
.rm-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: var(--addict-font-body);
  font-size: 16px;
  color: var(--rm-ink);
  cursor: pointer;
  transition: all 180ms var(--rm-ease);
  width: 100%;
  text-align: left;
}
.rm-choice:hover {
  border-color: rgba(109,24,79,0.4);
  transform: translateY(-1px);
  box-shadow: var(--rm-shadow-xs);
}
.rm-choice .marker {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--rm-line);
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rm-bg-soft);
}
.rm-choice .marker--square { border-radius: 6px; }
.rm-choice.is-selected {
  border-color: var(--rm-magenta);
  background: var(--rm-magenta-tint);
  color: var(--rm-magenta-700);
}
.rm-choice.is-selected .marker {
  background: var(--rm-magenta);
  border-color: var(--rm-magenta);
}
.rm-choice.is-selected .marker::after {
  content: "";
  width: 6px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Step progress bar */
.rm-progress {
  position: relative;
  height: 3px;
  background: rgba(26,26,26,0.06);
  width: 100%;
  overflow: hidden;
}
.rm-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--rm-gradient);
  transition: width 400ms var(--rm-ease);
}

/* Section eyebrow on survey screens */
.rm-section-eyebrow {
  font-family: var(--addict-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-magenta);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rm-section-eyebrow .diamond {
  width: 8px; height: 8px;
  background: currentColor;
  transform: rotate(45deg);
  display: inline-block;
}

/* Misc utilities */
.rm-divider {
  height: 1px;
  background: var(--rm-line);
  width: 100%;
  margin: 32px 0;
}

/* Pills */
.rm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rm-magenta-tint);
  color: var(--rm-magenta);
  font-family: var(--addict-font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.rm-pill--ink { background: rgba(26,26,26,0.06); color: var(--rm-ink); }
.rm-pill__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* Scroll-reveal — opt-in via .rm-reveal--hidden, set by JS only when IO is ready.
   Default state must be VISIBLE so content always renders if JS or IO never fire. */
.rm-reveal { opacity: 1; transform: none; }
.rm-reveal--hidden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--rm-ease), transform 700ms var(--rm-ease);
}
.rm-reveal--hidden.is-in { opacity: 1; transform: translateY(0); }
