
  :root{
    --coffee-bg: #f6ecdf;
    --coffee-ink: #382020;
    --coffee-accent: #eb673e;
    --coffee-green: #47de46;
  }

  .coffee-comparison-wrap{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 26px 16px;
    position: relative;
  }

  /* soft spotlights behind */
  .coffee-comparison-wrap::before,
  .coffee-comparison-wrap::after{
    content:"";
    position:absolute;
    width: 560px;
    height: 560px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .55;
    pointer-events:none;
    z-index: 0;
  }
  .coffee-comparison-wrap::before{
    left: 50%;
    top: 40%;
    transform: translate(-92%, -50%);
    background: radial-gradient(circle, rgba(235,103,62,0.26), transparent 60%);
  }
  .coffee-comparison-wrap::after{
    left: 50%;
    top: 52%;
    transform: translate(18%, -50%);
    background: radial-gradient(circle, rgba(56,32,32,0.14), transparent 60%);
  }

  .coffee-compare{
    width: min(960px, 100%);
    position: relative;
    z-index: 1;
    color: var(--coffee-ink);
    font-family: Arial, sans-serif;
  }

  /* ===== HEADER ROW (3 mini cards) ===== */
  .coffee-compare-head{
    display: grid;
    grid-template-columns: 1.25fr .9fr .9fr;
    gap: 14px;
    margin-bottom: 14px;
  }

  .coffee-head-card{
    background: var(--coffee-bg); /* ✅ f6ecdf */
    border: 1px solid rgba(56,32,32,0.18);
    border-radius: 18px;
    padding: 0; /* ✅ no padding so flex centering is perfect */
    box-shadow: 0 14px 34px rgba(56,32,32,0.12);
    backdrop-filter: blur(2px);

    /* ✅ PERFECT CENTERING (H + V) */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    text-align: center;
  }

  .coffee-head-title{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 18px 18px; /* ✅ keep inner breathing room without breaking centering */
  }

  /* Middle header featured */
  .coffee-head-card.coffee-head-featured{
    background: var(--coffee-bg); /* ✅ still f6ecdf */
    border: 1px solid rgba(235,103,62,0.35);
    box-shadow:
      0 18px 40px rgba(56,32,32,0.14),
      0 0 0 2px rgba(235,103,62,0.16) inset;
  }

  /* ===== ROW BLOBS ===== */
  .coffee-compare-list{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .coffee-row{
    display: grid;
    grid-template-columns: 1.25fr .9fr .9fr;
    gap: 14px;

    border-radius: 20px;
    padding: 14px;
    background: rgba(255,255,255,0.38);
    border: 1px solid rgba(56,32,32,0.16);
    box-shadow:
      0 18px 45px rgba(56,32,32,0.14),
      0 6px 18px rgba(56,32,32,0.08);

    transition:
      transform 0.32s cubic-bezier(.16,1,.3,1),
      box-shadow 0.32s cubic-bezier(.16,1,.3,1),
      background 0.4s ease;
    overflow: hidden;
    position: relative;
  }

  /* subtle sheen sweep on hover */
  .coffee-row::before{
    content:"";
    position:absolute;
    inset:-40% -30%;
    background: radial-gradient(closest-side, rgba(56,32,32,0.10), transparent 60%);
    transform: translateX(-45%) rotate(10deg);
    opacity: 0;
    transition: opacity .7s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
    pointer-events:none;
  }

  @media (hover:hover){
    .coffee-row:hover{
      transform: translateY(-8px);
      box-shadow:
        0 26px 60px rgba(56,32,32,0.18),
        0 12px 24px rgba(56,32,32,0.10);
      background: rgba(255,255,255,0.48);
    }
    .coffee-row:hover::before{
      opacity: 1;
      transform: translateX(12%) rotate(10deg);
    }
  }

  /* ===== LEFT CELL: FEATURE ===== */
  .coffee-feature-cell{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 16px;
    background: rgba(246,236,223,0.65);
    border: 1px solid rgba(56,32,32,0.12);
  }

  .coffee-ico{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56,32,32,0.10);
    font-size: 18px;
    flex: 0 0 auto;
  }

  .coffee-feature-text{
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
  }

  /* ===== MIDDLE/RIGHT CELLS ===== */
  .coffee-result{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(56,32,32,0.12);
    background: rgba(255,255,255,0.55);
    min-height: 58px;
    position: relative;
    overflow: hidden;
  }

  .coffee-result.coffee-result-featured{
    border: 1px solid rgba(235,103,62,0.30);
    box-shadow: 0 0 0 2px rgba(235,103,62,0.10) inset;
    background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.35));
  }

  .check-mark{
    background-color: var(--coffee-green);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(0,0,0,0.14);
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .x-mark{
    background-color: var(--coffee-ink);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
    transform: translateY(0) scale(1);
    opacity: .95;
  }

  /* ===== ENTER ANIMATION — opacity-only on rows (Safari-safe under backdrop-filter glass) ===== */
  .coffee-row{
    opacity: 0;
  }
  .coffee-comparison-wrap.coffee-inview .coffee-row{
    animation: coffeeRowIn .5s ease forwards;
  }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(1){ animation-delay: .04s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(2){ animation-delay: .10s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(3){ animation-delay: .16s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(4){ animation-delay: .22s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(5){ animation-delay: .28s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(6){ animation-delay: .34s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(7){ animation-delay: .40s; }
  @keyframes coffeeRowIn{
    from{ opacity: 0; }
    to{ opacity: 1; }
  }

  /* check/x marks: clean scale-pop (scale + opacity only, no translate), synced per row */
  .coffee-comparison-wrap.coffee-inview .check-mark,
  .coffee-comparison-wrap.coffee-inview .x-mark{
    animation: coffeeIconIn .46s cubic-bezier(.34,1.56,.64,1) both;
  }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(1) .check-mark,
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(1) .x-mark{ animation-delay: .12s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(2) .check-mark,
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(2) .x-mark{ animation-delay: .18s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(3) .check-mark,
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(3) .x-mark{ animation-delay: .24s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(4) .check-mark,
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(4) .x-mark{ animation-delay: .30s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(5) .check-mark,
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(5) .x-mark{ animation-delay: .36s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(6) .check-mark,
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(6) .x-mark{ animation-delay: .42s; }
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(7) .check-mark,
  .coffee-comparison-wrap.coffee-inview .coffee-row:nth-child(7) .x-mark{ animation-delay: .48s; }
  @keyframes coffeeIconIn{
    0%{ opacity: 0; transform: scale(.5); }
    100%{ opacity: 1; transform: scale(1); }
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 860px){
    .coffee-compare-head,
    .coffee-row{
      grid-template-columns: 1fr;
    }
    .coffee-head-card,
    .coffee-feature-cell,
    .coffee-result{
      width: 100%;
    }
    .coffee-head-card.coffee-head-featured{
      order: 1;
    }
  }

  @media (prefers-reduced-motion: reduce){
    .coffee-row,
    .coffee-comparison-wrap.coffee-inview .coffee-row,
    .coffee-comparison-wrap.coffee-inview .check-mark,
    .coffee-comparison-wrap.coffee-inview .x-mark{
      animation: none !important;
      transition: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
