/* Accelbiz CPaaS: shared layer for the subpages.
   Loaded after styles.css. Maps the Tailwind theme onto the homepage system:
   near-neutral green-tinted ramp, Hanken Grotesk 500 headings, one mint accent,
   brand green #14453A for actions on light surfaces. */
:root {
  --d1: #0c0f0e; --d2: #121614; --d3: #191e1c;
  --d-line: rgba(236,240,238,.08); --d-line2: rgba(236,240,238,.14);
  --d-tx: #eceeed; --d-tx2: #a3aba7; --d-tx3: #7f8883;
  --l1: #f6f7f6; --l2: #ffffff; --l3: #eef1ef;
  --l-line: rgba(19,25,23,.09);
  --l-tx: #131917; --l-tx2: #4c5551; --l-tx3: #6b7470;
  --brand: #14453A; --brand-h: #0f362d;
  --mint: #4EDEA3; --ok: #4cc38a;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ramp */
.bg-background { background-color: var(--l1); }
.text-on-surface, .text-on-background, .text-neutral-800 { color: var(--l-tx); }
.text-secondary { color: var(--l-tx2); }
.text-neutral-400, .text-neutral-500 { color: var(--l-tx3); }
.border-outline-variant { border-color: var(--l-line); }
.bg-outline-variant { background-color: var(--l-line); }
.text-primary { color: var(--brand); }
::selection { background: rgba(78,222,163,.3); color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* type: hierarchy from size and colour, weights 400 to 500 */
.text-display-mobile, .text-headline-lg { font-weight: 500; }
@media (min-width: 768px) { .md\:text-display { font-weight: 500; letter-spacing: -.03em; } }
.text-headline-lg { letter-spacing: -.02em; }
.font-semibold { font-weight: 500; }
.text-label-mono { font-size: 12px; letter-spacing: 0; font-weight: 400; color: var(--l-tx3); }
.text-code-inline { letter-spacing: 0; }
.text-body-sm { font-size: 14px; }
.text-body-md, .text-body-lg { letter-spacing: 0; }
.tracking-tight { letter-spacing: -.01em; }

/* quiet details */
.media-ph { background: var(--l3); }
.win-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); display: inline-block; }
.shadow-sm { box-shadow: 0 1px 2px rgba(19,25,23,.05); }
a, button { transition-timing-function: var(--ease); }

/* nav */
.snav { position: sticky; top: 0; z-index: 50; height: 64px; background: var(--l1); transition: box-shadow .2s var(--ease); }
.snav.scrolled { box-shadow: inset 0 -1px 0 var(--l-line); }
.snav-in { max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; gap: 24px; }
.sbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--l-tx); }
.sbrand img { width: 28px; height: 28px; object-fit: contain; }
.sbrand b { font-family: 'Hanken Grotesk', Inter, sans-serif; font-weight: 500; font-size: 17px; line-height: 1; }
.sbrand span { font-family: Inter, sans-serif; font-size: 14px; line-height: 1; color: var(--l-tx3); }
.snav-links { display: flex; gap: 4px; margin: 0 auto; font-family: Inter, sans-serif; }
.snav-links a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--l-tx2); transition: color .15s var(--ease), background-color .15s var(--ease); }
.snav-links a:hover { color: var(--l-tx); background: var(--l-line); }
.snav-links a[aria-current] { color: var(--l-tx); background: var(--l3); }
.sdot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); display: inline-block; }
.snav-cta { display: flex; align-items: center; gap: 20px; margin-left: auto; font-family: Inter, sans-serif; }
.snav-talk { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--l-tx2); transition: color .15s var(--ease); }
.snav-talk:hover { color: var(--l-tx); }
.sbtn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s var(--ease), transform .15s var(--ease); }
.sbtn:hover { background: var(--brand-h); }
.sbtn:active { transform: scale(.98); }
.snav-burger { display: none; width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--l-tx); cursor: pointer; place-items: center; box-shadow: inset 0 0 0 1px var(--l-line); }
.snav-burger svg { width: 20px; height: 20px; }
.smenu { position: fixed; inset: 64px 0 0; z-index: 49; background: var(--l1); display: flex; flex-direction: column; padding: 16px 20px 32px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; font-family: Inter, sans-serif; }
.smenu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.smenu a.ml { font-family: 'Hanken Grotesk', Inter, sans-serif; font-size: 24px; font-weight: 500; text-decoration: none; color: var(--l-tx); padding: 12px 0; border-bottom: 1px solid var(--l-line); }
.smenu .sbtn { height: 44px; margin-top: 32px; font-size: 15px; }
.smenu .sbtn.alt { margin-top: 12px; background: var(--l2); color: var(--l-tx); box-shadow: inset 0 0 0 1px var(--l-line); }
@media (max-width: 1023px) { .snav-in { padding: 0 32px; } }
@media (max-width: 900px) { .snav-links, .snav-talk { display: none; } .snav-burger { display: inline-grid; } }
@media (max-width: 767px) { .snav-in { padding: 0 20px; } .sbrand span { display: none; } .snav-cta { gap: 12px; } }

/* footer (matches the homepage) */
.sfoot { background: var(--d1); color: var(--d-tx); padding: 64px 0 32px; font-family: Inter, sans-serif; }
.sfoot-in { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.sfoot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.sfoot .sbrand { color: var(--d-tx); }
.sfoot .sbrand span { color: var(--d-tx3); }
.sfoot .tagline { font-size: 14px; color: var(--d-tx3); margin-top: 16px; }
.sfoot h4 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--d-tx3); }
.sfoot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.sfoot ul a { color: var(--d-tx2); text-decoration: none; transition: color .15s var(--ease); }
.sfoot ul a:hover { color: var(--d-tx); }
.sfoot .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--d-line); font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--d-tx3); }
.sfoot :focus-visible { outline-color: var(--mint); }
@media (max-width: 1023px) { .sfoot-in { padding: 0 32px; } }
@media (max-width: 900px) { .sfoot-grid { grid-template-columns: 1fr 1fr; } .sfoot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 767px) { .sfoot-in { padding: 0 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* docs index: neutral icon tiles */
.doc-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--l3); color: var(--l-tx2); }
.doc-ic svg { width: 28px; height: 28px; }

/* API reference pages on phones: tables scroll, long inline code wraps */
@media (max-width: 767px) {
  main table { display: block; max-width: 100%; overflow-x: auto; }
  main :not(pre) > code { overflow-wrap: anywhere; }
}
