/* ============================================================
   dgtl.ai — Tools Hub
   Same colour tokens/brand chrome as the Brand Configurator, kept
   as a separate small file so every tool can @import/link it
   without depending on any one tool's larger stylesheet. */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #171a20;
  --muted: #6b7280;
  --line: #e3e5ea;
  --primary: #3399ff;
  --primary-hover: #2b82d9;

  /* Category colours — deliberately distinct hues, not shades of the
     same primary blue, so the four sections stay visually
     distinguishable at a glance. */
  --cat-configurators: #3399ff;
  --cat-generators: #51cc8a;
  --cat-editors: #747af2;
  --cat-other: #ff8a3d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
header {
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.header-inner { max-width: 1100px; margin: 0 auto; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

/* nav.js toggles [data-nav-open] on <header> for the mobile collapse */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
}
.nav-link:hover { color: var(--ink); background: var(--bg); }
.nav-link.active { color: var(--primary); background: rgba(51, 153, 255, .08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 1px; }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 16px;
    gap: 2px;
    z-index: 20;
  }
  header { position: relative; }
  header[data-nav-open] .main-nav { display: flex; }
  .nav-link { padding: 12px 14px; }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
}

.tile-section { margin-bottom: 40px; }
.tile-section:last-child { margin-bottom: 0; }
.section-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease-in-out, transform .1s ease-in-out;
}
.tile:hover { border-color: var(--primary); }
.tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  margin-bottom: 14px;
}
/* Each section carries its own category colour, cascading down to
   every tile's icon inside it — one class on the <section>, no need
   to repeat a colour class on every single tile. */
.cat-configurators .tile-icon { background: var(--cat-configurators); }
.cat-generators .tile-icon { background: var(--cat-generators); }
.cat-editors .tile-icon { background: var(--cat-editors); }
.cat-other .tile-icon { background: var(--cat-other); }

.tile h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.tile p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.tile.disabled {
  cursor: default;
  opacity: .55;
}
.tile.disabled:hover { border-color: var(--line); }
.tile.disabled .tile-icon { background: var(--muted); }
.tile-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 10px;
}
.tile-badge-external {
  color: var(--primary);
  background: rgba(51, 153, 255, .08);
  border-color: rgba(51, 153, 255, .3);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 20px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--muted);
}
