/* ============================================================
   Beyond Beauty Academy × Glowtech — "Is this for you" section
   Section 6. Connected comparison table: one bordered unit,
   burgundy "fits you" column (left) flush against white
   "not for you" column (right). Full-height columns, no gap.
   .fit is the query container → reflows per artboard width.
   ============================================================ */

.fit {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  background: var(--gt-cream);
  color: var(--gt-ink);
}
.fit *, .fit *::before, .fit *::after { box-sizing: border-box; }

.fit .blob { position: absolute; border-radius: 50%; filter: blur(74px); pointer-events: none; z-index: 0; }
.fit .blob-1 { width: 360px; height: 360px; background: #f3d5de; top: -150px; right: -110px; opacity: .5; }
.fit .blob-2 { width: 300px; height: 300px; background: #edc9d3; bottom: -150px; left: -90px; opacity: .35; }

.fit .inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  padding: 56px 72px 60px;
}

/* ---- Header ---- */
.fit .head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.fit .kicker {
  display: block;
  font-size: 34px; font-weight: 800; color: var(--gt-burgundy);
  line-height: 1; margin-bottom: 12px; letter-spacing: -0.01em;
}
.fit h2 {
  font-size: 40px; font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}

/* ---- Comparison: elevated overlapping cards (desktop default) ---- */
.fit .compare {
  position: relative;
  direction: ltr;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;   /* left (burgundy) bigger, right (white) smaller */
  align-items: center;            /* center → burgundy card pops above & below */
}
.fit .col {
  direction: rtl;
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
}

/* floating edge tag */
.fit .htag {
  position: absolute;
  top: -17px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800;
  padding: 9px 17px; border-radius: var(--r-pill);
}
.fit .htag svg { width: 15px; height: 15px; }
.fit .col.yes .htag { right: 34px; }
.fit .col.no .htag { right: 34px; }

/* column header */
.fit .ch {
  padding: 30px 34px 24px;
  border-bottom: 1px solid;
}
.fit .ch h3 {
  font-size: 25px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.015em; margin: 0;
}

/* items */
.fit .ci {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 23px 34px;
  font-size: 17px; line-height: 1.5;
}
.fit .ci + .ci { border-top: 1px solid; }
.fit .mk { flex: none; margin-top: 1px; display: grid; place-items: center; }
.fit .ci b { font-weight: 800; }

/* ---- YES column (left, burgundy) — elevated, larger, overlapping ---- */
.fit .col.yes {
  position: relative;
  order: 1;                       /* left side */
  z-index: 2;
  margin-right: -30px;            /* overlap rightward onto the white card */
  background: linear-gradient(160deg, #c43d75 0%, #9a285a 50%, #6e1c40 100%);
  color: #fff;
  box-shadow: 0 26px 56px rgba(110,28,64,.36);
}
.fit .col.yes .ch { padding: 38px 36px 28px; border-bottom-color: rgba(255,255,255,.18); }
.fit .col.yes .ci { padding: 27px 36px; }
.fit .col.yes .ch h3 { color: #fff; }
.fit .col.yes .htag { background: #2f9e6b; color: #fff; box-shadow: 0 8px 18px rgba(47,158,107,.4); }
.fit .col.yes .ci { color: rgba(255,246,232,.95); }
.fit .col.yes .ci + .ci { border-top-color: rgba(255,255,255,.16); }
.fit .col.yes .ci b { color: #fff; }
.fit .col.yes .mk {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
}
.fit .col.yes .mk svg { width: 16px; height: 16px; }

/* ---- NO column (right, white) — sits behind, tucked under ---- */
.fit .col.no {
  order: 2;                       /* right side */
  z-index: 1;
  background: #fff;
  border: 1px solid var(--gt-line);
  box-shadow: var(--shadow-card);
  padding-left: 30px;             /* clear the overlap so text isn't covered */
}
.fit .col.no .ch { border-bottom-color: var(--gt-line); }
.fit .col.no .ch h3 { color: var(--gt-ink); }
.fit .col.no .htag { background: #fff; color: var(--gt-muted); border: 1px solid var(--gt-line); box-shadow: var(--shadow-sm); }
.fit .col.no .ci { color: var(--gt-body); }
.fit .col.no .ci + .ci { border-top-color: var(--gt-line); }
.fit .col.no .mk {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gt-pink-soft); color: var(--gt-burgundy);
  border: 1px solid var(--gt-pink);
}
.fit .col.no .mk svg { width: 14px; height: 14px; }

/* ============================================================
   MOBILE — ≤ 560px artboard width
   ============================================================ */
@container (max-width: 560px) {
  .fit .blob-1 { width: 240px; height: 240px; top: -120px; right: -90px; }
  .fit .blob-2 { display: none; }
  .fit .inner { padding: 38px 22px 40px; }
  .fit .head { margin-bottom: 30px; }
  .fit .kicker { font-size: 30px; }
  .fit h2 { font-size: 26px; line-height: 1.16; }
  /* stacked separate cards with a gap (no overlap on mobile) */
  .fit .compare { grid-template-columns: 1fr; gap: 22px; }
  .fit .col.yes {
    order: 1;                     /* burgundy below */
    margin-right: 0;
    box-shadow: 0 18px 40px rgba(110,28,64,.30);
  }
  .fit .col.no { order: 0; padding-left: 0; }
  .fit .col.yes .ch, .fit .col.no .ch { padding: 24px 22px 20px; }
  .fit .ch h3 { font-size: 21px; }
  .fit .col.yes .ci, .fit .col.no .ci { font-size: 15.5px; padding: 19px 22px; }
}
