/* =========================================================
   Cleaner Network — "Complete Your Cleaner Profile" guide
   All rules are scoped under .profile-guide to avoid clashing
   with the site's existing global header/footer/other styles.
   ========================================================= */

.profile-guide {
  /* Scoped design tokens — matches the Getting Started page */
  --pg-green-700: #146a43;
  --pg-green-600: #16804f;
  --pg-green-500: #168a55;
  --pg-green-100: #e3f3ea;
  --pg-green-bg: #f0f8f4;
  --pg-navy: #0d2635;
  --pg-gray-600: #5b6b73;
  --pg-gray-400: #8a97a0;
  --pg-red: #d9463c;
  --pg-border: #e4e9ec;
  --pg-white: #ffffff;
  --pg-radius-lg: 24px;
  --pg-radius-md: 16px;
  --pg-radius-sm: 10px;
  --pg-shadow-sm: 0 1px 2px rgba(13, 38, 53, 0.06);
  --pg-shadow-md: 0 8px 24px rgba(13, 38, 53, 0.08);
  --pg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  font-family: var(--pg-font);
  color: var(--pg-navy);
  padding: 28px 0 72px;
}

.profile-guide * { box-sizing: border-box; }
.profile-guide img { max-width: 100%; display: block; }
.profile-guide a { text-decoration: none; color: inherit; }
.profile-guide ul { list-style: none; margin: 0; padding: 0; }
.profile-guide h1,
.profile-guide h2,
.profile-guide h3 { color: var(--pg-navy); margin: 0; }
.profile-guide p { margin: 0; }

.profile-guide__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.profile-guide a:focus-visible,
.profile-guide button:focus-visible {
  outline: 2px solid var(--pg-green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   Buttons
   ========================================================= */
.profile-guide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.profile-guide__btn--primary { background: var(--pg-green-600); color: var(--pg-white); }
.profile-guide__btn--primary:hover { background: var(--pg-green-700); }
.profile-guide__btn--outline { background: transparent; border-color: var(--pg-green-600); color: var(--pg-green-600); }
.profile-guide__btn--outline:hover { background: var(--pg-green-600); color: var(--pg-white); }
.profile-guide__btn--block { width: 100%; }

.profile-guide__badge {
  display: inline-block;
  background: var(--pg-green-100);
  color: var(--pg-green-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.profile-guide__breadcrumb {
  padding: 0 0 20px;
  font-size: 0.85rem;
  color: var(--pg-gray-600);
}
.profile-guide__breadcrumb a:hover { color: var(--pg-green-600); }
.profile-guide__breadcrumb .sep { margin: 0 8px; color: var(--pg-gray-400); }
.profile-guide__breadcrumb .current { color: var(--pg-navy); font-weight: 500; }

/* =========================================================
   Layout: two columns
   ========================================================= */
.profile-guide__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.profile-guide__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================================
   Hero
   ========================================================= */
.profile-guide__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.profile-guide__hero-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 14px;
}
.profile-guide__hero-sub {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.profile-guide__hero-desc {
  color: var(--pg-gray-600);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 0 20px;
}
.profile-guide__hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--pg-gray-600);
}
.profile-guide__hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.profile-guide__hero-meta i { color: var(--pg-green-600); }

.profile-guide__hero-media { position: relative; }
.profile-guide__hero-image {
  border-radius: var(--pg-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.1;
}
.profile-guide__hero-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-guide__hero-note {
  position: absolute;
  right: -8px;
  top: -18px;
  background: var(--pg-green-bg);
  color: var(--pg-green-700);
  padding: 20px 24px;
  border-radius: var(--pg-radius-md);
  box-shadow: var(--pg-shadow-md);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
  max-width: 170px;
  transform: rotate(-2deg);
}
.profile-guide__hero-note .rule {
  width: 30px;
  border-top: 2px solid var(--pg-green-600);
  margin-top: 8px;
}

/* =========================================================
   Article body / generic section spacing
   ========================================================= */
.profile-guide__section { margin-bottom: 40px; }
.profile-guide__section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.profile-guide__section > p.profile-guide__lead {
  color: var(--pg-gray-600);
  margin-bottom: 18px;
}

/* Before you start checklist */
.profile-guide__check-box {
  background: var(--pg-green-bg);
  border-radius: var(--pg-radius-md);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 32px;
}
.profile-guide__check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.94rem;
  line-height: 1.4;
}
.profile-guide__check-item--good .profile-guide__check-icon { color: var(--pg-green-600); }
.profile-guide__check-item--avoid .profile-guide__check-icon { color: var(--pg-red); }
.profile-guide__check-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.profile-guide__check-icon svg { width: 100%; height: 100%; }

/* Numbered step heading, shared by all article steps */
.profile-guide__step {
  padding-top: 8px;
}
.profile-guide__step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.profile-guide__step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pg-green-600);
  color: var(--pg-white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-guide__step-title {
  font-size: 1.2rem;
  font-weight: 800;
}
.profile-guide__step-text {
  color: var(--pg-gray-600);
  line-height: 1.65;
  margin: 0 0 10px;
  max-width: 68ch;
}
.profile-guide__step-text:last-of-type { margin-bottom: 0; }

/* Step 1 — photo comparison */
.profile-guide__compare {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
.profile-guide__compare-panel {
  background: var(--pg-white);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  padding: 22px;
  flex: 1;
}
.profile-guide__compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.profile-guide__compare-cols h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.profile-guide__compare-photo {
  position: relative;
  border-radius: var(--pg-radius-md);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3.3;
  flex-shrink: 0;
}
.profile-guide__compare-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-guide__compare-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pg-green-600);
  color: var(--pg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pg-shadow-sm);
}
.profile-guide__compare-badge svg { width: 15px; height: 15px; }

/* Step 2 — quote box */
.profile-guide__quote {
  margin-top: 16px;
  background: var(--pg-green-bg);
  border-radius: var(--pg-radius-md);
  padding: 26px 30px;
  position: relative;
  display: flex;
  gap: 14px;
}
.profile-guide__quote-mark {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--pg-green-600);
  font-weight: 700;
  flex-shrink: 0;
}
.profile-guide__quote p {
  font-style: italic;
  color: var(--pg-navy);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Step 4 — service pills */
.profile-guide__pills {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-guide__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pg-green-bg);
  color: var(--pg-green-700);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}
.profile-guide__pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--pg-green-600);
}

/* Final actions */
.profile-guide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--pg-border);
}
.profile-guide__actions .profile-guide__btn { flex: 1 1 auto; }

/* =========================================================
   Sidebar cards (shared)
   ========================================================= */
.profile-guide__card {
  background: var(--pg-white);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-lg);
  padding: 26px;
  box-shadow: var(--pg-shadow-sm);
}
.profile-guide__card--tint {
  background: var(--pg-green-bg);
  border-color: transparent;
}
.profile-guide__card--support {
  background: #f5f7f8;
  border-color: transparent;
}
.profile-guide__card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

/* Progress card */
.profile-guide__progress-card { position: relative; }
.profile-guide__progress-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-guide__progress-count {
  color: var(--pg-gray-600);
  font-size: 0.88rem;
  margin-top: 2px;
}
.profile-guide__ring {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.profile-guide__ring text {
  font-size: 0.62rem;
  font-weight: 700;
  fill: var(--pg-navy);
}
.profile-guide__progress-track {
  height: 8px;
  background: var(--pg-green-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.profile-guide__progress-fill {
  height: 100%;
  background: var(--pg-green-600);
  border-radius: 999px;
}
.profile-guide__progress-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.profile-guide__progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--pg-gray-600);
  border-bottom: 1px solid var(--pg-border);
}
.profile-guide__progress-item:last-child { border-bottom: none; }
.profile-guide__progress-item.is-complete {
  color: var(--pg-navy);
  font-weight: 600;
}
.profile-guide__progress-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--pg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pg-white);
}
.profile-guide__progress-item.is-complete .profile-guide__progress-icon {
  background: var(--pg-green-600);
  border-color: var(--pg-green-600);
}
.profile-guide__progress-icon svg { width: 12px; height: 12px; }

/* Tips card */
.profile-guide__tips-list {
  display: flex;
  flex-direction: column;
}
.profile-guide__tip {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(13, 38, 53, 0.08);
}
.profile-guide__tip.is-last { border-bottom: none; padding-bottom: 0; }
.profile-guide__tip:first-child { padding-top: 16px; }
.profile-guide__tip-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pg-white);
  color: var(--pg-green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  box-shadow: var(--pg-shadow-sm);
}
.profile-guide__tip-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 3px;
}
.profile-guide__tip-desc {
  display: block;
  color: var(--pg-gray-600);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Related articles card */
.profile-guide__related-list {
  display: flex;
  flex-direction: column;
}
.profile-guide__related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pg-border);
}
.profile-guide__related-item:last-child { border-bottom: none; padding-bottom: 0; }
.profile-guide__related-item:first-child { padding-top: 4px; }
.profile-guide__related-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--pg-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.profile-guide__related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-guide__related-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-guide__related-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.profile-guide__related-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--pg-gray-600);
}
.profile-guide__related-type {
  font-weight: 700;
  color: var(--pg-green-700);
  background: var(--pg-green-100);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.64rem;
}
.profile-guide__related-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--pg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pg-navy);
}
.profile-guide__related-arrow svg { width: 11px; height: 11px; }

/* Support card */
.profile-guide__support-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pg-white);
  box-shadow: var(--pg-shadow-sm);
  color: var(--pg-green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.profile-guide__support-sub {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 2px 0 8px;
}
.profile-guide__support-text {
  color: var(--pg-gray-600);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.profile-guide__support-note {
  display: block;
  margin-top: 10px;
  color: var(--pg-gray-600);
  font-size: 0.8rem;
  text-align: center;
}

/* =========================================================
   Responsive breakpoints
   Desktop: 1200px+ | Tablet: 768-1199 | Mobile: <768 | Small: <576
   ========================================================= */

@media (min-width: 992px) {
  .profile-guide__hero { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .profile-guide__check-box { grid-template-columns: 1fr 1fr; }
  .profile-guide__compare { grid-template-columns: 1fr 260px; }
  .profile-guide__actions { flex-wrap: nowrap; }
  .profile-guide__actions .profile-guide__btn { flex: 0 0 auto; }
}

@media (min-width: 1200px) {
  .profile-guide__layout { grid-template-columns: 2.35fr 1fr; gap: 40px; }
  .profile-guide__sidebar { position: sticky; top: 96px; align-self: start; }
}

@media (max-width: 1199px) {
  .profile-guide__sidebar { position: static; }
}

@media (max-width: 767px) {
  .profile-guide { padding: 20px 0 56px; }
  .profile-guide__container { padding: 0 18px; }
  .profile-guide__hero { margin-bottom: 32px; }
  .profile-guide__hero-media { order: 2; margin-top: 6px; }
  .profile-guide__hero-content { order: 1; }
  .profile-guide__hero-note {
    position: static;
    margin-top: -34px;
    margin-left: auto;
    transform: none;
    width: fit-content;
  }
  .profile-guide__hero-meta { gap: 14px; row-gap: 8px; }
  .profile-guide__check-box { padding: 20px 20px; }
  .profile-guide__compare-cols { grid-template-columns: 1fr; gap: 18px; }
  .profile-guide__actions { flex-direction: column; }
  .profile-guide__actions .profile-guide__btn { width: 100%; }
  .profile-guide__section { margin-bottom: 32px; }
}

@media (max-width: 575px) {
  .profile-guide__hero-title { font-size: 1.8rem; }
  .profile-guide__step-title { font-size: 1.08rem; }
  .profile-guide__card { padding: 20px; }
  .profile-guide__hero-note { padding: 16px 18px; font-size: 0.94rem; max-width: 155px; }
  .profile-guide__quote { padding: 20px; }
  .profile-guide__pill { font-size: 0.82rem; padding: 8px 13px; }
}