/* knosky.com — shared production shell
 * Visual lock v3.3 · Atlas Light Clay · cream / coral / mint
 * GPS hero = circular hub · city = human skin only
 */
@import url("tokens.css");

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 600; }

.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.wrap-narrow { width: min(880px, calc(100% - 40px)); margin: 0 auto; }

/* Soft agent rail (production — no black proto bar) */
.agent-rail {
  background: var(--mint-soft);
  border-bottom: 1px solid #c6ebd9;
  font-size: 13px;
  padding: 10px 0;
  color: var(--ink);
}
.agent-rail .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}
.agent-rail strong { color: var(--mint-d); }
.agent-rail code {
  font-family: var(--mono);
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}
.agent-rail a { color: var(--coral-h); font-weight: 600; text-decoration: underline; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  height: auto;
  padding: 10px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--mint-d); font-weight: 600; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}
.nav-cta .quiet { color: var(--muted); }
.nav-cta .quiet:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 90, 60, 0.28), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.btn-coral:hover { background: var(--coral-h); color: #fff; }
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { background: var(--mint-d); color: #fff; }
.btn-ghost {
  background: var(--elev);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-strong); }

/* Button rows under sections/cards — keep clear air above */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 4px;
}
.actions .btn { margin: 0; }
/* After card grids / clay blocks — more air before bottom CTAs */
.grid-2 + .actions,
.grid-3 + .actions,
.grid-4 + .actions,
.clay + .actions {
  margin-top: 32px;
}


/* Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mint-d);
  background: var(--mint-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow.hot {
  color: var(--coral-h);
  background: var(--coral-soft);
}
h1 {
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 em { font-style: normal; color: var(--coral); }
h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  font-weight: 700;
}
h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; font-weight: 600; }
.lede { font-size: 1.08rem; max-width: 36em; margin-bottom: 18px; }
.section-lede { max-width: 38em; margin-bottom: 28px; }
.page-hero { padding: 40px 0 12px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--mint-d); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }

/* Layout bands */
section { padding: 56px 0; }
.band-sand { background: var(--bg-warm); }
.band-mint { background: var(--bg-mint); }
.band-peach { background: var(--bg-peach); }

/* Clay cards */
.clay {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--rl);
  box-shadow: var(--shadow);
  padding: 22px;
}
.clay p { font-size: 0.93rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  text-align: center;
  padding: 28px 12px;
  background: var(--elev);
  border-radius: var(--rl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

/* Command dock */
.dock {
  background: var(--code);
  color: var(--code-ink);
  border-radius: var(--rl);
  padding: 18px 18px 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}
.dock code {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}

/* Chips */
.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  color: var(--ink);
}
.chip.mint { color: var(--mint-d); background: var(--mint-soft); border-color: #bfe8d4; }
.chip.coral { color: var(--coral-h); background: var(--coral-soft); border-color: #ffc9b8; }

.trust-micro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

/* Home GPS hero */
.hero {
  padding: 36px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.hero-copy { max-width: 720px; }
.gps-stage {
  position: relative;
  border-radius: 28px;
  background: #FFFCFA;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}
.gps-hero-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: min(62vh, 720px);
  max-height: 820px;
  object-fit: contain;
  object-position: center center;
  background: #FFF8F1;
  border-radius: 28px;
}
.hero-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
/* Visually hide decorative figcaptions; keep for screen readers when needed */
.hero-caption.sr-only,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* City human-skin band */
.city-band {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.city-frame {
  background: linear-gradient(180deg, #F7FBFF 0%, #EEF9F3 55%, #FFF6EE 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 20px 16px 12px;
  text-align: center;
  overflow: hidden;
}
.city-frame img {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 12px 20px rgba(44, 36, 32, 0.1));
}
.city-frame .cap {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.city-copy .pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--sand);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Citation / pull quote */
.pull {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.35;
  border-left: 4px solid var(--coral);
  padding-left: 18px;
  margin: 18px 0;
  max-width: 38em;
}
.cite-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--rl);
  box-shadow: var(--shadow);
  padding: 20px;
}
.cite-card .src {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.cite-card a {
  color: var(--mint-d);
  font-weight: 600;
  text-decoration: underline;
}
.fine {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* Compare matrix */
.matrix-wrap { overflow-x: auto; }
table.matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--rl);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  overflow: hidden;
}
table.matrix th,
table.matrix td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.matrix th {
  background: var(--bg-warm);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
}
table.matrix tr:last-child td { border-bottom: none; }
table.matrix td.center,
table.matrix th.center { text-align: center; }
table.matrix .hi {
  background: var(--mint-soft);
  color: var(--mint-d);
  font-weight: 700;
}
.dot-yes { color: var(--mint-d); font-weight: 700; }
.dot-partial { color: var(--warn); font-weight: 700; }
.dot-no { color: var(--muted); }

/* Use-case cards */
.uc-card .lane {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint-d);
  margin-bottom: 8px;
}
.uc-card .row {
  margin: 10px 0;
  font-size: 0.92rem;
}
.uc-card .row b {
  display: inline-block;
  min-width: 4.5em;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Install extras */
.toast {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint-d);
  font-size: 13px;
  font-weight: 600;
}
.toast.show { display: block; }
.hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.hint strong { color: var(--ink); }
.agent-box {
  margin-top: 24px;
  border: 1px dashed #bfe8d4;
  background: #f5fcf8;
  border-radius: 16px;
  padding: 16px;
  font-size: 14px;
}
.agent-box h3 { margin-bottom: 8px; }
.agent-box ol { margin-left: 18px; }
.agent-box li { margin: 4px 0; }
.agent-box code {
  font-family: var(--mono);
  font-size: 12px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.step-label {
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-soft);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-panel {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.note {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--rl);
  padding: 18px;
  font-size: 0.92rem;
}
.note a { color: var(--mint-d); font-weight: 600; }
.note a:hover { text-decoration: underline; }

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 48px 0;
}
.cta-strip .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.foot-grid h4 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.foot-grid a {
  display: block;
  margin: 6px 0;
  color: var(--muted);
}
.foot-grid a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.foot-bottom a { color: var(--mint-d); font-weight: 600; }

/* Links in body */
p a.inline,
.inline-link {
  color: var(--mint-d);
  font-weight: 600;
  text-decoration: underline;
}


/* Mobile header hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elev, #fff);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .15s ease, opacity .15s ease;
}
header.is-open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
header.is-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
header.is-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-panel-mobile { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav-cta .quiet { display: none; }
  header.site-header,
  header {
    position: sticky;
  }
  /* Dropdown panel under header row */
  .nav-panel-mobile {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    padding: 10px 0 14px;
  }
  header.is-open .nav-panel-mobile { display: block; }
  .nav-panel-mobile .wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav-panel-mobile a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    border-radius: 10px;
  }
  .nav-panel-mobile a:hover { background: var(--bg-warm, #FFF1E4); }
  .nav-panel-mobile .btn { width: 100%; margin-top: 8px; }
  .grid-4, .grid-3, .grid-2, .stats, .city-band, .foot-grid {
    grid-template-columns: 1fr;
  }
  .gps-hero-img { min-height: 260px; max-height: none; }
  .dock { flex-direction: column; align-items: stretch; }
  .agent-rail { font-size: 12px; }
}

@media (max-width: 720px) {
  .wrap, .wrap-wide, .wrap-narrow { width: calc(100% - 28px); }
}


/* Brand kit lockup — readable in header */
.brand.brand-lockup {
  margin-right: 8px;
}
.brand.brand-lockup img {
  width: auto !important;
  height: 40px !important;
  border-radius: 0 !important;
  max-width: min(240px, 42vw);
  display: block;
}
