/* ═══════════════════════════════════════════════════════════
   julienlescure.io — homepage "Three ways I can help"
   ADDITIONS ONLY. Load after styles.css + additions.css.
   Every selector is new and prefixed (.offer-trio, .offer-tile)
   so the rest of the site is untouched. The old .lane-fork /
   .lane-card rules stay in additions.css for how-it-works.html.
   ═══════════════════════════════════════════════════════════ */

/* Three peers on one row. Subgrid keeps title / body / CTA on the
   same baselines across all three cards regardless of copy length —
   the same technique the old .lane-fork used for its pair. */
.offer-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  align-items: stretch;
}
.offer-tile {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  border-radius: 16px;
  padding: 44px 40px 42px;
  position: relative;
}

/* Cards 1 & 2 — peers, filled purple */
.offer-tile--peer {
  background: var(--purple);
  border: 1.5px solid var(--purple);
  color: var(--white);
}
/* Card 3 — the differentiator, filled turquoise */
.offer-tile--flagship {
  background: var(--turquoise);
  color: var(--purple);
  border: 1.5px solid var(--turquoise);
}

/* Flagship marker — unused (kept out of the markup); retained for reference */
.offer-tile__flag { display: none; }

.offer-tile__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.offer-tile--peer .offer-tile__title { color: var(--white); }
.offer-tile--flagship .offer-tile__title { color: var(--purple); }

.offer-tile__body {
  margin: 22px 0 30px;
  font-size: 16.5px;
  line-height: 1.62;
}
.offer-tile--peer .offer-tile__body { color: rgba(255, 255, 255, 0.88); }
.offer-tile--flagship .offer-tile__body { color: rgba(64, 31, 76, 0.84); }
.offer-tile__body b { font-weight: 800; }
.offer-tile--peer .offer-tile__body b { color: var(--white); }
.offer-tile--flagship .offer-tile__body b { color: var(--purple); }

/* CTA — same arrow treatment as the outgoing .lane-card__cta */
.offer-tile__cta {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap .2s ease;
}
.offer-tile__cta svg { width: 30px; height: 14px; flex: none; }
.offer-tile__cta:hover { gap: 18px; }
.offer-tile--peer .offer-tile__cta { color: var(--turquoise); }
.offer-tile--peer .offer-tile__cta svg path { stroke: var(--turquoise); }
.offer-tile--flagship .offer-tile__cta { color: var(--purple); }
.offer-tile--flagship .offer-tile__cta svg path { stroke: var(--purple); }

/* ── Responsive ─────────────────────────────────────────────
   Below 1100px three columns start squeezing the 50–65-word
   bodies, so the pair sits on one row and the flagship goes
   full-width beneath — it gains prominence rather than losing it. */
@media (max-width: 1100px) {
  .offer-trio {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
  }
  .offer-tile {
    grid-row: auto;
    grid-template-rows: auto 1fr auto;
  }
  .offer-tile--peer { grid-row: span 3; grid-template-rows: subgrid; }
  .offer-tile--flagship {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 48px;
    align-items: start;
    padding: 48px 44px 46px;
  }
  .offer-tile--flagship .offer-tile__title { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .offer-tile--flagship .offer-tile__body { grid-column: 2; grid-row: 1; margin: 0 0 26px; }
  .offer-tile--flagship .offer-tile__cta { grid-column: 2; grid-row: 2; align-self: start; }
}

@media (max-width: 780px) {
  .offer-trio { grid-template-columns: 1fr; gap: 22px; }
  .offer-tile,
  .offer-tile--peer { grid-row: auto; grid-template-rows: auto; display: flex; flex-direction: column; }
  .offer-tile--flagship {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    padding: 40px 32px 38px;
  }
  .offer-tile--flagship .offer-tile__body { margin: 22px 0 30px; }
  .offer-tile { padding: 40px 32px 38px; }
  .offer-tile__flag { left: 32px; }
  .offer-tile__cta { align-self: flex-start; }
}

@media (max-width: 560px) {
  .offer-tile,
  .offer-tile--flagship { padding: 34px 26px 32px; }
  .offer-tile__flag { left: 26px; }
}

/* ── Back to top — same affordance as how-it-works (offers.css) ── */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--purple);
  border: 1.5px solid rgba(45, 255, 217, 0.5);
  color: var(--turquoise);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--turquoise); color: var(--purple); border-color: var(--turquoise); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }
}
