/* =========================================================================
   What We Do — §3b "Ongoing Care" band.
   Makes the after-launch economics unmistakable and premium: a fixed
   MONTHLY MAINTENANCE & SECURITY RETAINER + per-update fees, with exact
   figures revealed on the free strategy call. Page-scoped (prefix wwd-care-);
   inherits Midnight Operator tokens + the global [data-reveal] entrance from
   wwd.css. Sits between §3 Pillars and §4 Delivery Principles.
   ========================================================================= */

.wwd-care {
  position: relative;
  overflow: hidden;
  /* Own navy treatment: deep-navy top fading to base navy, with a faint gold
     wash up top so the band reads as distinct from the Pillars above and the
     Principles below without leaving the palette. */
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(232, 180, 0, 0.07), transparent 60%),
    linear-gradient(180deg, #081634 0%, var(--color-primary) 100%);
  padding: clamp(72px, 8vw, 104px) 0 clamp(80px, 8.5vw, 112px);
  color: #fff;
}

.wwd-care__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ----- Header ----------------------------------------------------------- */
.wwd-care__head {
  max-width: 760px;
  margin: 0 0 clamp(36px, 4.5vw, 56px);
}
.wwd-care__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.wwd-care__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.wwd-care__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.wwd-care__lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: pretty;
}

/* ----- Cards ------------------------------------------------------------ */
.wwd-care__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.wwd-care-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.6vw, 36px) clamp(24px, 2.4vw, 32px) clamp(26px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 44%),
    #122348;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
  transition:
    transform 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft),
    background 280ms var(--ease-out-soft);
}
/* Faint corner gold glow — mirrors the §2/§3 card glow for cohesion. */
.wwd-care-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(520px 300px at 90% -12%, rgba(232, 180, 0, 0.10), transparent 64%);
  opacity: 0.55;
  transition: opacity 280ms var(--ease-out-soft);
  pointer-events: none;
}
/* Gold top-accent line — persistent on the retainer (the recurring cost we
   most want understood), revealed on hover for the other. */
.wwd-care-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out-soft);
  z-index: 2;
}
.wwd-care-card--retainer::before { transform: scaleX(1); }
.wwd-care-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 180, 0, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 44%),
    #16294F;
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.7);
}
.wwd-care-card:hover::before { transform: scaleX(1); }
.wwd-care-card:hover::after { opacity: 1; }
.wwd-care-card > * { position: relative; z-index: 1; }

/* Gold medallion icon — same language as .wwd-pillar__icon. */
.wwd-care-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 0 20px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(232, 180, 0, 0.22), rgba(232, 180, 0, 0.08));
  border: 1px solid rgba(232, 180, 0, 0.30);
  color: var(--color-accent);
  transition:
    background 280ms var(--ease-out-soft),
    color 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    transform 280ms var(--ease-out-soft);
}
.wwd-care-card__icon svg { width: 27px; height: 27px; }
.wwd-care-card:hover .wwd-care-card__icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
  transform: scale(1.04);
}

/* Cost-type badge — the at-a-glance label. Solid gold = the monthly retainer
   (the headline message); gold-outline = per-update. Text carries the meaning,
   never colour alone. */
.wwd-care-card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--color-accent-hi), var(--color-accent));
  color: var(--color-primary);
  box-shadow: 0 4px 14px -6px rgba(232, 180, 0, 0.6);
}
.wwd-care-card__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.wwd-care-card__badge--soft {
  background: rgba(232, 180, 0, 0.10);
  color: var(--color-accent);
  border: 1px solid rgba(232, 180, 0, 0.42);
  box-shadow: none;
}

.wwd-care-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
}
.wwd-care-card__body {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: clamp(14.5px, 1.25vw, 15.5px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: pretty;
}
.wwd-care-card__body strong { color: #fff; font-weight: 700; }

/* Inclusions — quick scannable proof of what the cost covers. */
.wwd-care-card__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.wwd-care-card__list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.wwd-care-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(232, 180, 0, 0.14);
  /* gold check glyph */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8B400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

/* Footnote — restates the cadence in plain words at the card foot. */
.wwd-care-card__foot {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

/* ----- Transparency reassurance + single primary CTA -------------------- */
.wwd-care__close {
  margin-top: clamp(22px, 2.6vw, 30px);
  padding: clamp(22px, 2.4vw, 28px) clamp(24px, 2.6vw, 32px);
  display: flex;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-accent);
  background:
    radial-gradient(680px 220px at 0% 50%, rgba(232, 180, 0, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.wwd-care__close-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 180, 0, 0.12);
  border: 1px solid rgba(232, 180, 0, 0.30);
  color: var(--color-accent);
}
.wwd-care__close-icon svg { width: 23px; height: 23px; }
.wwd-care__close-text {
  flex: 1 1 360px;
  margin: 0;
  max-width: 64ch;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.80);
  text-wrap: pretty;
}
.wwd-care__close-text strong { color: #fff; font-weight: 800; }
.wwd-care__close-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent-hi), var(--color-accent));
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--color-primary, #0A1A3F);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--accent-glow), 0 6px 20px rgba(0, 0, 0, 0.18);
  transition:
    background 200ms var(--ease-out-soft),
    transform 200ms var(--ease-out-soft),
    box-shadow 200ms var(--ease-out-soft);
}
.wwd-care__close-link .arrow { transition: transform 220ms var(--ease-out-soft); }
.wwd-care__close-link:hover {
  background: var(--color-accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(232, 180, 0, 0.55), 0 10px 26px rgba(0, 0, 0, 0.24);
}
.wwd-care__close-link:hover .arrow { transform: translateX(4px); }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 760px) {
  .wwd-care__cards { grid-template-columns: minmax(0, 1fr); }
  .wwd-care__close { flex-direction: column; align-items: flex-start; }
  .wwd-care__close-link { width: 100%; justify-content: center; }
}

/* Card hover lift respects reduced motion via the global net in tokens.css. */
@media (prefers-reduced-motion: reduce) {
  .wwd-care-card:hover { transform: none; }
  .wwd-care__close-link:hover { transform: none; }
}
