/* ============================================================
   Tógáil Marketing — BASE
   Variables, theme plumbing, nav, footer, pricing, interest form
   ============================================================ */

:root {
  /* Brand palette */
  --moss:   #1E5631;
  --moss-2: #2A7A45;
  --copper: #B87333;
  --copper-2: #D4915A;
  --stone:  #2D3436;
  --cream:  #FAF8F5;
  --sand:   #E8DDD0;
  --sand-2: #F2EADE;
  --slate:  #636E72;
  --white:  #FFFFFF;

  /* Semantic (light) */
  --bg:            var(--cream);
  --bg-elev:       var(--white);
  --bg-inset:      #F2EADE;
  --bg-inverse:    var(--stone);
  --bg-brand:      var(--moss);
  --fg:            var(--stone);
  --fg-2:          #53595B;
  --fg-3:          #7F868A;
  --fg-on-brand:   var(--white);
  --fg-on-inverse: var(--cream);
  --accent:        var(--moss);
  --accent-ink:    #153D22;
  --copper-ink:    #8A551F;
  --border:        rgba(45,52,54,0.10);
  --border-soft:   rgba(45,52,54,0.06);
  --border-strong: rgba(45,52,54,0.18);

  --logo-t:     var(--moss);
  --logo-word:  var(--stone);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(45,52,54,0.06), 0 1px 3px rgba(45,52,54,0.04);
  --shadow-lg: 0 24px 60px rgba(45,52,54,0.12), 0 4px 12px rgba(45,52,54,0.06);
  --shadow-brand: 0 16px 40px rgba(30,86,49,0.22);

  /* Type */
  --f-display: 'Crimson Pro', Georgia, serif;
  --f-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---------- Hero-card recipe (synced with the app redesign) ----------
     A refined, barely-lifted surface: warm cream gradient with a copper
     bloom in light; sober stone gradient with a copper bloom in dark.
     Used for the marketing hero "screenshot" and feature surfaces so the
     site reads as the same product as the app. */
  --hero-bg:      linear-gradient(45deg, #F2EFE8 0%, #E8ECDC 100%);
  --hero-bloom:   radial-gradient(circle at 8% 92%, rgba(184,115,51,0.16) 0%, transparent 55%);
  --hero-border:  1px solid rgba(45,52,54,0.10);
  --hero-shadow:  0 4px 24px rgba(45,52,54,0.06);
  --hero-text-1:  var(--fg);
  --hero-text-2:  #53595B;
  --hero-text-3:  rgba(45,52,54,0.55);
  --hero-eyebrow: var(--fg);
  --hero-cta-bg:  var(--moss);
}

[data-theme="dark"] {
  /* Synced to the app redesign tokens (01-app-redesign/phase1/colors_and_type.css):
     page #1A1E1F · surface #252A2C · subtle #2D3436 · text #EDEAE4.
     Dark mode collapses moss → copper ("industrial monochromatic"). */
  --bg:            #1A1E1F;
  --bg-elev:       #252A2C;
  --bg-inset:      #2D3436;
  --bg-inverse:    #0F1314;
  --bg-brand:      var(--copper);
  --fg:            #EDEAE4;
  --fg-2:          #9BA3A4;
  --fg-3:          rgba(237,234,228,0.35);
  --fg-on-brand:   #1A1E1F;
  --fg-on-inverse: var(--cream);
  --accent:        var(--copper);
  --accent-ink:    #E4A878;
  --copper-ink:    #E4A878;
  --border:        rgba(237,234,228,0.10);
  --border-soft:   rgba(237,234,228,0.06);
  --border-strong: rgba(237,234,228,0.16);

  --logo-t:     var(--copper);
  --logo-word:  var(--cream);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-brand: 0 8px 24px rgba(184,115,51,0.32);

  /* Hero recipe — dark: stone gradient, copper bloom top-right. */
  --hero-bg:      linear-gradient(135deg, #2D3436 0%, #232729 100%);
  --hero-bloom:   radial-gradient(circle at 92% 8%, rgba(184,115,51,0.18) 0%, transparent 55%);
  --hero-border:  1px solid rgba(255,255,255,0.06);
  --hero-shadow:  0 8px 24px rgba(0,0,0,0.40);
  --hero-text-1:  #fff;
  --hero-text-2:  rgba(255,255,255,0.72);
  --hero-text-3:  rgba(255,255,255,0.55);
  --hero-eyebrow: rgba(255,255,255,0.65);
  --hero-cta-bg:  var(--copper);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); letter-spacing: -0.012em; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; }
p { max-width: 60ch; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  font-size: 1.0625rem;
  color: var(--fg-2);
  max-width: 52ch;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: var(--fg-on-brand);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--fg);
  background: var(--bg-elev);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-2);
}
.btn--ghost:hover {
  color: var(--fg);
  background: var(--bg-elev);
}
.btn--large {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 8px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo-img {
  display: block;
  height: 36px; /* matches the app top-nav BrandLogo (size "small" = 36px) */
  width: auto;
}
.logo--footer .logo-img { height: 30px; }

.logo-img--dark { display: none; }
[data-theme="dark"] .logo-img--light { display: none; }
[data-theme="dark"] .logo-img--dark  { display: block; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg-2);
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__link:hover {
  color: var(--fg);
  background: var(--bg-elev);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: transparent;
  color: var(--fg-2);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover { color: var(--fg); background: var(--bg-elev); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav__mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--fg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open { display: block; }
.mobile-menu__links {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.mobile-menu__link {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  border-radius: 8px;
}
.mobile-menu__link:hover { background: var(--bg-elev); }
.mobile-menu__actions {
  display: flex; flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- Direction (product-first) ---------- */
.dir { display: none; }
body[data-dir="product"] .dir--product { display: block; }

/* ---------- Pricing (shared) ---------- */
.pricing {
  background: var(--bg);
  padding: 48px 0 80px;
}
.pricing .section-header { text-align: center; margin-inline: auto; }
.pricing .section-label { margin-inline: auto; }

/* Teaser: pricing intentionally withheld until founding cohort is confirmed.
   Replaces the three-card grid while keeping the #pricing anchor live. */
.pricing-teaser {
  max-width: 760px;
  margin-inline: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 64px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.pricing-teaser__eyebrow {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.pricing-teaser__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--fg);
  margin: 0 auto 20px;
  max-width: 16ch;
}
.pricing-teaser__lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 52ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.pricing-teaser__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px auto 44px;
  max-width: 620px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing-teaser__notes > div {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.pricing-teaser__notes > div:last-child { border-right: 0; }
.pricing-teaser__notes dt {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3, var(--fg-2));
  margin-bottom: 8px;
}
.pricing-teaser__notes dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--fg);
  text-wrap: balance;
}
.pricing-teaser__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pricing-teaser__cta .btn { display: inline-flex; align-items: center; gap: 10px; }
.pricing-teaser__meta {
  font-size: 0.8125rem;
  color: var(--fg-2);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1080px;
  margin-inline: auto;
}
.pricing-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px 28px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--fg-on-brand);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-card__name {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--fg-2);
  margin-bottom: 18px;
}
.pricing-card__price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 4px;
}
.pricing-card__amount {
  font-family: var(--f-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.pricing-card__period { font-size: 0.875rem; color: var(--fg-2); }
.pricing-card__divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}
.pricing-card__features {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-card__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9375rem;
  color: var(--fg);
}
.pricing-card__features li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--accent);
}
.pricing-card .btn { width: 100%; }

/* ---------- Register interest (shared) ---------- */
.interest {
  background: var(--bg-inset);
  padding: 48px 0 80px;
  position: relative;
}
.interest__inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 80px;
  align-items: start;
}
.interest__title {
  margin-bottom: 18px;
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  max-width: 16ch;
}
.interest__lede {
  font-size: 1.0625rem;
  color: var(--fg-2);
  margin-bottom: 36px;
  max-width: 44ch;
}
.interest__perks {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 18px;
}
.interest__perks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
}
.interest__perks svg {
  width: 20px; height: 20px;
  color: var(--accent);
  margin-top: 3px;
}
.interest__perks strong {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg);
  margin-bottom: 2px;
}
.interest__perks span {
  font-size: 0.9375rem;
  color: var(--fg-2);
}

.interest__form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.interest__form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.interest__form-tag {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
}
.interest__form-meta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-2);
}
.field input,
.field select {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23636E72' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23B0A898' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.interest__submit {
  margin-top: 8px;
  width: 100%;
}
.interest__fineprint {
  font-size: 0.8125rem;
  color: var(--fg-3);
  text-align: center;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 0.9375rem;
  color: var(--fg-2);
  margin-top: 18px;
  max-width: 34ch;
  line-height: 1.55;
}
.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px !important;
  font-size: 0.8125rem !important;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.footer__made-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.footer__col h4 {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg);
  margin-bottom: 16px;
}
.footer__col ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 9px;
}
.footer__col a {
  font-size: 0.9375rem;
  color: var(--fg-2);
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__copyright {
  font-size: 0.8125rem;
  color: var(--fg-2);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  font-size: 0.8125rem;
  color: var(--fg-2);
}
.footer__legal a:hover { color: var(--fg); }

/* ---------- Scroll reveal ---------- */
/* Only hide content when JS has marked the document as enabled — guarantees
   above-the-fold content renders even if the observer is slow to attach. */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal,
  html.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- Focus ---------- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 200;
  font-family: var(--f-body);
}
.tweaks__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tweaks__header strong {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 600;
}
.tweaks__hint {
  font-size: 0.75rem;
  color: var(--fg-3);
}
.tweaks__group {
  margin-bottom: 12px;
}
.tweaks__group:last-child { margin-bottom: 0; }
.tweaks__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.tweaks__options {
  display: flex;
  gap: 4px;
  background: var(--bg-inset);
  padding: 3px;
  border-radius: 8px;
}
.tweaks__options button {
  flex: 1;
  padding: 7px 6px;
  border: none;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.tweaks__options button:hover { color: var(--fg); }
.tweaks__options button.is-active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Mini-mockups (shared — used in feature previews) ---------- */
.mm { width: 100%; display: flex; flex-direction: column; gap: 8px; font-family: var(--f-body); }

/* — developer dashboard — */
.mm__bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 6px 10px;
}
.mm__brand { font-family: var(--f-display); font-weight: 600; font-size: 12px; color: var(--fg); margin-right: 2px; }
.mm__tab { font-size: 10px; font-weight: 500; color: var(--fg-2); padding: 3px 8px; border-radius: 5px; }
.mm__tab.is-active { background: var(--bg-inset); color: var(--fg); font-weight: 600; }
.mm__avatar {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--fg-on-brand);
  font-size: 8.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.mm__hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg);
  border: var(--hero-border);
  border-radius: 10px;
  box-shadow: var(--hero-shadow);
  padding: 12px 14px;
  color: var(--hero-text-1);
}
.mm__hero-bloom { position: absolute; inset: 0; background: var(--hero-bloom); pointer-events: none; }
.mm__hero-inner { position: relative; }
.mm__eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--hero-eyebrow); margin-bottom: 6px;
}
.mm__eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mm__htitle { font-family: var(--f-display); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--hero-text-1); margin-bottom: 9px; }
.mm__track { height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--hero-text-1) 14%, transparent); overflow: hidden; }
.mm__track span { display: block; height: 100%; background: var(--hero-cta-bg); border-radius: 3px; }
.mm__rows { display: flex; flex-direction: column; gap: 6px; }
.mm__row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 8px 10px;
  font-size: 11px; color: var(--fg);
}
.mm__row strong { font-weight: 600; }
.mm__row em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--fg-3); }
.mm__rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); flex-shrink: 0; }
.mm__row.mm--copper { background: color-mix(in oklab, var(--copper) 7%, transparent); border-color: color-mix(in oklab, var(--copper) 24%, transparent); }
.mm__row.mm--copper .mm__rdot { background: var(--copper); }

/* — contractor tasks — */
.mm--tasks { gap: 7px; }
.mm__phdr { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 2px 4px; }
.mm__phdr strong { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--fg); }
.mm__phdr span { font-size: 10px; color: var(--fg-2); font-family: var(--f-mono); }
.mm__task {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 9px 11px;
}
.mm__task > div { display: flex; flex-direction: column; gap: 1px; }
.mm__task strong { font-size: 11.5px; font-weight: 600; color: var(--fg); }
.mm__task span { font-size: 10px; color: var(--fg-2); }
.mm__check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; color: transparent;
}
.mm__task.is-next .mm__check { background: var(--accent); border-color: transparent; color: #fff; }
.mm__task.is-next .mm__check svg { width: 11px; height: 11px; }

/* — customer timeline — */
.mm--timeline { gap: 0; padding-left: 4px; }
.mm__ms { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; position: relative; }
.mm__ms:last-child { padding-bottom: 0; }
.mm__ms::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: var(--border); }
.mm__ms:last-child::before { display: none; }
.mm__msdot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--bg-inset);
  flex-shrink: 0; margin-top: 1px; z-index: 1;
}
.mm__ms.is-done .mm__msdot { background: var(--accent); border-color: var(--accent); }
.mm__ms.is-active .mm__msdot { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in oklab, var(--copper) 22%, transparent); }
.mm__ms > div { display: flex; flex-direction: column; gap: 1px; }
.mm__ms strong { font-size: 11.5px; font-weight: 600; color: var(--fg); }
.mm__ms:not(.is-done):not(.is-active) strong { color: var(--fg-2); }
.mm__ms em { font-style: normal; font-size: 10px; color: var(--fg-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .interest__inner { grid-template-columns: 1fr; gap: 48px; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .pricing { padding: 80px 0; }
  .pricing-teaser { padding: 48px 28px; border-radius: 20px; }
  .pricing-teaser__notes { grid-template-columns: 1fr; margin: 36px auto 32px; }
  .pricing-teaser__notes > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px 8px;
  }
  .pricing-teaser__notes > div:last-child { border-bottom: 0; }
  .interest { padding: 80px 0; }
  .nav__links,
  .nav__actions .btn--ghost,
  .nav__actions .btn--primary { display: none; }
  .nav__mobile-toggle { display: inline-flex; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pricing-card--featured { transform: none; order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Match the app (PR #405): on very narrow screens shrink the nav wordmark so the
   logo + nav controls clear the viewport without a 2px horizontal page scroll. */
@media (max-width: 360px) {
  .logo--nav .logo-img { height: 28px; }
}

/* ============================================================
   MailerLite embedded waitlist form — themed to match the site.
   MailerLite's own <style> blocks are stripped from the embed;
   fields reuse .field / .btn--primary via classes in the markup,
   so inputs and the submit button inherit the themed styling.
   Scoped to #mailerlite-form (our wrapper) — not the volatile
   #mlb2-* id — so it survives form regeneration.
   ============================================================ */
#mailerlite-form .ml-form-embedContainer,
#mailerlite-form .ml-form-align-center,
#mailerlite-form .ml-form-embedWrapper,
#mailerlite-form .ml-form-embedBody,
#mailerlite-form .ml-block-form,
#mailerlite-form .ml-form-formContent { width: 100%; }

#mailerlite-form .ml-form-fieldRow { margin-bottom: 14px; }
#mailerlite-form .ml-form-fieldRow.ml-last-item { margin-bottom: 0; }

/* Privacy statement (small print beneath the fields) */
#mailerlite-form .ml-form-embedPermissions { margin: 16px 0; }
#mailerlite-form .ml-form-embedPermissions p {
  font-size: 0.75rem; line-height: 1.5; color: var(--fg-3); max-width: none;
}
#mailerlite-form .ml-form-embedPermissions a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}

/* Consent checkbox */
#mailerlite-form .ml-form-checkboxRow { margin-bottom: 16px; }
#mailerlite-form .ml-form-checkboxRow label.checkbox {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 0;
}
#mailerlite-form .ml-form-checkboxRow input[type="checkbox"] {
  flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent);
}
#mailerlite-form .ml-form-checkboxRow .label-description p {
  font-size: 0.8125rem; line-height: 1.5; color: var(--fg-2); max-width: none;
}

/* reCAPTCHA spacing */
#mailerlite-form .ml-form-recaptcha { margin-bottom: 16px; }

/* Submit loading state + spinner */
#mailerlite-form .ml-form-embedSubmit button.loading { display: none; }
#mailerlite-form .ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
#mailerlite-form .ml-form-embedSubmitLoad:after {
  content: " "; display: block; width: 11px; height: 11px; margin: 1px; border-radius: 50%;
  border: 3px solid var(--fg-on-brand);
  border-color: var(--fg-on-brand) var(--fg-on-brand) var(--fg-on-brand) transparent;
  animation: ml-spin 1.1s linear infinite;
}
@keyframes ml-spin { to { transform: rotate(360deg); } }
#mailerlite-form .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Validation error state (MailerLite adds .ml-error) */
#mailerlite-form .ml-error input,
#mailerlite-form .ml-error select { border-color: #C03C3C !important; }
#mailerlite-form .ml-error .label-description p,
#mailerlite-form .ml-error label:first-child { color: #C03C3C; }

/* Success state (shown after submit) */
#mailerlite-form .ml-form-successContent { padding: 8px 0; }
#mailerlite-form .ml-form-successContent h4 {
  font-family: var(--f-display); font-size: 1.25rem; color: var(--fg); margin-bottom: 8px;
}
#mailerlite-form .ml-form-successContent p {
  font-size: 0.9375rem; color: var(--fg-2); max-width: none;
}
