/* ============================================================
   Kinisys — shared stylesheet for content pages
   Brand tokens mirror the homepage; lighter weight, no heavy
   animation, tuned for fast Core Web Vitals.
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-elevated: #111111;
  --bg-surface: #1a1a1a;
  --text-primary: #f0ece4;
  --text-secondary: #b3aea6;
  --text-muted: #8a857d;
  --accent: #4beab2;
  --accent-dim: #4beab233;
  --accent-glow: #4beab218;
  --border: #222222;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1120px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav .nav-logo img {
  height: 26px;
  width: auto;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--text-primary);
}
.site-nav .nav-cta {
  color: var(--accent);
}

/* Nav dropdowns + mobile toggle */
.site-nav .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.site-nav .nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
.site-nav .caret {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.65;
}
.site-nav .has-dropdown {
  position: relative;
}
.site-nav .dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 232px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.site-nav .has-dropdown:hover > .dropdown,
.site-nav .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav .dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.site-nav .dropdown a:hover {
  background: var(--bg-elevated);
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary svg,
.btn-ghost svg {
  width: 18px;
  height: 18px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 36px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

/* ---------- Typography & sections ---------- */
.eyebrow,
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--border);
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 60ch;
}

section.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
h2 em {
  font-style: normal;
  color: var(--accent);
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.prose p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 70ch;
}
.prose strong {
  color: var(--text-primary);
}
.prose ul {
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
  max-width: 70ch;
}
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* answer-first summary box for AEO */
.answer-box {
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0;
}
.answer-box p {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.card p {
  color: var(--text-secondary);
  margin: 0;
}
.card .card-link {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 14px;
}

/* ---------- FAQ (native details) ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-secondary);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 {
  margin-bottom: 14px;
}
.cta-band p {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  background: var(--bg-elevated);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr repeat(4, 1fr);
}
.footer-brand img {
  height: 26px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 36ch;
  margin-bottom: 14px;
}
.footer-brand a {
  color: var(--accent);
}
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-bottom a {
  color: var(--text-muted);
  margin-left: 18px;
}
.footer-bottom a:hover {
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-nav {
    flex-wrap: wrap;
  }
  .site-nav .nav-toggle {
    display: flex;
  }
  .site-nav > ul {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav > ul.open {
    max-height: 85vh;
    overflow-y: auto;
    margin-top: 12px;
  }
  .site-nav > ul > li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .caret {
    display: none;
  }
  .site-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 6px 0 0 14px;
    min-width: 0;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
