/* ============================================================
   ConfluOps site — shared styles
   ============================================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f8f8fc;
}

a { color: #5563de; text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88em;
  background: #e8e8f4;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* ---- Site header ------------------------------------------ */
header.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

header.site-header .brand img {
  height: 1.4rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

header.site-header .sep { opacity: 0.3; }

header.site-header .product {
  font-size: 0.95rem;
  font-weight: 600;
}

header.site-header a { color: #fff; text-decoration: none; }
header.site-header a:hover { opacity: 0.8; text-decoration: none; }

header.site-header nav.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
}

header.site-header nav.site-nav a {
  opacity: 0.75;
}

header.site-header nav.site-nav a:hover {
  opacity: 1;
  text-decoration: none;
}

header.site-header nav.site-nav a.active {
  opacity: 1;
  border-bottom: 2px solid #7b8aff;
  padding-bottom: 2px;
}

/* ---- Site footer ------------------------------------------ */
footer.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #e0e0f0;
}

@media (max-width: 600px) {
  footer.site-footer .footer-links {
    display: block;
    margin-top: 0.4rem;
  }
}

footer.site-footer .footer-disclaimer {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

footer.site-footer a { color: #999; }
footer.site-footer a:hover { color: #5563de; }
footer.site-footer a.active { color: #555; }

/* ---- Document pages (docs, privacy) ----------------------- */
.doc-layout {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.doc-header {
  border-bottom: 2px solid #e0e0f0;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.doc-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.doc-header .meta {
  font-size: 0.9rem;
  color: #666;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e0e0f0;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

ul, ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

li { margin-bottom: 0.35rem; }

/* ---- Tables ----------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

th {
  background: #1a1a2e;
  color: #fff;
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
}

td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e0e0f0;
  vertical-align: top;
}

tr:nth-child(even) td { background: #f0f0f8; }

/* ---- Callouts --------------------------------------------- */
.callout {
  background: #eef0fb;
  border-left: 4px solid #5563de;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
}

.callout-warn {
  background: #fff8ec;
  border-left-color: #f5a623;
}

/* ---- Contact block ---------------------------------------- */
.contact-block {
  background: #1a1a2e;
  color: #fff;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.contact-block p { margin: 0.25rem 0; }
.contact-block a { color: #a0aaff; }

/* ---- Disclaimer ------------------------------------------- */
.disclaimer {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: #888;
}

/* ---- Docs page -------------------------------------------- */
.docs-layout {
  display: flex;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
  gap: 3rem;
  align-items: flex-start;
}

nav.toc {
  flex: 0 0 200px;
  position: sticky;
  top: 2rem;
  font-size: 0.88rem;
}

nav.toc .toc-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.75rem;
}

nav.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.toc li { margin-bottom: 0.4rem; }
nav.toc a { color: #444; font-size: 0.88rem; }
nav.toc a:hover { color: #5563de; text-decoration: none; }

nav.toc .toc-sub {
  margin-top: 0.25rem;
  margin-left: 0.75rem;
}

nav.toc .toc-sub li { margin-bottom: 0.25rem; }

.step-list {
  list-style: none;
  margin: 0.5rem 0 1rem 0;
  padding: 0;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

.step-list li::before {
  content: counter(step-counter);
  flex: 0 0 1.7rem;
  height: 1.7rem;
  background: #1a1a2e;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 1.25rem 0 0.5rem;
}

.label-recommended {
  font-size: 0.8rem;
  font-weight: 400;
  color: #5563de;
}

.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.badge-ok { background: #e3f9e5; color: #1a7a2a; }
.badge-alarm { background: #fde8e8; color: #b91c1c; }
.badge-insufficient { background: #f3f0e8; color: #7a5f1a; }

.contact-block + p { margin-top: 1rem; }

@media (max-width: 700px) {
  .docs-layout { flex-direction: column; gap: 1.5rem; }
  nav.toc { display: none; }
}

/* ---- Landing page ----------------------------------------- */
.hero {
  background: #1a1a2e;
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b8aff;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto 1.25rem;
  color: #fff;
}

.hero h1 span { color: #7b8aff; }

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: #5563de; color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.screenshot-section {
  background: #eef0fb;
  padding: 0 2rem 0;
  display: flex;
  justify-content: center;
}

.screenshot-section img {
  max-width: 900px;
  width: 100%;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 40px rgba(26,26,46,0.18);
  display: block;
  margin-top: -2rem;
}

.features {
  background: #eef0fb;
  padding: 4rem 2rem;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features-heading {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(26,26,46,0.07);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.how-it-works {
  background: #fff;
  padding: 4rem 2rem;
}

.how-it-works-inner {
  max-width: 820px;
  margin: 0 auto;
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  margin-bottom: 2.5rem;
  padding: 0;
}

.how-it-works-inner > p {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: how-counter;
}

.step {
  counter-increment: how-counter;
  text-align: center;
}

.step::before {
  content: counter(how-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #1a1a2e;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.4rem;
}

.step p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.step-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
}

.config-strip {
  background: #f8f8fc;
  padding: 4rem 2rem;
}

.config-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.config-strip-text {
  flex: 1;
  min-width: 240px;
}

.config-strip-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  margin: 0 0 1rem;
  padding: 0;
  color: #1a1a2e;
}

.config-strip-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.config-strip-text ul li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: #444;
  border-bottom: 1px solid #e0e0f0;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.config-strip-text ul li::before {
  content: "✓";
  color: #5563de;
  font-weight: 700;
  flex-shrink: 0;
}

.config-strip-image {
  flex: 1.2;
  min-width: 280px;
}

.config-strip-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(26,26,46,0.12);
}

.cta {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  margin: 0 0 0.75rem;
  padding: 0;
  color: #fff;
}

.cta p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .config-strip-inner { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ---- Responsive ------------------------------------------- */
/* ---- Hamburger button (mobile only) ----------------------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #fff;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: opacity 0.2s;
}

@media (max-width: 600px) {
  .doc-header h1 { font-size: 1.5rem; }
  table { font-size: 0.82rem; }
  th, td { padding: 0.5rem 0.6rem; }

  .nav-toggle { display: flex; }

  header.site-header {
    position: relative;
    flex-wrap: nowrap;
  }

  header.site-header nav.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a45;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 100;
  }

  header.site-header nav.site-nav.nav-open {
    display: flex;
  }

  header.site-header nav.site-nav a {
    font-size: 0.95rem;
    opacity: 0.85;
  }

  /* Animate hamburger → X */
  .nav-toggle span:nth-child(1) { transition: transform 0.2s, top 0.2s; position: relative; }
  .nav-toggle span:nth-child(2) { transition: opacity 0.2s; }
  .nav-toggle span:nth-child(3) { transition: transform 0.2s, top 0.2s; position: relative; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
