/* The card page: what people land on after tapping Ray's NFC card, so it is built for the
   phone first. Same tokens, type and rules as the main site (../styles.css). */

.cp-top__link { position: relative; z-index: 2; font-weight: 700; text-decoration: none; padding: 10px 0; }
.cp-top__link:hover { color: var(--magenta); }

/* ---- 1. the greeting and four big actions, on black ---- */
.cp-hero {
  min-height: 100svh;
  padding: 120px var(--m) 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-content: center;
  align-items: end;
}
.cp-hero__words { grid-column: 1 / 8; }
.cp-hero__title .line { white-space: nowrap; } /* two authored lines, never three */
.cp-hero__title { font-size: clamp(48px, 5.6vw, 100px); line-height: 0.92; letter-spacing: -0.05em; }
.cp-hero__lead { margin-top: 32px; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.4; }
.cp-actions { grid-column: 8 / 13; list-style: none; display: grid; gap: 8px; }
.cp-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 84px;
  padding: 16px 24px;
  background: var(--paper);
  color: var(--paper-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.cp-action:hover { background: var(--green); transform: translateX(4px); }
.cp-action:active { transform: scale(0.98); }
.cp-action--save { background: var(--magenta); }
.cp-action--save:hover { background: var(--green); }
.cp-action__do { font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.cp-action__what { font-size: var(--fs-body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .cp-hero { display: block; min-height: 0; padding: 104px var(--m) 48px; }
  .cp-hero__title { font-size: 10.4vw; }
  .cp-hero__lead { margin-top: 24px; font-size: var(--fs-body); }
  .cp-actions { margin-top: 36px; }
  .cp-action { min-height: 76px; padding: 14px 20px; }
  .cp-action__do { font-size: 22px; }
}

/* ---- 2. the card you just tapped, on paper ---- */
.cp-card {
  background: var(--paper);
  color: var(--paper-ink);
  padding: var(--section) var(--m);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
}
.cp-card__words { grid-column: 1 / 6; }
.cp-card__title { font-size: var(--fs-head); line-height: 1; letter-spacing: -0.03em; }
.cp-card__text { margin-top: 20px; max-width: 34ch; font-size: var(--fs-lead); line-height: 1.4; }
.cp-card .card3d { grid-column: 7 / 13; }
.cp-card .card3d__cap:empty { display: none; }
@media (max-width: 860px) {
  .cp-card { display: block; }
  .cp-card__text { font-size: var(--fs-body); }
  .cp-card .card3d { margin-top: 32px; }
}

/* ---- 3. the offer, on green ---- */
.cp-offer { background: var(--green); color: var(--paper-ink); padding: var(--section) var(--m); }
.cp-offer__title { font-size: var(--fs-big); line-height: 0.95; letter-spacing: -0.05em; }
.cp-offer__text { margin-top: 28px; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.4; }
.cp-offer__actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cp-offer__link { font-weight: 700; text-underline-offset: 3px; padding: 12px 0; }
.cp-offer__ba { margin-top: 56px; }
.cp-offer .ba__cap { color: var(--paper-ink); font-size: var(--fs-body); font-weight: 500; }
.cp-offer .ba__frame:focus-within { outline-color: var(--paper-ink); }
@media (max-width: 720px) {
  .cp-offer__title { font-size: 15vw; }
  .cp-offer__ba { margin-top: 40px; }
  .cp-offer__text { font-size: var(--fs-body); }
  .cp-offer__actions .btn { width: 100%; }
}

/* entrance for the action rows after the headline lands */
@media (prefers-reduced-motion: no-preference) {
  .js .cp-hero__lead, .js .cp-actions li { opacity: 0; transform: translateY(16px); }
  .js.hero-in .cp-hero__lead, .js.hero-in .cp-actions li { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s var(--ease-out); }
  .js.hero-in .cp-hero__lead { transition-delay: 0.35s; }
  .js.hero-in .cp-actions li:nth-child(1) { transition-delay: 0.45s; }
  .js.hero-in .cp-actions li:nth-child(2) { transition-delay: 0.52s; }
  .js.hero-in .cp-actions li:nth-child(3) { transition-delay: 0.59s; }
  .js.hero-in .cp-actions li:nth-child(4) { transition-delay: 0.66s; }
}
