/* Self-hosted InterVariable (brand spec) — replaces the Google Fonts import. */
@font-face {
  font-family: "InterVariable";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* team.help marketing site — shared styles.
   Duplicated from the Agent marketing sheet (public/css/marketing.css) rather
   than shared, per the repo's no-shared-code-across-deploy-targets rule —
   team.help is served from its own nginx root, independent of motlogs/Agent.
   The neutral skeleton (bg, surfaces, borders, radii, type, status colours)
   and the four-palette accent axis below are BYTE-IDENTICAL to that source
   file by design (plan §3.3b) — do not fork the tokens, only the brand-
   specific chrome (nav lockup, footer) has been removed below. */

:root {
  /* ── Canonical MOTLogs brand tokens (dark) — duplicated per repo, see brand spec ── */
  --ml-bg: #121212;
  --ml-surface-1: #1E1E1E;
  --ml-surface-2: #242424;
  --ml-surface-3: #2A2A2A;
  --ml-accent: #FF5432;
  --ml-accent-hover: #FF7A5E;
  --ml-accent-glow: rgba(255, 84, 50, 0.15);
  --ml-text: #FFFFFF;
  --ml-text-secondary: #A0A0A0;
  --ml-text-muted: #707070;
  --ml-border: rgba(255, 255, 255, 0.08);
  --ml-border-strong: rgba(255, 255, 255, 0.15);
  --ml-success: #26B050;
  --ml-warning: #F39C12;
  --ml-error: #E74C3C;
  --ml-info: #3B82F6;

  /* Marketing tokens point at the canonical set. */
  --bg-primary: var(--ml-bg);
  --bg-surface: var(--ml-surface-1);
  --bg-elevated: var(--ml-surface-2);
  --bg-card: var(--ml-surface-1);
  --accent: var(--ml-accent);
  --accent-hover: var(--ml-accent-hover);
  --accent-glow: var(--ml-accent-glow);
  --text-primary: var(--ml-text);
  --text-secondary: var(--ml-text-secondary);
  --text-muted: var(--ml-text-muted);
  --border: var(--ml-border);
  --border-strong: var(--ml-border-strong);
  --success: var(--ml-success);
  --warning: var(--ml-warning);
  --error: var(--ml-error);
  --info: var(--ml-info);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --transition: 180ms ease;
}

html[data-theme="light"] {
  /* ── Canonical MOTLogs brand tokens (light) ── */
  --ml-bg: #F9FAFB;
  --ml-surface-1: #FFFFFF;
  --ml-surface-2: #F1F3F5;
  --ml-surface-3: #F1F3F5;
  --ml-accent: #CC3415;
  --ml-accent-hover: #A82A10;
  --ml-accent-glow: rgba(204, 52, 21, 0.10);
  --ml-text: #1A1A1A;
  --ml-text-secondary: #525252;
  --ml-text-muted: #8B8B8B;
  --ml-border: rgba(0, 0, 0, 0.08);
  --ml-border-strong: rgba(0, 0, 0, 0.15);
  --ml-success: #1D8A3D;
  --ml-warning: #C77A0D;
  --ml-error: #C0392B;
  --ml-info: #2563EB;
}

* { box-sizing: border-box; }
/* Never allow horizontal scroll on mobile. `clip` (not `hidden`) so the sticky nav
   keeps working — `overflow:hidden` on an ancestor of a position:sticky element breaks it. */
html, body { overflow-x: clip; max-width: 100%; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "InterVariable","Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { line-height: 1.65; color: var(--text-secondary); margin: 0 0 1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ───── Nav ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
}
.nav-logo span { color: var(--accent); }
.nav-login { color: var(--text-secondary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-login:hover { color: var(--text-primary); }
.nav-logo { text-transform: none; letter-spacing: -0.01em; font-size: 1.15rem; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  height: 36px;
  width: 36px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.theme-toggle:hover { background: var(--bg-elevated); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* Mobile nav — collapses into a <details> element, CSS only */
.nav-burger { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-actions > .btn-ghost { display: none; }
  .nav-burger { display: block; position: relative; }
  .nav-burger summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 10px;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
  }
  .nav-burger summary::-webkit-details-marker { display: none; }
  .nav-burger[open] .nav-burger-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  }
  .nav-burger a { color: var(--text-primary); padding: 6px 4px; }
}

/* ───── Sections ───── */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ───── Hero ───── */
.hero { padding: 96px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
/* Grid 1fr tracks default to min-content width, so an unbreakable item (the big
   wordmark) can force the track — and the page — wider than the viewport on mobile.
   min-width:0 lets the tracks shrink; overflow-wrap breaks the wordmark if needed. */
.hero-grid > * { min-width: 0; }
.hero-wordmark { overflow-wrap: anywhere; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero p.lead { font-size: 1.15rem; color: var(--text-secondary); max-width: 32em; }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.trust-pills { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.trust-pills span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Hero mockup — inline SVG styled here */
.hero-mock {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.hero-mock::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
@media (max-width: 520px) { .hero-mock { grid-template-columns: 1fr; } }

.mock-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 240px;
  font-size: 0.85rem;
}
.mock-panel h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-panel h4::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.mock-line { padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text-secondary); }
.mock-line:last-child { border-bottom: 0; }
.mock-line strong { color: var(--text-primary); font-weight: 600; }
.mock-bubble {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  color: var(--text-primary);
  max-width: 85%;
}
.mock-bubble.me { background: var(--accent); color: #fff; margin-left: auto; }
.mock-wave {
  display: flex; gap: 2px; align-items: flex-end; height: 24px;
}
.mock-wave i {
  display: inline-block; width: 3px; background: currentColor; border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}
.mock-wave i:nth-child(2) { animation-delay: 0.1s; }
.mock-wave i:nth-child(3) { animation-delay: 0.2s; }
.mock-wave i:nth-child(4) { animation-delay: 0.3s; }
.mock-wave i:nth-child(5) { animation-delay: 0.4s; }
.mock-wave i:nth-child(6) { animation-delay: 0.5s; }

/* ───── Powered-by strip ───── */
.powered {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-surface);
}
.powered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) { .powered-grid { grid-template-columns: 1fr; } }
.powered-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.powered-item span { font-size: 0.85rem; color: var(--text-muted); }

/* ───── Feature teaser cards ───── */
.features-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Four-up variant (how-it-works steps). Use this class rather than an inline
   grid-template-columns: an inline style outranks every rule below, including the
   mobile collapse, which is exactly how the four step cards ended up squeezed into
   four unreadable columns on phones instead of stacking. */
.features-preview-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* Both selectors are listed so the collapse matches .cols-4's specificity (0,2,0) and,
   coming later, wins. Dropping the second selector would silently un-fix the four-up grid. */
@media (max-width: 860px) {
  .features-preview-grid,
  .features-preview-grid.cols-4 { grid-template-columns: 1fr; }
}
.fcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.fcard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.fcard h3 { color: var(--text-primary); margin-bottom: 8px; }
.fcard p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }

/* ───── Bento grid (features page) ───── */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } }

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  position: relative;
}
.bento-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.bento-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.bento-card p { font-size: 0.95rem; margin: 0; }
.bento-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}
.bento-card .tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
@media (max-width: 1000px) {
  .bento-lg, .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: auto; }
}
@media (max-width: 560px) {
  .bento-lg, .bento-wide, .bento-tall { grid-column: auto; grid-row: auto; }
}

/* ───── Pricing ───── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card.featured { border-color: var(--accent); position: relative; }
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-tier-name { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.price-tier-amount { font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.price-tier-amount small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.price-tier-meta { font-size: 0.85rem; color: var(--text-secondary); }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { color: var(--text-secondary); font-size: 0.95rem; padding-left: 22px; position: relative; }
.price-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* ───── FAQ ───── */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--transition);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

/* ───── About ───── */
.about-hero h1 { max-width: 14ch; }
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.value-card h3 { color: var(--text-primary); font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { margin: 0; font-size: 0.95rem; }

.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stack-chips span {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ───── CTA band ───── */
.cta-band {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin: 40px 0;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 50ch; margin: 0 auto 28px; }

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid li a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-grid li a:hover { color: var(--text-primary); }
.footer-tag { color: var(--text-primary); font-weight: 700; font-size: 1.05rem; }
.footer-small {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================================================
 * team.help palette axis (plan §3.3b) — PURELY ADDITIVE, gated behind
 * [data-palette]. MOTLogs sets NO data-palette attribute, ever, so none of
 * the blocks below can match a MOTLogs surface — the :root{…} and
 * html[data-theme="light"]{…} blocks at the top of this file remain the sole
 * source of truth for MOTLogs and are intentionally left byte-untouched.
 *
 * The neutral skeleton (bg, surfaces, borders, radii, type, status colours)
 * is DELIBERATELY inherited unchanged from :root above — identical to
 * MOTLogs — so the palette axis swaps ONLY the accent triplet
 * (--ml-accent / --ml-accent-hover / --ml-accent-glow, which the marketing
 * surface maps to --accent / --accent-hover / --accent-glow) plus the
 * brand-level WCAG fixes below. Glow = the accent as rgba at 0.15 (dark) /
 * 0.10 (light).
 * ===================================================================== */

/* Brand-level WCAG fixes — apply to ALL four team.help palettes (any
   data-palette value matches); MOTLogs never matches. */
:root[data-palette] {
    --ml-text-muted:  #949494;   /* team.help dark muted (MOTLogs keeps #707070) */
    --ml-reading:     #D6D6D6;   /* long-form dark reading text */
}
html[data-theme="light"][data-palette] {
    --ml-text-muted:  #6B6B6B;
}

/* Primary-button ink. This surface hard-codes white ink on .btn-primary
   (there is no ink token to remap), so the team.help ink fix is applied by
   selector, still gated behind [data-palette] so MOTLogs is untouched: dark
   buttons take #121212 ink, light buttons keep #FFFFFF. */
:root[data-palette] .btn-primary,
:root[data-palette] .btn-primary:hover {
    color: #121212;
}
html[data-theme="light"][data-palette] .btn-primary,
html[data-theme="light"][data-palette] .btn-primary:hover {
    color: #FFFFFF;
}

/* Per-palette accent triplets — override ONLY the accent trio. */
/* harbor */
:root[data-palette="harbor"] {
    --ml-accent:       #4C8DFF;
    --ml-accent-hover: #7AAEFF;
    --ml-accent-glow:  rgba(76, 141, 255, 0.15);
}
html[data-theme="light"][data-palette="harbor"] {
    --ml-accent:       #1D4ED8;
    --ml-accent-hover: #1E40AF;
    --ml-accent-glow:  rgba(29, 78, 216, 0.10);
}
/* evergreen */
:root[data-palette="evergreen"] {
    --ml-accent:       #14B8A6;
    --ml-accent-hover: #2DD4BF;
    --ml-accent-glow:  rgba(20, 184, 166, 0.15);
}
html[data-theme="light"][data-palette="evergreen"] {
    --ml-accent:       #0F766E;
    --ml-accent-hover: #115E59;
    --ml-accent-glow:  rgba(15, 118, 110, 0.10);
}
/* indigo */
:root[data-palette="indigo"] {
    --ml-accent:       #818CF8;
    --ml-accent-hover: #A5B4FC;
    --ml-accent-glow:  rgba(129, 140, 248, 0.15);
}
html[data-theme="light"][data-palette="indigo"] {
    --ml-accent:       #4F46E5;
    --ml-accent-hover: #4338CA;
    --ml-accent-glow:  rgba(79, 70, 229, 0.10);
}
/* damson */
:root[data-palette="damson"] {
    --ml-accent:       #E879F9;
    --ml-accent-hover: #F0ABFC;
    --ml-accent-glow:  rgba(232, 121, 249, 0.15);
}
html[data-theme="light"][data-palette="damson"] {
    --ml-accent:       #86198F;
    --ml-accent-hover: #701A75;
    --ml-accent-glow:  rgba(134, 25, 143, 0.10);
}

/* =====================================================================
 * team.help marketing-only components (not present in the Agent sheet):
 * hero wordmark, the theme-story palette picker, and the contact grid.
 * ===================================================================== */

.hero-wordmark { font-weight: 800; font-size: clamp(2.75rem, 8vw, 4.25rem); letter-spacing: -0.03em; line-height: 1; color: var(--text-primary); margin-bottom: 20px; }
.hero-wordmark span { color: var(--accent); }

.palette-story {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 860px) { .palette-story { grid-template-columns: 1fr; padding: 28px; } }
.palette-swatches { display: flex; flex-direction: column; gap: 12px; }
.palette-swatch-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 16px; cursor: pointer; font: inherit; text-align: left; color: var(--text-primary);
  transition: border-color var(--transition), transform var(--transition);
}
.palette-swatch-row:hover { border-color: var(--border-strong); transform: translateX(2px); }
.palette-swatch-row[aria-pressed="true"] { border-color: var(--accent); }
.palette-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--border-strong); }
.dot-harbor { background: #4C8DFF; } .dot-evergreen { background: #14B8A6; }
.dot-indigo { background: #818CF8; } .dot-damson { background: #E879F9; }
.palette-swatch-row strong { font-weight: 600; font-size: 0.95rem; }
.palette-swatch-row span.desc { color: var(--text-muted); font-size: 0.8rem; display: block; }
.theme-toggle-inline {
  margin-top: 6px; align-self: flex-start;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-primary);
  border-radius: var(--radius-sm); padding: 8px 14px; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.theme-toggle-inline:hover { background: var(--bg-elevated); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px;
}
.contact-card h3 { color: var(--text-primary); margin-bottom: 8px; }
.contact-card p { margin: 0 0 6px; }
.contact-card a.big-link { font-size: 1.1rem; font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------------------
   Contact form (contact.html). Everything here resolves through the SAME
   tokens as the rest of the site — --accent / --accent-glow are remapped per
   palette and per light/dark theme, so the fields follow the scheme exactly
   the way the login card and the buttons do. Nothing is hard-coded.

   (The first cut of this form used inline styles referencing --bg-input and
   --bg-secondary, neither of which exists on this sheet, so the fields fell
   through to no background and lost the accent entirely. Hence classes.)
   --------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-label .form-optional { color: var(--text-muted); font-weight: 400; }

.form-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-input::placeholder { color: var(--text-muted); opacity: 1; }
.form-input:hover { border-color: var(--border-strong); }

/* The accent ring is the whole point — it is what makes this read as the same
   family as the sign-in field. --accent-glow is already the accent at 15% dark
   / 10% light, so the halo tracks the palette without a second variable. */
.form-input:focus,
.form-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input[aria-invalid="true"] { border-color: var(--error); }
.form-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

textarea.form-input { resize: vertical; min-height: 120px; }

.form-error { margin: 6px 0 0; font-size: 0.85rem; color: var(--error); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--error); }
.form-note { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

/* Honeypot: off-screen for people, present for bots. Never display:none — some
   bots skip hidden inputs, which defeats the point. */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
