/* ============================================================================
   Mobile Proxy Compare — Timeless theme extension
   Extends TemplateMo 517 "Timeless" (templatemo-style.css) to a multi-page,
   content-driven site. Same palette, typography and card language as the
   original template.
   Palette:  bg #333  cards #262626 / #404040  text #FFF/#CCC
   Accents:  green #99CC66  cyan #33CCCC  yellow #FFFF66  orange #CC9966
   ========================================================================== */

:root {
  --tm-bg: #333333;
  --tm-card: #262626;
  --tm-card-2: #404040;
  --tm-text: #FFFFFF;
  --tm-gray: #CCCCCC;
  --tm-muted: #9a9a9a;
  --tm-line: #666666;
  --tm-green: #99CC66;
  --tm-cyan: #33CCCC;
  --tm-yellow: #FFFF66;
  --tm-orange: #CC9966;
}

html { scroll-behavior: smooth; }
body { background-color: var(--tm-bg); color: var(--tm-text); }

a { color: var(--tm-cyan); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: #7fe0e0; text-decoration: none; }

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

.tm-container { max-width: 1170px; margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px; }

/* ---------------------------------------------------------------- Header nav */
.tm-header {
  background-color: rgba(38,38,38,.96);
  border-bottom: 1px solid #4a4a4a;
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(140%) blur(6px);
}
.tm-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1310px; margin: 0 auto; padding: 14px 24px;
}
.tm-brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.tm-brand:hover { color: #fff; }
.tm-brand .tm-diamond {
  width: 26px; height: 26px; border: 5px solid #fff; transform: rotate(45deg);
  flex: 0 0 auto;
}
.tm-brand .tm-brand-name { font-size: 1.25rem; font-weight: 400; letter-spacing: .02em; }
.tm-nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.tm-nav-links a {
  color: var(--tm-gray); font-weight: 300; font-size: .95rem; letter-spacing: .03em;
  padding: 6px 0; position: relative;
}
.tm-nav-links a:hover, .tm-nav-links a.is-active { color: #fff; }
.tm-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--tm-cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.tm-nav-links a:hover::after, .tm-nav-links a.is-active::after { transform: scaleX(1); }
.tm-nav-cta {
  border: 1px solid var(--tm-gray); color: var(--tm-gray) !important; border-radius: 0;
  padding: 9px 22px; font-size: .9rem; white-space: nowrap;
}
.tm-nav-cta:hover { background: var(--tm-gray); color: #333 !important; }
.tm-nav-cta::after { display: none; }
.tm-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.tm-nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* --------------------------------------------------------------- Inner hero */
.tm-hero {
  text-align: center; padding: 78px 20px 66px;
  background: radial-gradient(1200px 400px at 50% -140px, #3f3f3f 0%, #2b2b2b 60%, var(--tm-bg) 100%);
  border-bottom: 1px solid #454545;
}
.tm-hero .tm-eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .72rem; color: var(--tm-cyan);
  margin-bottom: 20px;
}
.tm-hero h1 { font-size: 2.7rem; font-weight: 300; margin: 0 auto 22px; max-width: 900px; line-height: 1.22; }
.tm-hero .tm-hero-sub { color: var(--tm-gray); max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.tm-hero .tm-hero-rule {
  width: 64px; height: 3px; background: var(--tm-cyan); margin: 26px auto 0; border: 0;
}
.tm-breadcrumbs { margin-top: 22px; font-size: .82rem; color: var(--tm-muted); }
.tm-breadcrumbs a { color: var(--tm-gray); }
.tm-breadcrumbs .sep { margin: 0 8px; opacity: .5; }

/* ----------------------------------------------------------- Home video hero
   (reuses .tm-video-container / .tm-welcome-video from templatemo-style.css) */
.tm-video-text-overlay h1 div { line-height: 1.2; }
.tm-home-intro { text-align: center; padding: 60px 20px 10px; }
.tm-home-intro .tm-eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .72rem; color: var(--tm-cyan); margin-bottom: 18px;
}
.tm-home-intro h1 { font-size: 2.6rem; font-weight: 300; max-width: 900px; margin: 0 auto 20px; line-height: 1.22; }
.tm-home-intro p { color: var(--tm-gray); max-width: 760px; margin: 0 auto; font-size: 1.08rem; }

/* small utility shim (avoids pulling all of bootstrap) */
.d-none { display: none !important; }

/* Home video hero wrapper */
.tm-home-hero { max-width: 1280px; margin: 0 auto; }
.tm-home-hero .tm-video-container { max-width: 100%; margin: 0 auto; }

/* ------------------------------------------------------------- Article body */
.tm-main { padding: 56px 0 20px; }
.tm-content { max-width: 900px; margin: 0 auto; }
.tm-content .tm-here { color: var(--tm-muted); }

/* Lead (intro before first section) */
.tm-lead { max-width: 820px; margin: 0 auto 38px; }
.tm-lead p { color: #dcdcdc; font-size: 1.12rem; line-height: 1.85; margin: 0 0 16px; }
.tm-lead p:first-of-type { font-size: 1.2rem; color: #efefef; }

/* FAQ (rebuilt from FAQPage schema) */
.tm-faq-item { border-bottom: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.tm-faq-item:last-child { border-bottom: 0; }
.tm-faq-q { font-size: 1.08rem !important; color: #fff !important; margin: 0 0 8px !important; font-weight: 600 !important; }
.tm-faq-a p { margin: 0; color: #cfcfcf; line-height: 1.85; }

/* Section cards — mirror the template's timeline description cards, cycling the
   four Timeless accent colours. */
.tm-section-card {
  border-radius: 20px; padding: 40px 46px; margin-bottom: 34px;
  background: var(--tm-card);
}
.tm-section-card:nth-of-type(even) { background: var(--tm-card-2); }
.tm-section-card > h2:first-child, .tm-section-card > h2 { margin-top: 0; }
.tm-section-card:nth-of-type(4n+1) h2 { color: var(--tm-green); }
.tm-section-card:nth-of-type(4n+2) h2 { color: var(--tm-cyan); }
.tm-section-card:nth-of-type(4n+3) h2 { color: var(--tm-yellow); }
.tm-section-card:nth-of-type(4n+4) h2 { color: var(--tm-orange); }

.tm-content h2 { font-size: 1.7rem; font-weight: 400; margin: 0 0 18px; line-height: 1.3; }
.tm-content h3 { font-size: 1.22rem; font-weight: 400; color: #eaeaea; margin: 30px 0 12px; }
.tm-content h4 { font-size: 1.05rem; font-weight: 600; color: #fff; margin: 24px 0 10px; letter-spacing: .01em; }
.tm-content p { color: #d6d6d6; line-height: 1.9; margin: 0 0 18px; }
.tm-content a { color: var(--tm-cyan); border-bottom: 1px solid rgba(51,204,204,.35); }
.tm-content a:hover { border-bottom-color: var(--tm-cyan); }
.tm-content strong { color: #fff; font-weight: 600; }

.tm-content ul, .tm-content ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.tm-content ul li, .tm-content ol li {
  position: relative; padding-left: 30px; margin-bottom: 11px; color: #d6d6d6; line-height: 1.8;
}
.tm-content ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 9px; height: 9px;
  background: var(--tm-cyan); transform: rotate(45deg);
}
.tm-content ol { counter-reset: tm-ol; }
.tm-content ol li { counter-increment: tm-ol; }
.tm-content ol li::before {
  content: counter(tm-ol); position: absolute; left: 0; top: 1px;
  color: var(--tm-cyan); font-weight: 600; font-size: .95rem;
}

.tm-content blockquote {
  border-left: 3px solid var(--tm-green); margin: 0 0 22px; padding: 6px 0 6px 22px;
  color: #cfcfcf; font-style: italic;
}
.tm-content hr { border: 0; border-top: 1px solid var(--tm-line); max-width: 70%; margin: 34px auto; }

/* Tables */
.tm-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .94rem;
  background: #1f1f1f; border-radius: 12px; overflow: hidden;
}
.tm-content thead th {
  background: #111; color: var(--tm-cyan); font-weight: 600; text-align: left;
  padding: 14px 16px; border-bottom: 1px solid #3a3a3a; letter-spacing: .01em;
}
.tm-content tbody td { padding: 13px 16px; border-bottom: 1px solid #333; color: #d0d0d0; vertical-align: top; }
.tm-content tbody tr:nth-child(even) td { background: #242424; }
.tm-content tbody tr:hover td { background: #2c2c2c; }
.tm-content tfoot td { padding: 12px 16px; color: var(--tm-muted); font-size: .86rem; }
.tm-table-wrap { overflow-x: auto; margin-bottom: 24px; }

/* Code */
.tm-content pre {
  background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 12px; padding: 20px 22px;
  overflow-x: auto; color: #cfe9d6; font-size: .86rem; line-height: 1.7; margin: 0 0 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.tm-content code {
  background: #1c1c1c; border-radius: 5px; padding: 2px 7px; color: var(--tm-green);
  font-size: .88em; font-family: Consolas, Menlo, monospace;
}
.tm-content pre code { background: none; padding: 0; color: inherit; }

/* Buttons / CTAs */
.tm-btn {
  display: inline-block; border: 1px solid var(--tm-gray); color: var(--tm-gray);
  border-radius: 0; padding: 12px 40px; font-size: 1.05rem; background: transparent;
  transition: all .2s ease; cursor: pointer;
}
.tm-btn:hover { background: var(--tm-gray); color: #333; }
.tm-btn-accent { border-color: var(--tm-green); color: var(--tm-green); }
.tm-btn-accent:hover { background: var(--tm-green); color: #1e1e1e; }

/* -------------------------------------------------- Timeline / card listings */
.tm-timeline-list { max-width: 1040px; margin: 0 auto; }
.tm-tl {
  display: flex; align-items: center; gap: 32px; margin-bottom: 26px;
  background: var(--tm-card); border-radius: 20px; padding: 26px 34px;
  transition: transform .2s ease, background .2s ease;
}
.tm-tl:nth-child(even) { background: var(--tm-card-2); }
.tm-tl:hover { transform: translateY(-3px); }
.tm-tl-img {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 3px solid rgba(255,255,255,.12);
}
.tm-tl-body { flex: 1 1 auto; }
.tm-tl-body h3 { font-size: 1.3rem; font-weight: 400; margin: 0 0 8px; }
.tm-tl:nth-child(4n+1) .tm-tl-body h3 a { color: var(--tm-green); }
.tm-tl:nth-child(4n+2) .tm-tl-body h3 a { color: var(--tm-cyan); }
.tm-tl:nth-child(4n+3) .tm-tl-body h3 a { color: var(--tm-yellow); }
.tm-tl:nth-child(4n+4) .tm-tl-body h3 a { color: var(--tm-orange); }
.tm-tl-body p { color: #d0d0d0; margin: 0; line-height: 1.8; }
.tm-tl-body .tm-tl-more { display: inline-block; margin-top: 10px; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

.tm-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1100px; margin: 0 auto; }
.tm-card {
  background: var(--tm-card); border-radius: 18px; padding: 30px 30px; transition: transform .2s ease;
}
.tm-card:hover { transform: translateY(-4px); }
.tm-card h3 { font-size: 1.15rem; font-weight: 400; margin: 0 0 10px; color: #fff; }
.tm-card p { color: #cfcfcf; line-height: 1.8; margin: 0; font-size: .95rem; }

/* Section heading (between blocks on home / listings) */
.tm-block-title { text-align: center; margin: 60px 0 40px; }
.tm-block-title .tm-eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .72rem; color: var(--tm-cyan); margin-bottom: 14px;
}
.tm-block-title h2 { font-size: 2rem; font-weight: 300; margin: 0; }
.tm-block-title p { color: var(--tm-gray); max-width: 640px; margin: 14px auto 0; }

/* --------------------------------------------------------------- Footer */
.tm-footer { margin-top: 70px; border-top: 1px solid #454545; background: #262626; }
.tm-footer-cta {
  text-align: center; padding: 54px 20px; border-bottom: 1px solid #3a3a3a;
}
.tm-footer-cta h2 { font-size: 1.8rem; font-weight: 300; margin: 0 0 10px; }
.tm-footer-cta p { color: var(--tm-gray); margin: 0 0 24px; }
.tm-footer-cols {
  max-width: 1170px; margin: 0 auto; padding: 54px 24px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px;
}
.tm-footer-cols h4 {
  color: #fff; font-weight: 400; font-size: .95rem; letter-spacing: .04em;
  text-transform: uppercase; margin: 0 0 16px;
}
.tm-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.tm-footer-cols li { margin-bottom: 10px; }
.tm-footer-cols a { color: var(--tm-gray); font-size: .92rem; font-weight: 300; }
.tm-footer-cols a:hover { color: #fff; }
.tm-footer-bottom {
  max-width: 1170px; margin: 0 auto; padding: 26px 24px 40px; border-top: 1px solid #3a3a3a;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tm-footer-bottom .tm-brand .tm-diamond { width: 20px; height: 20px; border-width: 4px; }
.tm-footer-bottom .tm-brand-name { font-size: 1.05rem; }
.tm-copyright { color: var(--tm-muted); font-size: .85rem; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 991px) {
  .tm-card-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .tm-hero h1, .tm-home-intro h1 { font-size: 2.1rem; }
}
@media (max-width: 767px) {
  .tm-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #262626; border-bottom: 1px solid #454545; padding: 8px 24px 18px;
  }
  .tm-nav-links.is-open { display: flex; }
  .tm-nav-links li { width: 100%; }
  .tm-nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid #383838; }
  .tm-nav-links a::after { display: none; }
  .tm-nav-cta { margin-top: 10px; }
  .tm-nav-toggle { display: block; }
  .tm-section-card { padding: 28px 24px; }
  .tm-content { padding: 0 4px; }
  .tm-tl { flex-direction: column; text-align: center; gap: 18px; }
  .tm-card-grid { grid-template-columns: 1fr; }
  .tm-footer-cols { grid-template-columns: 1fr 1fr; }
  .tm-hero { padding: 54px 18px 46px; }
}
@media (max-width: 480px) {
  .tm-footer-cols { grid-template-columns: 1fr; }
  .tm-hero h1, .tm-home-intro h1 { font-size: 1.8rem; }
}
