/* Shared styles for Jiveocity static pages */

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-surface: #EEF2FF;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --border: #E5E7EB;
  --surface: #F9FAFB;
  --surface-alt: #F3F4F6;
  --background: #FFFFFF;
  --error: #EF4444;
  --success: #10B981;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

header.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.logo-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-back {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 36px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

p, ul, ol {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

ul, ol {
  padding-left: 24px;
}

ul li, ol li {
  margin-bottom: 8px;
}

strong { color: var(--text); font-weight: 600; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-tertiary);
  margin: 0 8px;
}

.site-footer a:hover {
  color: var(--primary);
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 16px;
}

label:first-child { margin-top: 0; }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-surface);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  width: 100%;
}

button.btn:hover { background: var(--primary-dark); }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.form-message.success {
  background: #D1FAE5;
  color: #065F46;
}

.form-message.error {
  background: #FEE2E2;
  color: #991B1B;
}

/* Index page hero */
.hero {
  text-align: center;
  padding: 80px 24px 48px;
}

.hero .logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 36px;
  margin: 0 auto 16px;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 40px;
}

.hero .coming-soon {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-surface);
  color: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 600px) {
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  main { padding: 32px 20px 56px; }
}
