/* Social Studio — Product Website Shared Styles */
:root {
  --bg: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #eaeef2;
  --text: #1a1a1a;
  --text-secondary: #57606a;
  --text-tertiary: #8b949e;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #ede9fe;
  --border: #d0d7de;
  --border-light: #e1e4e8;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 960px;
  --code-bg: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text: #e6edf3;
    --text-secondary: #9198a1;
    --text-tertiary: #6e7681;
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-light: #2d1b4e;
    --border: #30363d;
    --border-light: #21262d;
    --code-bg: #161b22;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Nav --- */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9em;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-secondary { background: var(--bg-secondary); }

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 80px 0 64px;
}
.hero h1 {
  font-size: 2.8em;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero .tagline {
  font-size: 1.25em;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1em;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-secondary); text-decoration: none; }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon {
  font-size: 2em;
  margin-bottom: 12px;
  display: block;
}
.feature-card h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* --- Section heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-heading p {
  color: var(--text-secondary);
  font-size: 1.1em;
}

/* --- Platform matrix --- */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.9em;
}
.platform-table th,
.platform-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.platform-table th {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platform-table td { color: var(--text); }
.check { color: #2ea043; font-weight: 700; }
.cross { color: var(--text-tertiary); }
.partial { color: #d29922; }

/* --- Install steps --- */
.steps {
  counter-reset: step;
  margin-top: 40px;
}
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1em;
  counter-increment: step;
}
.step-num::before { content: counter(step); }
.step-body h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-body p {
  color: var(--text-secondary);
  font-size: 0.95em;
}
.step-body code {
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.88em;
  color: var(--text);
}

/* --- Screenshot placeholder --- */
.screenshot {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9em;
  margin-top: 32px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 40px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9em;
}
.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.85em;
}

/* --- Content pages --- */
.content {
  padding: 48px 0 64px;
}
.content h1 {
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.content .updated {
  color: var(--text-tertiary);
  font-size: 0.9em;
  margin-bottom: 32px;
}
.content h2 {
  font-size: 1.4em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.content p { margin-bottom: 1em; }
.content ul {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.content li { margin-bottom: 0.4em; }
.content code {
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.88em;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero h1 { font-size: 2em; }
  .hero .tagline { font-size: 1.05em; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
