/* The front page (/) — "the portal": the Planeswalk diamond in slowly turning
   gold rings, a light sweep across the title, a river of card art, then the
   three steps and what the table does. Rides on table.css for the Felt tokens. */

body.landing { background-color: var(--page); background-image: var(--grain),
  radial-gradient(ellipse 70% 45% at 50% 22%, #16302a, rgba(10, 19, 16, 0) 70%);
  background-size: 3px 3px, 100% 100%; background-repeat: repeat, no-repeat; overflow-x: hidden; }
.lp a { color: var(--gold); }
.lp a:hover { color: #efd59a; }
.lp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* header */
.lp-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.lp-brand { font: 700 22px var(--serif); color: var(--ink) !important; text-decoration: none; }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.lp-nav a { text-decoration: none; }
.lp-pill { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); color: var(--ink) !important; }
.lp-pill:hover { border-color: var(--gold); }

/* hero */
.lp-hero { max-width: 1000px; margin: 0 auto; padding: 18px 32px 70px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.lp-mark { position: relative; width: 272px; height: 272px; animation: lp-open 1.4s cubic-bezier(.2, .8, .3, 1) backwards; }
.lp-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.lp-glow { position: absolute; inset: 56px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 173, 102, .32), rgba(212, 173, 102, 0) 70%);
  animation: lp-breathe 6s ease-in-out infinite; }
.lp-ring { transform-box: fill-box; transform-origin: center; }
.lp-r1 { animation: lp-spin 46s linear infinite; }
.lp-r2 { animation: lp-spin 80s linear infinite reverse; }
.lp-r3 { animation: lp-spin 120s linear infinite; }
.lp-inner { animation: lp-glint 5s ease-in-out 1.4s infinite; }
.lp-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.lp-title { margin: 0; font: 700 clamp(66px, 10vw, 128px)/.95 var(--serif);
  background: linear-gradient(100deg, var(--ink) 42%, #fff4d6 50%, var(--ink) 58%) 0 0 / 320% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lp-in 1.1s cubic-bezier(.2, .8, .3, 1) .3s backwards, lp-sweep 8s ease-in-out 1.5s infinite; }
.lp-tag { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: #c9cdbd; text-wrap: pretty; }
.lp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.lp-btn { height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 999px; font: 600 15px var(--ui);
  text-decoration: none; border: 1px solid rgba(214, 176, 106, .35); color: var(--ink) !important; transition: transform .18s ease, filter .18s ease, border-color .18s ease; }
.lp-btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.lp-btn.primary { padding: 0 38px; border: 0; background: var(--gold); color: var(--gold-ink) !important; font: 700 17px var(--ui);
  box-shadow: 0 0 0 5px rgba(212, 173, 102, .14), 0 12px 30px rgba(0, 0, 0, .4); }
.lp-btn.primary:hover { filter: brightness(1.07); }
.lp-fade { animation: lp-up .9s cubic-bezier(.2, .8, .3, 1) var(--d, .6s) backwards; }

/* the river of cards */
.lp-river-band { display: flex; flex-direction: column; gap: 18px; padding: 10px 0 90px; }
.lp-river { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding: 12px 0; }
.lp-track { display: flex; gap: 18px; width: max-content; animation: lp-flow 90s linear infinite; }
.lp-track.rev { animation-direction: reverse; animation-duration: 110s; }
.lp-river:hover .lp-track { animation-play-state: paused; }
.lp-tile { width: 150px; height: 209px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--board2); box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  transform: rotate(var(--t, 0deg)); transition: transform .25s ease; }
.lp-tile:hover { transform: translateY(-8px) rotate(var(--t, 0deg)) scale(1.04); }
.lp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-river-note { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--muted); padding: 0 16px; }

/* three steps */
.lp-steps { max-width: 1100px; margin: 0 auto; padding: 0 32px 100px; display: flex; flex-direction: column; gap: 40px; }
.lp-steps h2 { margin: 0; text-align: center; font: italic 600 40px var(--serif); }
.lp-line { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 36px; }
.lp-line::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 1px;
  background: linear-gradient(90deg, rgba(214, 176, 106, 0), rgba(214, 176, 106, .45), rgba(214, 176, 106, 0)); }
.lp-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.lp-node { width: 30px; height: 30px; border-radius: 50%; background: var(--page); border: 1px solid var(--gold); display: grid; place-items: center;
  font: 700 14px var(--ui); color: var(--gold); animation: lp-node 4.5s ease-in-out var(--d) infinite; }
.lp-step h3 { margin: 0; font-size: 19px; font-weight: 600; }
.lp-step p { margin: 0; max-width: 300px; color: var(--muted); line-height: 1.55; }

/* what the table does */
.lp-feats { max-width: 1100px; margin: 0 auto; padding: 0 32px 100px; display: flex; flex-wrap: wrap; gap: 48px; }
.lp-intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.lp-intro h2 { margin: 0; font: 700 46px/1.05 var(--serif); }
.lp-intro p { margin: 0; color: var(--muted); line-height: 1.6; }
.lp-list { flex: 2 1 520px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 36px; }
.lp-list > div { padding: 18px 0; border-top: 1px solid var(--line); }
.lp-list dt { font: 700 22px var(--serif); margin-bottom: 6px; }
.lp-list dd { margin: 0; color: var(--muted); line-height: 1.55; }

/* closing */
.lp-end { max-width: 1000px; margin: 0 auto 70px; padding: 0 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lp-end svg { width: 42px; height: 42px; fill: none; stroke: var(--gold); stroke-width: 5; stroke-linejoin: round; }
.lp-end h2 { margin: 0; font: 700 50px var(--serif); }
.lp-foot { padding-top: 24px; padding-bottom: 34px; border-top: 1px solid rgba(214, 176, 106, .12); display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.lp-foot .grow { flex: 1 1 0; }

@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-breathe { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: .7; transform: scale(1.04); } }
@keyframes lp-open { from { opacity: 0; transform: scale(.85) rotate(-8deg); } }
@keyframes lp-glint { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes lp-sweep { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }
@keyframes lp-in { from { opacity: 0; letter-spacing: .08em; } }
@keyframes lp-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes lp-flow { to { transform: translateX(-50%); } }
@keyframes lp-node { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(212, 173, 102, 0); } 20% { box-shadow: 0 0 0 10px rgba(212, 173, 102, .18); } }
@supports (animation-timeline: view()) {
  .lp-reveal { animation: lp-up both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}

@media (max-width: 760px) {
  .lp-wrap, .lp-hero, .lp-steps, .lp-feats, .lp-end { padding-left: 16px; padding-right: 16px; }
  .lp-nav { gap: 12px; font-size: 13px; }
  .lp-nav .lp-hide-sm { display: none; }
  .lp-mark { width: 200px; height: 200px; }
  .lp-glow { inset: 40px; }
  .lp-tag { font-size: 16px; }
  .lp-ctas { flex-direction: column; align-self: stretch; }
  .lp-tile { width: 112px; height: 156px; }
  .lp-steps h2 { font-size: 32px; }
  .lp-line::before { display: none; }
  .lp-intro h2 { font-size: 36px; }
  .lp-end h2 { font-size: 38px; }
}
/* motion off: the system asks for less, or Settings → Animations is off */
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
}
.no-motion .lp *, .no-motion .lp *::before, .no-motion .lp *::after { animation: none !important; transition: none !important; }

/* the guide and the changelog as pages */
.lp-doc { max-width: 820px; margin: 0 auto; padding: 18px 32px 70px; }
.lp-doc h1 { margin: 0 0 18px; font: 700 54px/1 var(--serif); }
.lp-doc-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.lp-doc-cta .lp-btn { height: 46px; }
.lp-doc .guide h4 { font: 600 15px var(--ui); color: var(--muted); margin: 16px 0 4px; text-transform: uppercase; letter-spacing: .12em; }
.lp-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 760px) { .lp-doc { padding: 12px 16px 50px; } .lp-doc h1 { font-size: 42px; } }
