/* ===== (08) Packages — Figma 3280:21819, content = Packages v5 (two tracks) ===== */

.packages { padding: 140px 0 70px; }
.packages__lead { max-width: 770px; }

/* Platform icons under the lead: shows we're multi-platform, not LinkedIn-only */
.packages__platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.packages__platforms li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-2, #e4e4df);
  border-radius: 99px;
  font-size: 14px; line-height: 18px; color: #17171a;
}
.packages__platforms svg { width: 18px; height: 18px; flex: none; }

/* Track toggle + intro line */
.packages__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  flex-wrap: wrap;
  margin-top: 72px;
}
.pkg-toggle {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 99px;
  background: var(--card);
  isolation: isolate;
}
.pkg-toggle__pill {
  position: absolute; left: 0; top: 5px; bottom: 5px; z-index: -1;
  border-radius: 99px;
  background: #17171a;
  transition: transform 0.55s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1)), width 0.55s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.pkg-toggle__btn {
  padding: 13px 24px;
  border-radius: 99px;
  font-size: 16px; line-height: 20px;
  color: #17171a;
  white-space: nowrap;
  transition: color 0.35s;
}
.pkg-toggle__btn[aria-selected="true"] { color: #fff; }
.pkg-toggle__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.packages__intro { max-width: 760px; font-size: 18px; line-height: 1.5; color: #727272; }
.packages__intro strong { font-weight: 400; color: #17171a; }

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.package-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .package-panel.is-entering .package-card { animation: pkg-in 0.8s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1)) backwards; animation-delay: calc(var(--i) * 70ms); }
}
@keyframes pkg-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 760px;
  padding: 32px 29px;
  border-radius: var(--radius-md);
  background: var(--card);
  color: #17171a;
  overflow: visible;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.package-card:hover { transform: translate3d(0, -6px, 0); box-shadow: 0 24px 48px -24px rgba(23, 23, 26, 0.25); }
/* Keep the hover area still while the card lifts: without this, pointing near the
   bottom edge (where "Book a call" is) made the card lift out from under the
   cursor, drop back, lift again… = flicker. */
.package-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 8px;
}

.package-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(155.16deg, #f5f5f1 51.541%, rgba(245, 245, 241, 0) 95.509%);
}
/* Most Popular card background: the ribbed-glass gradient is alive —
   it drifts slowly (pan + gentle zoom + a slight colour breathe), a soft light
   sheen glides across the glass every few seconds, and on hover the glass leans
   in a little closer. The wrapper clips everything to the card's rounded corners. */
.package-card__bgwrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  overflow: hidden;
  transform: translateZ(0);
}
.package-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 70% 75%;
}
.package-card__bgwrap::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-120%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .package-card__bg { animation: rise-drift 16s ease-in-out infinite alternate; }
  .package-card__bgwrap::after { animation: rise-sheen 6.5s cubic-bezier(0.65, 0, 0.35, 1) 1.5s infinite; }
  .package-card__bgwrap { transition: transform 1.2s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1)); }
  .package-card--featured:hover .package-card__bgwrap { transform: scale(1.03); }
}
@keyframes rise-drift {
  0%   { transform: scale(1.12) translate3d(-3%, 2%, 0) rotate(-1deg); filter: saturate(1) hue-rotate(0deg); }
  50%  { transform: scale(1.2) translate3d(2%, -2%, 0) rotate(0.5deg); filter: saturate(1.15) hue-rotate(-6deg); }
  100% { transform: scale(1.14) translate3d(3%, 3%, 0) rotate(1.5deg); filter: saturate(1.05) hue-rotate(5deg); }
}
@keyframes rise-sheen {
  0%   { transform: translateX(-120%); }
  45%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.package-card__top { display: flex; flex-direction: column; gap: 24px; }

/* Tier name + billing tag sit on one centred row.
   text-box trims each label to its cap height and baseline, so the capitals
   are optically centred against the pill badges (no extra space above/below). */
.package-card__tier-name,
.package-card__billing > span,
.package-card__badge > span {
  display: block;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}
.package-card__tier > p { display: inline-flex; align-items: center; gap: 8px; }
.package-card__billing {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #cdc9c0;
  border-radius: 99px;
  font-size: 13px; line-height: 1; letter-spacing: 0.005em;
  color: #4a4a50;
  white-space: nowrap;
}
.package-card--featured .package-card__billing { background: rgba(255, 255, 255, 0.7); }
.package-card__icons { display: flex; gap: 10px; color: #17171a; }
.package-card__icons svg { width: 18px; height: 18px; display: block; }

.package-card__tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 27px;
  font-size: 20px;
  line-height: 27px;
  letter-spacing: -0.01em;
}
.package-card__badge {
  display: inline-flex;
  align-items: center;
  height: 26.2px;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--accent);
  color: #f8f7f4;
  font-size: 13px;
  line-height: 18.2px;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.package-card__intro { display: flex; flex-direction: column; gap: 16px; }
.package-card__title {
  font-weight: 400;
  font-size: clamp(30px, 2.084vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.039em;
}
.package-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: #727272;
  text-wrap: pretty;
}

.package-card__rule {
  width: 100%;
  max-width: 370px;
  height: 1px;
  margin: 0;
  border: 0;
  background: #cdc9c0;
}

.package-card__list { display: flex; flex-direction: column; gap: 12px; }
.package-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 22.5px;
}
.package-card__list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #17171a; }

.package-card__bottom { display: flex; flex-direction: column; gap: 20px; }
.package-card__outcome {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  font-size: 16px; line-height: 1.45; color: #17171a;
}
.package-card__outcome span {
  display: block; margin-bottom: 6px;
  font-size: 12px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.package-card--featured .package-card__outcome { background: rgba(255, 255, 255, 0.9); }

/* "Book a call": dark pill; on hover an orange layer wipes up from the
   bottom. Leaving snaps straight back (no slow fade through muddy browns that
   lingers on the previous card when you sweep across buttons quickly). */
.package-card__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 99px;
  background: #17171a;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  transform: translateZ(0);
}
.package-card__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent);
  transform: translate3d(0, 101%, 0);
  transition: transform 0.18s cubic-bezier(0.4, 0, 1, 1);
}
.package-card__btn:hover::before,
.package-card__btn:focus-visible::before {
  transform: translate3d(0, 0, 0);
  transition: transform 0.38s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.package-card__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Figma 3437:2625 — black pill with a soft white inner glow along the top edge
   (2× inner shadow, white 20%, y 4, blur 8). Drawn on ::after so it stays on top of the orange wipe. */
.package-card__btn { background: #000; }
.package-card__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.2), inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.packages__note {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 18.2px;
  letter-spacing: 0.005em;
  color: #6c6a73;
}

@media (max-width: 1280px) {
  .package-card { min-height: 0; }
}
@media (max-width: 1100px) {
  .package-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}

@media (max-width: 1024px) {
  .packages { padding-top: 96px; }
  .packages__bar { margin-top: 48px; }
}

@media (max-width: 640px) {
  .pkg-toggle { width: 100%; }
  .pkg-toggle__btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 14px; }
  .packages__intro { font-size: 16px; }
  .packages__platforms li span { display: none; }
  .packages__platforms li { padding: 9px; }
}

/* phones: the long tab name wraps onto two centred lines instead of overflowing */
@media (max-width: 520px) {
  .pkg-toggle__btn { white-space: normal; line-height: 1.2; text-align: center; padding: 10px 8px; }
}
