/* TiviMate Pro — editorial light guide hub (tmp- namespace) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --tmp-ink: #1a2332;
  --tmp-muted: #5a6578;
  --tmp-paper: #f6f3ee;
  --tmp-paper-2: #fffdf9;
  --tmp-teal: #0f5a5f;
  --tmp-teal-2: #147a80;
  --tmp-copper: #c4783a;
  --tmp-copper-2: #a8622e;
  --tmp-line: #e4ddd2;
  --tmp-max: 1120px;
  --tmp-radius: 14px;
  --tmp-font-display: "Fraunces", Georgia, serif;
  --tmp-font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tmp-font-body);
  color: var(--tmp-ink);
  background: var(--tmp-paper);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tmp-teal); }
a:hover { color: var(--tmp-copper); }

.tmp-wrap { width: min(100% - 2rem, var(--tmp-max)); margin-inline: auto; }

/* Header */
.tmp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tmp-line);
}
.tmp-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.tmp-logo img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.tmp-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.tmp-nav a {
  color: var(--tmp-ink); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.tmp-nav a:hover { color: var(--tmp-teal); }
.tmp-nav__cta {
  background: var(--tmp-teal); color: #fff !important;
  padding: 0.5rem 0.95rem; border-radius: 999px; font-weight: 700 !important;
}
.tmp-nav__cta:hover { background: var(--tmp-teal-2); color: #fff !important; }
.tmp-nav__toggle {
  display: none; background: transparent; border: 1px solid var(--tmp-line);
  padding: 0.4rem 0.7rem; border-radius: 8px; cursor: pointer; font-weight: 600;
}

/* Split hero — editorial */
.tmp-hero-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem;
  align-items: center; padding: 3.5rem 0 3rem;
  animation: tmp-fade 0.55s ease both;
}
.tmp-hero-split__copy h1 {
  font-family: var(--tmp-font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 1rem; color: var(--tmp-ink);
}
.tmp-hero-split__copy .tmp-lead {
  font-size: 1.08rem; color: var(--tmp-muted); margin: 0 0 1.4rem; max-width: 36rem;
}
.tmp-hero-split__media {
  border-radius: calc(var(--tmp-radius) + 4px); overflow: hidden;
  box-shadow: 0 24px 50px rgba(26, 35, 50, 0.14);
  min-height: 320px;
  background: center/cover no-repeat;
}
.tmp-kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tmp-copper); margin-bottom: 0.65rem;
}
.tmp-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.1rem; }
.tmp-trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  color: var(--tmp-muted); font-size: 0.9rem; font-weight: 600;
}
.tmp-trust li::before { content: "· "; color: var(--tmp-copper); font-weight: 800; }

.tmp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.25rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-family: var(--tmp-font-body);
  transition: transform .15s ease, background .15s ease;
}
.tmp-btn:hover { transform: translateY(-1px); }
.tmp-btn--primary { background: var(--tmp-teal); color: #fff; }
.tmp-btn--primary:hover { background: var(--tmp-teal-2); color: #fff; }
.tmp-btn--ghost {
  background: transparent; color: var(--tmp-ink);
  border: 1.5px solid var(--tmp-ink);
}
.tmp-btn--ghost:hover { border-color: var(--tmp-teal); color: var(--tmp-teal); }
.tmp-btn--copper { background: var(--tmp-copper); color: #fff; }
.tmp-btn--copper:hover { background: var(--tmp-copper-2); color: #fff; }

/* Sections */
.tmp-section { padding: 3.75rem 0; }
.tmp-section--alt { background: var(--tmp-paper-2); }
.tmp-section--ink {
  background: var(--tmp-ink); color: #f3efe8;
}
.tmp-section--ink h2, .tmp-section--ink h3 { color: #fff; }
.tmp-section--ink p, .tmp-section--ink .tmp-muted { color: #c8c2b8; }
.tmp-section__head { max-width: 40rem; margin: 0 0 2rem; }
.tmp-section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.tmp-section__head h2 {
  font-family: var(--tmp-font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 0.65rem; line-height: 1.2;
}
.tmp-muted { color: var(--tmp-muted); margin: 0; }

.tmp-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
}
.tmp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.tmp-card {
  background: var(--tmp-paper-2);
  border: 1px solid var(--tmp-line);
  border-radius: var(--tmp-radius);
  padding: 1.35rem;
}
.tmp-section--ink .tmp-card {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12);
}
.tmp-card h3 {
  font-family: var(--tmp-font-display); font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.tmp-card p { margin: 0; color: var(--tmp-muted); font-size: 0.98rem; }
.tmp-section--ink .tmp-card p { color: #c8c2b8; }
.tmp-media {
  border-radius: var(--tmp-radius); overflow: hidden;
  box-shadow: 0 16px 40px rgba(26,35,50,0.12);
}
.tmp-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.tmp-steps { counter-reset: step; display: grid; gap: 1rem; }
.tmp-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding: 1.15rem; background: var(--tmp-paper-2);
  border: 1px solid var(--tmp-line); border-radius: var(--tmp-radius);
}
.tmp-step::before {
  counter-increment: step; content: counter(step);
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--tmp-teal); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.tmp-step h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.tmp-step p { margin: 0; color: var(--tmp-muted); font-size: 0.95rem; }

/* Pricing */
.tmp-pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tmp-plan {
  position: relative;
  background: var(--tmp-paper-2);
  border: 1px solid var(--tmp-line);
  border-radius: var(--tmp-radius);
  padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tmp-plan:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(26,35,50,0.08); }
.tmp-plan--featured {
  border-color: var(--tmp-teal);
  box-shadow: 0 0 0 1px var(--tmp-teal);
  background: linear-gradient(180deg, #e8f4f4 0%, var(--tmp-paper-2) 55%);
}
.tmp-plan__badge {
  position: absolute; top: -0.65rem; left: 50%; transform: translateX(-50%);
  background: var(--tmp-copper); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 999px;
  white-space: nowrap;
}
.tmp-plan h3 { margin: 0; font-size: 1.05rem; }
.tmp-price {
  font-family: var(--tmp-font-display); font-size: 1.85rem; font-weight: 700; margin: 0;
}
.tmp-month { color: var(--tmp-teal); font-weight: 700; font-size: 0.92rem; margin: 0; }
.tmp-plan ul { list-style: none; padding: 0; margin: 0.4rem 0 0.8rem; flex: 1; }
.tmp-plan li { padding: 0.28rem 0; font-size: 0.92rem; color: var(--tmp-muted); }
.tmp-plan li::before { content: "✓ "; color: var(--tmp-teal); font-weight: 700; }

.tmp-compare-wrap { overflow-x: auto; margin-top: 2rem; border-radius: 12px; border: 1px solid var(--tmp-line); }
.tmp-compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--tmp-paper-2); }
.tmp-compare th, .tmp-compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--tmp-line); }
.tmp-compare th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tmp-muted); }
.tmp-compare tr.is-featured { background: #e8f4f4; }
.tmp-compare a { font-weight: 700; text-decoration: none; }

/* Reviews */
.tmp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tmp-review {
  background: var(--tmp-paper-2); border: 1px solid var(--tmp-line);
  border-radius: var(--tmp-radius); padding: 1.2rem;
}
.tmp-stars { color: var(--tmp-copper); letter-spacing: 1px; margin-bottom: 0.4rem; }
.tmp-review p { margin: 0; color: var(--tmp-ink); }
.tmp-review footer { margin-top: 0.85rem; font-size: 0.88rem; color: var(--tmp-muted); }

/* FAQ */
.tmp-faq details {
  background: var(--tmp-paper-2); border: 1px solid var(--tmp-line);
  border-radius: 12px; padding: 0.95rem 1.1rem; margin-bottom: 0.55rem;
}
.tmp-faq summary { cursor: pointer; font-weight: 700; font-family: var(--tmp-font-display); }
.tmp-faq details p { margin: 0.7rem 0 0; color: var(--tmp-muted); }

/* Page hero */
.tmp-page-hero {
  padding: 3.5rem 0 2.75rem;
  background:
    linear-gradient(105deg, rgba(246,243,238,0.94) 0%, rgba(246,243,238,0.72) 45%, rgba(246,243,238,0.4) 100%),
    var(--tmp-hero-img, none) center/cover no-repeat;
  border-bottom: 1px solid var(--tmp-line);
}
.tmp-page-hero h1 {
  font-family: var(--tmp-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin: 0 0 0.65rem; max-width: 40rem;
}
.tmp-page-hero p { margin: 0; max-width: 36rem; color: var(--tmp-muted); }
.tmp-note {
  margin-top: 1rem; padding: 0.85rem 1rem;
  background: #fff7ec; border-left: 3px solid var(--tmp-copper);
  border-radius: 0 10px 10px 0; font-size: 0.95rem; color: var(--tmp-ink);
  max-width: 40rem;
}

.tmp-prose { max-width: 46rem; margin: 0 auto; }
.tmp-prose h2 { font-family: var(--tmp-font-display); margin-top: 2rem; }
.tmp-prose p, .tmp-prose li { color: #2c3545; }
.tmp-updated { font-size: 0.88rem; color: var(--tmp-muted); margin-bottom: 1.25rem; }

.tmp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tmp-blog-card {
  background: var(--tmp-paper-2); border: 1px solid var(--tmp-line);
  border-radius: var(--tmp-radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.tmp-blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tmp-blog-card .tmp-blog-body { padding: 1.05rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tmp-blog-card h2 { font-size: 1.08rem; margin: 0 0 0.45rem; font-family: var(--tmp-font-display); }
.tmp-blog-card h2 a { color: inherit; text-decoration: none; }
.tmp-blog-card p { color: var(--tmp-muted); font-size: 0.92rem; flex: 1; margin: 0 0 0.75rem; }

.tmp-disclaimer {
  font-size: 0.85rem; color: var(--tmp-muted);
  border-top: 1px solid var(--tmp-line); padding-top: 1rem; margin-top: 2rem;
}

/* Footer */
.tmp-footer {
  background: var(--tmp-ink); color: #c8c2b8;
  padding: 3rem 0 2rem; font-size: 0.95rem;
}
.tmp-footer a { color: #f3efe8; text-decoration: none; }
.tmp-footer a:hover { color: var(--tmp-copper); }
.tmp-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem;
}
.tmp-footer h4 { color: #fff; margin: 0 0 0.7rem; font-family: var(--tmp-font-display); }
.tmp-footer ul { list-style: none; padding: 0; margin: 0; }
.tmp-footer li { margin-bottom: 0.35rem; }
.tmp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.15rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.88rem; color: #9a948a;
}

@keyframes tmp-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tmp-hero-split { animation: none; }
  .tmp-btn, .tmp-plan { transition: none; }
}

@media (max-width: 960px) {
  .tmp-hero-split, .tmp-grid-2 { grid-template-columns: 1fr; }
  .tmp-pricing, .tmp-grid-3, .tmp-reviews, .tmp-blog-grid, .tmp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .tmp-nav { display: none; }
  .tmp-nav.is-open {
    display: flex; flex-direction: column; position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--tmp-paper); padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--tmp-line);
  }
  .tmp-header { position: relative; }
  .tmp-header__inner { position: relative; }
  .tmp-nav__toggle { display: inline-block; }
}
@media (max-width: 640px) {
  .tmp-pricing, .tmp-grid-3, .tmp-reviews, .tmp-blog-grid, .tmp-footer__grid {
    grid-template-columns: 1fr;
  }
}

.tmp-section--ink .tmp-btn--ghost {
  border-color: rgba(243,239,232,0.55); color: #f3efe8;
}
.tmp-section--ink .tmp-btn--ghost:hover {
  border-color: var(--tmp-copper); color: var(--tmp-copper);
}
