/* Shared styles for Qlendar legal / support / docs pages */
:root {
  --seed: #2563eb;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --sky: #2563eb;
  --mint: #14b8a6;
  --line: #e5e7eb;
  --paper: #f4f6f9;
  --white: #ffffff;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    linear-gradient(180deg, #eef2f8 0%, var(--paper) 45%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.top-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.top-link:hover {
  color: var(--sky);
  text-decoration: none;
}

.doc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}

@media (min-width: 640px) {
  .doc {
    padding: 2.25rem 2.5rem;
  }
}

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.doc h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 1.6rem 0 0.55rem;
}

.doc p,
.doc li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.doc p + p {
  margin-top: 0.75rem;
}

.doc ul,
.doc ol {
  margin: 0.6rem 0 0.6rem 1.2rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--seed);
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.15rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--sky);
}

.footer-copy {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Docs / features / how-to */
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: -0.5rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.doc-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.doc-nav a:hover,
.doc-nav a.is-active {
  color: var(--sky);
  text-decoration: none;
}

.toc {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.toc h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0 0 0 1.1rem;
}

.toc a {
  font-weight: 500;
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.08);
  text-decoration: none;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.feature-card .card-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
}

.steps {
  margin: 0.7rem 0 0.7rem 1.2rem;
  counter-reset: none;
}

.steps li + li {
  margin-top: 0.45rem;
}

.shot {
  margin: 1.1rem 0;
  text-align: center;
}

.shot img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.template-group {
  margin-top: 1.75rem;
}

.template-group > h2 {
  margin-bottom: 0.35rem;
}

.template-group > .group-desc {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.template-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.template-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fafbfc;
}

.template-item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.template-item .desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.template-item .fields {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.field-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field-chip .type {
  color: var(--muted);
  font-weight: 400;
}

.section-anchor {
  scroll-margin-top: 1.25rem;
}

.kbd {
  font-family: var(--font-body);
  font-size: 0.86em;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  background: #e2e8f0;
  color: var(--ink);
}
