:root {
  --ink: #17201f;
  --ink-soft: #52615e;
  --paper: #ffffff;
  --soft: #f4f8f6;
  --line: #dce8e3;
  --teal: #0d9488;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #d63a2f;
  --blue: #2563eb;
  --shadow: 0 22px 58px rgba(23, 32, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.tm-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.tm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.tm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.tm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
}

.tm-logo span {
  font-size: 1.05rem;
}

.tm-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.tm-nav nav a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.tm-nav nav a:hover {
  color: var(--teal);
}

.tm-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.tm-nav-cta:hover {
  background: var(--teal);
}

.tm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(70px, 9vw, 118px) 0 clamp(50px, 7vw, 92px);
  color: #ffffff;
  background: #12201d;
}

.tm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(18, 32, 29, 0.95) 0%, rgba(18, 32, 29, 0.78) 44%, rgba(18, 32, 29, 0.52) 100%),
    url("/assets/images/trafego-organico-e-analytics.jpg");
  background-position: center;
  background-size: cover;
}

.tm-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--paper));
}

.tm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.tm-hero-copy {
  max-width: 720px;
}

.tm-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tm-hero .tm-kicker {
  color: #7df2d9;
}

.tm-hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.tm-hero-article h1 {
  font-size: clamp(2.25rem, 5.8vw, 4.9rem);
}

.tm-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.tm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.tm-primary {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(214, 58, 47, 0.28);
}

.tm-primary:hover {
  background: #b82e25;
}

.tm-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.tm-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.tm-hero-card {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tm-hero-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.tm-hero-card figcaption {
  margin: 10px 2px 2px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
}

.tm-section {
  padding: clamp(58px, 8vw, 98px) 0;
  background: var(--paper);
}

.tm-soft {
  background: var(--soft);
}

.tm-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.tm-section h2,
.tm-final h2 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.tm-section p,
.tm-final p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.tm-note {
  padding: 24px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tm-note strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.tm-note ul,
.tm-sidebar ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-note li,
.tm-sidebar li {
  position: relative;
  padding-left: 22px;
}

.tm-note li::before,
.tm-sidebar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.tm-section-head {
  width: min(800px, 100%);
  margin-bottom: 28px;
}

.tm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tm-featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 31, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.38);
  box-shadow: 0 18px 44px rgba(23, 32, 31, 0.12);
}

.tm-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tm-card strong {
  font-size: 1.18rem;
  line-height: 1.22;
}

.tm-card small {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.tm-card-featured {
  min-height: 240px;
  border-color: rgba(13, 148, 136, 0.32);
}

.tm-article-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.tm-sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tm-sidebar .tm-kicker {
  margin-bottom: 16px;
}

.tm-sidebar li {
  color: var(--ink-soft);
  font-weight: 750;
}

.tm-side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.tm-article {
  max-width: 780px;
}

.tm-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tm-article-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--ink-soft);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.tm-article section + section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.tm-article h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.tm-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tm-check-list li {
  min-height: 48px;
  padding: 12px 14px 12px 38px;
  position: relative;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 750;
}

.tm-check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.tm-narrow {
  width: min(880px, calc(100% - 40px));
}

.tm-faq {
  display: grid;
  gap: 12px;
}

.tm-faq details {
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 32, 31, 0.06);
}

.tm-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.tm-faq p {
  margin: 12px 0 0;
}

.tm-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-final {
  padding: clamp(52px, 7vw, 84px) 0;
  color: #ffffff;
  background: #12201d;
}

.tm-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.tm-final .tm-kicker {
  color: #7df2d9;
}

.tm-final p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.tm-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #0b1211;
}

.tm-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 24px;
}

.tm-footer strong {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
}

.tm-footer p {
  margin: 0 0 8px;
}

.tm-footer a {
  color: #7df2d9;
}

@media (max-width: 980px) {
  .tm-nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .tm-nav nav {
    display: none;
  }

  .tm-hero-grid,
  .tm-two-col,
  .tm-article-layout,
  .tm-final-grid,
  .tm-footer-grid {
    grid-template-columns: 1fr;
  }

  .tm-hero-card {
    max-width: 640px;
  }

  .tm-sidebar {
    position: static;
  }

  .tm-card-grid,
  .tm-featured-grid,
  .tm-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tm-wrap,
  .tm-narrow {
    width: min(100% - 28px, 1160px);
  }

  .tm-logo span {
    font-size: 0.98rem;
  }

  .tm-nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .tm-hero {
    padding-top: 58px;
  }

  .tm-hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  .tm-button {
    width: 100%;
  }

  .tm-card-grid,
  .tm-featured-grid,
  .tm-related-grid,
  .tm-check-list {
    grid-template-columns: 1fr;
  }

  .tm-card {
    min-height: auto;
  }
}
