/* tudlab.com home page (B1226). Brand: brand/README.md. No gradients, no shadows beyond a hairline. */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --ink: #16181d; --ink-2: #545861; --line: #e4e1d9;
  --money: #1f5e46; --home: #2556a8; --link: #2556a8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --surface: #1a1d22; --ink: #eef0f3; --ink-2: #a5a9b0; --line: #2b2f36;
    --money: #72cfa3; --home: #8fb3f0; --link: #8fb3f0;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --surface: #1a1d22; --ink: #eef0f3; --ink-2: #a5a9b0; --line: #2b2f36;
  --money: #72cfa3; --home: #8fb3f0; --link: #8fb3f0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 640px; margin: 0 auto; padding: 48px 16px 40px; }
@media (min-width: 820px) { main { max-width: 920px; padding: 88px 32px 56px; } }

.top { margin-bottom: 36px; }
.wordmark { margin: 0; line-height: 0; }
.wordmark img { height: 52px; width: auto; }
@media (min-width: 820px) { .wordmark img { height: 64px; } }
.tagline { margin: 18px 0 0; font-size: 20px; line-height: 1.4; color: var(--ink-2); max-width: 30ch; }
@media (min-width: 820px) { .tagline { font-size: 22px; } }

.products { display: grid; gap: 16px; }
@media (min-width: 820px) { .products { grid-template-columns: 1fr 1fr; gap: 24px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px 22px 22px; display: flex; flex-direction: column;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.icon { width: 48px; height: 48px; display: block; }
.badge {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--money); border: 1.5px solid currentColor; border-radius: 999px; padding: 3px 10px;
}
.lockup { margin: 0 0 12px; line-height: 0; }
.lockup svg { height: 30px; width: auto; display: block; }
.lockup .ink { fill: var(--ink); }
.money .lockup .acc { fill: var(--money); }
.home .lockup .acc { fill: var(--home); }
.card p { margin: 0 0 12px; }
.card ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; }
.card li { margin: 6px 0; }
.go {
  margin-top: auto; align-self: flex-start; display: inline-block;
  font-weight: 800; text-decoration: none; padding: 11px 18px; border-radius: 12px;
  color: #ffffff; background: var(--money);
}
.home .go { background: var(--home); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .go { color: #111317; }
}
:root[data-theme="dark"] .go { color: #111317; }
.go:hover, .go:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.go:focus-visible, footer a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
footer p { margin: 0 0 6px; }
footer a { color: var(--link); font-weight: 800; text-underline-offset: 3px; }
.small { font-size: 14px; }

/* /brand/ page */
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.files li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.files img { max-width: 120px; max-height: 48px; }
.files a { color: var(--link); font-size: 14.5px; word-break: break-all; text-underline-offset: 3px; }
.dark-tile { background: #16181d; border-radius: 8px; padding: 6px; }
.tagline a { color: var(--link); text-underline-offset: 3px; }
