/* Shared styles for the lmfd104 app site.
   Dark by design: every app in the catalogue is a tabletop or sideline tool used in dim rooms,
   and the store screenshots were all shot against dark chrome. */

:root {
  color-scheme: dark;

  --ink:        #14101a;
  --ink-2:      #1b1622;
  --surface:    #221b2b;
  --surface-2:  #2b2235;
  --line:       #362c43;
  --line-soft:  #2a2233;

  --text:       #efeaf4;
  --text-dim:   #b3aabf;
  --text-faint: #8b8299;

  --gold:       #f5c33b;
  --violet:     #b98cff;

  --radius:     14px;
  --radius-sm:  10px;
  --wrap:       64rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--violet); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

/* ---------------------------------------------------------------- site chrome */

.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(20, 16, 26, .85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 3.75rem;
}
.brand {
  font-weight: 700; letter-spacing: .01em; color: var(--text);
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand:hover { text-decoration: none; color: var(--gold); }
.brand .mark {
  width: 1.6rem; height: 1.6rem; border-radius: 7px;
  background: linear-gradient(145deg, var(--gold), #c9781f);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #241804;
}
.site-nav { display: flex; gap: 1.25rem; font-size: .93rem; }
.site-nav a { color: var(--text-dim); }
.site-nav a:hover { color: var(--text); }

.site-foot {
  margin-top: 5rem; padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint); font-size: .9rem;
}
.site-foot h3 { color: var(--text-dim); font-size: .82rem; letter-spacing: .09em;
  text-transform: uppercase; margin: 0 0 .7rem; font-weight: 600; }
.foot-cols { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot-cols a { color: var(--text-dim); }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- hero */

.hero { padding: 4.5rem 0 3rem; }
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1; letter-spacing: -.02em; font-weight: 800;
}
.hero .lede { margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--text-dim); max-width: 40rem; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}

/* ---------------------------------------------------------------- app cards */

.apps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: #4a3c5c; transform: translateY(-2px); }

.card-shot {
  background: var(--ink-2); border-bottom: 1px solid var(--line-soft);
  aspect-ratio: 16 / 10; overflow: hidden;
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.card-head { display: flex; align-items: center; gap: .75rem; }
.card-head img { width: 2.5rem; height: 2.5rem; border-radius: 10px; flex: none; }
.card-head h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }
.card-head h2 a { color: var(--text); }
.card-head h2 a:hover { color: var(--gold); text-decoration: none; }
.card p { margin: 0; color: var(--text-dim); font-size: .95rem; flex: 1; }

.tagline { font-size: .78rem; color: var(--text-faint); letter-spacing: .04em; }

/* ---------------------------------------------------------------- store buttons */

.stores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.store {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); border-radius: 8px;
  padding: .42rem .75rem; font-size: .85rem; font-weight: 600;
  color: var(--text); background: var(--surface-2);
}
.store:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.store svg { width: 1rem; height: 1rem; flex: none; }
.store.ghost { background: none; color: var(--text-faint); font-weight: 500; }

.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .18rem .5rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-faint);
}
.badge.soon { border-color: #5a4520; color: var(--gold); }

/* ---------------------------------------------------------------- sections */

section { margin-top: 4rem; }
h2.section { font-size: 1.45rem; letter-spacing: -.01em; margin: 0 0 .4rem; }
.section-note { margin: 0 0 1.75rem; color: var(--text-dim); }

/* ---------------------------------------------------------------- app page */

.app-hero { padding: 3.5rem 0 2rem; display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.app-hero > img { width: 5rem; height: 5rem; border-radius: 20px; flex: none; }
.app-hero-text { flex: 1; min-width: 16rem; }
.app-hero h1 { margin: 0 0 .35rem; font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: -.02em; }
.app-hero .lede { margin: 0 0 1.25rem; color: var(--text-dim); font-size: 1.1rem; }

.shots {
  display: grid; gap: 1rem; margin: 2.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.shots img { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2); }

.features { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.features li { border-left: 2px solid var(--line); padding-left: 1rem; }
.features strong { display: block; margin-bottom: .2rem; color: var(--text); }
.features span { color: var(--text-dim); font-size: .95rem; }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); background: var(--ink-2);
  padding: 1.1rem 1.25rem; color: var(--text-dim);
}
.callout strong { color: var(--text); }

.backlink { display: inline-block; margin-top: 3rem; color: var(--text-faint); font-size: .9rem; }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .hero { padding: 3rem 0 2rem; }
  .site-nav { gap: .9rem; font-size: .87rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------------- free-in-browser band */

.band {
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245,195,59,.07), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--ink-2));
  padding: 1.9rem 1.9rem 2.1rem;
}
.band .section-note { margin-bottom: 1.5rem; }
.band-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.band-card {
  display: flex; flex-direction: column; gap: .45rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--ink); padding: 1.15rem 1.25rem 1.3rem;
  color: var(--text-dim); text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.band-card:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.band-kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.band-card strong { color: var(--text); font-size: 1.08rem; letter-spacing: -.01em; }
.band-card span:not(.band-kicker):not(.band-go) { font-size: .93rem; }
.band-go { margin-top: .35rem; color: var(--violet); font-size: .9rem; font-weight: 600; }

@media (max-width: 34rem) {
  .band { padding: 1.4rem 1.15rem 1.6rem; }
}
