/* ============================================================
   links.css - page-specific layout for the smbr.cc link-in-bio page.
   Kept SEPARATE from styles.css on purpose (so scripts/check-design-css.sh
   stays "in sync": it only compares site/styles.css vs the dashboard copy).
   Reuses the shared tokens, fonts and reset from styles.css; invents no colours.
   ============================================================ */

.lk-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-block: clamp(18px, 3.5vw, 32px);
  background:
    radial-gradient(120% 60% at 50% -10%, var(--surface-tint), transparent 70%),
    var(--surface-page);
}

/* Skip link: hidden until focused (keyboard a11y) */
.lk-skip {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%) translateY(-150%);
  background: var(--teal-dark); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-family: var(--font-heading); font-weight: 500; z-index: 100;
  transition: transform var(--t-fast) var(--ease);
}
.lk-skip:focus-visible { transform: translateX(-50%) translateY(0); }

.lk {
  width: 100%;
  max-width: 480px;
  padding-inline: clamp(18px, 5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

/* -------- header (compact: official wordmark, small avatar) -------- */
.lk-head { text-align: center; margin-bottom: var(--s-1); }
.lk-avatar {
  width: 64px; height: 64px; margin: 0 auto var(--s-3);
  border-radius: 50%;
  background: var(--surface-tint);
  box-shadow: var(--sh-2), 0 0 0 5px rgba(255, 255, 255, 0.7);
}
.lk-name { line-height: 0; }
.lk-wordmark { display: block; width: 172px; height: auto; margin-inline: auto; }
.lk-tagline {
  margin-top: var(--s-2);
  font-size: 0.9375rem; line-height: 1.45; color: var(--text-nav);
  max-width: 34ch; margin-inline: auto;
}

/* -------- pinned product CTA (single teal solid button; AA contrast) -------- */
.lk-cta {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  width: 100%; padding: 13px 20px; margin-top: var(--s-1);
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem; line-height: 1;
  color: #fff; background: var(--teal-dark);
  border-radius: var(--r-md); box-shadow: var(--sh-2);
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.lk-cta svg { width: 20px; height: 20px; flex: none; }
.lk-cta:hover { background: var(--teal-headline); transform: translateY(-2px); box-shadow: var(--sh-3); }
.lk-cta:active { transform: translateY(0); }
/* "Coming soon" pinned CTA: non-interactive, reuses .lk-soon-badge. */
.lk-cta--soon { cursor: default; }
.lk-cta--soon:hover { background: var(--teal-dark); transform: none; box-shadow: var(--sh-2); }

/* -------- link rows (socials + feature) -------- */
.lk-h2 {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-accent);
  text-align: center; margin: var(--s-2) 0 0;
}
.lk-socials { display: flex; flex-direction: column; gap: var(--s-2); }

.lk-link {
  display: flex;
  align-items: center; gap: var(--s-3);
  width: 100%; padding: 9px 14px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1); border: 1px solid var(--border-card, rgba(44, 74, 67, 0.08));
  color: var(--text-heading);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
a.lk-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2); border-color: var(--teal-brand);
}
.lk-link__icon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-tint); color: var(--teal-brand);
}
.lk-link__icon svg { width: 18px; height: 18px; }
.lk-link__label { flex: 1 1 auto; min-width: 0; font-family: var(--font-heading); font-weight: 500; font-size: 0.9375rem; color: var(--text-heading); }
.lk-link__handle { flex: none; font-size: 0.8125rem; color: var(--text-nav); }
.lk-link__chev { flex: none; width: 16px; height: 16px; color: var(--text-muted); }

/* feature row (watch the intro) gets a touch more weight */
.lk-link--feature { background: var(--surface-tint); border-color: transparent; }
.lk-link--feature .lk-link__icon { background: #fff; }
/* the feature row is a real <button> when it toggles the inline video */
button.lk-link { cursor: pointer; font: inherit; text-align: left; }
button.lk-link:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--teal-brand); }
#lk-video-toggle[aria-expanded="true"] .lk-link__chev--toggle { transform: rotate(90deg); }

/* -------- inline intro video panel -------- */
.lk-video { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.lk-video__media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--teal-dark); }

/* "coming soon" rows are non-interactive */
.lk-link--soon { cursor: default; opacity: 0.85; }
.lk-link--soon .lk-link__icon { color: var(--text-muted); background: var(--surface-tint); }
.lk-soon-badge {
  flex: none; font-family: var(--font-heading); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.02em; color: var(--text-nav);
  background: var(--surface-tint); padding: 4px 10px; border-radius: var(--r-pill);
}

/* -------- perk actions (save contact / share) -------- */
.lk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-1); }
.lk-action {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 11px 14px;
  font-family: var(--font-heading); font-weight: 500; font-size: 0.875rem;
  color: var(--text-heading); background: #fff;
  border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--border-btn);
  transition: transform var(--t-fast) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.lk-action svg { width: 19px; height: 19px; flex: none; }
.lk-action:hover { color: var(--teal-brand); box-shadow: inset 0 0 0 1.5px var(--teal-brand); background: var(--surface-tint); transform: translateY(-2px); }

/* -------- QR panel (Share fallback on devices without a native sheet) -------- */
.lk-qr {
  position: relative;
  display: grid; place-items: center; gap: var(--s-3);
  padding: var(--s-5) var(--s-4);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  text-align: center;
}
.lk-qr img { width: 80px; height: 80px; }
.lk-qr p { font-size: var(--fs-small); color: var(--text-nav); margin: 0; max-width: 26ch; }
.lk-qr__close {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--text-nav);
}
.lk-qr__close:hover { background: var(--surface-muted); color: var(--text-heading); }
.lk-qr__close svg { width: 18px; height: 18px; }

/* -------- footer -------- */
.lk-foot { text-align: center; margin-top: var(--s-3); }
.lk-copy { font-size: 0.8125rem; color: var(--text-muted); }
.lk-copy a { color: var(--teal-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* -------- share toast -------- */
.lk-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(12px);
  background: var(--teal-headline); color: #fff;
  font-family: var(--font-heading); font-weight: 500; font-size: 0.9375rem;
  padding: 11px 20px; border-radius: var(--r-pill); box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  z-index: 90;
}
.lk-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------- entrance animation (motion-safe only) -------- */
@media (prefers-reduced-motion: no-preference) {
  .lk-link__chev--toggle { transition: transform var(--t-fast) var(--ease); }
  .lk > * { animation: lk-rise var(--t) var(--ease-out) both; }
  .lk-head { animation-delay: 40ms; }
  .lk-cta { animation-delay: 90ms; }
  .lk-link--feature { animation-delay: 130ms; }
  .lk-socials { animation-delay: 170ms; }
  .lk-actions { animation-delay: 210ms; }
  .lk-foot { animation-delay: 250ms; }
}
@keyframes lk-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
