/* ============================================================
   zoubobAI LLC — site stylesheet
   Plain CSS. No frameworks, no build step.
   Layout is mobile-first; small screens collapse to one column.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #111827;
  --color-body: #374151;
  --color-muted: #4b5563;
  --color-faint: #6b7280;
  --color-border: #e5e7eb;
  --color-accent: #2563eb;
  --color-accent-strong: #1d4ed8;
  --color-accent-soft: #eff6ff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-card-hover: 0 10px 24px rgba(17, 24, 39, 0.09);

  --container-max: 66rem;
  --prose-max: 44rem;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-accent-strong);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.small {
  font-size: 0.875rem;
  color: var(--color-faint);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  border: 1px solid var(--color-border);
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--color-text);
}

.brand-mark {
  flex: none;
}

.brand-suffix {
  color: var(--color-faint);
  font-weight: 600;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav-list a[aria-current="page"] {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 5.5rem;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: var(--color-accent-strong);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 44rem;
}

.hero .lead {
  font-size: 1.1875rem;
  color: var(--color-muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.button:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: #ffffff;
}

.button:active {
  transform: translateY(1px);
}

.button--secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.button--secondary:hover {
  background: var(--color-bg-alt);
  border-color: #d1d5db;
  color: var(--color-text);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-border);
}

.section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--color-muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

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

.card--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.card--center .badge {
  margin-top: 1.25rem;
}

/* ---------- Contact block ---------- */
.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.contact-card p {
  color: var(--color-muted);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.contact-card .small {
  margin: 1.25rem 0 0;
}

/* ---------- Inner-page hero (About / Support / legal pages) ---------- */
.page-hero {
  padding: 4rem 0 0;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.page-updated {
  color: var(--color-faint);
  font-size: 0.9375rem;
  margin: 0;
}

.page-lead {
  color: var(--color-muted);
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0.75rem 0 0;
}

.page-body {
  padding: 2.5rem 0 4.5rem;
}

/* ---------- Long-form text (policies, about) ---------- */
.prose {
  max-width: var(--prose-max);
}

.prose h2 {
  font-size: 1.3125rem;
  margin: 2.5rem 0 0.6rem;
}

.prose h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--color-body);
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

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

.prose .small-note {
  font-size: 0.875rem;
  color: var(--color-faint);
}

/* ---------- Company details (About page) ---------- */
.detail-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.75rem 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--color-bg);
}

.detail-list > div + div {
  border-top: 1px solid var(--color-border);
}

.detail-list dt {
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
  color: var(--color-body);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.faq details + details {
  margin-top: 0.75rem;
}

.faq details[open] {
  border-color: #c7d2fe;
}

.faq summary {
  position: relative;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212"; /* minus sign */
}

.faq .faq-body {
  padding: 0 1.25rem 1.1rem;
}

.faq .faq-body p {
  margin: 0;
  color: var(--color-body);
}

.faq .faq-body p + p {
  margin-top: 0.6rem;
}

/* ---------- Steps list (Support page) ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3rem;
  color: var(--color-body);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-weight: 700;
  font-size: 0.875rem;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--color-border);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 3rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-tagline {
  color: var(--color-muted);
  max-width: 22rem;
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: var(--color-faint);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.footer-list a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--color-faint);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .header-inner {
    justify-content: center;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .contact-card {
    padding: 2.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .card:hover {
    transform: none;
  }
}
