/* Servexi — marketing site. Built on the Servexi Web tokens: gray canvas, flat white surfaces, 1px borders, Inter, one blue accent, 6px radius, no gradients. */
:root {
  --canvas: #f8fafc;
  --surface: #ffffff;
  --muted: #fafafa;
  --border: #e2e8f0;
  --title: #09090b;
  --text: #18181b;
  --supporting: #71717a;
  --disabled-text: #a1a1aa;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-foreground: #ffffff;
  --tint-primary: #eff6ff;
  --tint-primary-border: #bfdbfe;
  --tab-bar: #edf2fb;
  --tab-bar-border: #d9e2ec;
  --tab-text: #475569;
  --success: #16a34a;
  --badge-success-bg: #dcfce7;
  --badge-success-fg: #15803d;
  --badge-info-bg: #dbeafe;
  --badge-info-fg: #1d4ed8;
  --badge-neutral-bg: #f1f5f9;
  --badge-neutral-fg: #475569;
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.20);
  --shadow-overlay: 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.10);
  --radius: 6px;
  --radius-pill: 9999px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--title); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius); color: var(--tab-text); font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--canvas); color: var(--title); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--tint-primary); color: var(--primary); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-overlay); }
  .nav.open { display: flex; }
  .nav a { height: 44px; font-size: 15px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--muted); color: var(--text); text-decoration: none; }
.btn-primary, .nav a.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover, .nav a.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-foreground); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-pill); padding: 2px 10px; font-size: 12px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.badge-success { background: var(--badge-success-bg); color: var(--badge-success-fg); }
.badge-info { background: var(--badge-info-bg); color: var(--badge-info-fg); }
.badge-neutral { background: var(--badge-neutral-bg); color: var(--badge-neutral-fg); }

/* Type */
h1, h2, h3 { color: var(--title); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 48px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 32px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 19px; line-height: 1.6; color: var(--tab-text); max-width: 640px; }
.supporting { color: var(--supporting); }
.section-label { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--supporting); margin-bottom: 12px; }
@media (max-width: 640px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .lede { font-size: 17px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; color: var(--tab-text); font-size: 17px; }
@media (max-width: 640px) { .section { padding: 56px 0; } .section-tight { padding: 40px 0; } }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .badge { margin-bottom: 20px; }
.hero h1 { max-width: 820px; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 640px) { .hero { padding: 56px 0 48px; } }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; color: var(--tab-text); font-size: 15px; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--tint-primary); border: 1px solid var(--tint-primary-border); color: var(--primary); }
.icon-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile.is-muted { background: var(--badge-neutral-bg); border-color: var(--border); color: var(--supporting); }

/* Product cards */
.product { display: flex; flex-direction: column; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product .btn { margin-top: 24px; align-self: flex-start; }
.product.is-soon h3 { color: var(--text); }
.product-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--tab-text); }
.product-list li { display: flex; gap: 8px; align-items: flex-start; }
.product-list svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; fill: none; stroke: var(--success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.product.is-soon .product-list svg { stroke: var(--disabled-text); }
.product-spacer { flex: 1; }

/* Split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* App preview (built from the product's own UI patterns) */
.preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 13px; line-height: 16px; }
.preview-top { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.preview-top b { font-size: 15px; color: var(--title); }
.preview-tabs { display: flex; gap: 2px; padding: 4px; margin: 12px 16px 0; background: var(--tab-bar); border: 1px solid var(--tab-bar-border); border-radius: var(--radius); width: fit-content; max-width: calc(100% - 32px); overflow-x: auto; }
.preview-tabs span { padding: 7px 12px; border-radius: var(--radius); color: var(--tab-text); font-weight: 500; white-space: nowrap; }
.preview-tabs span.on { background: rgba(37, 99, 235, 0.12); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18); color: var(--primary-hover); font-weight: 600; }
.preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; }
.preview-stat { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.preview-stat span { display: block; padding: 8px 10px; background: var(--muted); color: var(--text); font-weight: 500; font-size: 12px; }
.preview-stat b { display: block; padding: 8px 10px 10px; font-size: 20px; line-height: 24px; color: var(--title); font-variant-numeric: tabular-nums; }
.preview-table { margin: 0 16px 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.preview-table table { width: 100%; border-collapse: collapse; }
.preview-table th { height: 32px; padding: 0 10px; background: var(--muted); border-bottom: 1px solid var(--border); text-align: left; font-size: 12px; font-weight: 500; color: var(--supporting); white-space: nowrap; }
.preview-table td { height: 44px; padding: 0 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.preview-table tr:last-child td { border-bottom: 0; }
.preview-table .badge { vertical-align: middle; font-size: 11px; line-height: 18px; padding: 1px 8px; }
@media (max-width: 480px) { .preview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .preview-stats .preview-stat:last-child { display: none; } }

/* CTA band */
.cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta p { margin-top: 8px; color: var(--tab-text); }
@media (max-width: 640px) { .cta { padding: 24px; } }

/* Page header (inner pages) */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-head .lede { margin-top: 16px; }
@media (max-width: 640px) { .page-head { padding: 40px 0 28px; } }

/* Legal / long-form */
.prose { max-width: 760px; padding: 48px 0 80px; }
.prose h2 { font-size: 22px; line-height: 1.35; margin-top: 40px; }
.prose h3 { font-size: 17px; margin-top: 24px; }
.prose p, .prose ul { margin-top: 12px; color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .meta { color: var(--supporting); font-size: 14px; }
.prose .callout { margin-top: 24px; padding: 16px; background: var(--tint-primary); border: 1px solid var(--tint-primary-border); border-radius: var(--radius); font-size: 15px; }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card h3 { margin-top: 0; }
.contact-card .big { font-size: 18px; font-weight: 600; margin-top: 6px; display: inline-block; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 600; color: var(--title); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--supporting); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--tab-text); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { margin: 0 0 12px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--supporting); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--tab-text); }
.site-footer a:hover { color: var(--title); }
.footer-about p { margin-top: 12px; color: var(--supporting); max-width: 320px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--supporting); }
.soon-tag { margin-left: 6px; font-size: 11px; color: var(--disabled-text); }
