/* Shared site shell (Home/Library/Account + embedded into apps) */

:root {
  --shell-bg: #121212;
  --shell-panel: #1b1b1b;
  --shell-border: rgba(255,255,255,0.10);
  --shell-text: #e8e3d9;
  --shell-sub: #b8b3a9;
  --shell-accent: #6B9B7F;
  --shell-accent-dark: #5A8A6E;
  --shell-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --shell-heading: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --shell-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html { scrollbar-gutter: stable; }

@keyframes dm-dot-pulse {
  0%, 100% { opacity: 0.45; box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { opacity: 1; box-shadow: 0 0 26px currentColor; }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  /* Match app header color */
  background: #1e1c1c;
  border-bottom: none;
  box-shadow: none;
}

.site-nav .inner {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 6px 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.site-nav .brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav .brand-link:hover .ascii {
  color: var(--shell-accent);
}

.site-nav .brand .ascii {
  margin: 0;
  padding: 0;
  white-space: pre;
  font-family: var(--shell-mono);
  font-size: 6px;
  line-height: 1;
  color: var(--shell-accent);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(217, 119, 87, 0.30);
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  padding-bottom: 0;
}

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  margin-left: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--shell-mono);
  font-size: 12px;
  color: var(--shell-text);
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav a:hover {
  background: transparent;
  border-color: transparent;
  color: var(--shell-accent);
}

.site-nav a.active {
  background: transparent;
  border-color: transparent;
  color: var(--shell-accent);
}

.site-nav a.locked {
  opacity: 0.65;
}

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

.site-nav .pill {
  font-family: var(--shell-mono);
  font-size: 12px;
  color: var(--shell-sub);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--shell-border);
  padding: 26px 18px;
  background: rgba(0,0,0,0.18);
  min-height: 250px;
  display: flex;
  align-items: center;
}

.site-footer .inner {
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 18px;
  align-items: center;
  position: relative;
  padding-bottom: 32px;
}

@media (max-width: 720px) { .site-footer .inner { grid-template-columns: 1fr; } }

.site-footer .left {
  grid-column: 1;
  grid-row: 2;
  position: absolute;
  left: 0;
  bottom: 15px;
}
.site-footer .newsletter { grid-column: 1; grid-row: 1; }
.site-footer .links { grid-column: 2; grid-row: 1 / span 2; }

@media (max-width: 720px) {
  .site-footer .left { grid-row: auto; }
  .site-footer .newsletter { grid-row: auto; }
  .site-footer .links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}

.site-footer .newsletter {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.site-footer .newsletter label {
  font-family: var(--shell-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D97757;
}
.site-footer .newsletter .desc {
  margin: 0;
  color: var(--shell-sub);
  line-height: 1.55;
  font-size: 12px;
}
.site-footer .newsletter .row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.site-footer .newsletter input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--shell-text);
  font-family: var(--shell-font);
}
.site-footer .newsletter input[type="email"]::placeholder { color: rgba(232,227,217,0.45); }
.site-footer .newsletter input[type="submit"] {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(217,119,87,0.55);
  background: rgba(217,119,87,0.16);
  color: var(--shell-text);
  font-family: var(--shell-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-footer .newsletter input[type="submit"]:hover { background: rgba(217,119,87,0.24); }
.site-footer .newsletter .fine {
  margin: 0;
  font-family: var(--shell-mono);
  font-size: 11px;
  color: rgba(232,227,217,0.55);
}
.site-footer .newsletter .fine a { padding: 0; border: none; font-size: 11px; color: rgba(232,227,217,0.55); }
.site-footer .newsletter .fine a:hover { color: var(--shell-accent); }

.site-footer .left {
  font-family: var(--shell-mono);
  font-size: 12px;
  color: var(--shell-sub);
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer a {
  font-family: var(--shell-mono);
  font-size: 12px;
  color: var(--shell-text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer a:hover {
  background: transparent;
  border-color: transparent;
  color: var(--shell-accent);
}

/* Shared scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(217,119,87,0.55) rgba(255,255,255,0.08);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); }
*::-webkit-scrollbar-thumb {
  background: rgba(217,119,87,0.55);
  border: 2px solid rgba(0,0,0,0.45);
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(217,119,87,0.75); }

/* Kicker dots: slow pulse */
.kicker::before {
  animation: dm-dot-pulse 3.6s ease-in-out infinite;
}
