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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: #fbfaf7;
  color: #181d24;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  vertical-align: middle;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* typography */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.rmd-hero__title,
.rmd-cta__title {
  font-family: 'CameraPlainVariable', sans-serif;
}

.rmd-hero__title,
.rmd-steps__title,
.rmd-scoring__title,
.rmd-testimonials__title,
.rmd-pricing__title,
.rmd-cta__title {
  font-weight: 800;
  letter-spacing: 0;
}

/* topbar */
.rmd-topbar {
  width: 100%;
  background: rgba(250, 250, 250, 0.05);
  border-bottom: 1px solid #e4e2dd;
}

.rmd-topbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0.375rem 1.5rem;
}

.rmd-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #6b6f78;
  font-size: 0.75rem;
}

.rmd-topbar__logo {
  height: 1rem;
  width: auto;
}

/* nav */
.rmd-nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rmd-nav__logo {
  padding: 0;
  border: 0;
  background: transparent;
  color: #181d24;
  font-size: 1.125rem;
  font-weight: 700;
}

.rmd-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rmd-nav__cta,
.rmd-hero__submit,
.rmd-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: #e5631e;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rmd-nav__cta {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.rmd-nav__cta:hover,
.rmd-hero__submit:hover,
.rmd-cta__button:hover {
  background: #e5631e;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .rmd-nav {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* hero */
.rmd-hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  text-align: center;
}

.rmd-hero__title {
  margin: 0 0 1.5rem;
  font-size: 3rem;
  line-height: 1.05;
  animation: fade-up 0.5s ease forwards;
}

.rmd-hero__title span {
  color: #e5631e;
  font-style: italic;
}

.rmd-hero__subtitle {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  color: #6b6f78;
  font-size: 1.125rem;
  animation: fade-up 0.5s ease forwards;
  animation-delay: 100ms;
  opacity: 0;
}

.rmd-hero__upload {
  max-width: 42rem;
  margin: 0 auto;
}

.rmd-hero__dropzone {
  border: 2px dashed #e4e2dd;
  border-radius: 1rem;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.rmd-hero__dropzone:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.rmd-hero__dropzone-inner {
  padding: 2rem;
}

.rmd-hero__textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: #181d24;
  text-align: center;
}

.rmd-hero__textarea::placeholder {
  color: rgba(161, 161, 170, 0.7);
}

.rmd-hero__file-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rmd-hero__or,
.rmd-hero__privacy {
  color: rgba(161, 161, 170, 0.5);
  font-size: 0.75rem;
}

.rmd-hero__file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #e5631e;
  font-size: 0.75rem;
  font-weight: 600;
}

.rmd-hero__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.rmd-hero__privacy {
  margin: 1rem 0 0;
}

.rmd-hero__submit {
  min-height: 3.5rem;
  margin-top: 2rem;
  padding: 0 2.5rem;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .rmd-hero__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .rmd-hero {
    padding: 6rem 2.5rem 9rem;
  }

  .rmd-hero__subtitle {
    font-size: 1.25rem;
  }

  .rmd-hero__dropzone-inner {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .rmd-hero__title {
    font-size: 4.5rem;
  }
}

/* steps */
.rmd-steps {
  padding: 5rem 1.5rem;
  background: #ffffff;
  overflow: hidden;
}

.rmd-steps__inner {
  max-width: 64rem;
  margin: 0 auto;
}

.rmd-steps__eyebrow,
.rmd-scoring__eyebrow,
.rmd-pricing__eyebrow {
  margin: 0 0 0.75rem;
  color: #e5631e;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rmd-steps__title,
.rmd-scoring__title,
.rmd-testimonials__title,
.rmd-pricing__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.875rem;
  line-height: 1.15;
}

.rmd-steps__subtitle {
  margin: 0 0 4rem;
  color: #6b6f78;
  text-align: center;
  font-size: 0.875rem;
}

.rmd-steps__grid {
  display: grid;
  gap: 3rem;
}

.rmd-steps__step {
  position: relative;
  text-align: center;
}

.rmd-steps__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(249, 115, 22, 0.1);
  color: #e5631e;
}

.rmd-steps__number {
  color: rgba(249, 115, 22, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
}

.rmd-steps__step-title {
  margin: 0.5rem 0;
  font-size: 1.125rem;
}

.rmd-steps__step-copy {
  margin: 0;
  color: #6b6f78;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .rmd-steps {
    padding: 7rem 2.5rem;
  }

  .rmd-steps__title,
  .rmd-scoring__title,
  .rmd-testimonials__title,
  .rmd-pricing__title {
    font-size: 2.25rem;
  }

  .rmd-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* scoring */
.rmd-scoring {
  padding: 5rem 1.5rem;
}

.rmd-scoring__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.rmd-scoring__title {
  margin-bottom: 3rem;
}

.rmd-scoring__card {
  overflow: hidden;
  border: 1px solid #e4e2dd;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.rmd-scoring__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e4e2dd;
  font-weight: 700;
}

.rmd-scoring__badge {
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #e5631e;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.rmd-scoring__body {
  padding: 1.5rem;
}

.rmd-scoring__score {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
}

.rmd-scoring__score span {
  color: #6b6f78;
  font-size: 1.25rem;
}

.rmd-scoring__examples {
  display: grid;
  gap: 1rem;
}

.rmd-scoring__example,
.rmd-scoring__fix {
  border: 1px solid #e4e2dd;
  border-radius: 0.75rem;
  background: #f1eee9;
  padding: 1rem;
}

.rmd-scoring__label {
  margin: 0 0 0.5rem;
  color: #6b6f78;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rmd-scoring__quote {
  margin: 0;
}

.rmd-scoring__fix {
  margin-top: 1rem;
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.1);
}

.rmd-scoring__fix strong {
  color: #e5631e;
}

@media (min-width: 768px) {
  .rmd-scoring {
    padding: 7rem 2.5rem;
  }

  .rmd-scoring__body {
    padding: 2rem;
  }

  .rmd-scoring__examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* testimonials */
.rmd-testimonials {
  padding: 5rem 1.5rem;
  background: #ffffff;
}

.rmd-testimonials__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.rmd-testimonials__title {
  margin-bottom: 3rem;
}

.rmd-testimonials__grid {
  display: grid;
  gap: 1rem;
}

.rmd-testimonials__card {
  border: 1px solid #e4e2dd;
  border-radius: 0.75rem;
  background: #fbfaf7;
  padding: 1.25rem;
}

.rmd-testimonials__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rmd-testimonials__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
}

.rmd-testimonials__person h3,
.rmd-testimonials__person p {
  margin: 0;
}

.rmd-testimonials__person h3 {
  font-size: 0.9375rem;
}

.rmd-testimonials__person p {
  color: #6b6f78;
  font-size: 0.8125rem;
}

.rmd-testimonials__quote {
  margin: 0;
  color: #6b6f78;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .rmd-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .rmd-testimonials {
    padding: 7rem 2.5rem;
  }
}

/* pricing */
.rmd-pricing {
  padding: 5rem 1.5rem;
}

.rmd-pricing__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.rmd-pricing__subtitle {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  color: #6b6f78;
  text-align: center;
  font-size: 0.875rem;
}

.rmd-pricing__toggle {
  width: max-content;
  margin: 0 auto 2rem;
  display: flex;
  gap: 0.25rem;
  border: 1px solid #e4e2dd;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.25rem;
  color: #6b6f78;
  font-size: 0.875rem;
}

.rmd-pricing__toggle span {
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
}

.rmd-pricing__toggle span:first-child {
  background: #f1eee9;
  color: #181d24;
}

.rmd-pricing__grid {
  display: grid;
  gap: 1.5rem;
}

.rmd-pricing__card {
  position: relative;
  border: 1px solid #e4e2dd;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
}

.rmd-pricing__card--featured {
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.rmd-pricing__badge {
  width: max-content;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #e5631e;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.rmd-pricing__card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.rmd-pricing__price {
  margin: 1rem 0 0.5rem;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
}

.rmd-pricing__price span {
  color: #6b6f78;
  font-size: 1rem;
  font-weight: 500;
}

.rmd-pricing__description {
  min-height: 3rem;
  margin: 0 0 1.5rem;
  color: #6b6f78;
  font-size: 0.875rem;
}

.rmd-pricing__features {
  display: grid;
  gap: 0.75rem;
  min-height: 10rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.rmd-pricing__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #6b6f78;
  font-size: 0.875rem;
}

.rmd-pricing__features svg {
  flex: 0 0 auto;
  margin-top: 0.125rem;
  color: #10b981;
}

.rmd-pricing__button {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #e4e2dd;
  border-radius: 999px;
  background: #f1eee9;
  color: #181d24;
  font-weight: 600;
}

.rmd-pricing__button--featured {
  border-color: #e5631e;
  background: #e5631e;
  color: #fff;
}

@media (min-width: 768px) {
  .rmd-pricing {
    padding: 7rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .rmd-pricing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* cta */
.rmd-cta {
  padding: 6rem 1.5rem;
}

.rmd-cta__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.rmd-cta__title {
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
  line-height: 1.05;
}

.rmd-cta__title span {
  color: #e5631e;
  font-style: italic;
}

.rmd-cta__copy {
  margin: 0 0 2.5rem;
  color: #6b6f78;
}

.rmd-cta__button {
  min-height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .rmd-cta {
    padding: 9rem 2.5rem;
  }

  .rmd-cta__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .rmd-cta__title {
    font-size: 3.75rem;
  }
}

/* footer */
.rmd-footer {
  border-top: 1px solid #e4e2dd;
  padding: 2rem 1.5rem;
}

.rmd-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rmd-footer__brand {
  font-size: 0.875rem;
  font-weight: 700;
}

.rmd-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #6b6f78;
  font-size: 0.75rem;
}

.rmd-footer__logo {
  height: 1.25rem;
  width: auto;
}

.rmd-footer__copyright {
  margin: 0;
  color: #6b6f78;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .rmd-footer__inner {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .rmd-footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* ========== Waitlist modal (RMD page) ========== */
.waitlist-modal[hidden] { display: none; }
.waitlist-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.waitlist-modal__backdrop {
  position: absolute; inset: 0; background: rgba(10, 10, 18, 0.65);
  backdrop-filter: blur(2px);
}
.waitlist-modal__panel {
  position: relative; z-index: 1;
  background: #fdfaf3; color: #111;
  border-radius: 16px; padding: 2rem 1.75rem;
  max-width: 480px; width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  max-height: 90vh; overflow-y: auto;
}
.waitlist-modal__close {
  position: absolute; top: 0.5rem; right: 0.75rem;
  background: transparent; border: 0; font-size: 1.75rem; line-height: 1;
  cursor: pointer; color: #6b7280;
}
.waitlist-modal__close:hover { color: #111; }
.waitlist-modal__title { font-size: 1.5rem; margin: 0 0 0.5rem; font-weight: 700; }
.waitlist-modal__lede { color: #4b5563; font-size: 0.9rem; margin: 0 0 1.25rem; }
.waitlist-modal__message {
  padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem;
  font-size: 0.9rem;
}
.waitlist-modal__message--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.waitlist-modal__message--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.waitlist-form { display: flex; flex-direction: column; gap: 0.875rem; }
.waitlist-form__field { display: flex; flex-direction: column; gap: 0.375rem; }
.waitlist-form__label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.waitlist-form__input {
  width: 100%; padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 0.95rem; background: #fff;
  box-sizing: border-box; color: #111;
}
.waitlist-form__input:focus { outline: 2px solid #f97316; outline-offset: 1px; border-color: #f97316; }
.waitlist-form__check {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.9rem; color: #374151; cursor: pointer;
}
.waitlist-form__check input { margin-top: 0.2rem; }
.waitlist-form__turnstile { min-height: 65px; }
.waitlist-form__submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f97316; color: #fff; border: 0; border-radius: 999px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
}
.waitlist-form__submit:hover { background: #ea580c; }
.waitlist-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.waitlist-form__fineprint { font-size: 0.75rem; color: #6b7280; margin: 0; text-align: center; }
.waitlist-form__fineprint a { color: #f97316; text-decoration: underline; }

.rmd-btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.rmd-btn--ghost:hover { background: rgba(255,255,255,0.08); }

.rmd-finalcta__secondary {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1rem;
}

/* Waitlist + book-a-chat CTA buttons (added post-codex-swap to match Blade markup) */
.rmd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.6em 1em;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: #181d24;
  color: #fbfaf7;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rmd-btn:hover { background: #2a313c; }
.rmd-btn--ghost {
  background: transparent;
  color: #181d24;
  border-color: #e4e2dd;
}
.rmd-btn--ghost:hover {
  background: #f1eee9;
  border-color: #d4d2cc;
}
.rmd-btn--pill { border-radius: 9999px; padding: 0.55em 1.25em; }
.rmd-btn--sm { font-size: 0.8125rem; padding: 0.45em 0.95em; }
.rmd-btn--accent {
  background: #e5631e;
  color: #ffffff;
  border-color: #e5631e;
}
.rmd-btn--accent:hover { background: #d2541a; border-color: #d2541a; }

/* File-load status (post-upload feedback) */
.rmd-hero__file-status {
  margin: 0.75rem 0 0;
  color: #2f7d4f;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

/* Dropzone — drag-over visual feedback */
.rmd-hero__dropzone {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.rmd-hero__dropzone.is-dragover {
  border-color: #e5631e;
  background: rgba(229, 99, 30, 0.06);
  transform: scale(1.01);
}

/* flavour-selector — temporarily disabled (kept for re-enable; harmless when markup hidden) */
/* Flavour selector — segmented radio buttons */
.rmd-flavour {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}
.rmd-flavour__legend {
  display: block;
  margin: 0 auto 0.5rem;
  color: #6b6f78;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.rmd-flavour__group {
  display: inline-flex;
  gap: 0.375rem;
  padding: 0.25rem;
  border: 1px solid #e4e2dd;
  border-radius: 999px;
  background: #ffffff;
}
.rmd-flavour__option {
  position: relative;
  cursor: pointer;
}
.rmd-flavour__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.rmd-flavour__pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-width: 5.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #181d24;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.1;
  transition: background 0.15s ease, color 0.15s ease;
}
.rmd-flavour__sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b6f78;
  text-transform: lowercase;
  letter-spacing: 0;
}
.rmd-flavour__option:hover .rmd-flavour__pill {
  background: #f1eee9;
}
.rmd-flavour__option input:checked + .rmd-flavour__pill {
  background: #e5631e;
  color: #ffffff;
}
.rmd-flavour__option input:checked + .rmd-flavour__pill .rmd-flavour__sub {
  color: rgba(255, 255, 255, 0.85);
}
.rmd-flavour__option input:focus-visible + .rmd-flavour__pill {
  outline: 2px solid #e5631e;
  outline-offset: 2px;
}
