/*
 * Shared header and footer for pages that don't embed the full marketing
 * design system (docs, changelog, login, buy, my-account).
 * Classes are prefixed with `sc-` so they don't collide with Tailwind.
 */
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }

.sc-header, .sc-footer {
  --sc-ink: #202A3B;
  --sc-ruby: #7F1D2B;
  --sc-ruby-dark: #681622;
  --sc-slate: #526C86;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--sc-ink);
  line-height: normal;
}
.sc-header *, .sc-header *::before, .sc-header *::after,
.sc-footer *, .sc-footer *::before, .sc-footer *::after { box-sizing: border-box; }
.sc-header a, .sc-footer a { color: inherit; text-decoration: none; }
.sc-header a:focus-visible, .sc-header button:focus-visible,
.sc-footer a:focus-visible, .sc-footer button:focus-visible { outline: 3px solid #5E9E9A; outline-offset: 4px; }
.sc-header [hidden], .sc-footer [hidden] { display: none !important; }

.sc-container { width: min(1216px, calc(100% - 72px)); margin-inline: auto; }

/* Header */
.sc-header { position: sticky; top: 0; z-index: 60; background: rgba(252,253,254,.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid #E4EAF0; }
.sc-navbar { position: relative; min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.sc-brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.sc-brandmark { display: block; object-fit: contain; flex: 0 0 auto; width: 47px; height: 47px; }
.sc-brandname { font-size: 22px; letter-spacing: -1.1px; line-height: 1; font-weight: 785; color: var(--sc-ink); }
.sc-brandname span { color: var(--sc-slate); font-weight: 445; }
.sc-nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 620; color: #526176; }
.sc-header .sc-nav-links a { transition: color .15s; white-space: nowrap; }
.sc-header .sc-nav-links a:hover, .sc-header .sc-nav-links a[aria-current="page"] { color: var(--sc-ruby); }
.sc-nav-actions { display: flex; gap: 11px; align-items: center; }
.sc-header .sc-btn { border: 1px solid transparent; border-radius: 11px; padding: 11px 15px; display: inline-flex; align-items: center; gap: 10px; line-height: 1; font-size: 13px; font-weight: 740; white-space: nowrap; background: var(--sc-ruby); color: #fff; box-shadow: 0 9px 23px rgba(127,29,43,.145); transition: transform .2s, box-shadow .2s, background .2s; }
.sc-header .sc-btn:hover { background: var(--sc-ruby-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(127,29,43,.21); }
.sc-mobile-toggle { display: none; background: none; border: 0; padding: 9px; cursor: pointer; color: var(--sc-ink); }
.sc-mobile-toggle svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Footer */
.sc-footer { border-top: 1px solid #E1E8EE; padding: 34px 0 30px; background: #fff; }
.sc-footer-inner { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 40px; }
.sc-footer .sc-brandname { font-size: 19px; }
.sc-footer .sc-brandmark { width: 35px; height: 35px; }
.sc-footer-copy { font-size: 12px; color: #647589; line-height: 1.75; margin: 16px 0 0; max-width: 265px; }
.sc-footer-col h4 { font-size: 12px; font-weight: 700; margin: 0 0 15px; color: var(--sc-ink); }
.sc-footer .sc-footer-col a, .sc-footer .sc-footer-col button { display: block; font-size: 12px; color: #647589; margin-bottom: 12px; background: none; border: 0; padding: 0; font-family: inherit; text-align: left; cursor: pointer; }
.sc-footer .sc-footer-col a:hover, .sc-footer .sc-footer-col button:hover { color: var(--sc-ruby); }
.sc-copyright { font-size: 11px; color: #8292A1; margin-top: 36px; display: flex; justify-content: space-between; border-top: 1px solid #E7EDF1; padding-top: 22px; }

@media (max-width: 980px) {
  .sc-nav-links { display: none; }
  .sc-mobile-toggle { display: block; }
  .sc-nav-links.open { display: flex; position: absolute; top: 100%; left: -36px; right: -36px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 15px 38px 25px; border-bottom: 1px solid #eee; box-shadow: 0 22px 30px rgba(0,0,0,.06); }
  .sc-header .sc-nav-links.open a { padding: 14px 0; border-bottom: 1px solid #F0F3F6; }
}
@media (max-width: 690px) {
  .sc-container { width: calc(100% - 36px); }
  .sc-navbar { min-height: 64px; }
  .sc-brandname { font-size: 19px; }
  .sc-brandmark { width: 39px; height: 39px; }
  .sc-header .sc-btn { display: none; }
  .sc-nav-links.open { left: -18px; right: -18px; padding: 15px 22px 22px; }
  .sc-footer-inner { grid-template-columns: 1fr 1fr; gap: 33px; }
  .sc-footer-inner > div:first-child { grid-column: 1 / -1; }
  .sc-copyright { display: block; line-height: 2; }
}
