/* Comparison hero section */
    .comparison-hero {
      padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-4);
      min-height: 70vh;
      display: flex;
      align-items: center;
      background: var(--color-bg);
      position: relative;
      overflow: hidden;
    }

    .comparison-hero .hero-content {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-8);
      align-items: center;
      max-width: var(--content-max);
      margin-inline: auto;
      width: 100%;
      position: relative;
      z-index: 2;
    }

    @media (min-width: 768px) {
      .comparison-hero .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
      }
    }

    .comparison-hero .hero-text { max-width: 600px; }
    .comparison-hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; }

    .hero-character {
      position: relative;
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 6px;
    }

    .material-swatch {
      flex: 1;
      border-radius: 16px;
      overflow: hidden;
      opacity: 0;
      transform: translateY(30px) scale(0.95);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, opacity 0.5s ease;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      cursor: pointer;
      position: relative;
    }

    .material-swatch.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .material-swatch:hover {
      transform: translateY(-8px) scale(1.04);
      box-shadow: 0 16px 40px rgba(0,0,0,0.18);
      z-index: 2;
    }

    .material-swatch img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .material-swatch .swatch-label {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 24px 8px 10px;
      background: linear-gradient(transparent, rgba(0,0,0,0.5));
      color: white;
      font-size: 11px;
      font-weight: 700;
      text-align: center;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .material-swatch:hover .swatch-label {
      opacity: 1;
    }

    @media (max-width: 767px) {
      .hero-character { max-width: 100%; gap: 4px; }
      .material-swatch { border-radius: 10px; }
      .comparison-hero .hero-text { text-align: center; }
    }

    .breadcrumb {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-bottom: var(--space-6);
      display: flex;
      gap: var(--space-2);
      flex-wrap: wrap;
    }

    .breadcrumb a {
      color: var(--color-text-muted);
      text-decoration: none;
      transition: color var(--transition-interactive);
    }

    .breadcrumb a:hover {
      color: var(--color-primary);
    }

    /* Glass morphism effects */
    .glass {
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255,255,255,0.8);
    }

    .glass-strong {
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(40px);
      border: 1px solid rgba(255,255,255,0.9);
    }

    /* Sticky selector (compact) */
    .sticky-selector {
      position: sticky;
      top: 64px;
      z-index: 100;
      padding: 8px 0;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(30px);
      border-bottom: 1px solid rgba(200,200,200,0.3);
      box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }

    /* Shed card styles */
    .shed-card {
      border-radius: 16px;
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255,255,255,0.8);
      padding: 12px;
      transition: all 0.3s ease;
      text-align: center;
    }

    .shed-card:hover {
      transform: translateY(-4px);
      background: rgba(255,255,255,0.85);
      box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    .shed-card img {
      width: 100%;
      height: 180px;
      object-fit: contain;
      border-radius: 12px;
      margin-bottom: 8px;
    }

    .shed-card-name {
      font-weight: 700;
      font-size: 13px;
      color: var(--color-text);
      margin-bottom: 4px;
    }

    .shed-card-tagline {
      font-size: 11px;
      color: var(--color-text-muted);
      margin-bottom: 8px;
    }

    .rank-badge {
      display: inline-block;
      padding: 6px 10px;
      border-radius: 8px;
      font-size: 9px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .rank-1 { background: linear-gradient(135deg, #D4AF37, #F5D060); color: #5C4A1E; }
    .rank-2 { background: linear-gradient(135deg, #A8A8A8, #D0D0D0); color: #4A4A4A; }
    .rank-3 { background: linear-gradient(135deg, #CD7F32, #E6A75E); color: #5C3A1E; }
    .rank-4, .rank-5 { background: #E8E8E8; color: #666; }

    /* Progress ring SVG */
    .progress-ring-container {
      width: 64px;
      height: 64px;
      margin: 8px auto;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .progress-ring-text {
      position: absolute;
      font-weight: 800;
      font-size: 20px;
      color: var(--color-text);
    }

    /* Sticky column header */
    .sticky-header-row {
      position: sticky;
      top: 90px;
      z-index: 99;
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(40px);
      border-radius: 16px;
      padding: 12px 16px;
      margin-bottom: 16px;
      display: grid;
      grid-template-columns: 280px repeat(5,1fr);
      gap: 8px;
      align-items: center;
      border: 1px solid rgba(255,255,255,0.9);
    }

    .sticky-header-cell {
      text-align: center;
      font-size: 12px;
      color: var(--color-text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .sticky-header-shed-name {
      font-weight: 700;
      font-size: 13px;
    }

    /* Sticky shed cards strip — desktop matches feature rows; mobile becomes horizontal scroll */
    .shed-cards-grid {
      display: grid;
      grid-template-columns: 280px repeat(5, 1fr);
      gap: 8px;
      align-items: center;
    }
    @media (max-width: 900px) {
      .shed-cards-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: thin;
      }
      .shed-cards-grid > * {
        flex: 0 0 140px;
        scroll-snap-align: start;
      }
      /* Hide the first "Compare across:" label on mobile — it takes up a whole screen */
      .shed-cards-grid > *:first-child {
        display: none;
      }
    }

    /* Feature rows grid layout */
    .feature-row {
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 8px;
      display: grid;
      grid-template-columns: 280px repeat(5,1fr);
      gap: 8px;
      align-items: center;
      transition: all 0.3s ease;
      border: 1px solid rgba(255,255,255,0.8);
    }

    .feature-row:hover {
      transform: translateY(-2px);
      background: rgba(255,255,255,0.85);
      box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    /* Feature header cell (name + icon + info button) */
    .feature-header {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .feature-icon {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      color: #6B8F71;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .feature-row:hover .feature-icon {
      transform: scale(1.2) rotate(-5deg);
      filter: drop-shadow(0 2px 8px rgba(107,143,113,0.3));
    }

    .feature-name {
      flex: 1;
      min-width: 0;
    }

    .feature-title {
      font-weight: 700;
      font-size: 14px;
      line-height: 1.3;
      color: var(--color-text);
      margin-bottom: 2px;
    }

    .feature-subtitle {
      color: var(--color-text-muted);
      font-size: 11px;
    }

    .info-button {
      background: none;
      border: 1px solid var(--color-border);
      cursor: pointer;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      font-size: 11px;
      color: var(--color-text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-left: auto;
      transition: all 0.2s ease;
      font-weight: 600;
    }

    .info-button:hover {
      background: rgba(107,143,113,0.08);
      color: #6B8F71;
      border-color: #6B8F71;
    }

    /* Score cells */
    .score-cell {
      text-align: center;
      padding: 12px 6px;
      border-radius: 12px;
      background: rgba(255,255,255,0.7);
      border: 1px solid rgba(200,200,200,0.3);
      transition: all 0.3s ease;
      min-width: 0;
      position: relative;
    }

    .score-cell:hover {
      transform: scale(1.04);
      background: rgba(255,255,255,0.9);
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .best-badge {
      font-size: 9px;
      font-weight: 700;
      padding: 3px 6px;
      margin-bottom: 2px;
      display: inline-block;
      background: #fbbf24;
      color: #78350f;
      border-radius: 6px;
    }

    .score-number {
      font-size: 26px;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 8px;
    }

    .score-color-5 { color: #3A7D44; }
    .score-color-4 { color: #5E9E54; }
    .score-color-3 { color: #B0952F; }
    .score-color-2 { color: #C67B5C; }
    .score-color-1 { color: #C45B3F; }

    .mobile-shed-label {
      font-size: 10px;
      color: var(--color-text-muted);
      margin-top: 4px;
      display: none;
    }

    .score-bar-container {
      display: flex;
      gap: 2px;
      margin-top: 8px;
    }

    .score-bar {
      flex: 1;
      height: 5px;
      border-radius: 3px;
      background: #eee;
    }

    .score-bar.filled.bar-5 { background: #6B8F71; }
    .score-bar.filled.bar-4 { background: #8DB580; }
    .score-bar.filled.bar-3 { background: #D4C06A; }
    .score-bar.filled.bar-2 { background: #DDA882; }
    .score-bar.filled.bar-1 { background: #D98B7A; }

    /* Main content */
    .comparison-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 48px 24px 120px;
    }

    /* Category sections */
    .category-section {
      margin-bottom: 48px;
      scroll-margin-top: 140px;
    }

    .category-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 6px;
      margin-top: 16px;
      padding-left: 16px;
    }

    .category-icon {
      width: 36px;
      height: 36px;
      object-fit: contain;
      flex-shrink: 0;
    }

    .category-title {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 700;
      color: var(--color-text);
    }

    .category-intro {
      color: var(--color-text-muted);
      font-size: 14px;
      margin-bottom: 20px;
      max-width: 500px;
      padding-left: 16px;
    }

    /* Reveal animation */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .stagger.visible > * {
      opacity: 1;
      transform: translateY(0);
    }

    .stagger > * {
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      transition-delay: 0ms;
    }

    .stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
    .stagger.visible > *:nth-child(2) { transition-delay: 50ms; }
    .stagger.visible > *:nth-child(3) { transition-delay: 100ms; }
    .stagger.visible > *:nth-child(4) { transition-delay: 150ms; }
    .stagger.visible > *:nth-child(5) { transition-delay: 200ms; }
    .stagger.visible > *:nth-child(6) { transition-delay: 250ms; }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.3);
      backdrop-filter: blur(8px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .modal-overlay.open {
      opacity: 1;
      pointer-events: all;
    }

    .modal-content {
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(40px);
      border-radius: 24px;
      max-width: 640px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      padding: 48px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.15);
      transform: scale(0.95) translateY(20px);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-overlay.open .modal-content {
      transform: scale(1) translateY(0);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 24px;
    }

    .modal-title {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: 0;
    }

    .modal-subtitle {
      color: var(--color-text-muted);
      font-size: 14px;
      margin-top: 4px;
    }

    .modal-close {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 24px;
      color: var(--color-text-muted);
      padding: 4px 8px;
      border-radius: 8px;
      transition: all 0.2s ease;
    }

    .modal-close:hover {
      background: #f0f0f0;
      color: var(--color-text);
    }

    .modal-explanation {
      font-size: 15px;
      line-height: 1.7;
      color: #555;
      margin-bottom: 32px;
    }

    .modal-details {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 16px;
    }

    .detail-item {
      background: rgba(0,0,0,0.02);
      padding: 12px;
      border-radius: 8px;
      text-align: center;
      border: 1px solid rgba(0,0,0,0.05);
    }

    .detail-label {
      font-size: 11px;
      color: var(--color-text-muted);
      margin-bottom: 6px;
      font-weight: 600;
    }

    .detail-value {
      font-weight: 700;
      font-size: 16px;
      color: var(--color-text);
    }

    /* Tooltip */
    .cell-tooltip {
      position: fixed;
      background: rgba(44,44,46,0.96);
      color: white;
      padding: 12px 18px;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.5;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s;
      z-index: 9000;
      width: 280px;
      white-space: normal;
      box-shadow: 0 12px 40px rgba(0,0,0,0.2);
      display: none;
    }

    .cell-tooltip.show {
      opacity: 1;
      display: block;
    }

    /* Final Score Row — matches feature-row grid */
    .final-score-row {
      display: grid;
      grid-template-columns: 280px repeat(5,1fr);
      gap: 8px;
      align-items: center;
      padding: 24px 16px;
      margin-top: 16px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(237,232,224,0.6));
      backdrop-filter: blur(20px);
      border: 1px solid rgba(200,200,200,0.3);
    }

    .final-score-label {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 700;
      color: var(--color-text);
    }

    .final-score-label span {
      display: block;
      font-size: 13px;
      font-weight: 400;
      color: var(--color-text-muted);
      margin-top: 2px;
    }

    .final-score-cell {
      text-align: center;
      padding: 16px 6px;
      border-radius: 14px;
      background: rgba(255,255,255,0.7);
      border: 1px solid rgba(200,200,200,0.2);
      transition: all 0.3s ease;
    }

    .final-score-cell:hover {
      transform: scale(1.04);
      background: rgba(255,255,255,0.95);
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    .final-score-cell .gauge-wrap {
      width: 72px;
      height: 72px;
      margin: 0 auto 8px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .final-score-cell .gauge-text {
      position: absolute;
      text-align: center;
    }

    .final-score-cell .gauge-text .total-number {
      font-size: 20px;
      font-weight: 800;
      line-height: 1;
    }

    .final-score-cell .gauge-text .total-max {
      font-size: 9px;
      color: var(--color-text-muted);
    }

    .final-score-cell .avg-line {
      font-size: 12px;
      font-weight: 700;
      color: var(--color-text-muted);
      margin-top: 4px;
    }

    .progress-ring circle {
      transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
      transform: rotate(-90deg);
      transform-origin: center;
    }

    @media (max-width: 900px) {
      .final-score-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        text-align: center;
      }
      .final-score-cell {
        display: inline-block;
        width: calc(20% - 6px);
        vertical-align: top;
      }
    }

    /* Recommendation cards */
    .recommendation-section {
      background: linear-gradient(180deg,var(--color-bg) 0%,#EDE8E0 100%);
      padding: 48px 24px;
    }

    .recommendation-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 24px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .recommendation-card {
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      border-radius: 16px;
      padding: 24px;
      border: 1px solid rgba(255,255,255,0.8);
      transition: all 0.3s ease;
      text-align: center;
    }

    .recommendation-card:hover {
      transform: translateY(-4px);
      background: rgba(255,255,255,0.85);
      box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    .recommendation-icon {
      font-size: 48px;
      margin-bottom: 12px;
    }

    .recommendation-title {
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 8px;
      color: var(--color-text);
    }

    .recommendation-description {
      font-size: 14px;
      color: var(--color-text-muted);
      line-height: 1.6;
    }

    /* SEO article styling */
    article {
      max-width: var(--content-max);
      margin: 0 auto;
      padding: var(--space-4);
    }

    article h2 {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 700;
      margin-top: var(--space-12);
      margin-bottom: var(--space-4);
    }

    article h3 {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 700;
      margin-top: var(--space-8);
      margin-bottom: var(--space-3);
    }

    article p {
      color: var(--color-text-muted);
      line-height: 1.7;
      margin-bottom: var(--space-4);
    }

    /* FAQ styling */
    .faq-container {
      max-width: var(--content-max);
      margin: 0 auto;
      padding: var(--space-4);
    }

    .faq-item {
      border-bottom: 1px solid var(--color-border);
      padding: var(--space-4) 0;
    }

    .faq-question {
      background: none;
      border: none;
      cursor: pointer;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: var(--text-base);
      font-weight: 600;
      color: var(--color-text);
      padding: 0;
      transition: color var(--transition-interactive);
    }

    .faq-question:hover {
      color: var(--color-primary);
    }

    .faq-toggle {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      transition: transform 0.3s ease;
    }

    .faq-item.open .faq-toggle {
      transform: rotate(180deg);
    }

    .faq-answer {
      display: none;
      padding-top: var(--space-4);
      color: var(--color-text-muted);
      line-height: 1.7;
    }

    .faq-item.open .faq-answer {
      display: block;
    }

    /* Mascot float */
    .mascot-float {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 120px;
      height: 120px;
      z-index: 50;
      animation: float 3s ease-in-out infinite;
      opacity: 0.7;
      transition: opacity 0.3s ease;
    }

    .mascot-float:hover {
      opacity: 1;
    }

    .mascot-float img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    /* Mobile responsive */
    @media (max-width: 900px) {
      .feature-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 16px !important;
      }

      .sticky-header-row {
        display: none !important;
      }

      .shed-card {
        border-radius: 14px !important;
      }

      .shed-card img {
        padding: 8px !important;
        height: 140px !important;
      }

      .mobile-shed-label {
        display: block !important;
      }

      .recommendation-grid {
        grid-template-columns: 1fr !important;
      }

      .comparison-content {
        padding: 24px 16px 80px !important;
      }
    }

    @media (max-width: 600px) {
      .shed-card {
        border-radius: 12px !important;
      }

      .shed-card img {
        height: 100px !important;
      }

      .feature-row {
        padding: 12px !important;
      }

      .score-number {
        font-size: 20px !important;
      }

      .best-badge {
        font-size: 7px !important;
      }

      .category-title {
        font-size: 20px !important;
      }

      .modal-content {
        padding: 20px !important;
        width: 95% !important;
      }
    }