/* Template card: an iPhone playing a short recording of the invitation.
   Used on the landing page and /templates. Two per row on phones. */
.tc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.tc { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tc[hidden] { display: none; }
.tc-phone { position: relative; display: block; aspect-ratio: 9 / 18.6; padding: 6px; border-radius: 26px; background: linear-gradient(150deg, #3b3138, #121014 40%, #2b2329); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 14px 28px -16px rgba(40, 20, 30, 0.6); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.tc-phone::after { content: ''; position: absolute; right: -2px; top: 22%; width: 3px; height: 12%; border-radius: 2px; background: #2b2329; }
.tc-screen { position: absolute; inset: 6px; border-radius: 20px; overflow: hidden; background: #1c161c; }
.tc-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-island { position: absolute; top: 12px; left: 50%; width: 30%; height: 11px; margin-left: -15%; border-radius: 999px; background: #070507; }
.tc-badge { position: absolute; top: 28px; right: 12px; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #fff; font: 600 0.56rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.tc:hover .tc-phone { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 22px 34px -16px rgba(40, 20, 30, 0.65); }
.tc-style { margin: 10px 0 2px; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.tc-name { margin: 0 0 8px; font: 500 1.05rem/1.2 var(--serif); }
.tc-name a { color: var(--ink); }
.tc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border-radius: 999px; border: 1px solid var(--ink); font: 500 0.68rem/1 var(--sans); letter-spacing: 0.04em; color: var(--ink); transition: background 0.3s, color 0.3s; }
.tc-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tc-btn--live { background: var(--ink); color: #fff; }
.tc-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

@media (min-width: 640px) {
  .tc-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
}
@media (min-width: 1024px) {
  .tc-grid { grid-template-columns: repeat(5, 1fr); gap: 36px 24px; }
  .tc-name { font-size: 1.3rem; }
  .tc-btn { height: 40px; font-size: 0.72rem; }
}
