/* Nembly Studio — shared site styles */

:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --text: #161A22;
  --muted: #5B6472;
  --border: #E4E8EF;

  --accent-red: #FF5C5C;
  --accent-amber: #FFB454;
  --accent-teal: #2DD4BF;
  --accent-violet: #7C5CFF;

  --spectrum: linear-gradient(90deg, var(--accent-red), var(--accent-amber), var(--accent-teal), var(--accent-violet));

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Sora', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

a {
  color: var(--accent-violet);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.logo-mark { flex-shrink: 0; }

.wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a.active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-teal);
  text-decoration-thickness: 2px;
}

.spectrum-bar {
  height: 4px;
  width: 100%;
  background: var(--spectrum);
}

/* Hero */

.hero {
  padding: 72px 0 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 16px;
  max-width: 16ch;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

/* Apps section */

.apps {
  padding: 8px 0 80px;
}

.apps h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.app-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.app-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-info h3 {
  font-size: 19px;
  margin: 0 0 6px;
}

.app-info p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 48ch;
}

.app-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}

/* Prose (legal pages) */

.prose-page {
  padding: 56px 0 88px;
}

.prose-page h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 8px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.prose h2 {
  font-size: 19px;
  margin: 36px 0 12px;
}

.prose h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

.prose p, .prose li {
  color: var(--text);
  margin: 0 0 14px;
}

.prose ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.prose li { margin-bottom: 10px; }

/* App tag + doc tabs (multi-app legal pages) */

.app-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-violet);
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.doc-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.doc-tabs a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 4px 12px;
  margin-right: 18px;
  border-bottom: 2px solid transparent;
}

.doc-tabs a:hover {
  color: var(--text);
  text-decoration: none;
}

.doc-tabs a.active {
  color: var(--text);
  border-bottom-color: var(--accent-teal);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */

@media (max-width: 560px) {
  .hero { padding: 48px 0 36px; }
  .app-card { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
