/**
 * Shared documentation styles — Noventra marketing site
 */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050816;
  --surface: #0a0f1c;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --subtle: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.1);
  --lime: #7cff2e;
  --lime-text: #c8ff8a;
  --primary: #4d8cff;
  --control-bg: rgba(255, 255, 255, 0.03);
  --control-border: rgba(255, 255, 255, 0.14);
  --menu-bg: rgba(8, 12, 28, 0.98);
  --btn-bg: #ffffff;
  --btn-ink: #050816;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: rgba(11, 18, 32, 0.76);
  --subtle: rgba(11, 18, 32, 0.62);
  --line: rgba(11, 18, 32, 0.1);
  --lime: #4fc214;
  --lime-text: #1f7a0c;
  --primary: #2f6fed;
  --control-bg: rgba(11, 18, 32, 0.03);
  --control-border: rgba(11, 18, 32, 0.14);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --btn-bg: #0b1220;
  --btn-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 45% at 50% -18%, color-mix(in srgb, var(--lime) 10%, transparent), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--lime-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.docs-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4.5rem;
}

.docs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 0;
  filter: drop-shadow(0 0 10px rgba(124, 255, 58, 0.18));
  transition:
    transform 250ms ease,
    filter 250ms ease;
}

.docs-brand:hover {
  text-decoration: none;
  color: var(--ink);
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(124, 255, 58, 0.3));
}

.docs-brand img,
.docs-brand .noventra-logo__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
  background: transparent;
  image-rendering: auto;
  transition: filter 250ms ease;
}

.docs-brand:hover img,
.docs-brand:hover .noventra-logo__img {
  filter: brightness(1.08);
}

@media (max-width: 1023px) {
  .docs-brand img,
  .docs-brand .noventra-logo__img {
    height: 40px;
  }
}

@media (max-width: 639px) {
  .docs-brand img,
  .docs-brand .noventra-logo__img {
    height: 34px;
  }
}

.docs-nav__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.85rem;
}

.docs-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
}

.docs-nav__links a {
  color: var(--muted);
}

.docs-nav__links a:hover,
.docs-nav__links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.docs-nav__links a[aria-current="page"] {
  color: var(--lime-text);
}

.docs-legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.docs-legal-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.docs-legal-bar .back {
  margin-bottom: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--line);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--sun {
  display: block;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-text);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 1.05rem;
  color: var(--muted);
  text-wrap: pretty;
}

p,
li {
  color: var(--muted);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
}

.docs-card-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

@media (min-width: 640px) {
  .docs-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.docs-card:hover {
  border-color: color-mix(in srgb, var(--lime) 35%, transparent);
  background: color-mix(in srgb, var(--lime) 4%, var(--surface));
  text-decoration: none;
}

html[data-theme="light"] .docs-card {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.docs-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.docs-card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.docs-card__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime-text);
}

.step-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.step-list__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--lime) 35%, transparent);
  background: color-mix(in srgb, var(--lime) 10%, transparent);
  color: var(--lime-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.prompt-block {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.prompt-block__q {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.prompt-block__a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.trust-item {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
}

.faq-list {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

.docs-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--lime) 6%, var(--surface));
}

.docs-cta p {
  margin-bottom: 0.75rem;
}

.docs-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--btn-bg) 90%, var(--ink));
  color: var(--btn-ink);
}

.btn--ghost {
  border: 1px solid var(--control-border);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--control-bg);
}

.docs-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--subtle);
}

.legal-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-main .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.legal-main h1 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.legal-main h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
}
