:root {
  --m-bg: #f8fafc;
  --m-surface: #ffffff;
  --m-text: #0f172a;
  --m-muted: #64748b;
  --m-accent: #0d9488;
  --m-accent-dark: #0f766e;
  --m-accent-soft: #ccfbf1;
  --m-border: #e2e8f0;
  --m-hero: #0f172a;
  --m-radius: 12px;
  --m-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --m-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --m-mono: ui-monospace, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.marketing {
  margin: 0;
  font-family: var(--m-font);
  background: var(--m-bg);
  color: var(--m-text);
  line-height: 1.55;
}

.m-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.m-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--m-border);
}

.m-nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.m-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--m-accent-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.m-logo span {
  color: var(--m-text);
}

.m-nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.m-nav-links a {
  color: var(--m-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.m-nav-links a:hover {
  color: var(--m-accent-dark);
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.m-btn:active {
  transform: translateY(1px);
}

.m-btn-primary {
  background: var(--m-accent);
  color: #fff;
}

.m-btn-primary:hover {
  background: var(--m-accent-dark);
}

.m-btn-ghost {
  background: transparent;
  color: var(--m-text);
  border: 1px solid var(--m-border);
}

.m-btn-ghost:hover {
  border-color: var(--m-accent);
  color: var(--m-accent-dark);
}

.m-btn-block {
  width: 100%;
}

.m-team-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.m-team-input-row input {
  flex: 1;
  min-width: 8rem;
}

.m-team-suffix {
  font-size: 0.95rem;
  color: var(--m-muted);
  white-space: nowrap;
}

.m-form-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--m-muted);
}

.m-form-hint code {
  font-family: var(--m-mono);
  font-size: 0.82rem;
}

.m-hero {
  padding: 3.5rem 0 2.5rem;
}

.m-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .m-hero-grid {
    grid-template-columns: 1fr;
  }
}

.m-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--m-accent-dark);
  background: var(--m-accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.m-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--m-hero);
}

.m-hero-lead {
  font-size: 1.12rem;
  color: var(--m-muted);
  margin: 0 0 1.5rem;
  max-width: 34rem;
}

.m-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.m-hero-note {
  font-size: 0.85rem;
  color: var(--m-muted);
}

.m-hero-note code {
  font-family: var(--m-mono);
  font-size: 0.82rem;
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.m-preview {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
  overflow: hidden;
}

.m-preview-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--m-border);
}

.m-preview-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  font-style: normal;
}

.m-preview-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 220px;
}

.m-preview-buckets {
  background: #f8fafc;
  border-right: 1px solid var(--m-border);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.m-preview-bucket {
  height: 28px;
  border-radius: 6px;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.m-preview-canvas {
  position: relative;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #cbd5e1 100%);
}

.m-preview-avatar {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.m-section {
  padding: 3rem 0;
}

.m-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.m-section-lead {
  color: var(--m-muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.m-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.m-feature {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  padding: 1.25rem;
}

.m-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.m-feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--m-muted);
}

.m-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .m-steps {
    grid-template-columns: 1fr;
  }
}

.m-step {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  padding: 1.25rem;
}

.m-step-num {
  font-family: var(--m-mono);
  font-size: 0.8rem;
  color: var(--m-accent);
  font-weight: 700;
}

.m-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.m-price-card {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.m-price-card.featured {
  border-color: var(--m-accent);
  box-shadow: 0 0 0 1px var(--m-accent), var(--m-shadow);
}

.m-price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.m-price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}

.m-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--m-muted);
}

.m-price-card ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--m-muted);
  flex: 1;
}

.m-price-card li {
  margin-bottom: 0.35rem;
}

.m-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--m-accent-soft);
  color: var(--m-accent-dark);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.m-self-host {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--m-hero);
  color: #e2e8f0;
  border-radius: var(--m-radius);
}

.m-self-host h3 {
  margin: 0 0 0.75rem;
  color: #fff;
}

.m-self-host-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .m-self-host-grid {
    grid-template-columns: 1fr;
  }
}

.m-self-host p,
.m-self-host li {
  font-size: 0.9rem;
  color: #94a3b8;
}

.m-self-host ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.m-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 760px) {
  .m-contact {
    grid-template-columns: 1fr;
  }
}

.m-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--m-muted);
}

.m-form input,
.m-form select,
.m-form textarea {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.m-form textarea {
  min-height: 120px;
  resize: vertical;
}

.m-form-status {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.4em;
}

.m-form-status.ok {
  color: var(--m-accent-dark);
}

.m-form-status.err {
  color: #b91c1c;
}

.m-faq details {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
}

.m-faq summary {
  font-weight: 600;
  cursor: pointer;
}

.m-faq p {
  margin: 0.6rem 0 0;
  color: var(--m-muted);
  font-size: 0.92rem;
}

.m-footer {
  border-top: 1px solid var(--m-border);
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--m-muted);
}

.m-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.m-legal-page .m-legal {
  max-width: 42rem;
  padding: 2.5rem 0 3rem;
  line-height: 1.6;
}

.m-legal h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.m-legal h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}

.m-legal p,
.m-legal li {
  color: var(--m-text);
  font-size: 0.95rem;
}

.m-legal ul {
  padding-left: 1.25rem;
}

.m-legal-meta {
  color: var(--m-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.m-legal-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--m-muted);
}

.m-legal-consent {
  margin-top: 0.75rem;
}

.m-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.m-modal-overlay[hidden] {
  display: none;
}

.m-modal {
  background: var(--m-surface);
  border-radius: var(--m-radius);
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--m-shadow);
}

.m-modal h3 {
  margin: 0 0 0.5rem;
}

.m-modal p {
  color: var(--m-muted);
  font-size: 0.92rem;
}

.m-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}
