/* =========================================================
   ReunionSentry Marketing Site (apex)
   Distinct visual identity from per-tenant sites
   ========================================================= */

body.rs-marketing {
  background: #fbf8f1;
  font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2a3a;
  line-height: 1.5;
}
body.rs-marketing * { box-sizing: border-box; }

.rs-marketing .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Nav ---------- */
.rs-mk-nav {
  position: sticky;
  top: 0;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(31, 42, 58, 0.08);
}
.rs-mk-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.rs-mk-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #1f2a3a;
}
.rs-mk-brand-mark {
  background: #1f2a3a;
  color: #f8e9a1;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}
.rs-mk-brand-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.rs-mk-nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.rs-mk-nav-links a {
  text-decoration: none;
  color: #52607a;
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
.rs-mk-nav-links a:hover { color: #1f2a3a; }
.rs-mk-nav-cta {
  background: #1f2a3a !important;
  color: white !important;
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  font-size: 0.9rem;
}
.rs-mk-burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #1f2a3a;
}

/* ---------- Typography ---------- */
.rs-mk-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #52607a;
  margin-bottom: 1rem;
}
.rs-mk-h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.2rem;
}
.rs-mk-h1 em { font-style: italic; font-weight: 800; color: #C99A4D; }
.rs-mk-h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.rs-mk-h2 em { font-style: italic; font-weight: 800; color: #C99A4D; }
.rs-mk-section-center { text-align: center; margin-bottom: 3rem; }
.rs-mk-section-lede {
  font-size: 1.1rem;
  color: #52607a;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.rs-mk-btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.rs-mk-btn:hover { transform: translateY(-1px); }
.rs-mk-btn-primary {
  background: #1f2a3a;
  color: white;
}
.rs-mk-btn-primary:hover { background: #2a3a52; color: white; }
.rs-mk-btn-ghost {
  background: transparent;
  color: #1f2a3a;
  border: 2px solid #1f2a3a;
}
.rs-mk-btn-yellow {
  background: #f8e9a1;
  color: #1f2a3a;
  font-size: 1.1rem;
  padding: 1.1rem 2.4rem;
}
.rs-mk-btn-yellow:hover { background: #f2d87a; color: #1f2a3a; }

/* ---------- Hero ---------- */
.rs-mk-hero {
  padding: 4rem 0 5rem;
}
.rs-mk-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.rs-mk-lede {
  font-size: 1.2rem;
  color: #52607a;
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 550px;
}
.rs-mk-cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.rs-mk-hero-trust {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #52607a;
  font-weight: 600;
}

/* ---------- Hero phone mock ---------- */
.rs-mk-hero-visual {
  display: flex;
  justify-content: center;
}
.rs-mk-phone {
  width: 280px;
  height: 580px;
  background: #1f2a3a;
  border-radius: 38px;
  padding: 14px;
  box-shadow: 0 24px 60px -20px rgba(31, 42, 58, 0.3),
              0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
}
.rs-mk-phone-screen {
  background: #fdf9ee;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rs-mk-phone-status {
  height: 28px;
  background: linear-gradient(180deg, rgba(31,42,58,0.05), transparent);
  position: relative;
}
.rs-mk-phone-status::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 80px; height: 22px;
  background: #1f2a3a;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}
.rs-mk-phone-app {
  padding: 1.5rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rs-mk-phone-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #52607a;
}
.rs-mk-phone-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
  color: #1f2a3a;
}
.rs-mk-phone-qr {
  background: white;
  width: 130px;
  height: 130px;
  align-self: center;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.15);
  background-image:
    linear-gradient(45deg, #1f2a3a 25%, transparent 25%),
    linear-gradient(-45deg, #1f2a3a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1f2a3a 75%),
    linear-gradient(-45deg, transparent 75%, #1f2a3a 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
  background-color: white;
}
.rs-mk-phone-tonight {
  margin-top: auto;
  background: #1f2a3a;
  color: white;
  border-radius: 14px;
  padding: 1rem;
}

/* ---------- Why ---------- */
.rs-mk-why {
  background: white;
  padding: 5rem 0;
  border-top: 1px solid rgba(31,42,58,0.06);
  border-bottom: 1px solid rgba(31,42,58,0.06);
}
.rs-mk-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.rs-mk-why-card { padding: 1.5rem; }
.rs-mk-why-emoji { font-size: 3rem; margin-bottom: 0.8rem; }
.rs-mk-why-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.rs-mk-why-card p { color: #52607a; line-height: 1.55; }

/* ---------- Features ---------- */
.rs-mk-features { padding: 5rem 0; }
.rs-mk-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.rs-mk-feat {
  background: white;
  border: 1px solid rgba(31,42,58,0.08);
  border-radius: 16px;
  padding: 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rs-mk-feat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(31,42,58,0.15);
}
.rs-mk-feat-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.rs-mk-feat h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.rs-mk-feat p { color: #52607a; font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* ---------- How ---------- */
.rs-mk-how {
  background: #fdf9ee;
  padding: 5rem 0;
  border-top: 1px solid rgba(31,42,58,0.06);
}
.rs-mk-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.rs-mk-step {
  background: white;
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid rgba(31,42,58,0.08);
  position: relative;
}
.rs-mk-step-num {
  background: #1f2a3a;
  color: #f8e9a1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}
.rs-mk-step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.rs-mk-step p { color: #52607a; font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* ---------- Pricing ---------- */
.rs-mk-pricing {
  padding: 5rem 0;
  background: white;
  border-top: 1px solid rgba(31,42,58,0.06);
}
.rs-mk-price-card-wrap { display: flex; justify-content: center; }
.rs-mk-price-card {
  background: linear-gradient(180deg, #fdf9ee 0%, #ffffff 100%);
  border: 2px solid #C99A4D;
  border-radius: 22px;
  padding: 2.5rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(201, 154, 77, 0.3);
}
.rs-mk-price-tier {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C99A4D;
  margin-bottom: 0.5rem;
}
.rs-mk-price-amount {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #1f2a3a;
}
.rs-mk-price-amount span { font-size: 4rem; }
.rs-mk-price-note {
  color: #52607a;
  font-size: 0.95rem;
  margin: 0.4rem 0 1.5rem;
}
.rs-mk-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  text-align: left;
}
.rs-mk-price-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(31,42,58,0.06);
  font-size: 0.95rem;
  color: #1f2a3a;
}
.rs-mk-price-list li::before {
  content: '✓';
  color: #C99A4D;
  font-weight: 800;
  margin-right: 0.6rem;
}
.rs-mk-price-list li:last-child { border-bottom: none; }
.rs-mk-price-cta {
  width: 100%;
  font-size: 1.1rem;
  padding: 1.1rem;
}
.rs-mk-price-fine {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #52607a;
}

/* ---------- Waitlist ---------- */
.rs-mk-waitlist {
  padding: 4rem 0;
  background: #fbf8f1;
}
.rs-mk-waitlist-card {
  background: linear-gradient(135deg, #A8D0E6 0%, #cce5f3 100%);
  border-radius: 22px;
  padding: 3rem 2rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.rs-mk-waitlist-emoji { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.rs-mk-waitlist-form { max-width: 480px; margin: 1.5rem auto 0; }
.rs-mk-waitlist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.rs-mk-waitlist-row input,
.rs-mk-waitlist-form input {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(31,42,58,0.15);
  font-size: 1rem;
  background: white;
  width: 100%;
  font-family: inherit;
}
.rs-mk-waitlist-form button { width: 100%; margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.rs-mk-faq { padding: 5rem 0; }
.rs-mk-faq-item {
  background: white;
  border: 1px solid rgba(31,42,58,0.08);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  margin-bottom: 0.7rem;
}
.rs-mk-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.rs-mk-faq-item summary::-webkit-details-marker { display: none; }
.rs-mk-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: #52607a;
}
.rs-mk-faq-item[open] summary::after { content: '−'; }
.rs-mk-faq-item p {
  margin: 1rem 0 0;
  color: #52607a;
  line-height: 1.55;
}

/* ---------- Final CTA ---------- */
.rs-mk-final {
  background: linear-gradient(135deg, #1f2a3a 0%, #2a3d5c 100%);
  padding: 5rem 0;
  color: white;
}

/* ---------- Footer ---------- */
.rs-mk-footer {
  background: #fdf9ee;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(31,42,58,0.08);
}
.rs-mk-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.rs-mk-footer h4 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  color: #1f2a3a;
}
.rs-mk-footer a {
  display: block;
  text-decoration: none;
  color: #52607a;
  font-size: 0.92rem;
  padding: 0.25rem 0;
}
.rs-mk-footer a:hover { color: #1f2a3a; }
.rs-mk-footer-bottom {
  border-top: 1px solid rgba(31,42,58,0.08);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #9ba8b8;
}

/* ---------- Signup form ---------- */
.rs-mk-signup, .rs-mk-thanks { padding: 3rem 0 5rem; }

.rs-mk-form {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(31,42,58,0.08);
  box-shadow: 0 16px 40px -16px rgba(31,42,58,0.1);
}
.rs-mk-fieldset {
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(31,42,58,0.06);
}
.rs-mk-fieldset:last-of-type { border-bottom: none; padding-bottom: 0; }
.rs-mk-fieldset-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #52607a;
  margin-bottom: 0.8rem;
}
.rs-mk-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.rs-mk-form-field { display: flex; flex-direction: column; }
.rs-mk-form-field.rs-mk-fw { grid-column: 1 / -1; }
.rs-mk-form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.rs-mk-form-field label small {
  font-weight: 400;
  color: #9ba8b8;
  font-size: 0.82rem;
}
.rs-mk-form-field input,
.rs-mk-form-field select {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(31,42,58,0.15);
  font-size: 1rem;
  font-family: inherit;
  background: white;
}
.rs-mk-form-field input[type=color] {
  height: 48px;
  padding: 4px;
}
.rs-mk-subdomain-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(31,42,58,0.15);
  border-radius: 10px;
  overflow: hidden;
}
.rs-mk-subdomain-wrap input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
}
.rs-mk-subdomain-suffix {
  background: #fdf9ee;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #52607a;
  font-weight: 600;
}
.rs-mk-subdomain-status {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
  color: #9ba8b8;
}
.rs-mk-subdomain-status.ok { color: #2a9a5e; font-weight: 700; }
.rs-mk-subdomain-status.err { color: #c85a5a; font-weight: 700; }

.rs-mk-checkout-prompt {
  background: linear-gradient(135deg, #f8e9a1 0%, #f2d87a 100%);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Summary (checkout) ---------- */
.rs-mk-summary {
  background: white;
  border: 1px solid rgba(31,42,58,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.rs-mk-summary-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #52607a;
  margin: 0 0 0.8rem;
}
.rs-mk-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(31,42,58,0.06);
}
.rs-mk-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(31,42,58,0.1);
}

/* ---------- Alerts ---------- */
.rs-mk-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
  font-weight: 600;
}
.rs-mk-alert-error {
  background: #fff3f3;
  border: 1px solid #e8c6c6;
  color: #c85a5a;
}
.rs-mk-alert-success {
  background: #f0faf4;
  border: 1px solid #c3e6cf;
  color: #2a9a5e;
}
.rs-mk-alert-info {
  background: #fdf9ee;
  border: 1px solid #e6dfce;
  color: #52607a;
}

/* ---------- Thanks page ---------- */
.rs-mk-thanks-emoji { font-size: 4.5rem; line-height: 1; margin-bottom: 0.8rem; }
.rs-mk-thanks-url {
  font-family: 'Figtree', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  background: #fdf9ee;
  border: 1px solid #e6dfce;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 1.5rem auto;
  display: inline-block;
}
.rs-mk-thanks-note {
  background: #f0faf4;
  border: 1px solid #c3e6cf;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: left;
}
.rs-mk-thanks-next {
  background: white;
  border: 1px solid rgba(31,42,58,0.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}
.rs-mk-thanks-next h3 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #52607a;
  margin: 0 0 0.8rem;
}
.rs-mk-thanks-next ol {
  margin: 0;
  padding-left: 1.4rem;
  color: #1f2a3a;
  line-height: 1.7;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .rs-mk-hero-grid { grid-template-columns: 1fr; }
  .rs-mk-hero-visual { display: none; }
  .rs-mk-why-grid { grid-template-columns: 1fr; gap: 1rem; }
  .rs-mk-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .rs-mk-steps { grid-template-columns: repeat(2, 1fr); }
  .rs-mk-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .rs-mk-nav-links { display: none; }
  body.rs-mk-menu-open .rs-mk-nav-links {
    display: flex;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: #fbf8f1;
    flex-direction: column;
    padding: 2rem 1.5rem;
    align-items: stretch;
    z-index: 99;
  }
  .rs-mk-burger { display: block; }
  .rs-mk-feat-grid { grid-template-columns: 1fr; }
  .rs-mk-form-row { grid-template-columns: 1fr; }
  .rs-mk-waitlist-row { grid-template-columns: 1fr; }
  .rs-mk-checkout-prompt { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .rs-mk-checkout-prompt .rs-mk-btn { width: 100%; }
}
