/* Shared styles for the Apps and agents page and the agent pages.
   Tokens match the homepage (public/index.html). */
:root {
  color-scheme: dark;
  --black: #0E0E0F; --charcoal: #151516; --graphite: #1D1D1F;
  --line: #2A2A2D; --line-strong: #3E3E43;
  --bone: #ECE8E1; --muted: #9C9BA2;
  --marigold: #F5A524; --marigold-ink: #0E0E0F; --teal: #1B9C93;
  --ok: #5FD3C8; --err: #FF9576;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;
  --wrap: 1240px; --r: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--bone); background: var(--black); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-stretch: 76%; letter-spacing: -0.035em; line-height: .96; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--marigold); color: var(--marigold-ink); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.75rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.4rem; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn:disabled { opacity: .55; cursor: default; }
.btn--primary { background: var(--marigold); color: var(--marigold-ink); }
.btn--primary:hover:not(:disabled) { background: var(--bone); }
.btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--bone); }
.btn--ghost:hover:not(:disabled) { background: var(--bone); border-color: var(--bone); color: var(--black); }
.btn--sm { padding: .4rem .9rem; font-size: .88rem; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(14, 14, 15, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; font-stretch: 85%; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; flex: none; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--bone); }
@media (max-width: 720px) {
  .brand span { display: none; }
  .nav { gap: 1rem; }
  .nav a:not(.btn) { font-size: .95rem; }
}

.site-footer { margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); padding-block: 1.6rem; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }

.app-logo { flex: none; width: 64px; height: 64px; border-radius: 14px; }
.disc { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg, var(--marigold)); color: var(--fg, var(--black)); font-weight: 800; font-stretch: 75%; font-size: 2rem; line-height: 1; }
.tag { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #2B2B2F; color: var(--muted); white-space: nowrap; }
.tag--warn { background: #3A2C0E; color: var(--marigold); }
.tag--ok { background: #123331; color: var(--ok); }
.tag--err { background: #3A1D16; color: var(--err); }
.notice { padding: 1rem 1.1rem; border-radius: 10px; background: var(--graphite); color: var(--muted); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Top-right account slot: "Log in", or the person's name and "Log out" */
.account { display: inline-flex; align-items: center; gap: .75rem; min-width: 5.5rem; justify-content: flex-end; }
.account__name { color: var(--muted); font-weight: 500; white-space: nowrap; }
.account__btn { padding: .4rem .95rem; font-size: .88rem; }
@media (max-width: 720px) { .nav__home { display: none; } }
@media (max-width: 480px) {
  .nav__talk, .account__name { display: none; }
  .nav { gap: .8rem; }
  .account { min-width: 0; }
}
@media (max-width: 380px) { .nav__saathi { display: none; } }
