/* LinkedIQ — Editorial Intelligence design system */

:root {
  /* Surfaces */
  --ss-bg: #0d0d0f;
  --ss-surface: #141416;
  --ss-surface-2: #1a1a1d;
  --ss-surface-3: #222226;
  --ss-inset: #0a0a0c;

  /* Hairlines */
  --ss-line: #232328;
  --ss-line-soft: #1c1c20;
  --ss-line-strong: #2f2f35;

  /* Text */
  --ss-text: #ebe8e2;
  --ss-text-2: #b8b5af;
  --ss-text-muted: #8a8a8a;
  --ss-text-subtle: #56544f;

  /* Accent (gold) — restrained default; intensity tweakable via data-accent */
  --ss-accent: #c8a163;
  --ss-accent-strong: #d9b46d;
  --ss-accent-soft: rgba(200,161,99,0.12);
  --ss-accent-border: rgba(200,161,99,0.32);

  /* Semantic */
  --ss-good: #7aa288;
  --ss-good-soft: rgba(122,162,136,0.12);
  --ss-warn: #c89968;
  --ss-warn-soft: rgba(200,153,104,0.12);
  --ss-critical: #b87268;
  --ss-critical-soft: rgba(184,114,104,0.12);

  /* Radius */
  --ss-r-1: 3px;
  --ss-r-2: 5px;
  --ss-r-3: 8px;
  --ss-r-4: 12px;

  /* Typography */
  --ss-font-display: "Newsreader", "Source Serif Pro", Georgia, serif;
  --ss-font-sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --ss-font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* Accent intensity variants */
[data-accent="restrained"] {
  --ss-accent: #b89055;
  --ss-accent-strong: #c8a163;
  --ss-accent-soft: rgba(184,144,85,0.08);
  --ss-accent-border: rgba(184,144,85,0.22);
}
[data-accent="bold"] {
  --ss-accent: #d9b46d;
  --ss-accent-strong: #e6c178;
  --ss-accent-soft: rgba(217,180,109,0.18);
  --ss-accent-border: rgba(217,180,109,0.42);
}

/* Density */
[data-density="cozy"] { --ss-section-y: clamp(64px, 8vw, 112px); }
[data-density="comfy"] { --ss-section-y: clamp(80px, 10vw, 144px); }
[data-density="spacious"] { --ss-section-y: clamp(112px, 14vw, 200px); }

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

html, body {
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: var(--ss-font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

body {
  --ss-section-y: clamp(80px, 10vw, 144px);
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(200,161,99,0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 30%, rgba(200,161,99,0.02), transparent 60%),
    var(--ss-bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Visually hidden (screen-reader only) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden:focus,
.visually-hidden:focus-within {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 10px 14px; margin: 0;
  overflow: visible; clip: auto;
  background: var(--ss-surface-2);
  border: 1px solid var(--ss-accent-border);
  border-radius: var(--ss-r-2);
  color: var(--ss-text);
  font-size: 13px;
  z-index: 1000;
}

::selection { background: var(--ss-accent-soft); color: var(--ss-text); }
:focus-visible { outline: 1px solid var(--ss-accent); outline-offset: 2px; border-radius: 2px; }

/* Typography utilities */
.serif { font-family: var(--ss-font-display); letter-spacing: -0.018em; font-weight: 400; }
.mono { font-family: var(--ss-font-mono); letter-spacing: 0; }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--ss-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ss-text-muted);
  font-weight: 500;
}

.eyebrow-accent { color: var(--ss-accent); }

/* Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { padding-top: var(--ss-section-y); padding-bottom: var(--ss-section-y); }

/* Numbered section header */
.section-num {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 40px;
}
.section-num .num {
  font-family: var(--ss-font-mono);
  font-size: 12px;
  color: var(--ss-text-muted);
  letter-spacing: 0.08em;
}
.section-num .label {
  font-family: var(--ss-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ss-text-2);
}
.section-num .rule {
  flex: 1;
  height: 1px;
  background: var(--ss-line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--ss-r-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 160ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ss-accent);
  color: #0d0d0f;
  border-color: var(--ss-accent);
}
.btn-primary:hover {
  background: var(--ss-accent-strong);
  border-color: var(--ss-accent-strong);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ss-text);
  border-color: var(--ss-line-strong);
}
.btn-secondary:hover {
  border-color: var(--ss-text-muted);
  background: var(--ss-surface);
}
.btn-ghost {
  background: transparent;
  color: var(--ss-text-2);
  padding: 11px 14px;
}
.btn-ghost:hover { color: var(--ss-text); }

.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* Cards */
.card {
  background: var(--ss-surface);
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-r-3);
}

/* Pricing feature list (shared between landing pricing preview and pricing page) */
.price-feats {
  list-style: none;
  margin: 24px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ss-line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ss-text-2);
  line-height: 1.5;
}
.price-feats svg { flex-shrink: 0; margin-top: 3px; color: var(--ss-accent); }
.price-feats .muted { color: var(--ss-text-muted); }
.price-feats .muted svg { color: var(--ss-text-subtle); }

/* InsightChip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-family: var(--ss-font-mono);
  letter-spacing: 0.04em;
  border: 1px solid var(--ss-line-strong);
  color: var(--ss-text-2);
  background: var(--ss-surface);
}
.chip-accent { border-color: var(--ss-accent-border); color: var(--ss-accent); background: var(--ss-accent-soft); }
.chip-good { border-color: rgba(122,162,136,0.32); color: var(--ss-good); background: var(--ss-good-soft); }
.chip-warn { border-color: rgba(200,153,104,0.32); color: var(--ss-warn); background: var(--ss-warn-soft); }
.chip-critical { border-color: rgba(184,114,104,0.32); color: var(--ss-critical); background: var(--ss-critical-soft); }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,15,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ss-line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ss-font-display);
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ss-text);
}
.brand-mark {
  width: 22px;
  height: 22px;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand b { font-weight: 500; }
.brand .iq { color: var(--ss-accent); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--ss-text-2);
  transition: color 160ms;
  position: relative;
}
.nav-links a:hover { color: var(--ss-text); }
.nav-links a.active { color: var(--ss-text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ss-accent);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav-links, .nav-actions .signin { display: none; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--ss-line-strong);
    border-radius: var(--ss-r-2);
  }
  /* Open state — toggled by JS on .site-header */
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13,13,15,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ss-line);
    padding: 4px 20px 16px;
    z-index: 49;
  }
  .nav-open .nav-links li { border-bottom: 1px solid var(--ss-line-soft); }
  .nav-open .nav-links a { display: block; padding: 14px 0; font-size: 15px; }
  .nav-open .nav-links a.active::after { display: none; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--ss-line);
  background: var(--ss-inset);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col-title {
  font-family: var(--ss-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ss-text-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--ss-text-2); }
.footer-col a:hover { color: var(--ss-text); }
.footer-tag {
  font-family: var(--ss-font-display);
  font-size: 24px;
  line-height: 1.25;
  color: var(--ss-text);
  letter-spacing: -0.018em;
  max-width: 320px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--ss-line-soft);
  font-size: 12px;
  color: var(--ss-text-muted);
  font-family: var(--ss-font-mono);
}

/* ===== Scroll reveal =====
   No-op. We previously tried opacity-based entry animations (via transitions
   then via keyframes) and discovered the preview iframe runs in a "hidden"
   document state — Document.timeline freezes at 0, so anything that starts
   invisible and animates to visible gets stuck. Content visibility cannot
   depend on animation playback. `.reveal` is kept as a marker class for
   future use but applies no styles. */
.reveal { /* intentionally empty */ }

/* ===== Accordion (FAQ) ===== */
.faq-item {
  border-bottom: 1px solid var(--ss-line);
}
.faq-item:first-child { border-top: 1px solid var(--ss-line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--ss-font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--ss-text);
  transition: color 160ms;
}
.faq-q:hover { color: var(--ss-accent-strong); }
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--ss-line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 24px;
  transition: all 220ms;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ss-text-2);
}
.faq-icon::before { width: 10px; height: 1px; }
.faq-icon::after { width: 1px; height: 10px; transition: transform 220ms; }
.faq-item[open] .faq-icon { border-color: var(--ss-accent-border); background: var(--ss-accent-soft); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--ss-accent); }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-a {
  padding: 0 64px 28px 0;
  color: var(--ss-text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
}
.faq-a p + p { margin-top: 12px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ===== Page hero (sub-pages) ===== */
.page-hero {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: 0;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--ss-font-display);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
  max-width: 920px;
  margin-bottom: 24px;
}
.page-hero .lede {
  font-size: 18px;
  color: var(--ss-text-2);
  max-width: 680px;
  line-height: 1.55;
}

/* hr-ish divider */
.section-divider {
  height: 1px;
  background: var(--ss-line);
  margin: 0;
}
