:root {
  --blue-bg: #dbeafe;
  --blue-bg-soft: #eaf2fe;
  --blue-card: #e6effd;
  --blue-head: #459ef7;
  --green: #16a34a;
  --green-hover: #22c55e;
  --red: #fb4948;
  --red-band: #dc3b3b;
  --text: #111;
  --muted: #777;
  --link: #2563eb;
  --quote-bg: #f3f4f6;
  --yellow: #fef9c3;
  --navy: #21314d;
  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--blue-bg);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

/* Header */
.site-header { background: var(--blue-bg); }
.header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 8px 8px 4px;
}
.header-logo img { width: 100px; height: auto; }

/* Page card */
.page-wrap { background: var(--blue-bg); }
.page-card {
  max-width: 1250px;
  margin: 0 auto;
  background: #fff;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.article-col { flex: 1 1 0; min-width: 0; padding: 0 16px; width: 100%; }

h1 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  padding: 8px 0 16px;
}

.byline-mobile { font-size: 12px; color: #aaa; margin: 0 0 16px; }
.byline-name { text-transform: uppercase; font-weight: 700; padding: 0 6px; }
.byline-desktop { display: none; }

.cover { margin: 0; background: #ddd; border-radius: 6px; overflow: hidden; }
.cover img { width: 100%; border-radius: 6px; }
.cover a { display: block; }
.cover-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 6px; background: #ddd; }

/* Split hero: video left, photo right */
.cover-split { background: transparent; }
.cover .cover-split-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 6px;
  overflow: hidden;
}
.cover-split .cover-video,
.cover-split .cover-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  background: #ddd;
}
.cover-split .cover-video { object-position: center; }
.cover-split .cover-photo { object-position: 46% center; }

.views-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 8px 8px;
}
.eye { width: 16px; height: 16px; fill: #555; margin-right: 2px; }
.muted { color: var(--muted); }
.views-sep { padding: 0 8px; }
.live-dot { color: #ef4444; animation: pulse 1.6s ease-in-out infinite; }
.live-count { color: #ef4444; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* Body copy */
.body { padding-top: 8px; }
.body p { margin: 0 0 16px; }
.body h2 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  margin: 36px 0 16px;
}
.body a.inline-link { color: var(--link); font-weight: 700; text-decoration: underline; }
.body .check, .body .step { margin-bottom: 10px; }

.article-img { width: 100%; border-radius: 6px; background: #eee; filter: saturate(0.9) contrast(0.95) brightness(1.02); }
.body p > a > .article-img { margin: 8px 0; }
.article-figure { margin: 8px 0 20px; }
.article-figure figcaption { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 8px; }

.quote, .review {
  margin: 8px 0 20px;
  background: var(--quote-bg);
  border-left: 3px solid #333;
  padding: 16px 16px;
}
.quote p, .review p { margin: 0 0 10px !important; }
.quote p:last-child, .review p:last-child { margin-bottom: 0 !important; }
.quote p:first-child { font-style: italic; }
.quote-cite, .review-name { font-weight: 700; }

/* Pull quote */
.pullquote {
  margin: 24px 0 28px;
  padding: 20px 20px 18px 22px;
  border-left: 5px solid var(--red);
  background: #fff6f6;
  border-radius: 0 6px 6px 0;
}
.body .pullquote p { margin: 0; }
.pullquote p:first-child { font-size: 20px; line-height: 1.45; font-style: italic; }
.pullquote strong { font-style: italic; }
.body .pullquote-cite { margin-top: 12px; font-size: 15px; font-weight: 700; color: #444; }

/* 4-stage clog timeline */
.clog-timeline {
  list-style: none;
  margin: 8px 0 24px;
  padding: 4px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}
.clog-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}
.clog-step:last-child { border-bottom: 0; }
.pipe-ring {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #1f2937;
  border-style: solid;
  border-color: #c79a5b;
  box-shadow: 0 0 0 4px #b8bec7, inset 0 0 6px rgba(0,0,0,0.4);
  margin-left: 2px;
}
.pipe-1 { border-width: 1px; }
.pipe-2 { border-width: 7px; }
.pipe-3 { border-width: 15px; border-color: #a9773a; }
.pipe-4 { border-width: 25px; border-color: #8a5a24; }
.clog-text { display: flex; flex-direction: column; }
.clog-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.clog-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.clog-desc { font-size: 15px; line-height: 1.45; color: #444; }
.is-warn .clog-tag, .is-warn .clog-title { color: #c62828; }
.clog-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c62828;
}
.clog-notice::before, .clog-notice::after { content: ""; flex: 1; border-top: 2px dashed #f2a3a3; }

/* Failed-fixes grid */
.fail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  margin: 8px 0 24px;
}
.body a.fail-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.fail-media { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #e5e7eb; margin-bottom: 8px; }
.fail-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.fail-x {
  position: absolute;
  top: 8px; right: 8px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #e11d1d;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.fail-title { font-weight: 800; font-size: 16px; line-height: 1.3; }
.fail-desc { font-size: 14px; line-height: 1.4; color: #444; margin-top: 2px; }

/* Guarantee box */
.guarantee {
  margin: 8px 0 24px;
  padding: 20px;
  border: 2px dashed var(--green);
  border-radius: 8px;
  background: #f0fdf4;
}
.body .guarantee p { margin: 0; }
.guarantee-title { font-size: 20px; font-weight: 800; color: #15803d; text-transform: uppercase; letter-spacing: 0.02em; }
.body .guarantee-lead { margin: 4px 0 12px; font-weight: 700; }
.guarantee-list { list-style: none; margin: 0 0 12px; padding: 0; }
.guarantee-list li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.guarantee-list li::before { content: "\2713"; position: absolute; left: 2px; top: 0; color: var(--green); font-weight: 800; }
.guarantee-foot { font-style: italic; color: #333; }

/* Stages */
.stages {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}
.stage img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #eee; margin-bottom: 6px; }
.body .stage p { margin: 0; }
.stage-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); }
.stage-title { font-weight: 700; font-size: 16px; }
.stage-desc { font-size: 14px; line-height: 1.4; color: #444; }

/* Phone text thread */
.phone {
  max-width: 360px;
  margin: 8px auto 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
.phone-top {
  background: #f6f6f7;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px 8px;
  position: relative;
  text-align: center;
}
.phone-back { position: absolute; left: 12px; top: 10px; font-size: 28px; line-height: 1; color: #0a84ff; }
.phone-contact { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #9ca3af; color: #fff; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.phone-name { font-size: 11px; color: #111; }
.phone-thread { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.body .bubble {
  margin: 0;
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.35;
}
.bubble.them { background: #e9e9eb; color: #111; align-self: flex-start; }
.bubble.me { background: #0a84ff; color: #fff; align-self: flex-end; }
.body .phone-status { margin: 0; align-self: flex-end; font-size: 11px; color: #8e8e93; }

/* Update box */
.update-box { background: var(--yellow); border-radius: 6px; overflow: hidden; margin-top: 24px; }
.update-head {
  background: var(--blue-head);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 10px;
}
.update-body { padding: 10px 10px 12px; font-size: 18px; line-height: 1.5; }

.final-lead { font-weight: 700; font-size: 19px; margin: 24px 0 0; }

/* Buttons */
.cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.cta-button:hover { background: var(--green-hover); }
.cta-mid { font-size: 20px; padding: 16px; margin: 8px 0 16px; }
.cta-final { font-size: 24px; line-height: 1.3; padding: 16px; margin: 24px 0 32px; }
.cta-side { font-size: 17px; padding: 10px 16px; margin-top: 20px; }

/* Sidebar */
.sidebar { width: 100%; padding: 0 16px; }
.sidebar-divider { height: 4px; background: #ddd; margin: 16px 0 40px; }
.sidebar-inner { display: flex; flex-direction: column; align-items: center; padding-bottom: 16px; }
.sidebar-tick { display: none; }
.sidebar-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
}
.s-review { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; margin-top: 24px; }
.s-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  position: relative;
  z-index: 2;
  background: #eee;
}
.s-band {
  width: 100%;
  height: 66px;
  margin-top: -32px;
  background-color: var(--red-band);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 6px);
}
.s-card {
  width: 100%;
  background: var(--blue-card);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-radius: 0 0 6px 6px;
  padding: 16px 20px;
  text-align: center;
}
.s-card h5 { margin: 0 0 8px; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.s-card p { margin: 0; font-size: 14px; line-height: 1.45; color: #333; }

.sidebar-product {
  width: 100%;
  max-width: 420px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 4px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sidebar-product h4 { margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.sidebar-product img { max-height: 300px; width: auto; }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--green);
  padding: 6px 12px;
  display: flex;
  justify-content: center;
  z-index: 50;
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-btn {
  display: block;
  width: 100%;
  max-width: 490px;
  background: #f1f1f1;
  color: #222;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 4px;
}
.sticky-btn:hover { background: #fff; }

/* Footer bands */
.logo-band { background: #f5f5f5; display: flex; justify-content: center; padding: 40px 16px; }
.logo-band img { width: 180px; height: auto; }

.disclosure { background: var(--navy); color: #fff; }
.disclosure-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 36px 16px 32px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}
.disclosure-inner p { margin: 0 0 14px; opacity: 0.85; }
.disclosure-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 0 !important; }
.disclosure-links a { color: #fff; opacity: 0.75; }

.company-footer {
  background: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  line-height: 1.5;
  color: #555;
  padding: 16px 0 72px;
}
.company-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.company-operator { display: flex; flex-direction: column; }
.company-label { color: #8a8a8a; }
.company-name { font-weight: 700; color: #222; }
.company-details { display: flex; flex-direction: column; gap: 10px; }
.company-col { display: flex; flex-direction: column; gap: 2px; }
.company-footer a { color: var(--link); }

/* Tablet+ */
@media (min-width: 640px) {
  .byline-mobile { display: none; }
  .byline-desktop {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    margin: 8px 0 24px;
  }
  .byline-desktop .byline-name { color: #666; }
  .br-mobile { display: none; }
}

@media (min-width: 768px) {
  body { background: var(--blue-bg-soft); }
  .site-header, .page-wrap { background: var(--blue-bg-soft); }
  .header-inner { padding: 16px 8px 4px; }
  .header-logo img { width: 150px; }
  .page-wrap { padding: 16px 16px 32px; }
  .page-card { border-radius: 6px; padding: 32px 24px; }
  h1 { font-size: 34px; padding: 16px 0 28px; }
  .body h2 { font-size: 30px; }
  .stages { grid-template-columns: repeat(4, 1fr); }
  .pullquote p:first-child { font-size: 22px; }
  .clog-timeline { padding: 4px 24px; }
  .cta-final { margin-bottom: 40px; }
  .company-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; padding: 0 24px; }
  .company-details { flex-direction: row; gap: 32px; }
}

@media (min-width: 1280px) {
  .page-card { flex-wrap: nowrap; }
  .sidebar { width: 350px; flex: 0 0 350px; }
  .sidebar-divider { display: none; }
  .sidebar-inner { position: sticky; top: 0; }
  .sidebar-tick { display: block; width: 5px; height: 50px; background: var(--red); margin-top: -20px; margin-bottom: 10px; }
  .s-review { max-width: none; }
}
