/* ============================================================
   THE SIGNAL — BUYING GUIDE
   Shared stylesheet for all Alanson Media Signal articles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;600;700;800&family=Barlow+Condensed:wght@700;800&display=swap');

:root {
  --gold: #FFD700;
  --gold-dark: #C9A800;
  --navy: #1B3A6B;
  --navy-dark: #0C1C3A;
  --dark: #080C18;
  --muted: #C2D0E8;
  --faint: #8A9BB5;
  --border: #2D3F5A;
  --red: #C0392B;
  --green: #1A7A4A;
  --white: #F4F7FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #eef1f8;
  font-family: 'Barlow', sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  padding: 32px 0;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 4px 30px rgba(0,0,0,.15);
}

/* ---- HEADER ---- */
.header {
  background: var(--navy-dark);
  padding: 48px 56px 40px;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.header-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.logo-wordmark { display: inline-block; line-height: 1; }
.logo-alanson {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 52px; color: #fff; letter-spacing: 5px;
  text-transform: uppercase; display: block; line-height: 1;
}
.logo-bottom-row {
  display: flex; align-items: flex-end; justify-content: flex-end;
  gap: 6px; margin-top: 5px;
}
.logo-eq { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
@keyframes eq-pulse {
  0%   { height: var(--h); }
  25%  { height: calc(var(--h) * 0.4 + 4px); }
  50%  { height: calc(36px - var(--h) + 4px); }
  75%  { height: calc(var(--h) * 0.6 + 3px); }
  100% { height: var(--h); }
}
.eq-b {
  display: block; width: 5px; background: var(--gold);
  border-radius: 2px 2px 0 0;
  flex-shrink: 0; height: var(--h);
  animation: eq-pulse 1.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.logo-media {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 34px; color: var(--gold); letter-spacing: 1px; line-height: 1;
}
.logo-tagline {
  color: var(--gold); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 400; margin-top: 10px;
}
.contact-info {
  text-align: right; color: #fff; font-size: 14px; line-height: 1.8;
}
.contact-info a { color: #fff; text-decoration: none; }
.header-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 24px; }
.doc-label { display: flex; justify-content: space-between; align-items: center; }
.doc-label .tag {
  background: var(--gold); color: var(--navy-dark);
  font-weight: 800; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 2px;
}
.doc-label .date { color: var(--faint); font-size: 13px; }

/* ---- TITLE BAR ---- */
.title-bar {
  padding: 48px 56px 36px;
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
  border-bottom: 1px solid #e6eaf3;
}
.breadcrumb {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: 14px;
}
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb .sep { margin: 0 8px; }
.article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 42px; line-height: 1.1;
  color: var(--navy-dark); letter-spacing: 0;
  margin-bottom: 18px;
}
.article-sub {
  font-size: 17px; color: #444; font-weight: 400;
  line-height: 1.55; max-width: 680px;
}
.article-meta {
  margin-top: 24px; display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--faint); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}
.article-meta b { color: var(--navy); }

/* ---- BODY ---- */
.body { padding: 52px 56px; }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--navy);
  margin: 44px 0 20px; padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.section-title:first-child { margin-top: 0; }
.section-title .icon { font-size: 20px; }

.body p {
  font-size: 15.5px; color: #2a2a3e; line-height: 1.8;
  margin-bottom: 18px; font-weight: 400;
}
.body ul, .body ol { margin: 8px 0 18px 22px; }
.body ul li, .body ol li { font-size: 15px; color: #2a2a3e; line-height: 1.7; margin-bottom: 6px; }

/* ---- PLAIN ENGLISH CALLOUT ---- */
.plain-box {
  background: #fffbea; border: 2px solid var(--gold);
  border-radius: 10px; padding: 22px 26px; margin: 24px 0;
  display: flex; gap: 16px; align-items: flex-start;
}
.plain-box.gold-left { border: 2px solid #ecdc7a; border-left: 5px solid var(--gold); }
.plain-box .bulb { font-size: 28px; flex-shrink: 0; }
.plain-box h4 {
  font-weight: 700; font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase; color: #7a6000; margin-bottom: 6px;
}
.plain-box p { font-size: 14.5px; color: #555; line-height: 1.6; margin-bottom: 0; }
.plain-box p + p { margin-top: 10px; }
.plain-box ul { margin: 8px 0 0 16px; line-height: 1.9; color: #444; font-size: 14px; }
.plain-box ul li { font-size: 14px; }

/* ---- COMPARISON CARDS (good/bad) ---- */
.visual-comparison {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 28px 0;
}
.compare-card { border-radius: 10px; overflow: hidden; }
.compare-card.bad { border: 2px solid #e74c3c; }
.compare-card.good { border: 2px solid #1A7A4A; }
.compare-card .card-header {
  padding: 14px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 18px;
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.bad .card-header { background: #e74c3c; color: white; }
.good .card-header { background: #1A7A4A; color: white; }
.card-body { padding: 18px 20px; background: #fafbff; }
.card-body ul { list-style: none; margin: 0; }
.card-body ul li {
  padding: 8px 0; font-size: 14px;
  border-bottom: 1px solid #e8ecf5;
  display: flex; align-items: flex-start;
  gap: 8px; line-height: 1.4; margin: 0;
}
.card-body ul li:last-child { border-bottom: none; }
.card-body ul li .bullet { flex-shrink: 0; font-size: 16px; margin-top: 1px; }

/* ---- COMPARISON TABLE ---- */
.compare-table {
  margin: 28px 0; border-radius: 10px; overflow: hidden;
  border: 1px solid #dde3f0;
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th {
  background: var(--navy-dark); color: #fff;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px;
  padding: 14px 14px; text-align: left;
}
.compare-table td {
  padding: 14px; font-size: 14px; color: #333;
  border-bottom: 1px solid #eef1f8; vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .row-label {
  background: #f7f9ff; font-weight: 700; color: var(--navy-dark);
  width: 22%;
}
.compare-table tr:nth-child(even) td { background: #fafbff; }
.compare-table tr:nth-child(even) .row-label { background: #f0f4ff; }

/* Vendor-specific header colors (used in comparison guides) */
.compare-table th.h-teams { background: #5059C9; }
.compare-table th.h-zoom { background: #2D8CFF; }
.compare-table th.h-webex { background: #00A1B0; }
.compare-table th.h-rti { background: #B8860B; }
.compare-table th.h-crestron { background: #E63946; }
.compare-table th.h-control4 { background: #2A9D8F; }

/* ---- 3-WAY VENDOR CARDS ---- */
.vendor-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px; margin: 28px 0;
}
.vendor-grid.two { grid-template-columns: 1fr 1fr; }
.vendor-card {
  border: 1px solid #dde3f0; border-radius: 10px; overflow: hidden;
  background: #fafbff;
}
.vendor-head {
  padding: 14px 18px; color: #fff;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 15px;
}
.v-teams { background: #5059C9; }
.v-zoom { background: #2D8CFF; }
.v-webex { background: #00A1B0; }
.v-rti { background: #B8860B; }
.v-crestron { background: #E63946; }
.v-control4 { background: #2A9D8F; }
.v-navy { background: var(--navy); }
.v-gold { background: var(--gold-dark); color: var(--navy-dark); }
.v-green { background: var(--green); }
.v-red { background: var(--red); }

.vendor-body { padding: 18px; }
.vendor-body h5 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #777; margin: 14px 0 6px; font-weight: 700;
}
.vendor-body h5:first-child { margin-top: 0; }
.vendor-body ul { list-style: none; margin: 0; }
.vendor-body li {
  font-size: 13px; padding: 5px 0; color: #333;
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; margin: 0;
}
.vendor-body li .dot { flex-shrink: 0; font-size: 14px; line-height: 1.4; }
.vendor-body .pro .dot { color: var(--green); }
.vendor-body .con .dot { color: var(--red); }

/* ---- INFO STRIP (dark stats) ---- */
.info-strip {
  background: var(--navy-dark); border-radius: 10px;
  padding: 28px 32px; margin: 28px 0; color: #fff;
}
.info-strip h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; font-weight: 700;
}
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.stat-row.two { grid-template-columns: 1fr 1fr; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
.stat-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; text-align: center;
}
.stat-box .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px; font-weight: 800; color: var(--gold);
  line-height: 1;
}
.stat-box .label {
  font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4;
}

/* ---- DECISION TREE ---- */
.decision {
  background: linear-gradient(135deg, #f0f4ff 0%, #fffbea 100%);
  border: 1px solid #dde3f0; border-radius: 10px;
  padding: 28px 32px; margin: 28px 0;
}
.decision h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-dark);
  margin-bottom: 18px;
}
.decision-row {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid #e0e6f2; align-items: flex-start;
}
.decision-row:last-child { border-bottom: none; }
.decision-row .if {
  flex-shrink: 0; width: 220px;
  font-weight: 700; color: var(--navy-dark); font-size: 14px;
}
.decision-row .then {
  flex: 1; font-size: 14px; color: #444; line-height: 1.6;
}
.decision-row .then .pick {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-right: 6px;
}
.pick.teams { background: #5059C9; }
.pick.zoom { background: #2D8CFF; }
.pick.webex { background: #00A1B0; }
.pick.rti { background: #B8860B; }
.pick.crestron { background: #E63946; }
.pick.control4 { background: #2A9D8F; }
.pick.navy { background: var(--navy); }
.pick.gold { background: var(--gold-dark); color: var(--navy-dark); }
.pick.green { background: var(--green); }
.pick.red { background: var(--red); }

/* ---- WARRANTY / TWO-COLUMN PROBLEM CARDS ---- */
.warranty-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 28px 0;
}
.warranty-card { border-radius: 10px; padding: 24px; }
.warranty-card.bad-side { background: #fff5f5; border: 2px solid #e74c3c; }
.warranty-card.good-side { background: #f0fff7; border: 2px solid #1A7A4A; }
.warranty-card .w-icon { font-size: 36px; margin-bottom: 12px; }
.warranty-card h4 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 18px;
  font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}
.bad-side h4 { color: #c0392b; }
.good-side h4 { color: #1A7A4A; }
.warranty-card p { font-size: 14px; line-height: 1.6; color: #444; margin: 0; }
.warranty-card .w-badge {
  display: inline-block; margin-top: 12px;
  padding: 5px 12px; border-radius: 4px;
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
}
.bad-side .w-badge { background: #e74c3c; color: white; }
.good-side .w-badge { background: #1A7A4A; color: white; }

/* ---- CONTROL / FEATURE GRID ---- */
.control-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin: 28px 0;
}
.control-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.control-card {
  background: #f7f9ff; border: 1px solid #dde3f5;
  border-radius: 10px; padding: 22px;
  border-top: 3px solid var(--gold);
}
.control-card .ctrl-icon { font-size: 32px; margin-bottom: 10px; }
.control-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--navy);
  margin-bottom: 8px;
}
.control-card p { font-size: 13.5px; color: #444; line-height: 1.6; margin: 0; }

/* ---- TIMELINE ---- */
.timeline { margin: 28px 0; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 28px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--navy));
}
.tl-item {
  display: flex; gap: 24px; margin-bottom: 20px; align-items: flex-start;
}
.tl-dot {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 13px; flex-shrink: 0; z-index: 1; position: relative;
  letter-spacing: 1px; text-align: center; line-height: 1;
}
.tl-dot.past { background: #e74c3c; color: white; }
.tl-dot.now { background: var(--gold); color: var(--navy-dark); }
.tl-dot.future { background: var(--navy); color: white; }
.tl-content {
  background: #f7f9ff; border-radius: 8px;
  padding: 14px 18px; flex: 1;
  border-left: 3px solid var(--muted);
}
.tl-content h4 {
  font-weight: 700; font-size: 15px;
  margin-bottom: 4px; color: var(--navy-dark);
}
.tl-content p { font-size: 13.5px; color: #555; line-height: 1.5; margin: 0; }

/* ---- PHASE / OPTION CARDS ---- */
.phase-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 28px 0;
}
.phase-card { border-radius: 10px; padding: 26px; position: relative; }
.phase-a { background: #f0f4ff; border: 2px solid var(--navy); }
.phase-b { background: linear-gradient(135deg, #fffbea, #fff8d6); border: 2px solid var(--gold-dark); }
.phase-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 12px;
}
.phase-a .phase-badge { background: var(--navy); color: white; }
.phase-b .phase-badge { background: var(--gold-dark); color: var(--navy-dark); }
.phase-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 10px;
}
.phase-a h4 { color: var(--navy); }
.phase-b h4 { color: #7a5c00; }
.phase-card p { font-size: 13.5px; color: #444; line-height: 1.6; margin-bottom: 14px; }
.phase-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 10px;
  border-radius: 4px; display: inline-block;
}
.phase-a .phase-tag { background: rgba(27,58,107,0.1); color: var(--navy); }
.phase-b .phase-tag { background: rgba(201,168,0,0.2); color: #7a5c00; }

/* ---- DOWNLOAD CTA ---- */
.download {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 10px; padding: 32px; margin: 36px 0 24px;
  border-top: 4px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.download h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px;
  font-weight: 800; color: var(--gold); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 6px;
}
.download p { color: var(--muted); font-size: 14px; margin: 0; }
.download .dbtn {
  background: var(--gold); color: var(--navy-dark);
  padding: 14px 24px; border-radius: 6px;
  font-weight: 800; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}

/* ---- CLOSING / SIGN-OFF BLOCK ---- */
.author-block {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid #dde3f0;
}
.author-block .closing { font-size: 15px; margin-bottom: 18px; color: #333; }
.sig-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px;
  font-weight: 800; color: var(--navy); letter-spacing: 1px;
}
.sig-title {
  font-size: 13px; color: var(--faint); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 2px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark); padding: 18px 56px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer p { color: var(--faint); font-size: 12px; letter-spacing: 1px; }
.footer .brand {
  color: var(--gold); font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
}

/* ---- CHECKLIST ---- */
.checklist {
  background: #f7f9ff; border: 1px solid #dde3f5;
  border-radius: 10px; padding: 22px 26px; margin: 28px 0;
}
.checklist h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy);
  margin-bottom: 14px;
}
.checklist ul { list-style: none; margin: 0; }
.checklist li {
  font-size: 14.5px; padding: 8px 0; color: #2a2a3e;
  display: flex; gap: 12px; align-items: flex-start;
  line-height: 1.5; margin: 0;
  border-bottom: 1px dashed #dde3f5;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '☐'; color: var(--gold); font-weight: 700;
  font-size: 18px; line-height: 1.3; flex-shrink: 0;
}

/* ---- QUOTE / PULL QUOTE ---- */
.pull-quote {
  border-left: 5px solid var(--gold);
  padding: 18px 24px; margin: 28px 0;
  background: #fffbea;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy-dark); line-height: 1.4;
  font-style: italic;
}
.pull-quote .attr {
  display: block; font-family: 'Barlow', sans-serif;
  font-size: 13px; font-weight: 600; font-style: normal;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--faint); margin-top: 10px;
}

/* ---- PRINT ---- */
@media print {
  body { background: white; padding: 0; }
  .page { box-shadow: none; margin: 0; max-width: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 780px) {
  .vendor-grid, .vendor-grid.two,
  .stat-row, .stat-row.two, .stat-row.four,
  .visual-comparison, .warranty-grid, .control-grid, .control-grid.three,
  .phase-grid { grid-template-columns: 1fr; }
  .download { flex-direction: column; align-items: flex-start; }
  .article-title { font-size: 30px; }
  .header, .title-bar, .body, .footer { padding-left: 24px; padding-right: 24px; }
  .decision-row { flex-direction: column; gap: 6px; }
  .decision-row .if { width: auto; }
  .header-top { flex-direction: column; gap: 24px; }
  .contact-info { text-align: left; }
}
