/* Share-link landing pages, /society/<id> and /event/<id>.
   Redesigned 20-Sept-2026 (Dan's call on the mock). One job, get a student with no app to the store.
   A purple stage, the society's own logo as the hero on a white tile, one clear download button carrying
   the same rotating purple ring as the website's store badges (css/main.css, app-badge-ring).
   The page works with js/share-link.js blocked, both store buttons show and nothing else moves. */
:root { --purple: #7719aa; --deep: #5a1285; --navy: #1c1033; --wash: #f5eefa; --soft: #5b5470; --line: #ece6f2; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); text-align: center; -webkit-font-smoothing: antialiased;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }

.sl-stage { position: relative; height: 188px; overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, #9a35cf 0%, var(--purple) 42%, var(--deep) 100%); }
.sl-stage::after { content: ""; position: absolute; right: -46px; bottom: -70px; width: 250px; height: 270px;
  background: url(/brand-assets/tandem-logo-white.svg) center/contain no-repeat; opacity: .10; }
.sl-lockup { position: absolute; left: 20px; top: 18px; height: 30px; width: auto; }

.sl-tile { position: relative; z-index: 1; width: 132px; height: 132px; margin: -76px auto 0; border-radius: 32px; background: #fff;
  box-shadow: 0 0 0 5px #fff, 0 14px 30px rgba(28, 16, 51, .20); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sl-tile img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.sl-tile.is-mark img { padding: 30px; }
.sl-tile.is-initial { background: var(--wash); }
.sl-initial { font: 800 58px/1 "Plus Jakarta Sans", Inter, sans-serif; color: var(--purple); }

main { padding: 18px 22px 34px; max-width: 440px; margin: 0 auto; }
h1 { font: 800 30px/1.12 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.sl-lead { font-size: 16.5px; line-height: 1.45; color: var(--soft); margin: 10px auto 0; max-width: 330px; text-wrap: pretty; }

@property --sl-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.sl-cta { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 0;
  height: 66px; border-radius: 20px; background: #fff; color: var(--navy); text-decoration: none; border: 2px solid #e6d8f1;
  box-shadow: 0 10px 26px rgba(119, 25, 170, .16); }
.sl-cta + .sl-cta { margin-top: 14px; }
.sl-cta::before { content: ""; position: absolute; inset: -3px; border-radius: 23px; padding: 3px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--sl-angle), transparent 0deg, transparent 230deg, rgba(119, 25, 170, .25) 300deg, #7719aa 350deg, #7719aa 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: sl-ring 4.5s linear infinite; }
@keyframes sl-ring { to { --sl-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .sl-cta::before { animation: none; background: #7719aa; } }
.sl-cta:focus-visible { outline: 3px solid #b56be0; outline-offset: 4px; }
.sl-cta:active { transform: scale(.985); }
.sl-cta svg { width: 32px; height: 32px; flex: none; fill: var(--navy); }
.sl-cta div { text-align: left; line-height: 1.1; }
.sl-cta small { display: block; font-size: 12.5px; color: var(--soft); }
.sl-cta b { display: block; font: 700 22px/1.1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -.01em; }

/* Open in Tandem sits UNDER the "Already have Tandem?" box and stays quieter than the store button (21-Sept-2026).
   Most people who land here do not have the app, and on an iPhone a tandem:// tap with no app installed is a Safari error. */
main { display: flex; flex-direction: column; }
.sl-have { order: 1; }
.sl-open { order: 2; display: block; margin: 10px 0 0; padding: 13px; border-radius: 16px; background: #fff; color: var(--purple); border: 2px solid var(--purple); font-weight: 600; text-decoration: none; }
.sl-fine { font-size: 14px; color: var(--soft); margin: 12px 0 0; }
.sl-fine b { color: var(--navy); font-weight: 600; }
.sl-why { list-style: none; margin: 26px 0 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.sl-why li { display: flex; gap: 12px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.3; }
.sl-why li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--purple); flex: none; transform: rotate(45deg); }
.sl-have { margin: 22px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--wash); font-size: 14.5px; line-height: 1.4; color: #3c3352; }
.sl-have b { font-weight: 600; color: var(--navy); }
