/* Snipsera website. Page layouts keep the design canvas's inline styles;
   this file holds the shared base, header, and interaction styles. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #08707F;
  --ink: #0F2233;
  --bar-h: 65px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #F3F9FB; }
img, video { max-width: 100%; }
.page { background: #FFFFFF; color: var(--ink); font-family: Inter, "Segoe UI", system-ui, sans-serif; overflow-x: clip; }

a { color: #08707F; }
a:hover { color: var(--ink); }
.nl { color: #3B4E63; }
.nl:hover { color: var(--ink); }
.cta { transition: filter .15s ease; }
.cta:hover { filter: brightness(.93); }
:focus-visible { outline: 3px solid #13A6B8; outline-offset: 3px; border-radius: 6px; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.pm { transition: transform .2s ease; }
details[open] .pm { transform: rotate(45deg); }

.chip { transition: background .15s ease, border-color .15s ease; }
.chip:hover { background: #FFFFFF; border-color: rgba(8,112,127,0.45); }
.card { transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: rgba(8,112,127,0.45); box-shadow: 0 18px 36px -24px rgba(15,34,51,0.45); }
kbd { font-family: Inter, "Segoe UI", sans-serif; font-size: 12.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; border: 1px solid #C9D7E1; background: #FFFFFF; color: #22364A; }
p kbd, li kbd { font-size: 0.9em; font-weight: 500; padding: 1px 6px; background: #F3F9FB; }

[id] { scroll-margin-top: calc(var(--bar-h) + 19px); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #FFFFFF; font: 600 15px Inter, "Segoe UI", sans-serif; text-decoration: none; }
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* ---------- Sticky header ----------
   Frosted by default (works without JS); site.js adds .at-top while the
   page sits at the top so the bar blends into the hero gradient. */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 0 clamp(20px, 1.67vw, 24px);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(15,34,51,.07);
  box-shadow: 0 10px 30px -18px rgba(15,34,51,.28);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.topbar.at-top { background: rgba(255,255,255,0); border-bottom-color: rgba(15,34,51,0); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar.menu-open { background: #FFFFFF; border-bottom-color: rgba(15,34,51,.07); }
header.hero { margin-top: calc(-1 * var(--bar-h)); padding-top: var(--bar-h) !important; }

.topnav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.brand span { font-family: Manrope, "Segoe UI", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.035em; color: var(--ink); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 30px; }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-get { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: #FFFFFF; font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-get:hover { color: #FFFFFF; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid rgba(15,34,51,0.12); background: rgba(255,255,255,0.7); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; padding: 6px 20px 20px; background: #FFFFFF; border-bottom: 1px solid rgba(15,34,51,0.08); box-shadow: 0 24px 40px -24px rgba(15,34,51,0.35); display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mm-link { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid #E3ECF1; font-family: Manrope, "Segoe UI", sans-serif; font-size: 18px; font-weight: 700; text-decoration: none; }
.mm-link[aria-current="page"] { color: var(--accent); }
.mm-link[aria-current="page"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #13A6B8; }
.mm-get { margin-top: 10px; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 600; text-decoration: none; }
.mm-get:hover { color: #FFFFFF; }

@media (max-width: 900px) {
  .nav-links, .nav-github { display: none !important; }
  .menu-btn { display: inline-flex; }
  .nav-actions { gap: 8px; }
  .nav-get { min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14.5px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 20px; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ---------- Demo videos ---------- */
.ic-pause, .ic-play { display: inline-flex; }
.ic-play { display: none; }
.is-paused .ic-pause { display: none; }
.is-paused .ic-play { display: inline-flex; }

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