/* ---- Contact page (app/templates/contact.html) ----
   The sales poster (docs/marketing/muhtelix-poster.html) rebuilt as live,
   clickable HTML. Colour keeps the poster's meaning: green is what Muhtelix
   does, yellow is what the customer gets or does. Unlike the standalone
   poster file, this page follows the site theme, so the palette has a dark
   variant below. All selectors are scoped under .cx-page / .cx-* so nothing
   leaks into landing.css's shared lp-* rules. */

.cx-page {
  --cx-mint: #E9F7F0;
  --cx-mint-2: #C9EBDB;
  --cx-mint-3: #7FD3B3;
  --cx-green: #22A77A;
  --cx-deep: #17694F;
  --cx-sun: #FFC83D;
  --cx-sun-soft: #FFF3CF;
  --cx-ink: #14212B;
  --cx-on-green: #FFFFFF;
  --cx-card: var(--surface);
  --cx-line: var(--border);
  --cx-heading: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cx-page {
    --cx-mint: #17302A;
    --cx-mint-2: #23493E;
    --cx-mint-3: #2F7A60;
    --cx-green: #2FB386;
    --cx-deep: #7FD3B3;
    --cx-sun-soft: #3A3220;
  }
}

:root[data-theme="dark"] .cx-page {
  --cx-mint: #17302A;
  --cx-mint-2: #23493E;
  --cx-mint-3: #2F7A60;
  --cx-green: #2FB386;
  --cx-deep: #7FD3B3;
  --cx-sun-soft: #3A3220;
}

.cx-page h1,
.cx-page h2,
.cx-page h3 {
  font-family: var(--cx-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.cx-page p,
.cx-page ul,
.cx-page ol {
  margin: 0;
}

.cx-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.cx-section {
  padding: 36px 0;
}

.cx-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cx-tag {
  display: inline-block;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--cx-deep);
  background: var(--cx-mint);
  padding: 6px 12px;
  border-radius: 999px;
}

.cx-tag-sun {
  color: var(--text);
  background: var(--cx-sun);
}

.cx-page :focus-visible {
  outline: 3px solid var(--cx-sun);
  outline-offset: 3px;
}

/* ---- Hero ---- */

.cx-hero {
  padding: 128px 0 32px;
}

.cx-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px 48px;
  align-items: center;
}

.cx-hero-grid > div {
  min-width: 0;
}

.cx-pitch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.cx-pitch h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  font-weight: 700;
}

.cx-pitch h1 em {
  font-style: normal;
  color: var(--cx-green);
}

.cx-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
}

.cx-email-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px !important;
}

.cx-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.cx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cx-green);
  color: var(--cx-on-green);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cx-btn span {
  overflow-wrap: anywhere;
}

.cx-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.cx-btn:hover {
  background: #17694F;
  color: var(--cx-on-green);
  transform: translateY(-1px);
}

/* ---- Funnel (each bar is a button that opens its pipeline step) ---- */

.cx-funnel {
  background: var(--cx-mint);
  border-radius: 24px;
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cx-funnel-bar {
  appearance: none;
  border: 0;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--cx-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cx-funnel-bar:hover,
.cx-funnel-bar.is-active {
  transform: scale(1.03);
  box-shadow: 0 0 0 3px var(--cx-green);
}

.cx-f1 { width: 100%; background: var(--surface); color: var(--text); }
.cx-f2 { width: 84%; background: var(--cx-mint-2); color: var(--text); }
.cx-f3 { width: 68%; background: var(--cx-mint-3); color: var(--text); }
.cx-f4 { width: 54%; min-width: 150px; background: var(--cx-green); color: var(--cx-on-green); }
.cx-f5 { width: 44%; min-width: 140px; background: var(--cx-sun); color: var(--cx-ink); }
.cx-f5:hover,
.cx-f5.is-active { box-shadow: 0 0 0 3px var(--cx-deep); }

.cx-dollar {
  font-family: var(--cx-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--cx-deep);
  margin-top: 6px;
}

/* ---- Intro line ---- */

.cx-intro-section {
  padding-top: 8px;
}

.cx-intro {
  font-family: var(--cx-heading);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  max-width: 40ch;
  border-left: 4px solid var(--cx-green);
  padding-left: 18px;
}

/* ---- Pipeline (tablist) ---- */

.cx-hint {
  margin-top: 10px !important;
  font-size: 15px;
  color: var(--text-muted);
}

.cx-pipe {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
  margin-top: 22px;
}

.cx-pipe::before {
  content: "";
  position: absolute;
  left: 8.3%;
  right: 8.3%;
  top: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--cx-mint-2) 0 80%, var(--cx-sun) 100%);
}

.cx-step {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 4px 10px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
  position: relative;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.cx-node {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--cx-mint);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--cx-mint-2);
  display: grid;
  place-items: center;
  color: var(--cx-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cx-node svg {
  width: 28px;
  height: 28px;
}

.cx-step-title {
  font-family: var(--cx-heading);
  font-size: 16px;
  font-weight: 600;
}

.cx-step-who {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.cx-step:hover .cx-node {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--cx-green);
}

.cx-step[aria-selected="true"] .cx-node {
  background: var(--cx-green);
  color: var(--cx-on-green);
  box-shadow: 0 0 0 3px var(--cx-green);
}

.cx-step-you .cx-node {
  background: var(--cx-sun);
  color: var(--cx-ink);
  box-shadow: 0 0 0 2px var(--cx-sun);
}

.cx-step-you[aria-selected="true"] .cx-node {
  background: var(--cx-sun);
  color: var(--cx-ink);
  box-shadow: 0 0 0 4px var(--cx-deep);
}

.cx-step-you .cx-step-who {
  color: var(--cx-ink);
  background: var(--cx-sun);
  padding: 2px 10px;
  border-radius: 999px;
}

.cx-panels {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.cx-panel {
  background: var(--cx-mint);
  border-radius: 18px;
  padding: 20px 24px;
  border-left: 5px solid var(--cx-green);
}

.cx-panel-you {
  background: var(--cx-sun-soft);
  border-left-color: var(--cx-sun);
}

.cx-panel h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cx-panel h3 small {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}

.cx-panel ul {
  margin-top: 10px !important;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 16px;
  line-height: 1.5;
}

/* With JS (contact.js adds .cx-js) only the selected panel shows; without
   JS every panel stays open so nothing is lost. */
.cx-js .cx-panel[hidden] {
  display: none;
}

.cx-js .cx-panel:not([hidden]) {
  animation: cx-fade-in 0.22s ease;
}

@keyframes cx-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---- Muhtelix does / you do ---- */

.cx-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.cx-card {
  border-radius: 22px;
  padding: 26px 26px 24px;
  min-width: 0;
}

.cx-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px !important;
}

.cx-card-us {
  background: var(--cx-card);
  border: 1px solid var(--cx-line);
}

.cx-card-you {
  background: var(--cx-sun-soft);
  display: flex;
  flex-direction: column;
}

.cx-checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
}

.cx-checks li {
  position: relative;
  padding-left: 32px;
}

.cx-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cx-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2322A77A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.cx-checks-you {
  counter-reset: cx-you;
}

.cx-checks-you li {
  counter-increment: cx-you;
}

.cx-checks-you li::before {
  content: counter(cx-you);
  background: var(--cx-sun);
  color: var(--cx-ink);
  font-family: var(--cx-heading);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cx-control {
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--cx-sun) 45%, transparent);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- Why email: four drawn figures (to scale from mkt.stat1..4) ---- */

.cx-figs {
  list-style: none;
  padding: 0;
  margin-top: 18px !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cx-figs li {
  background: var(--cx-card);
  border: 1px solid var(--cx-line);
  border-radius: 18px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cx-viz {
  height: 84px;
  display: flex;
  align-items: flex-end;
}

.cx-big {
  font-family: var(--cx-heading);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cx-figs p {
  font-size: 14px;
  color: var(--text-muted);
}

.cx-figs small {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: auto;
}

.cx-hbars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cx-hbars div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.cx-hbars i {
  display: block;
  height: 18px;
  border-radius: 5px;
}

.cx-hbar-1 { width: 2.2%; min-width: 4px; background: var(--cx-mint-2); }
.cx-hbar-36 { width: 78%; background: var(--cx-green); }

.cx-vbars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 84px;
}

.cx-vbars div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
  font-size: 12px;
  font-weight: 600;
}

.cx-vbars i {
  display: block;
  width: 26px;
  border-radius: 5px 5px 0 0;
}

.cx-vbar-1 { height: 13px; background: var(--cx-mint-2); }
.cx-vbar-3 { height: 39px; background: var(--cx-green); }
.cx-vbar-5 { height: 65px; background: var(--cx-green); }

.cx-donut {
  width: 84px;
  height: 84px;
}

.cx-donut circle {
  fill: none;
  stroke-width: 6;
}

.cx-donut-track { stroke: var(--cx-mint); }
.cx-donut-sun { stroke: var(--cx-sun); }
.cx-donut-green { stroke: var(--cx-green); }

.cx-note {
  margin-top: 12px !important;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Trust chips ---- */

.cx-trust {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cx-trust li {
  background: var(--cx-mint);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cx-trust svg {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--cx-deep);
}

.cx-brand-icons {
  display: flex;
  gap: 6px;
  flex: none;
}

.cx-trust strong {
  display: block;
  font-family: var(--cx-heading);
  font-size: 17px;
  font-weight: 600;
}

.cx-trust span:not(.cx-brand-icons) {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- Closing band ---- */

.cx-close-section {
  padding-bottom: 72px;
}

.cx-close {
  background: var(--cx-sun-soft);
  border-radius: 24px;
  padding: 32px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.cx-close-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cx-close-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.cx-close-copy p {
  color: var(--text-muted);
  font-size: 16px;
}

.cx-close-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.cx-poster-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cx-deep);
  text-decoration: none;
}

.cx-poster-link svg {
  width: 18px;
  height: 18px;
}

.cx-poster-link:hover {
  text-decoration: underline;
}

.cx-close-section .lp-contact-back {
  text-align: center;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .cx-hero { padding-top: 104px; }
  .cx-hero-grid { grid-template-columns: 1fr; }
  .cx-split { grid-template-columns: 1fr; }
  .cx-figs { grid-template-columns: 1fr 1fr; }
  .cx-trust { grid-template-columns: 1fr; }

  .cx-pipe { grid-template-columns: 1fr; gap: 4px; }
  .cx-pipe::before {
    left: 41px;
    right: auto;
    top: 30px;
    bottom: 30px;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--cx-mint-2) 0 75%, var(--cx-sun) 100%);
  }
  .cx-step { flex-direction: row; text-align: left; gap: 14px; padding: 6px 8px; }
  .cx-node { width: 60px; height: 60px; }
  .cx-step-who { margin-left: auto; }
}

@media (max-width: 480px) {
  .cx-container { padding: 0 16px; }
  .cx-figs { grid-template-columns: 1fr; }
  .cx-funnel { padding: 20px 14px 16px; }
  .cx-funnel-bar { font-size: 13.5px; }
  .cx-close { padding: 24px 20px; }
  .cx-btn { font-size: 15px; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-page *,
  .cx-page *::before {
    animation: none !important;
    transition: none !important;
  }
}
