/* Public marketing + legal — institutional light theme (scoped to body.marketing) */

body.marketing {
  --mh-ink: #142033;
  --mh-ink-soft: #2a3548;
  --mh-muted: #5c6675;
  --mh-paper: #f3f1ec;
  --mh-paper-2: #ebe8e1;
  --mh-rule: rgba(20, 32, 51, 0.12);
  --mh-accent: #1f6a5a;
  --mh-accent-hover: #185548;
  --mh-accent-soft: rgba(31, 106, 90, 0.1);
  --mh-warn: #8a4b2a;
  --mh-good: #1f6a5a;
  --mh-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mh-sans: "Source Sans 3", "Segoe UI", sans-serif;

  background: var(--mh-paper) !important;
  color: var(--mh-ink);
  font-family: var(--mh-sans);
}

body.marketing #starfield {
  display: none !important;
}

body.marketing .marketing-wrap {
  max-width: none;
  width: 100%;
  padding: 0 !important;
  margin: 0;
  justify-content: flex-start;
  align-items: stretch;
  text-align: initial;
}

body.marketing main,
body.marketing form,
body.marketing .card {
  max-width: none;
}

body.marketing .relative.z-10 > .mb-3.p-3.rounded {
  background: #fff !important;
  border: 1px solid var(--mh-rule) !important;
  color: var(--mh-ink) !important;
}

body.marketing .lang-switch .pill,
body.marketing .top-nav-shell .pill {
  color: var(--mh-ink-soft);
  border-color: var(--mh-rule);
  background: rgba(255, 255, 255, 0.72);
}

body.marketing .lang-switch .pill--accent,
body.marketing .top-nav-shell .pill--accent {
  background: var(--mh-accent);
  border-color: var(--mh-accent);
  color: #fff;
}

body.marketing .top-nav-shell {
  background: rgba(243, 241, 236, 0.94);
  border-bottom-color: var(--mh-rule);
}

body.marketing .page-load-overlay {
  background: rgba(243, 241, 236, 0.72);
}

body.marketing .page-load-spinner {
  border-color: rgba(20, 32, 51, 0.18);
  border-top-color: var(--mh-accent);
}

/* Page shell */
.mh {
  color: var(--mh-ink);
}

.mh-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Hero */
.mh-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--mh-rule);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #f7f5f0 0%, #ebe8e1 55%, #e4e0d7 100%);
}

.mh-hero-grid {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4.5rem 0 3.25rem;
  align-items: center;
}

@media (min-width: 960px) {
  .mh-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
    padding: 5.5rem 0 4rem;
    min-height: calc(100vh - 2rem);
  }
}

.mh-brand-mark {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  margin-bottom: 1.35rem;
  animation: mh-rise 0.7s ease both;
}

.mh-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-accent);
  animation: mh-rise 0.7s ease 0.05s both;
}

.mh-title {
  margin: 0;
  font-family: var(--mh-serif);
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--mh-ink);
  animation: mh-rise 0.7s ease 0.1s both;
}

.mh-lede {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--mh-muted);
  animation: mh-rise 0.7s ease 0.16s both;
}

.mh-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: mh-rise 0.7s ease 0.22s both;
}

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-family: var(--mh-sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.mh-btn:hover {
  transform: translateY(-1px);
}

.mh-btn--primary {
  background: var(--mh-accent);
  color: #fff;
  border: 1px solid var(--mh-accent);
}

.mh-btn--primary:hover {
  background: var(--mh-accent-hover);
  border-color: var(--mh-accent-hover);
  color: #fff;
}

.mh-btn--ghost {
  background: transparent;
  color: var(--mh-ink);
  border: 1px solid rgba(20, 32, 51, 0.28);
}

.mh-btn--ghost:hover {
  border-color: var(--mh-ink);
  color: var(--mh-ink);
}

.mh-btn--wide {
  width: 100%;
}

/* Product proof panel */
.mh-product {
  animation: mh-slide 0.85s ease 0.18s both;
}

.mh-product-frame {
  background: #fff;
  border: 1px solid var(--mh-rule);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(20, 32, 51, 0.08);
  overflow: hidden;
}

.mh-product-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--mh-rule);
  background: #fafaf7;
}

.mh-product-bar-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-muted);
}

.mh-product-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mh-accent);
  background: var(--mh-accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.mh-product-body {
  padding: 1.1rem 1.1rem 1.25rem;
}

.mh-product-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mh-muted);
}

.mh-product-excerpt {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--mh-accent);
  background: #f7f6f2;
  font-family: var(--mh-serif);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--mh-ink-soft);
}

.mh-lenses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mh-lens {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--mh-rule);
  border-radius: 6px;
  background: #fff;
}

.mh-lens-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.mh-lens-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mh-ink);
}

.mh-lens-score {
  font-family: var(--mh-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mh-ink);
}

.mh-lens-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(20, 32, 51, 0.08);
  overflow: hidden;
}

.mh-lens-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mh-accent);
}

.mh-lens--warn .mh-lens-bar > span {
  background: var(--mh-warn);
}

.mh-product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--mh-rule);
}

.mh-product-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--mh-muted);
}

.mh-product-actions {
  display: flex;
  gap: 0.45rem;
}

.mh-mini {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--mh-rule);
  color: var(--mh-ink-soft);
  background: #fff;
}

.mh-mini--accent {
  background: var(--mh-accent);
  border-color: var(--mh-accent);
  color: #fff;
}

/* Sections */
.mh-section {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--mh-rule);
}

.mh-section--quiet {
  background: rgba(255, 255, 255, 0.45);
}

.mh-section-head {
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.mh-section-title {
  margin: 0;
  font-family: var(--mh-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--mh-ink);
}

.mh-section-copy {
  margin: 0.7rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--mh-muted);
}

.mh-control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .mh-control-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.mh-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-points li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.15rem;
  border-top: 1px solid var(--mh-rule);
  color: var(--mh-ink-soft);
  line-height: 1.45;
}

.mh-points li:last-child {
  border-bottom: 1px solid var(--mh-rule);
}

.mh-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mh-accent);
}

.mh-quote {
  margin: 0;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--mh-rule);
  border-radius: 8px;
  background: #fff;
  font-family: var(--mh-serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--mh-ink);
}

.mh-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--mh-sans);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mh-muted);
}

/* Pricing */
.mh-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .mh-pricing-grid {
    grid-template-columns: 0.85fr 0.85fr 1.25fr 0.95fr;
    align-items: stretch;
  }
}

.mh-plan {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.3rem;
  border: 1px solid var(--mh-rule);
  border-radius: 8px;
  background: #fff;
}

.mh-plan--featured {
  border-color: rgba(31, 106, 90, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f6 100%);
  box-shadow: 0 14px 30px rgba(20, 32, 51, 0.07);
}

.mh-plan-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-accent);
}

.mh-plan-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mh-ink);
}

.mh-plan-price {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--mh-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--mh-ink);
}

.mh-plan-price span {
  font-family: var(--mh-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mh-muted);
}

.mh-plan-list {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.mh-plan-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 0.95rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--mh-ink-soft);
}

.mh-plan-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--mh-muted);
}

.mh-enterprise-note {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--mh-muted);
}

.mh-enterprise-note a {
  color: var(--mh-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Closing CTA */
.mh-close {
  padding: 3.5rem 0 4rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.55)),
    var(--mh-paper-2);
}

.mh-close .mh-section-title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.mh-close .mh-section-copy {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.mh-close .mh-cta {
  justify-content: center;
}

/* Footer */
.mh-footer {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--mh-rule);
  background: #fff;
}

.mh-footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .mh-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.mh-footer-brand {
  font-size: 0.9rem;
  color: var(--mh-muted);
}

.mh-footer-brand a {
  color: inherit;
  text-decoration: none;
}

.mh-footer-brand a:hover {
  color: var(--mh-ink);
}

.mh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.mh-footer-links a {
  font-size: 0.88rem;
  color: var(--mh-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mh-footer-links a:hover {
  border-bottom-color: rgba(20, 32, 51, 0.35);
}

@keyframes mh-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mh-slide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-brand-mark,
  .mh-kicker,
  .mh-title,
  .mh-lede,
  .mh-cta,
  .mh-product {
    animation: none;
  }

  .mh-btn:hover {
    transform: none;
  }
}

/* Legal / policy documents */
.mdoc {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.75rem 0 3.5rem;
  color: var(--mh-ink);
}

.mdoc > div {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mdoc h1 {
  margin: 0;
  font-family: var(--mh-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mh-ink);
}

.mdoc h2 {
  margin: 2.25rem 0 0.65rem;
  font-family: var(--mh-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mh-ink);
}

.mdoc p,
.mdoc li {
  line-height: 1.65;
}

.mdoc a {
  color: var(--mh-accent);
  font-weight: 600;
  text-underline-offset: 2px;
}

.mdoc [class*="text-indigo-"] {
  color: var(--mh-ink) !important;
}

.mdoc [class*="text-gray-200"],
.mdoc [class*="text-gray-300"] {
  color: var(--mh-ink-soft) !important;
}

.mdoc [class*="text-gray-400"] {
  color: var(--mh-muted) !important;
}

.mdoc table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--mh-rule) !important;
  border-radius: 8px;
  overflow: hidden;
}

.mdoc thead {
  background: var(--mh-paper-2) !important;
}

.mdoc thead th {
  color: var(--mh-ink) !important;
  font-weight: 600;
}

.mdoc th,
.mdoc td {
  border-color: var(--mh-rule) !important;
  color: var(--mh-ink-soft);
}

.mdoc tbody tr {
  border-color: var(--mh-rule) !important;
}

/* About page (existing markup, light-theme remap) */
.mkt-about {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.75rem 0 3.25rem;
}

.mkt-about .title-grad {
  font-family: var(--mh-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--mh-ink);
}

.mkt-about .h2,
.mkt-about .h3 {
  font-family: var(--mh-serif);
  color: var(--mh-ink) !important;
  font-weight: 600;
}

.mkt-about .card,
.mkt-about [class*="bg-gray-900"] {
  background: #fff !important;
  border-color: var(--mh-rule) !important;
  color: var(--mh-ink);
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.06);
}

.mkt-about [class*="text-gray-"],
.mkt-about .prose-readable {
  color: var(--mh-ink-soft) !important;
}

.mkt-about [class*="text-indigo-"] {
  color: var(--mh-ink) !important;
}

.mkt-about header > p.inline-flex {
  background: transparent !important;
  border: none !important;
  color: var(--mh-accent) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 !important;
  border-radius: 0;
}

.mkt-about .pill {
  border-radius: 6px;
}

.mkt-about .pill--accent {
  background: var(--mh-accent);
  border-color: var(--mh-accent);
  color: #fff;
  box-shadow: none;
}

.mkt-about .pill--ghost {
  background: transparent;
  color: var(--mh-ink);
  border-color: rgba(20, 32, 51, 0.28);
}

.mkt-about .badge {
  background: var(--mh-accent-soft);
  border-color: transparent;
  color: var(--mh-accent);
}

.mkt-about table thead {
  color: var(--mh-muted);
}

.mkt-about table tbody {
  color: var(--mh-ink-soft);
}

.mkt-about table tr {
  border-color: var(--mh-rule) !important;
}

.mkt-about [class*="bg-indigo-500"],
.mkt-about [class*="border-indigo-500"] {
  background: var(--mh-accent-soft) !important;
  border-color: rgba(31, 106, 90, 0.22) !important;
}

.mkt-about aside nav a:hover {
  color: var(--mh-accent) !important;
}

.mkt-about aside .sticky {
  top: 5.5rem;
}

.mkt-about-cta {
  padding: 2.5rem 1.25rem;
  border-radius: 10px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.55)),
    var(--mh-paper-2);
}

.mkt-about-cta .mh-cta {
  justify-content: center;
}

.mh-product-frame--pad {
  padding: 1.35rem 1.4rem 1.45rem;
}

.mh-product-frame--pad .mh-section-copy {
  margin-top: 0.35rem;
}

.mkt-page .mh-hero-grid {
  min-height: 0;
  grid-template-columns: 1fr;
  padding-bottom: 3.25rem;
}

@media (min-width: 860px) {
  .mkt-page .mh-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.mkt-feature-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.mkt-feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-top: 1px solid var(--mh-rule);
  color: var(--mh-ink-soft);
  line-height: 1.45;
}

.mkt-feature-list li:last-child {
  border-bottom: 1px solid var(--mh-rule);
}

.mkt-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mh-accent);
}

/* Sign-in */
.mkt-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 3rem;
}

.mkt-auth-card {
  width: min(28rem, 100%);
  padding: 1.75rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--mh-rule);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(20, 32, 51, 0.08);
  text-align: center;
}

.mkt-auth-card h1 {
  margin: 0;
  font-family: var(--mh-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--mh-ink);
}

.mkt-auth-card h1 + p {
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.mkt-auth-card p,
.mkt-auth-card label {
  color: var(--mh-ink-soft);
}

.mkt-auth-card .mkt-auth-tabs {
  display: inline-flex;
  margin: 1.15rem 0 1.25rem;
  padding: 0.2rem;
  border: 1px solid var(--mh-rule);
  border-radius: 999px;
  background: var(--mh-paper-2);
}

.mkt-auth-card .mkt-auth-tabs button {
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mh-muted);
  font-weight: 600;
  cursor: pointer;
}

.mkt-auth-card .mkt-auth-tabs button.is-active {
  background: var(--mh-accent);
  color: #fff;
}

.mkt-auth-card input[type="email"],
.mkt-auth-card input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--mh-rule);
  background: #fff;
  color: var(--mh-ink);
}

.mkt-auth-card input:focus {
  outline: none;
  border-color: var(--mh-accent);
  box-shadow: 0 0 0 3px var(--mh-accent-soft);
}

.mkt-auth-card .btn,
.mkt-auth-card button.btn {
  border-radius: 6px;
}

.mkt-auth-card #googleBtn {
  background: var(--mh-accent) !important;
  border: 1px solid var(--mh-accent);
  color: #fff !important;
}

.mkt-auth-card #emailSubmitBtn {
  background: var(--mh-ink) !important;
  color: #fff !important;
}

.mkt-auth-card #forgotPasswordBtn {
  color: var(--mh-accent) !important;
}

.mkt-auth-card [class*="border-gray-700"] {
  border-color: var(--mh-rule) !important;
}

.mkt-auth-card [class*="text-gray-"] {
  color: var(--mh-muted) !important;
}
