/* Zapscloud site styles. Palette and type follow the original React/Tailwind site; base,
   header, footer and button rules match www.zapsdocs.com so the two sites stay consistent. */

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy-900: #04182a;
  --navy-800: #072540;
  --blue-600: #0d3f6b;
  --blue-500: #0f4c81;
  --blue-100: #c5dced;
  --blue-50: #e8f1f8;
  --amber-500: #d97d1f;
  --amber-600: #b5671a;
  --amber-50: #fdf5ed;
  --neutral-50: #f7f7f6;
  --neutral-100: #ecebeb;
  --neutral-400: #94918d;
  --neutral-600: #5a5754;
  --neutral-800: #2e2c2a;
  --radius: 8px;
  --radius-lg: 12px;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(4, 24, 42, 0.12);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; color: var(--neutral-800); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--amber-500); text-decoration: none; }
a:hover { color: var(--amber-600); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(15, 76, 129, 0.2); }
:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 16px; }
.skip-link:focus { left: 16px; top: 8px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container--mid { max-width: 1024px; }
.container--narrow { max-width: 860px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
.center { text-align: center; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  font: 500 1rem/1.3 var(--font-body); cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { transition: transform .15s; }
.btn:hover .icon { transform: translateX(4px); }
.btn--sm { padding: 8px 20px; font-size: .875rem; }
.btn--amber { background: var(--amber-500); color: #fff; }
.btn--amber:hover { background: var(--amber-600); color: #fff; }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--outline-light { border-color: var(--blue-100); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--white { background: #fff; color: var(--navy-900); border-color: var(--neutral-100); }
.btn--white:hover { background: var(--blue-50); color: var(--navy-900); }
.actions { display: flex; flex-direction: column; gap: 16px; }
.actions--center { justify-content: center; }
@media (min-width: 640px) { .actions { flex-direction: row; } }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); border-bottom: 1px solid var(--navy-800); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 1.125rem var(--font-heading); letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav__links { display: none; align-items: center; gap: 32px; }
.nav__links a { font-size: .875rem; color: var(--blue-100); }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__cta { display: none; }

.mobile-nav summary { list-style: none; cursor: pointer; padding: 8px; color: var(--blue-100); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .icon { width: 24px; height: 24px; }
.mobile-nav__close, .mobile-nav[open] .mobile-nav__open { display: none; }
.mobile-nav[open] .mobile-nav__close { display: inline; }
.mobile-nav__panel {
  position: absolute; left: 0; right: 0; top: 64px; padding: 16px; display: flex; flex-direction: column;
  background: var(--navy-900); border-top: 1px solid var(--navy-800); box-shadow: var(--shadow);
}
.mobile-nav__panel a:not(.btn) { padding: 12px 16px; color: var(--blue-100); font-weight: 500; }
.mobile-nav__panel a:not(.btn):hover { color: #fff; }
.mobile-nav__panel .btn { margin: 16px 16px 0; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .mobile-nav { display: none; }
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--blue-100); }
.site-footer a { color: var(--blue-100); }
.site-footer a:hover { color: var(--amber-500); }
.footer-cta { background: var(--navy-800); border-bottom: 1px solid var(--navy-900); }
.footer-cta__inner { display: flex; flex-direction: column; gap: 24px; padding-top: 48px; padding-bottom: 48px; max-width: 1152px; }
.footer-cta__title { font: 700 1.5rem/1.2 var(--font-heading); color: #fff; margin-bottom: 8px; }
.footer-cta__text { margin: 0; }
.site-footer .footer-cta .btn { color: #fff; white-space: nowrap; flex-shrink: 0; }
@media (min-width: 768px) { .footer-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; max-width: 1152px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: .875rem; max-width: 20rem; }
.footer-heading { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-400); margin-bottom: 16px; }
.footer-main ul { display: grid; gap: 12px; font-size: .875rem; }
.social { display: flex !important; gap: 12px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--navy-800); }
.social a:hover { background: var(--amber-500); color: #fff; }
@media (min-width: 768px) {
  .footer-main { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: span 1; }
}
.footer-bottom { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--navy-800); font-size: .875rem; max-width: 1152px; }
.footer-bottom p { margin: 0; }
.footer-emails { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-emails a { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---- Sections & typography ---------------------------------------------- */
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section--blue { background: var(--blue-50); }
.section--sky { background: var(--blue-100); }
.section--navy { background: var(--navy-900); color: var(--blue-100); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 48rem; margin-bottom: 64px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.section-title--sm { font-size: clamp(1.875rem, 4vw, 2.25rem); margin-bottom: 40px; }
.lead { font-size: 1.125rem; color: var(--neutral-600); max-width: 42rem; line-height: 1.7; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.section--navy .lead { color: var(--blue-100); }
.tag { margin: 0 0 16px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-400); }
.meta { font-size: .875rem; color: var(--neutral-400); margin-bottom: 32px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); }
.hero::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--blue-500); opacity: .1; filter: blur(64px); pointer-events: none;
}
.hero__inner { position: relative; max-width: 56rem; padding-top: 96px; padding-bottom: 80px; text-align: center; }
@media (min-width: 768px) { .hero__inner { padding-top: 128px; padding-bottom: 112px; } }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 7vw, 4.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 32px; }
.hero__text { color: var(--blue-100); font-size: clamp(1.125rem, 2vw, 1.25rem); max-width: 42rem; margin: 0 auto 40px; }
.hero .actions { margin-bottom: 48px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: var(--blue-100); font-size: .875rem; font-weight: 500;
}
.pill:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---- About & stats ------------------------------------------------------- */
.about { border-bottom: 1px solid var(--neutral-100); }
.about .lead + .lead { margin-top: 0; }
.stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin: 0; padding: 40px 32px; border-radius: var(--radius); background: var(--blue-50); }
.stat { display: flex; flex-direction: column-reverse; align-items: center; flex: 1 1 120px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--blue-100); }
@media (max-width: 767px) { .stat + .stat { border-left: 0; } }
.stat dd { margin: 0; font: 700 clamp(2.25rem, 5vw, 3rem)/1.1 var(--font-heading); color: var(--blue-500); }
.stat dt { margin-top: 4px; font-size: .875rem; font-weight: 500; color: var(--neutral-600); }

/* ---- Products (bento grid) ---------------------------------------------- */
.bento { display: grid; gap: 24px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 32px;
  border-radius: var(--radius); background: #fff; color: var(--neutral-600); transition: background-color .15s, box-shadow .15s;
}
.product-card:hover { color: var(--neutral-600); box-shadow: var(--shadow); }
.product-card h3 { position: relative; font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.product-card__text { position: relative; margin-bottom: 24px; }
.product-card__features { position: relative; font-size: .875rem; color: var(--neutral-400); margin-bottom: 24px; }
.product-card__link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: .875rem; font-weight: 500; color: var(--blue-500); }
.product-card:hover .product-card__link { color: var(--amber-500); }
.product-card__link .icon { transition: transform .15s; }
.product-card:hover .product-card__link .icon { transform: translateX(4px); }
.product-card__mark { position: absolute; top: 16px; right: 24px; color: rgba(15, 76, 129, .1); pointer-events: none; }
.product-card__mark .icon, .product-card__mark img { width: 64px; height: 64px; }
.product-card__mark img { opacity: .1; }
.product-card--featured { padding: 40px; background: var(--navy-900); border-top: 4px solid var(--amber-500); color: var(--blue-100); }
@media (min-width: 768px) { .product-card--featured { grid-column: span 2; } }
.product-card--featured:hover { color: var(--blue-100); }
.product-card--featured h3 { color: #fff; }
.product-card--featured .product-card__text { font-size: 1.125rem; }
.product-card--featured .product-card__features { color: rgba(197, 220, 237, .7); }
.product-card--featured .product-card__link, .product-card--featured:hover .product-card__link { color: var(--amber-500); }
.product-card--featured .product-card__mark { color: rgba(255, 255, 255, .05); }

/* ---- Industries ---------------------------------------------------------- */
.industries { border-bottom: 1px solid var(--neutral-100); }
.industries .container { max-width: 1152px; }
.industry-list { display: flex; flex-wrap: wrap; gap: 16px; }
.industry {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 999px;
  border: 2px solid var(--neutral-100); font-size: .875rem; transition: border-color .15s, background-color .15s;
}
.industry:hover { border-color: var(--blue-500); background: var(--blue-50); }
.industry .icon { width: 20px; height: 20px; color: var(--blue-500); }
.industry strong { font-family: var(--font-heading); font-weight: 600; }
.industry span { color: var(--neutral-400); }

/* ---- Why us -------------------------------------------------------------- */
.benefit { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 40px 0; text-align: center; transition: transform .15s; }
.benefit:hover { transform: translateX(4px); }
.benefit + .benefit { position: relative; }
.benefit + .benefit::before { content: ""; position: absolute; top: 0; left: 50%; width: 64px; height: 1px; transform: translateX(-50%); background: rgba(15, 76, 129, .3); }
.benefit__icon { display: grid; place-items: center; flex-shrink: 0; width: 80px; height: 80px; border-radius: 16px; background: var(--blue-500); color: #fff; }
.benefit__icon .icon { width: 36px; height: 36px; }
.benefit h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.benefit p { margin: 0; color: var(--neutral-600); }
@media (min-width: 768px) {
  .benefit { flex-direction: row; gap: 48px; text-align: left; }
  .benefit:nth-child(even) { flex-direction: row-reverse; }
  .benefit__icon { width: 96px; height: 96px; }
  .benefit__icon .icon { width: 40px; height: 40px; }
  .benefit > div { flex: 1; }
}

/* ---- Contact ------------------------------------------------------------- */
.rule { display: block; width: 48px; height: 4px; margin: 0 auto 32px; border-radius: 999px; background: var(--amber-500); }
.contact .lead { margin-bottom: 48px; }
.channels { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.channels a { display: block; }
.channels span { display: block; margin-bottom: 4px; font-size: .875rem; color: var(--blue-100); }
.channels strong { font-size: 1.125rem; font-weight: 500; color: var(--amber-500); }
.channels a:hover strong { text-decoration: underline; }
@media (min-width: 640px) {
  .channels { flex-direction: row; gap: 32px; }
  .channels li + li { padding-left: 32px; border-left: 1px solid var(--navy-800); }
}

/* ---- Legal pages (Markdown) ---------------------------------------------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--neutral-600); }
.prose h2 { font-size: 1.5rem; font-weight: 600; color: var(--neutral-800); margin: 40px 0 16px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--amber-500); }
.prose strong { color: var(--neutral-800); }
