/* "Week two" before/after.

   The hero claims most trackers stop working by week two. Nothing on the page
   used to pay that claim off, so this section does it directly - the same
   Without/With pair Unabyss uses, with the winning side lit in the accent
   colour instead of both panels reading equal. */

.wt-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  /* The VS badge sits in this gutter, so it needs to clear the 46px badge plus
     breathing room on both sides. */
  gap: 5rem;
  max-width: 1120px;
  margin: 3rem auto 0;
}

.wt-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.3);
}

.wt-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.75rem 1.9rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  box-shadow: 0 16px 38px -20px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

/* The "before" panel should feel like the status quo: flat, grey, unremarkable. */
.wt-card--before {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.86), rgba(241, 245, 249, 0.7));
  box-shadow: 0 10px 26px -18px rgba(15, 23, 42, 0.2);
}

.wt-card--after {
  border-color: rgba(13, 148, 136, 0.34);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(13, 148, 136, 0.1) 0%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 20px 46px -20px rgba(13, 148, 136, 0.4),
    0 4px 14px -8px rgba(15, 23, 42, 0.16);
}

.wt-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1.05rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.wt-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-color, #0f172a);
}

.wt-card--before .wt-card-head h3 {
  color: #64748b;
}

.wt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.wt-chip--before {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.16);
}

.wt-chip--after {
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  box-shadow: 0 4px 12px -3px rgba(13, 148, 136, 0.5);
}

/* ---- Four-week strip ----
   Puts "week two" on screen instead of only in the headline: the typical
   tracker's last two bars fade out, SmartEat's stay lit. Illustrative, so it
   carries no axis or figures. */

.wt-weeks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.wt-week-bar {
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}

.wt-week-num {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: #94a3b8;
}

.wt-card--before .wt-week:nth-child(n + 3) .wt-week-bar {
  background: repeating-linear-gradient(
    90deg,
    #e2e8f0 0 5px,
    transparent 5px 9px
  );
}

.wt-card--before .wt-week:nth-child(n + 3) .wt-week-num {
  color: #cbd5e1;
}

.wt-card--after .wt-week-bar {
  background: linear-gradient(90deg, #0d9488, #10b981);
  box-shadow: 0 2px 8px -2px rgba(13, 148, 136, 0.5);
}

.wt-card--after .wt-week-num {
  color: #0d9488;
}

.wt-weeks-note {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.wt-card--after .wt-weeks-note {
  color: #0d9488;
}

.wt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wt-list li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted, #64748b);
}

.wt-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.06em;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.78rem;
}

.wt-card--before .wt-list li::before {
  content: '\f00d'; /* xmark */
  color: #cbd5e1;
}

.wt-card--after .wt-list li::before {
  content: '\f00c'; /* check */
  color: #0d9488;
}

.wt-card--after .wt-list li {
  color: var(--text-color, #334155);
}

/* Pinned to the bottom so it lines up with the taller card's edge. */
.wt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  box-shadow: 0 10px 24px -10px rgba(13, 148, 136, 0.65);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.wt-cta:hover,
.wt-cta:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
  box-shadow: 0 14px 30px -10px rgba(13, 148, 136, 0.75);
}

.wt-cta i {
  font-size: 0.75rem;
}

/* The arrow should point the way the language reads. */
[dir='rtl'] .wt-cta i {
  transform: scaleX(-1);
}

.wt-list + .wt-cta {
  margin-top: 1.5rem;
}

/* Balances the CTA on the other side, so the shorter card doesn't stretch to
   a block of dead space. */
.wt-note {
  margin: auto 0 0;
  padding-top: 1.35rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
  color: #94a3b8;
}

@media (max-width: 767px) {
  .wt-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.25rem;
  }

  /* The section intro inherits .container's 16px, which is tight for centred
     body copy on a phone. */
  #week-two .section-title,
  #week-two .section-subtitle {
    padding-inline: 0.6rem;
  }

  .wt-card {
    padding: 1.5rem 1.5rem 1.6rem;
    border-radius: 20px;
    /* Opaque on mobile: these are large elements over an opaque page, so the
       backdrop blur buys nothing visually and costs a composite every frame,
       which is what makes scrolling stutter. */
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .wt-card--before {
    background: #f8fafc;
  }

  .wt-card--after {
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(13, 148, 136, 0.09) 0%, transparent 62%),
      #fff;
  }

  .wt-list li {
    font-size: 0.92rem;
  }
  /* No gutter to sit in once the cards stack. */
  .wt-vs {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  .wt-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.72));
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  }

  .wt-card--before {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.5));
  }

  .wt-card--after {
    border-color: rgba(45, 212, 191, 0.34);
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(13, 148, 136, 0.22) 0%, transparent 62%),
      linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.84));
    box-shadow:
      0 22px 48px -22px rgba(13, 148, 136, 0.45),
      0 4px 14px -8px rgba(0, 0, 0, 0.5);
  }

  .wt-card-head {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .wt-card-head h3 {
    color: #e6edf5;
  }

  .wt-card--before .wt-card-head h3 {
    color: #94a3b8;
  }

  .wt-card--before .wt-list li::before {
    color: #475569;
  }

  .wt-card--after .wt-list li::before {
    color: #5eead4;
  }

  .wt-card--after .wt-list li {
    color: #cbd5e1;
  }

  .wt-vs {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #1e293b, #0f172a);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
  }

  .wt-week-bar {
    background: #334155;
  }

  .wt-week-num {
    color: #64748b;
  }

  .wt-card--before .wt-week:nth-child(n + 3) .wt-week-bar {
    background: repeating-linear-gradient(
      90deg,
      #293548 0 5px,
      transparent 5px 9px
    );
  }

  .wt-card--before .wt-week:nth-child(n + 3) .wt-week-num {
    color: #475569;
  }

  .wt-card--after .wt-week-num,
  .wt-card--after .wt-weeks-note {
    color: #5eead4;
  }

  .wt-weeks-note {
    color: #64748b;
  }

  .wt-note {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #64748b;
  }

  @media (max-width: 767px) {
    .wt-card {
      background: #131c2e;
    }
    .wt-card--before {
      background: #0f1626;
    }
    .wt-card--after {
      background:
        radial-gradient(120% 80% at 50% 0%, rgba(13, 148, 136, 0.2) 0%, transparent 62%),
        #131c2e;
    }
  }
}
