/* Latch: the launchpad page. Builds on style.css (nav, sections, .kv, .btn, .eyebrow, .lede); only what it lacks. */
.nav .brand img { display: block; }
.lhero { border-top: 0; padding-top: 40px; }
.lhero h1 { font-size: clamp(32px, 5.6vw, 54px); line-height: 1.05; margin-bottom: 18px; max-width: 18ch; }

.lclosed { margin: 4px 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); max-width: 900px; }
.lform :disabled { opacity: .55; cursor: not-allowed; }
.lwallet { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 22px; min-height: 38px; }
.lwallet .wallet-btn, .lwallet .ghost { height: 36px; }

.lform { max-width: 900px; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.lgrid label { display: grid; gap: 6px; font-size: 12.5px; color: var(--mute); min-width: 0; align-content: start; }
.lgrid .span { grid-column: 1 / -1; }
.lgrid input, .lgrid textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; font-size: 14px; outline: none; width: 100%; }
.lgrid input { height: 38px; padding-top: 0; padding-bottom: 0; }
.lgrid textarea { resize: vertical; min-height: 70px; line-height: 1.45; }
.lgrid input:focus, .lgrid textarea:focus { border-color: var(--mute); }
.lgrid input::placeholder, .lgrid textarea::placeholder { color: var(--dim); }
.lgrid input[type="file"] { height: auto; padding: 8px 10px; color: var(--body); }
.lgrid .limg .mute { font-size: 12px; }
.lpreview { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.lpreview img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.lform .note { margin: 16px 0; max-width: 70ch; }

.lsteps { list-style: none; margin: 22px 0 0; padding: 0; max-width: 900px; border-top: 1px solid var(--line); }
.lsteps li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--row); font-size: 14px; color: var(--body); }
.lsteps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--mute); align-self: center; }
.lsteps li.done::before { background: var(--led); border-color: var(--led); box-shadow: 0 0 8px var(--led); }
.lsteps li.fail::before { background: var(--red); border-color: var(--red); }
.lsteps li.fail { color: var(--red); }
.lsteps .side { font-size: 13px; color: var(--mute); overflow-wrap: anywhere; text-align: right; }

.lresult { margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 900px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; }
.lresult img { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.lresult .title { font-size: 21px; font-weight: 300; margin-bottom: 6px; color: var(--ink); }
.lresult .links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }

/* sub-sections: tabs under the title, one panel at a time */
.lhero { padding-bottom: 48px; }
.ltabs { margin-top: 36px; } .ltabs button { height: 34px; padding: 0 18px; border-radius: 17px; font-size: 14px; }
.lpanel { padding-top: 72px; }

/* coins: squares, $LATCH first (lit like the latch's LED), a search box and a top / newest switch */
.lcoins-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin-bottom: 32px; }
.lcoins-head h2 { margin: 0; }
.lcoins-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#lp-search { height: 38px; width: 320px; max-width: 100%; padding: 0 16px; border: 1px solid var(--line); border-radius: 19px; background: var(--page); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
#lp-search:focus { border-color: var(--mute); } #lp-search::placeholder { color: var(--dim); }
.lcoins { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.lcoin { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #0a0a0a, #070707); color: var(--body); transition: border-color .2s; }
.lcoin:hover, .lcoin:focus-visible { border-color: var(--mute); text-decoration: none; }
.lcoin img, .lcoin .noimg { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--row); }
.lcoin-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.lcoin b { color: var(--ink); font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcoin .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
.lcoin .mcap { color: var(--ink); font-variant-numeric: tabular-nums; }
.lcoin .tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--led); }
.lcoin.featured { border-color: color-mix(in srgb, var(--led) 55%, transparent); box-shadow: 0 0 28px -10px var(--led); }
.lcoin.open .noimg { aspect-ratio: 3 / 1; }
@media (prefers-reduced-motion: reduce) { .lcoin { transition: none; } }
.lterms > div { grid-template-columns: 160px minmax(0, 1fr); }

/* where the fees go: a dial-like ring split in half, holders lit in the LED green */
.lsplit { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; margin: 14px 0 36px; max-width: 900px; }
.lsplit svg { width: 220px; height: 220px; display: block; overflow: visible; }
.lsplit .ticks { stroke: var(--dim); stroke-width: 1.2; }
.lsplit .rim { fill: none; stroke: var(--line); stroke-width: 1; }
.lsplit .track { fill: none; stroke: var(--row); stroke-width: 14; }
.lsplit .arc { fill: none; stroke-width: 14; stroke-dasharray: 49 51; stroke-dashoffset: -.5; }
.lsplit .arc.h { stroke: var(--led); filter: drop-shadow(0 0 6px rgba(47, 227, 172, .45)); }
.lsplit .arc.l { stroke: var(--ink); opacity: .82; }
.lsplit .big { font-family: "Unbounded", "Sora", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 30px; letter-spacing: -.02em; fill: var(--ink); }
.lsplit .small { font-size: 9.5px; letter-spacing: .16em; fill: var(--mute); }
.lsplit figcaption .sub { margin-top: 0; }
.lsplit figcaption .note { margin: 0 0 14px; }
.lsplit-key { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lsplit-key li { display: grid; grid-template-columns: 10px 74px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--row); }
.lsplit-key li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; align-self: start; margin-top: 11px; }
.lsplit-key .h::before { background: var(--led); box-shadow: 0 0 8px var(--led); }
.lsplit-key .l::before { background: var(--ink); opacity: .82; }
.lsplit-key b { font-family: "Unbounded", "Sora", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.lsplit-key span { font-size: 14px; color: var(--body); line-height: 1.5; }
.lsplit-key em { display: block; font-style: normal; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

@media (max-width: 640px) {
  .lgrid { grid-template-columns: 1fr; }
  .lterms > div { grid-template-columns: 1fr; gap: 2px; }
  .lsplit { grid-template-columns: 1fr; gap: 22px; justify-items: center; }
  .lsplit svg { width: 180px; height: 180px; }
  .lsplit figcaption { justify-self: stretch; }
  .lsplit-key li { grid-template-columns: 10px 62px minmax(0, 1fr); }
  .lresult { grid-template-columns: 1fr; }
  .lhero { padding-top: 24px; }
  .lcoins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #lp-search { width: 100%; }
  .lcoins-tools { width: 100%; }
}
