/* Marketing site CSS — hand-crafted, no build step.
 * Colors come from CSS variables set inline by the Blade layout from the
 * reseller's brand (BrandController::SHAPE).
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.6; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --m-primary: #9333ea;
  --m-accent: #ec4899;
  --m-text: #1f2937;
  --m-muted: #6b7280;
  --m-border: #e5e7eb;
  --m-surface: #f9fafb;
  --m-radius: 0.625rem;
  --m-max: 72rem;
}

/* ---------- Layout primitives ---------- */
.m-container { max-width: var(--m-max); margin: 0 auto; padding: 0 1.25rem; }
.m-section { padding: 4rem 0; }
.m-section-tight { padding: 2.5rem 0; }
.m-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .m-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Header ---------- */
.m-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--m-border);
}
.m-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.m-brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; font-size: 1.1rem; color: var(--m-text); }
.m-brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--m-primary), var(--m-accent));
  color: white; font-weight: 800; font-size: 0.95rem;
}
.m-nav { display: none; gap: 1.75rem; align-items: center; }
@media (min-width: 768px) { .m-nav { display: flex; } }
.m-nav a { color: var(--m-muted); font-size: 0.95rem; }
.m-nav a:hover { color: var(--m-text); }
.m-cta-row { display: flex; gap: 0.5rem; align-items: center; }

/* ---------- Buttons ---------- */
.m-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: var(--m-radius);
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  transition: transform 0.06s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  border: 1px solid transparent; cursor: pointer;
}
.m-btn:active { transform: translateY(1px); }
.m-btn-primary { background: var(--m-primary); color: #fff; }
.m-btn-primary:hover { box-shadow: 0 6px 14px -4px rgba(0,0,0,0.18); opacity: 0.94; }
.m-btn-ghost { color: var(--m-text); border-color: var(--m-border); background: #fff; }
.m-btn-ghost:hover { background: var(--m-surface); }
.m-btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.m-hero {
  position: relative;
  padding: 5rem 0 4rem; overflow: hidden;
}
.m-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 80% -10%, color-mix(in oklab, var(--m-accent) 20%, transparent), transparent 60%),
    radial-gradient(40rem 30rem at 0% 0%, color-mix(in oklab, var(--m-primary) 18%, transparent), transparent 70%);
}
.m-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--m-primary);
  background: color-mix(in oklab, var(--m-primary) 10%, white);
  padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.m-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 1rem;
}
.m-hero .m-lede {
  font-size: 1.15rem; color: var(--m-muted); max-width: 36rem; margin: 0 0 1.75rem;
}

/* ---------- Cards / features ---------- */
.m-card {
  border: 1px solid var(--m-border); border-radius: var(--m-radius);
  padding: 1.5rem; background: #fff;
}
.m-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; }
.m-card p { margin: 0; color: var(--m-muted); }

/* ---------- Pricing ---------- */
.m-tier {
  border: 1px solid var(--m-border); border-radius: var(--m-radius);
  padding: 2rem 1.75rem; background: #fff; display: flex; flex-direction: column;
}
.m-tier.m-featured {
  border-color: var(--m-primary); box-shadow: 0 14px 38px -22px color-mix(in oklab, var(--m-primary) 70%, transparent);
}
.m-tier h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.m-tier .m-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.5rem 0 0.25rem; }
.m-tier .m-price small { font-size: 0.95rem; font-weight: 500; color: var(--m-muted); }
.m-tier ul { padding-left: 1.1rem; margin: 1rem 0 1.5rem; color: var(--m-text); }
.m-tier ul li { margin: 0.4rem 0; }

/* ---------- Forms ---------- */
.m-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.m-field label { font-weight: 600; font-size: 0.9rem; }
.m-field input, .m-field textarea {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 0.5rem;
  border: 1px solid var(--m-border); background: #fff; color: var(--m-text);
}
.m-field input:focus, .m-field textarea:focus { outline: 2px solid var(--m-primary); outline-offset: 1px; }

/* ---------- Footer ---------- */
.m-footer {
  border-top: 1px solid var(--m-border); padding: 2.5rem 0;
  color: var(--m-muted); font-size: 0.9rem;
}
.m-footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .m-footer-grid { grid-template-columns: 1fr 1fr; }
}
.m-footer h4 { margin: 0 0 0.75rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--m-text); }
.m-footer ul { list-style: none; padding: 0; margin: 0; }
.m-footer li { margin: 0.35rem 0; }
.m-footer a:hover { color: var(--m-text); }
.m-footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--m-border);
}

/* ---------- Misc ---------- */
.m-prose { max-width: 44rem; margin: 0 auto; }
.m-prose h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; font-weight: 700; }
.m-prose p { margin: 0 0 1rem; color: #374151; }
.m-muted { color: var(--m-muted); }
.m-text-center { text-align: center; }
