/* ==========================================================================
   TG Channel Match — styles
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef2f7;
  --text: #0f172a;
  --text-muted: #55617a;
  --text-faint: #8895ab;
  --border: #e4e9f1;
  --border-strong: #d5dce7;

  --primary: #2481cc;
  --primary-dark: #1a679f;
  --primary-soft: #eaf4fc;
  --accent: #16a35a;
  --accent-soft: #e8f8ef;
  --danger-soft: #fdeeee;
  --danger-text: #b3402f;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);

  --container: 1160px;
  --gap: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 14px;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(36, 129, 204, 0.55);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(36, 129, 204, 0.6);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 17px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.logo .hl {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

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

.hero {
  padding-top: 72px;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 85% 10%, var(--primary-soft), transparent 45%),
    var(--bg);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.12;
}

.hero h1 .match {
  position: relative;
  color: var(--primary);
  white-space: nowrap;
}

.hero h1 .match svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
}

.hero .lede {
  margin-top: 22px;
  max-width: 540px;
}

.hero .stat-inline {
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.trust-line {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
  display: flex;
  gap: 10px;
}

.trust-line svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

/* hero visual: match graphic */

.hero-visual {
  position: relative;
}

.match-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.match-pill {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}

.match-pill .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  font-weight: 600;
}

.match-pill .value {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}

.match-connector {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.match-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.match-metric {
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg-soft);
}

.match-metric .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.match-metric.good .num {
  color: var(--accent);
}

.match-metric .cap {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Pain ---------- */

.pain {
  background: var(--bg-soft);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

@media (max-width: 800px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.pain-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pain-card h3 {
  margin-bottom: 12px;
}

.pain-card p {
  color: var(--text-muted);
  margin: 0;
}

.pain-card .price-tag {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--danger-text);
  background: var(--danger-soft);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 14px;
}

/* ---------- Solution ---------- */

.solution {
  text-align: center;
}

.solution .container {
  max-width: 780px;
}

.solution .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.solution h2 .hl {
  color: var(--primary);
}

.solution p {
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 20px;
}

/* ---------- Theses grid ---------- */

.theses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 960px) {
  .theses-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .theses-grid {
    grid-template-columns: 1fr;
  }
}

.thesis-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.thesis-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.thesis-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.thesis-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Process ---------- */

.process {
  background: var(--bg-soft);
}

.process-list {
  counter-reset: step;
  max-width: 760px;
}

.process-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step .num {
  counter-increment: step;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step p {
  margin: 0;
  padding-top: 8px;
  color: var(--text-muted);
}

/* ---------- Who it's for ---------- */

.who .container {
  max-width: 820px;
}

.tag-cloud {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 100px;
}

/* ---------- Compare table ---------- */

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

table.compare th,
table.compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

table.compare thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  background: var(--bg-soft);
  font-weight: 700;
}

table.compare tbody th {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th {
  border-bottom: none;
}

table.compare .col-winner {
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--accent);
  position: relative;
}

table.compare thead .col-winner {
  background: var(--accent);
  color: #fff;
}

/* ---------- Case study ---------- */

.case {
  background: var(--bg-soft);
}

.case-intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.case-intro p {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 14px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.case-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.case-card-head h3 {
  font-size: 22px;
}

.case-card-head .channel-topic {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 6px;
}

.case-since {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.case-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 760px) {
  .case-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

.case-metric {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.case-metric .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.case-metric.good .num {
  color: var(--accent);
}

.case-metric .cap {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.case-note {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.case-split {
  margin-top: 20px;
  background: var(--accent-soft);
  border: 1px solid #c9ecd7;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 14.5px;
  color: #145c37;
}

.case-split strong {
  color: #0e4a2b;
}

.proof-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

.proof-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}

.proof-shot img {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.proof-shot figcaption {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- About ---------- */

.about .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 760px) {
  .about .container {
    grid-template-columns: 1fr;
  }
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 16px;
}

.about-name {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-name .name {
  font-weight: 700;
  font-size: 16px;
}

.about-name .role {
  font-size: 14px;
  color: var(--text-muted);
}

.about-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 800px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 4px 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--primary);
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 0 22px;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.final-cta .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .final-cta .container {
    grid-template-columns: 1fr;
  }
}

.final-cta h2 {
  max-width: 480px;
}

.final-cta .lede {
  margin-top: 16px;
  max-width: 460px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 20px;
}

.field-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.field-consent label {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid #c9ecd7;
  color: #0e4a2b;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .foot-links {
  display: flex;
  gap: 24px;
}

.site-footer .foot-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .copy {
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- Utility ---------- */

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

/* ---------- Simple legal page ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal .date {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0;
}

.legal li {
  margin-bottom: 6px;
}

.legal .callout {
  background: var(--danger-soft);
  border: 1px solid #f4d3cd;
  color: var(--danger-text);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  margin: 16px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 14px;
}
