/*
Theme Name: TiVaMo Marketing
Theme URI: https://my-tivamo.com
Author: TiVaMo
Description: Custom TiVaMo marketing theme.
Version: 0.1.2
*/

:root {
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --green: #10b981;
  --purple: #7c3aed;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg: 0 18px 50px rgba(15,23,42,.12), 0 6px 18px rgba(15,23,42,.08);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.tvm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.tvm-nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.tvm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.tvm-logo-mark {
  color: var(--accent);
  font-size: 1.25rem;
}
.tvm-logo small {
  color: var(--accent);
  font-weight: 800;
}
.tvm-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.tvm-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.tvm-links a:hover { background: var(--bg3); color: var(--text); }
.tvm-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tvm-login {
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  padding: 8px 12px;
}
.tvm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 800;
  font-size: .94rem;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14,165,233,.28);
}
.tvm-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.tvm-btn-outline {
  background: #fff;
  color: var(--text2);
  border: 1.5px solid var(--border2);
  box-shadow: none;
}
.tvm-btn-outline:hover { color: var(--accent); border-color: var(--accent); background: #fff; }

.tvm-hero {
  padding: 138px 28px 88px;
  background:
    radial-gradient(circle at 82% 18%, rgba(14,165,233,.18), transparent 28%),
    linear-gradient(175deg, #f0f9ff 0%, #ffffff 56%);
  overflow: hidden;
}
.tvm-hero-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 64px;
  align-items: center;
}
.tvm-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .14em;
  font-weight: 900;
  margin-bottom: 18px;
}
.tvm-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.tvm-hero h1 span { color: var(--accent); }
.tvm-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
  margin: 0 0 28px;
}
.tvm-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.tvm-proof {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.tvm-proof-item strong {
  display: block;
  font-size: 1.32rem;
  letter-spacing: -.03em;
}
.tvm-proof-item span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  font-weight: 800;
}
.tvm-sep { width: 1px; height: 38px; background: var(--border2); }

.tvm-visual {
  position: relative;
  min-height: 390px;
}
.tvm-dashboard-card {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  overflow: hidden;
}
.tvm-dots { display:flex; gap:7px; margin-bottom:22px; }
.tvm-dots span { width:10px; height:10px; border-radius:99px; display:block; }
.tvm-dots span:nth-child(1){ background:#ff5f57; }
.tvm-dots span:nth-child(2){ background:#febc2e; }
.tvm-dots span:nth-child(3){ background:#28c840; }
.tvm-chart {
  height: 160px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14,165,233,.14), rgba(16,185,129,.04)),
    repeating-linear-gradient(to right, transparent 0 52px, rgba(148,163,184,.22) 53px),
    repeating-linear-gradient(to bottom, transparent 0 38px, rgba(148,163,184,.18) 39px);
  position: relative;
  overflow: hidden;
}
.tvm-chart svg { position:absolute; inset:0; width:100%; height:100%; }
.tvm-metric-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 20px;
}
.tvm-metric {
  border: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 16px;
  padding: 14px;
}
.tvm-metric label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  font-weight: 800;
}
.tvm-metric div {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.18rem;
  margin-top: 5px;
}
.tvm-floating {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 18px;
  padding: 16px 18px;
}
.tvm-float-1 { left: -22px; bottom: 28px; width: 190px; }
.tvm-float-2 { right: -18px; bottom: -18px; width: 225px; }
.tvm-floating label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  font-weight: 800;
}
.tvm-floating strong {
  font-family: var(--mono);
  display: block;
  font-size: 1.35rem;
  margin-top: 4px;
}
.tvm-floating span { color: var(--green); font-size: .78rem; font-weight: 800; }

.tvm-section {
  padding: 96px 28px;
}
.tvm-section.alt { background: var(--bg2); }
.tvm-section-inner {
  max-width: 1220px;
  margin: 0 auto;
}
.tvm-section.center { text-align: center; }
.tvm-tag {
  display: inline-block;
  color: var(--accent);
  background: rgba(14,165,233,.09);
  border-radius: 999px;
  padding: 5px 13px;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 900;
  margin-bottom: 16px;
}
.tvm-section h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.tvm-section-intro {
  max-width: 720px;
  margin: 0 auto 44px;
  color: var(--muted);
  font-size: 1.05rem;
}
.tvm-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.tvm-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: .18s ease;
}
.tvm-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.tvm-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--purple);
  background: rgba(124,58,237,.08);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.tvm-icon { font-size: 1.8rem; margin-bottom: 14px; }
.tvm-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.tvm-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.68; }

.tvm-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.tvm-step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  text-align: left;
}
.tvm-step-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 2rem;
  opacity: .55;
  margin-bottom: 12px;
}

.tvm-about-grid {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 58px;
  align-items: center;
}
.tvm-about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.tvm-about-card .big { font-size: 2.4rem; color: var(--accent); }
.tvm-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.tvm-row span { color: var(--muted); }
.tvm-row strong { text-align: right; }

.tvm-cta {
  background: #07111f;
  color: #fff;
  border-radius: 26px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.tvm-cta p { color: #b6c3d1; margin: 8px 0 0; }
.tvm-footer {
  background: #08111f;
  color: #dbe7f3;
  padding: 34px 28px;
}
.tvm-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.tvm-footer a { color: #b6c3d1; margin-left: 16px; }

@media (max-width: 920px) {
  .tvm-links { display: none; }
  .tvm-hero-inner,
  .tvm-about-grid,
  .tvm-cta {
    grid-template-columns: 1fr;
  }
  .tvm-visual { min-height: 330px; }
  .tvm-grid,
  .tvm-steps {
    grid-template-columns: 1fr;
  }
  .tvm-proof { gap: 14px; }
  .tvm-sep { display:none; }
}

/* ===== TiVaMo Phase 2: animated graph, contact, insights, get started ===== */

.tvm-links a[href="/insights/"],
.tvm-links a[href="/contact/"] {
  white-space: nowrap;
}

.tvm-chart path.tvm-line-blue {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: tvmDrawLine 2.6s ease forwards, tvmPulseLine 5.2s ease-in-out infinite 2.6s;
}

.tvm-chart path.tvm-line-green {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: tvmDrawLine 2.9s ease forwards .35s, tvmPulseLine 5.5s ease-in-out infinite 3s;
}

.tvm-chart .tvm-point {
  opacity: 0;
  transform-origin: center;
  animation: tvmPointIn .55s ease forwards, tvmPointFloat 4.5s ease-in-out infinite;
}

.tvm-chart .tvm-point:nth-of-type(3) { animation-delay: .8s, 2.2s; }
.tvm-chart .tvm-point:nth-of-type(4) { animation-delay: 1.15s, 2.55s; }
.tvm-chart .tvm-point:nth-of-type(5) { animation-delay: 1.5s, 2.9s; }
.tvm-chart .tvm-point:nth-of-type(6) { animation-delay: 1.85s, 3.25s; }

@keyframes tvmDrawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes tvmPulseLine {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(14,165,233,0)); }
  50% { filter: drop-shadow(0 0 7px rgba(14,165,233,.25)); }
}
@keyframes tvmPointIn {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes tvmPointFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

.tvm-page-hero {
  padding: 132px 28px 56px;
  background: linear-gradient(175deg, #f0f9ff 0%, #ffffff 60%);
  border-bottom: 1px solid var(--border);
}

.tvm-page-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.tvm-page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  letter-spacing: -.055em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.tvm-page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 760px;
  margin: 0;
}

.tvm-form-shell,
.tvm-content-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 28px;
}

.tvm-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.tvm-form-card,
.tvm-side-card,
.tvm-pricing-card,
.tvm-post-card,
.tvm-video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.tvm-form-card {
  padding: 30px;
}

.tvm-side-card {
  padding: 28px;
  position: sticky;
  top: 92px;
}

.tvm-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.tvm-field {
  margin-bottom: 18px;
}

.tvm-field label {
  display: block;
  font-size: .86rem;
  font-weight: 800;
  color: var(--text2);
  margin-bottom: 7px;
}

.tvm-field input,
.tvm-field select,
.tvm-field textarea {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}

.tvm-field input:focus,
.tvm-field select:focus,
.tvm-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.tvm-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .9rem;
  margin: 4px 0 20px;
}

.tvm-consent input {
  margin-top: 4px;
}

.tvm-alert {
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 18px;
  font-weight: 700;
}

.tvm-alert.ok {
  background: rgba(16,185,129,.12);
  color: #047857;
  border: 1px solid rgba(16,185,129,.22);
}

.tvm-alert.err {
  background: rgba(239,68,68,.09);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,.18);
}

.tvm-side-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.tvm-side-list li {
  padding: 13px 0;
  border-top: 1px solid var(--border);
  color: var(--text2);
}

.tvm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 36px;
}

.tvm-pricing-card {
  padding: 28px;
  position: relative;
}

.tvm-pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.tvm-price {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  margin: 14px 0 6px;
}

.tvm-price-note {
  color: var(--muted);
  font-size: .88rem;
}

.tvm-feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.tvm-feature-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  border-top: 1px solid var(--border);
  color: var(--text2);
}

.tvm-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.tvm-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.tvm-post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.tvm-post-media {
  min-height: 118px;
  background:
    radial-gradient(circle at 80% 20%, rgba(14,165,233,.28), transparent 28%),
    linear-gradient(135deg, #e0f2fe, #f8fafc);
  border-bottom: 1px solid var(--border);
}

.tvm-post-body {
  padding: 22px;
}

.tvm-post-body h3 {
  margin: 0 0 10px;
}

.tvm-post-body p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: .92rem;
}

.tvm-post-meta {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tvm-video-band {
  margin-top: 48px;
  padding: 34px;
  border-radius: 26px;
  background: #07111f;
  color: #fff;
}

.tvm-video-band p {
  color: #b6c3d1;
}

.tvm-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 22px;
}

.tvm-video-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  padding: 20px;
}

.tvm-video-thumb {
  border-radius: 16px;
  height: 150px;
  background:
    radial-gradient(circle at center, rgba(14,165,233,.55), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  display: grid;
  place-items: center;
  font-size: 2.5rem;
}

.tvm-hidden-hp {
  position: absolute !important;
  left: -10000px !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 920px) {
  .tvm-contact-grid,
  .tvm-pricing-grid,
  .tvm-post-grid,
  .tvm-video-grid,
  .tvm-form-row {
    grid-template-columns: 1fr;
  }
  .tvm-side-card {
    position: static;
  }
  .tvm-pricing-card.featured {
    transform: none;
  }
}

/* ===== TiVaMo Phase 3: unified nav + social hooks ===== */

body.admin-bar .tvm-nav {
  top: 32px;
}

.tvm-nav-inner {
  min-height: 68px;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.tvm-links {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 4px;
}

.tvm-links a {
  white-space: nowrap;
}

.tvm-nav-btn {
  padding: 9px 14px;
  white-space: nowrap;
}

.tvm-footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, auto);
  align-items: start;
}

.tvm-footer-brand {
  margin-bottom: 8px;
}

.tvm-footer-note {
  color: #b6c3d1;
  max-width: 560px;
  margin: 0 0 16px;
  font-size: .92rem;
}

.tvm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.tvm-footer-links a,
.tvm-socials a {
  color: #b6c3d1;
  margin-left: 0;
}

.tvm-footer-links a:hover,
.tvm-socials a:hover {
  color: #fff;
}

.tvm-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tvm-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-weight: 800;
  font-size: .78rem;
}

.tvm-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg2);
}

.tvm-share-bar span {
  font-weight: 900;
  color: var(--text2);
  margin-right: 4px;
}

.tvm-share-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--text2);
  font-weight: 800;
  font-size: .82rem;
}

.tvm-share-bar a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 1100px) {
  .tvm-nav-inner {
    gap: 14px;
  }

  .tvm-links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }

  .tvm-actions {
    margin-left: auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar .tvm-nav {
    top: 46px;
  }

  .tvm-nav-inner {
    justify-content: center;
  }

  .tvm-logo,
  .tvm-actions {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tvm-links {
    display: flex;
  }

  .tvm-footer-grid {
    grid-template-columns: 1fr;
  }

  .tvm-footer-links {
    justify-content: flex-start;
  }
}

/* ===== TiVaMo Phase 4: privacy + chat readiness ===== */

.tvm-legal-card {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.tvm-legal-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.tvm-legal-card p,
.tvm-legal-card li {
  color: var(--text2);
}

.tvm-legal-card a {
  color: var(--accent);
  font-weight: 800;
}

.tvm-legal-updated {
  color: var(--muted);
  margin-top: 0;
}

.tvm-legal-card ul {
  margin: 12px 0 0 22px;
  padding: 0;
}

.tvm-legal-card li {
  margin: 8px 0;
}

@media (max-width: 720px) {
  .tvm-legal-card {
    padding: 24px;
  }
}

/* TiVaMo repair patch: stable shared header + contact form */
.tvm-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.tvm-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}

.tvm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}

.tvm-brand em {
  color: #0284c7;
  font-style: normal;
  font-weight: 800;
  font-size: .88em;
}

.tvm-brand-mark {
  color: #0284c7;
  font-weight: 900;
}

.tvm-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.tvm-menu a,
.tvm-login {
  color: #475569;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.tvm-menu a:hover,
.tvm-login:hover {
  color: #0284c7;
}

.tvm-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.tvm-btn-small {
  padding: 10px 14px !important;
  font-size: 13px !important;
}

.tvm-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 28px;
  align-items: start;
}

.tvm-contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.tvm-contact-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

.tvm-contact-form input,
.tvm-contact-form select,
.tvm-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(100,116,139,.35);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.tvm-contact-form textarea {
  resize: vertical;
}

.tvm-hp {
  position: absolute !important;
  left: -9999px !important;
}

.tvm-alert {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-weight: 800;
}

.tvm-alert.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.tvm-alert.err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (max-width: 900px) {
  .tvm-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .tvm-menu,
  .tvm-nav-actions {
    width: 100%;
  }

  .tvm-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* TiVaMo header zero-drift hardening - 2026-06-30
   Purpose: keep the shared header pinned identically across homepage, Contact, Insights, Pricing, Privacy, and Terms.
*/
html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body .tvm-site-header {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
  translate: none !important;
}

body:not(.admin-bar) .tvm-site-header {
  top: 0 !important;
}

body.admin-bar .tvm-site-header {
  top: 32px !important;
}

/* Prevent page-level article/main wrappers from creating visual header drift. */
body .tvm-site-header + *,
body .tvm-site-header + main,
body .tvm-site-header + .tvm-page,
body .tvm-site-header + .tvm-page-shell,
body .tvm-site-header + .tvm-section,
body .tvm-site-header + .tvm-hero {
  margin-top: 0 !important;
}

/* Explicitly normalize the two pages still showing drift. */
body.page .tvm-site-header,
body.page-id-17 .tvm-site-header,
body.page-id-18 .tvm-site-header,
body.slug-contact .tvm-site-header,
body.slug-insights .tvm-site-header {
  margin-top: 0 !important;
  top: 0 !important;
}

body.admin-bar.page .tvm-site-header,
body.admin-bar.page-id-17 .tvm-site-header,
body.admin-bar.page-id-18 .tvm-site-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .tvm-site-header,
  body.admin-bar.page .tvm-site-header,
  body.admin-bar.page-id-17 .tvm-site-header,
  body.admin-bar.page-id-18 .tvm-site-header {
    top: 46px !important;
  }
}

/* TiVaMo canonical public marketing header - 2026-06-30
   One shared header. No page-wrapper drift. No public login link.
*/
.tvm-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(255,255,255,0.96) !important;
  border-bottom: 1px solid rgba(15,23,42,0.10) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.admin-bar .tvm-site-header {
  top: 32px;
}

.tvm-site-header .tvm-nav {
  width: min(1180px, calc(100% - 40px)) !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(245px, auto) minmax(430px, 1fr) minmax(130px, auto) !important;
  align-items: center !important;
  gap: 24px !important;
}

.tvm-site-header .tvm-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.tvm-site-header .tvm-brand em {
  font-style: normal !important;
  opacity: 0.85 !important;
}

.tvm-site-header .tvm-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.tvm-site-header .tvm-menu a {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.tvm-site-header .tvm-nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 130px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.tvm-site-header .tvm-btn-small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 20px !important;
  white-space: nowrap !important;
}

.tvm-site-header + *,
.tvm-site-header + main,
.tvm-site-header + .tvm-page,
.tvm-site-header + .tvm-hero,
.tvm-site-header + section {
  margin-top: 0 !important;
}

/* WordPress logged-in admin preview normalization */
html body {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .tvm-site-header .tvm-nav {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "brand actions"
      "menu menu" !important;
    row-gap: 10px !important;
    padding: 14px 0 !important;
  }

  .tvm-site-header .tvm-brand {
    grid-area: brand !important;
  }

  .tvm-site-header .tvm-menu {
    grid-area: menu !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 12px 18px !important;
  }

  .tvm-site-header .tvm-nav-actions {
    grid-area: actions !important;
  }
}

@media (max-width: 720px) {
  body.admin-bar .tvm-site-header {
    top: 46px;
  }

  .tvm-site-header .tvm-nav {
    width: min(100% - 28px, 1180px) !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "menu"
      "actions" !important;
  }

  .tvm-site-header .tvm-brand,
  .tvm-site-header .tvm-menu,
  .tvm-site-header .tvm-nav-actions {
    justify-content: center !important;
  }

  .tvm-site-header .tvm-brand,
  .tvm-site-header .tvm-menu {
    white-space: normal !important;
  }
}

/* TiVaMo final marketing cleanup - 2026-06-30
   Keep Tawk. Remove public admin shortcut. Fix sticky header spacing and button alignment.
*/

/* Hide any remaining customer-visible admin shortcut without touching Tawk. */
a[href*="tivamo_admin=1"],
a[href*="tivamo_admin"],
button[href*="tivamo_admin"],
div:has(> a[href*="tivamo_admin=1"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Sticky header should not clip badges/section eyebrows underneath it. */
html {
  scroll-padding-top: 132px !important;
}

[id] {
  scroll-margin-top: 132px !important;
}

.tvm-site-header {
  margin-bottom: 34px !important;
}

/* Pull the right CTA safely inside the header box. */
.tvm-site-header .tvm-nav {
  width: min(1160px, calc(100% - 96px)) !important;
  padding-left: 28px !important;
  padding-right: 56px !important;
  box-sizing: border-box !important;
  grid-template-columns: minmax(245px, auto) minmax(430px, 1fr) minmax(150px, auto) !important;
}

.tvm-site-header .tvm-nav-actions {
  min-width: 150px !important;
  padding-right: 0 !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
}

.tvm-site-header .tvm-btn-small {
  margin-right: 0 !important;
}

/* Give first content block a little air after sticky header. */
.tvm-site-header + main,
.tvm-site-header + section,
.tvm-site-header + .tvm-hero,
.tvm-site-header + .tvm-page,
.tvm-site-header + .tvm-page-shell {
  padding-top: 14px !important;
}

/* Keep Tawk above normal page content, but below WordPress admin bar behavior. */
iframe[title*="chat"],
iframe[src*="tawk"],
.tawk-min-container,
.tawk-button,
.tawk-widget {
  z-index: 99999 !important;
}

@media (max-width: 1080px) {
  .tvm-site-header .tvm-nav {
    width: min(100% - 48px, 1160px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 782px) {
  html {
    scroll-padding-top: 158px !important;
  }

  [id] {
    scroll-margin-top: 158px !important;
  }

  .tvm-site-header {
    margin-bottom: 28px !important;
  }
}

/* TiVaMo cleanup pass - 2026-06-30
   Keep Tawk. Remove dev admin shortcut. Fix header CTA alignment and anchor spacing.
*/

/* Hide any remaining tivamo_admin shortcut if cached/leftover markup exists. This does not target Tawk. */
a[href*="tivamo_admin"],
div:has(a[href*="tivamo_admin"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Sticky anchor behavior. */
html {
  scroll-padding-top: 138px !important;
}

[id] {
  scroll-margin-top: 138px !important;
}

/* Add breathing room below the sticky header so pills/eyebrows are not shaved off. */
.tvm-site-header {
  margin-bottom: 40px !important;
}

/* Pull Get Started left and keep it inside the visual header container. */
@media (min-width: 1081px) {
  .tvm-site-header .tvm-nav {
    width: min(1120px, calc(100% - 140px)) !important;
    padding-left: 30px !important;
    padding-right: 96px !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(245px, auto) minmax(390px, 1fr) minmax(150px, auto) !important;
  }

  .tvm-site-header .tvm-nav-actions {
    min-width: 150px !important;
    justify-content: flex-end !important;
    transform: translateX(-18px) !important;
  }
}

/* First content block should not tuck behind the sticky header. */
.tvm-site-header + main,
.tvm-site-header + section,
.tvm-site-header + .tvm-hero,
.tvm-site-header + .tvm-page,
.tvm-site-header + .tvm-page-shell {
  padding-top: 18px !important;
}

/* How It Works section styling. */
.tvm-how-it-works-section {
  padding: 96px 0 !important;
  background: #ffffff !important;
}

.tvm-how-it-works-section .tvm-section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.tvm-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.tvm-how-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.tvm-how-card .tvm-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0284c7;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.tvm-how-card h3 {
  margin: 0 0 10px;
}

.tvm-how-card p {
  margin: 0;
}

/* Keep Tawk visible above content. */
iframe[src*="tawk"],
iframe[title*="chat"],
.tawk-min-container,
.tawk-button,
.tawk-widget {
  z-index: 99999 !important;
}

@media (max-width: 1080px) {
  .tvm-site-header .tvm-nav {
    width: min(100% - 48px, 1120px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .tvm-site-header .tvm-nav-actions {
    transform: none !important;
  }

  .tvm-how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  html {
    scroll-padding-top: 162px !important;
  }

  [id] {
    scroll-margin-top: 162px !important;
  }

  .tvm-site-header {
    margin-bottom: 30px !important;
  }
}


/* TiVaMo homepage typography and organic graph motion */

body,
button,
input,
select,
textarea,
.tvm-brand,
.tvm-menu,
.tvm-menu a,
.tvm-btn,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

#solutions,
#how-it-works {
  scroll-margin-top: 96px;
}

/* Keep the graph lines solid. SVG filters provide the wave motion. */
.tvm-chart path.tvm-line-blue,
.tvm-chart path.tvm-line-green {
  animation: none !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

.tvm-chart .tvm-runner-blue {
  filter: drop-shadow(0 0 7px rgba(14, 165, 233, .95));
}

.tvm-chart .tvm-runner-green {
  filter: drop-shadow(0 0 7px rgba(16, 185, 129, .9));
}

.tvm-chart .tvm-runner-trail {
  opacity: .4;
}

@media (prefers-reduced-motion: reduce) {
  .tvm-chart .tvm-runner {
    display: none;
  }
}

/* TiVaMo homepage typography and organic graph motion */

body,
button,
input,
select,
textarea,
.tvm-brand,
.tvm-menu,
.tvm-menu a,
.tvm-btn,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

#solutions,
#how-it-works {
  scroll-margin-top: 96px;
}

/* Keep the graph lines solid. SVG filters provide the wave motion. */
.tvm-chart path.tvm-line-blue,
.tvm-chart path.tvm-line-green {
  animation: none !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

.tvm-chart .tvm-runner-blue {
  filter: drop-shadow(0 0 7px rgba(14, 165, 233, .95));
}

.tvm-chart .tvm-runner-green {
  filter: drop-shadow(0 0 7px rgba(16, 185, 129, .9));
}

.tvm-chart .tvm-runner-trail {
  opacity: .4;
}

@media (prefers-reduced-motion: reduce) {
  .tvm-chart .tvm-runner {
    display: none;
  }
}
