/* worksnip — marketing site theme (Warm Neutral + Coral default theme)
   Inspired by zazu-style restraint. Single accent: coral #CF4732. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

@font-face {
  font-family: 'Worksnip Wordmark';
  src: url('fonts/worksnip-font.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── wordmark — uses the real worksnip-font.otf ─────────────────────── */
/* The font's "w" glyph IS the full "worksnip" wordmark — we render it
   twice: once in ink, once in teal, with the teal layer clip-pathed to
   only show the "k" letter region of the wordmark. Tuned empirically. */
.wordmark {
  position: relative;
  display: inline-block;
  font-family: 'Worksnip Wordmark', 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.wordmark > .w-ink,
.wordmark > .w-teal {
  display: block;
  line-height: 1;
  font-family: inherit;
}
.wordmark > .w-ink { color: inherit; }
.wordmark > .w-teal {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  color: var(--accent);
  /* Visible band = the K letter only (no spill onto r or s) */
  clip-path: inset(0 42.4% 0 43.1%);
  -webkit-clip-path: inset(0 42.4% 0 43.1%);
  pointer-events: none;
}
.wordmark.on-dark { color: #fff; }
.wordmark.on-dark > .w-teal { color: var(--accent); }
.wordmark.sm { font-size: 28px; }
.wordmark.lg { font-size: 56px; }
.wordmark.xl { font-size: 80px; }

/* Single-letter mark — the rounded square with a teal "k" */
.wordmark-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 8px;
  color: var(--accent);
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  letter-spacing: -0.04em;
}
.wordmark-mark.sm { width: 24px; height: 24px; font-size: 17px; border-radius: 6px; }
.wordmark-mark.lg { width: 48px; height: 48px; font-size: 32px; border-radius: 12px; }

:root {
  /* Warm neutral palette — Zazu-inspired, calmer + coral accent */
  --bg:          #E5E5E1;
  --bg-2:        #F5F5F5;
  --bg-3:        #968385;
  --tile:        #FFFFFF;
  --ink:         #474651;
  --ink-2:       #867174;
  --ink-3:       #7D7C84;
  --ink-4:       #B5B3B8;
  --border:      #D5D2CC;
  --border-2:    #B8B3AE;
  --hairline:    #E0DCD5;

  /* Coral accent — single accent, also for the K in the wordmark */
  --accent:      #CF4732;
  --accent-deep: #A8351F;
  --accent-ink:  #6E1F11;
  --accent-quiet:#F5DCD7;
  --accent-pale: #FBEAE5;

  /* Supporting accents (used sparingly inside mockups, never in chrome) */
  --warn:        #E8A53A;
  --danger:      #CF4732;

  /* Ink CTA band */
  --dark:        #474651;
  --dark-2:      #5A5963;

  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   22px;
  --radius-xl:   28px;
  --radius-pill: 9999px;

  --shadow-xs:   0 1px 2px rgba(15,17,18,0.04);
  --shadow-sm:   0 2px 6px rgba(15,17,18,0.05), 0 1px 2px rgba(15,17,18,0.04);
  --shadow:      0 8px 24px rgba(15,17,18,0.08), 0 2px 6px rgba(15,17,18,0.04);
  --shadow-lg:   0 24px 48px rgba(15,17,18,0.10), 0 6px 14px rgba(15,17,18,0.06);
  --shadow-xl:   0 40px 80px rgba(15,17,18,0.16), 0 10px 24px rgba(15,17,18,0.08);

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --d-fast:      120ms;
  --d:           220ms;
  --d-slow:      360ms;

  --header-h:    72px;
  --container:   1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── containers ──────────────────────────────────────────────────────── */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ── typography ──────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); }

.display {
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.display .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.display .teal { color: var(--accent); }

.h1  { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
.h2  { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 600; }
.h3  { font-size: 24px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.h4  { font-size: 18px; line-height: 1.3; font-weight: 600; }

.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 640px; }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.body-sm { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.tabular { font-variant-numeric: tabular-nums; }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 15px; line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background var(--d-fast) var(--ease),
              color var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease),
              transform var(--d) var(--ease),
              box-shadow var(--d) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #2A2D32; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--accent {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(168, 53, 31, 0.45), var(--shadow-sm);
}
.btn--accent:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-2);
}
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }

.btn--link {
  background: transparent;
  color: var(--ink);
  padding: 12px 4px;
  border-radius: 4px;
}
.btn--link:hover { color: var(--accent-deep); }
.btn--link .arrow { transition: transform var(--d) var(--ease); }
.btn--link:hover .arrow { transform: translateX(4px); }

.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--bg); }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d) var(--ease), background var(--d) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--hairline);
  background: color-mix(in oklab, var(--bg) 94%, transparent);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 100%;
}
.nav .logo { display: inline-flex; align-items: center; }
.nav .logo svg { height: 28px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius-pill);
  transition: color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.has-dot::after {
  content: '';
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: 6px; vertical-align: middle;
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── mobile nav (hamburger + dropdown) ──────────────────────────────── */
/* Hidden on desktop; the 820px media query below swaps the desktop nav for
   the toggle + dropdown so the links never squish / the CTA never clips. */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--ink); cursor: pointer;
  transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.nav-toggle:hover { background: var(--bg-2); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }

.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 2px;
  padding: 12px 20px 20px;
  /* Solid background — content behind must not bleed through (don't rely on
     backdrop-filter, which several mobile browsers drop). */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 16px; font-weight: 500; color: var(--ink-2); padding: 12px 10px; border-radius: 10px; }
.mobile-menu a:hover { background: var(--bg-2); color: var(--ink); }
.mobile-menu .btn { margin-top: 10px; justify-content: center; font-size: 15px; }

/* ── sections ──────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--loose { padding: 128px 0; }
.section.bg-2 { background: var(--bg-2); }
.section.bg-3 { background: var(--bg-3); }
.section.bg-tile { background: var(--tile); }
.section.bg-dark { background: var(--dark); color: #fff; }
.section.bg-dark h1, .section.bg-dark h2, .section.bg-dark h3, .section.bg-dark h4 { color: #fff; }
.section.bg-dark .body, .section.bg-dark .lead { color: rgba(255,255,255,0.72); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .lead { margin-top: 20px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── tiles ─────────────────────────────────────────────────────────── */
.tile {
  background: var(--tile);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--d) var(--ease), transform var(--d) var(--ease), border-color var(--d) var(--ease);
}
.tile.hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tile.highlight { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-pale), var(--shadow-sm); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: var(--radius-pill);
  background: var(--accent-quiet); color: var(--accent-ink);
  letter-spacing: 0.02em;
}
.pill.neutral { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--border); }
.pill.warn { background: #FCEFD3; color: #6E4810; }
.pill.live::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale);
}

/* ── small util ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── mobile / small-tablet pass (≤820px) ────────────────────────────── */
@media (max-width: 820px) {
  /* Swap desktop nav for the hamburger + dropdown. */
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Collapse EVERY inline multi-column grid in the page body to one column.
     The page hard-codes `grid-template-columns` inline on ~19 layout blocks
     (hero, feature splits, the production line, logo strip, …) which otherwise
     stay side-by-side on a phone and force horizontal overflow — that overflow
     was inflating the layout viewport, which is why the desktop nav appeared
     and bands rendered half-width. The attribute selector + !important beats
     each element's inline value. */
  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* Stacked grids don't need desktop-sized gaps. */
  main [style*="gap:56px"],
  main [style*="gap:64px"],
  main [style*="gap:48px"] { gap: 32px !important; }

  /* Floating proof tiles in the hero must not keep a fixed px width. */
  main [style*="width:240px"],
  main [style*="width:230px"] { width: auto !important; max-width: 100%; }

  /* Sticky columns are a DESKTOP affordance for the two-column splits (text
     stays pinned while the cards scroll). Once those grids collapse to one
     column the sticky element pins over the content stacked below it — the
     "Works anywhere" heading was overlapping the pack rows. Make every inline
     sticky element static on mobile. */
  main [style*="position:sticky"],
  main [style*="position: sticky"] { position: static !important; top: auto !important; }

  /* Tighten oversized vertical rhythm for small screens. */
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section--loose { padding: 72px 0; }
  .wrap { padding: 0 20px; }

  /* Belt-and-suspenders against any residual overflow. `clip` (not `hidden`)
     so it doesn't create a scroll container that would break the sticky
     header's position. */
  body { overflow-x: clip; }
}

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.dim-divider { height: 1px; background: var(--hairline); }

/* ── reveal ────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.site-footer a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

/* ── product mock surfaces ─────────────────────────────────────────── */
.mock-window {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mock-window .titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--hairline);
}
.mock-window .traffic { display: flex; gap: 6px; }
.mock-window .traffic span { width: 11px; height: 11px; border-radius: 50%; background: #C9C6C0; }
.mock-window .traffic span:nth-child(1) { background: #E07F65; }
.mock-window .traffic span:nth-child(2) { background: #E8B441; }
.mock-window .traffic span:nth-child(3) { background: #6BB36B; }
.mock-window .url {
  flex: 1;
  background: #fff; border-radius: 999px; padding: 6px 14px;
  font: 12px/1 'Geist Mono', monospace; color: var(--ink-3);
  border: 1px solid var(--hairline);
  margin: 0 32px 0 16px; max-width: 360px;
}

/* recording dot on hero mock */
.live-dot {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
  padding: 6px 10px 6px 8px;
  background: var(--accent-pale);
  border-radius: var(--radius-pill);
}
.live-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 71, 50, 0.18);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot::before { animation: pulse 1.6s var(--ease) infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(207, 71, 50, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(207, 71, 50, 0.06); }
}

/* click spotlight ring */
.spotlight {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle, rgba(207, 71, 50, 0.20) 0%, rgba(207, 71, 50, 0) 70%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .spotlight { animation: spotlight 2.2s var(--ease) infinite; }
}
@keyframes spotlight {
  0%   { transform: scale(0.7); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* tag chips inside mocks */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--border);
}
.chip.teal { background: var(--accent-pale); color: var(--accent-ink); border-color: transparent; }
