/*
 * JLLC Client — site styling.
 *
 * The palette is lifted straight from the client's "Coop" theme so the website and the thing it
 * sells look like the same product: warm amber on near-black, to go with the bird.
 */

:root {
  --base: #14110e;
  --raised: #1d1914;
  --sunken: #100d0b;
  --line: #2e271e;
  --text: #f6f1ea;
  --muted: #b3a897;
  --accent: #ffb02e;
  --accent-dim: #7a5516;
  --danger: #ff6b5e;
  --ok: #4cd97b;

  --radius: 12px;
  --radius-sm: 7px;
  --shell: 1180px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A warm wash behind the top of every page, so the fold is not a flat slab. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 480px at 15% -8%, rgba(255, 176, 46, 0.13), transparent 70%),
    radial-gradient(700px 420px at 92% 4%, rgba(255, 176, 46, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- nav ------------------------------------------------------------------------------- */

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(20, 17, 14, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand small { color: var(--muted); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.on { color: var(--text); text-decoration: none; }

.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.08s;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1203;
}
.btn.primary:hover { background: #ffc155; }

.btn.ghost { background: transparent; }
.btn.lg { padding: 14px 26px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- surfaces -------------------------------------------------------------------------- */

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

section { padding: 76px 0; }
section.tight { padding: 44px 0; }

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sunken);
  font-size: 0.8rem;
  color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

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

.hero { padding: 92px 0 60px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .amber { color: var(--accent); }
.hero .lede { font-size: 1.16rem; color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* ---- the interactive menu demo --------------------------------------------------------- */

.demo-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.demo {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 430px;
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
}

.demo-rail { background: var(--sunken); border-right: 1px solid var(--line); padding: 18px 0; }

.demo-brand { display: flex; align-items: center; gap: 9px; padding: 0 18px 16px; }
.demo-brand .mark { width: 24px; height: 24px; }
.demo-brand b { font-size: 1.05rem; letter-spacing: -0.02em; }
.demo-brand span { color: var(--muted); font-size: 0.7rem; }

.demo-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 12px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.demo-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.demo-tab.on { background: var(--accent-dim); color: var(--text); }
.demo-tab .bullet { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.demo-tab.on .bullet { background: var(--accent); opacity: 1; }

.demo-body { padding: 18px 20px; overflow-y: auto; max-height: 430px; }
.demo-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.demo-head h3 { margin: 0; font-size: 1.35rem; font-weight: 750; }
.demo-head span { color: var(--muted); font-size: 0.82rem; }

.demo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.demo-row:hover { border-color: #463b2b; }
.demo-row.on { border-color: var(--accent); background: linear-gradient(90deg, rgba(255,176,46,0.12), var(--raised) 60%); }
.demo-row .nm { font-weight: 600; font-size: 0.95rem; flex: 1; }
.demo-row.on .nm { color: var(--text); }
.demo-row:not(.on) .nm { color: var(--muted); }

.sw { width: 34px; height: 18px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); position: relative; flex: none; transition: background 0.2s, border-color 0.2s; }
.demo-row.on .sw { background: var(--accent); border-color: var(--accent); }
.sw i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #6f6a60; transition: transform 0.2s, background 0.2s; }
.demo-row.on .sw i { transform: translateX(16px); background: #fff; }

.demo-desc {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0 14px;
  margin: -4px 0 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease, padding 0.26s ease;
}
.demo-desc.open { max-height: 160px; padding: 4px 14px 10px; }

/* ---- module catalogue ------------------------------------------------------------------ */

.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-nav button {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font: inherit;
  font-size: 0.89rem;
  font-weight: 600;
  cursor: pointer;
}
.cat-nav button.on { background: var(--accent); border-color: var(--accent); color: #1a1203; }

.mod {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--raised);
  padding: 16px 18px;
}
.mod h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.mod p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---- pricing --------------------------------------------------------------------------- */

.price { display: flex; flex-direction: column; position: relative; }
.price.best { border-color: var(--accent); }
.price .tag {
  position: absolute; top: -11px; right: 18px;
  background: var(--accent); color: #1a1203;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price .amt sup { font-size: 1.1rem; font-weight: 600; top: -0.7em; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.price li { padding: 6px 0 6px 24px; position: relative; font-size: 0.92rem; color: var(--muted); }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- forms ----------------------------------------------------------------------------- */

.form { max-width: 420px; margin: 0 auto; }
label { display: block; font-size: 0.86rem; font-weight: 600; margin: 0 0 6px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--sunken);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  margin-bottom: 15px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

.note { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 15px; }
.note.err { background: rgba(255, 107, 94, 0.12); border: 1px solid rgba(255, 107, 94, 0.4); color: #ffb4ac; }
.note.ok { background: rgba(76, 217, 123, 0.1); border: 1px solid rgba(76, 217, 123, 0.35); color: #a8edc0; }
.note.warn { background: rgba(255, 176, 46, 0.1); border: 1px solid rgba(255, 176, 46, 0.35); color: #ffd79a; }

/* ---- tables ---------------------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; }
.badge.active { background: rgba(76,217,123,0.16); color: #8ce8ab; }
.badge.unused { background: rgba(255,176,46,0.16); color: #ffcf7d; }
.badge.expired, .badge.terminated, .badge.revoked { background: rgba(255,107,94,0.16); color: #ffa79e; }
.badge.admin { background: rgba(255,176,46,0.2); color: var(--accent); }
.badge.staff { background: rgba(124,169,255,0.18); color: #a8c6ff; }
.badge.friend { background: rgba(76,217,123,0.16); color: #8ce8ab; }
.badge.member { background: rgba(255,255,255,0.07); color: var(--muted); }

/* ---- screenshots ----------------------------------------------------------------------- */

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sunken); }
.shot img { width: 100%; display: block; }
.shot figcaption { padding: 12px 16px; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot.missing { aspect-ratio: 16/10; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; text-align: center; padding: 24px; }

/* ---- staff ----------------------------------------------------------------------------- */

.person { text-align: center; }
.person .av {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 14px; background: var(--sunken);
  border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: var(--accent);
  overflow: hidden;
}
.person .av img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--accent); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.person p { font-size: 0.9rem; color: var(--muted); }

/* ---- footer ---------------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h5 { color: var(--text); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem; }
