/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-brand:       #ea580c;
  --color-brand-dark:  #c2410c;
  --color-accent:      #0d7490;
  --color-dark:        #111827;
  --color-dark-muted:  rgba(255,255,255,0.65);
  --color-neutral-900: #18181b;
  --color-neutral-600: #52525b;
  --color-neutral-100: #f4f4f5;
  --color-white:       #FFFFFF;

  --font-sans:    'Inter', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);

  --max-width:  1200px;
  --section-py: 5rem;
}

/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-neutral-900);
  background: var(--color-white);
  line-height: 1.6;
}

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

a { color: inherit; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  background: var(--color-white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav--dark {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

.site-nav--dark .site-nav__links a {
  color: rgba(255,255,255,0.8);
}

.site-nav--dark .site-nav__links a:hover {
  color: var(--color-white);
}

.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-brand);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav__links a {
  text-decoration: none;
  color: var(--color-neutral-600);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav__links a:hover { color: var(--color-brand); }
.site-nav__links a.btn { color: var(--color-white); }
.site-nav__links a.btn:hover { color: var(--color-white); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.2;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}
.btn--primary:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--accent:hover { background: #0a5f75; border-color: #0a5f75; }

.btn--ghost {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--ghost:hover { background: var(--color-brand); color: var(--color-white); }

.btn--full { display: block; width: 100%; text-align: center; }

/* ============================================================
   Shared Section Helpers
   ============================================================ */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-neutral-600);
  margin: 0 0 2.5rem;
  max-width: 640px;
}

/* ============================================================
   Page wrapper
   ============================================================ */
.page > section { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: var(--section-py) 1.5rem;
  position: relative;
}

.hero--light { background: var(--color-white); }

.hero--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.hero--dark .hero__headline { color: var(--color-white); font-weight: 800; }
.hero--dark .hero__sub { color: var(--color-dark-muted); }

.hero--dark .btn--ghost {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.45);
}
.hero--dark .btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__content { max-width: 680px; }

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--color-neutral-600);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Feature Grid
   ============================================================ */
.feature-grid {
  padding: var(--section-py) 1.5rem;
  background: var(--color-neutral-100);
}

.feature-grid__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-grid__items {
  display: grid;
  gap: 1.5rem;
}
.feature-grid__items--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature-grid__items--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.feature-card__icon { margin-bottom: 1rem; color: var(--color-accent); }

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.5rem;
}

.feature-card__body {
  font-size: 0.9rem;
  color: var(--color-neutral-600);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Service Cards
   ============================================================ */
.service-cards {
  padding: var(--section-py) 1.5rem;
  background: var(--color-white);
}

.service-cards__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.service-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card__body { padding: 1.5rem; }

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.5rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--color-neutral-600);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.service-card__link:hover { text-decoration: underline; }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: var(--color-brand);
  padding: 3rem 1.5rem;
}

.stats-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat { text-align: center; color: var(--color-white); }

.stat__value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.4rem;
}

/* ============================================================
   Image + Text
   ============================================================ */
.image-text {
  padding: var(--section-py) 1.5rem;
  background: var(--color-white);
}

.image-text__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-text--reverse .image-text__inner { direction: rtl; }
.image-text--reverse .image-text__inner > * { direction: ltr; }

.image-text__copy {}

.image-text__headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.image-text__body {
  color: var(--color-neutral-600);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.image-text__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .image-text__inner { grid-template-columns: 1fr; gap: 2rem; }
  .image-text--reverse .image-text__inner { direction: ltr; }
}

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial {
  padding: var(--section-py) 1.5rem;
  background: var(--color-neutral-100);
}

.testimonial__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--color-neutral-900);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.testimonial__attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name { font-weight: 700; margin: 0; font-size: 0.95rem; }
.testimonial__company { color: var(--color-neutral-600); margin: 0; font-size: 0.85rem; }

/* ============================================================
   Logo Strip
   ============================================================ */
.logo-strip {
  padding: 3rem 1.5rem;
  background: var(--color-white);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.logo-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.logo-strip__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-600);
  margin: 0 0 1.5rem;
}

.logo-strip__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.logo-strip__logo {
  height: 36px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}
.logo-strip__logo:hover { opacity: 1; filter: none; }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  padding: var(--section-py) 1.5rem;
}

.cta-section--brand { background: var(--color-brand); }
.cta-section--accent { background: var(--color-accent); }

.cta-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.cta-section__headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.cta-section--brand .cta-section__headline { color: var(--color-white); }
.cta-section--accent .cta-section__headline { color: var(--color-neutral-900); }

.cta-section__body {
  font-size: 1.05rem;
  margin: 0 0 2rem;
}
.cta-section--brand .cta-section__body { color: rgba(255,255,255,0.85); }
.cta-section--accent .cta-section__body { color: var(--color-neutral-900); }

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
  padding: var(--section-py) 1.5rem;
  background: var(--color-neutral-100);
}

.contact-form__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-form__inner { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-form__headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.75rem;
}

.contact-form__body {
  color: var(--color-neutral-600);
  line-height: 1.6;
  margin: 0;
}

.contact-form__form { background: var(--color-white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); }

/* ============================================================
   Form Elements (shared)
   ============================================================ */
.form-row { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-neutral-600);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-neutral-900);
  background: var(--color-white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}

textarea.form-input { resize: vertical; min-height: 120px; }

/* ============================================================
   KB — Help Center Index
   ============================================================ */
.kb-index {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.kb-index__header {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-bottom: 1px solid #fed7aa;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  margin: 0 -1.5rem 2.5rem;
}

.kb-index__header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-brand);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.kb-index__header p {
  font-size: 1.05rem;
  color: var(--color-neutral-600);
  margin: 0 0 1.5rem;
}

.kb-search {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.75rem 1.125rem;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.kb-search:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}

.kb-category {
  margin-bottom: 2.5rem;
}

.kb-category h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-600);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.kb-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.kb-article-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-neutral-900);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.kb-article-item a:hover {
  border-color: var(--color-brand);
  box-shadow: 0 2px 8px rgba(234,88,12,0.1);
  background: #fff7ed;
}

.kb-article-title { flex: 1; }

.kb-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: var(--color-brand);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kb-no-results {
  text-align: center;
  color: var(--color-neutral-600);
  padding: 2rem 0;
  font-size: 0.95rem;
}

/* ============================================================
   KB — Article Page
   ============================================================ */
.kb-article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.kb-article__sidebar {
  position: sticky;
  top: 80px;
}

.kb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-neutral-600);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}
.kb-back:hover { color: var(--color-brand); }

.kb-category-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin: 0 0 0.25rem;
}

.kb-updated {
  font-size: 0.8rem;
  color: var(--color-neutral-600);
  margin: 0 0 1.25rem;
}

.kb-related {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}

.kb-related__heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-600);
  margin: 0 0 0.6rem;
}

.kb-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kb-related a {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.kb-related a:hover { color: var(--color-brand); text-decoration: underline; }

/* Prose (article body) */
.prose {
  min-width: 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-neutral-900);
}

.prose h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-neutral-900);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e5e7eb;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  margin: 1.5rem 0 0.5rem;
}

.prose h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-neutral-600);
  margin: 1.25rem 0 0.4rem;
}

.prose p { margin: 0.75rem 0; }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }

.prose li { margin: 0.35rem 0; }

.prose strong { font-weight: 700; }
.prose em { font-style: italic; }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}
.prose a:hover { color: var(--color-brand); }

.prose code {
  background: var(--color-neutral-100);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.875em;
  font-family: ui-monospace, 'Cascadia Code', monospace;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

.prose th, .prose td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.875rem;
  text-align: left;
  line-height: 1.5;
}

.prose th {
  font-weight: 600;
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}

.prose tr:nth-child(even) td {
  background: #fafafa;
}

.prose blockquote {
  border-left: 3px solid var(--color-brand);
  margin: 1rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--color-neutral-600);
  font-style: italic;
}

/* Step headings rendered by goldmark get h3 — style them as step cards */
.prose h3 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .kb-article {
    grid-template-columns: 1fr;
  }
  .kb-article__sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }
  .kb-article__sidebar .kb-back { margin-bottom: 0; }
  .kb-article__sidebar .kb-related { border-top: none; padding-top: 0; margin-top: 0; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-neutral-900);
  color: rgba(255,255,255,0.6);
  padding: 2rem 1.5rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.site-footer__links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__links a:hover {
  color: #fff;
}
