/* Knowledgebase Jumper — landing page
   A sticker-book treatment pulled from the logo: cream paper, heavy ink
   outlines, hard offset shadows, teal and amber. */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #fefcf8;
  --paper: #fffdfa;
  --ink: #14110f;
  --ink-soft: #4c453f;
  --teal: #0f9a8c;
  --teal-deep: #0a7268;
  --amber: #f4ae39;
  --amber-deep: #d98f14;
  --skin: #fdd5a3;
  --line: 3px;
  --radius: 20px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* Faint paper speckle so the flat cream doesn't read as a blank canvas. */
  background-image: radial-gradient(rgba(20, 17, 15, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Amber highlighter behind a phrase, drawn slightly askew like a real marker. */
.mark {
  position: relative;
  white-space: nowrap;
}

.mark::before {
  content: '';
  position: absolute;
  inset: 12% -0.18em 8%;
  background: var(--amber);
  border-radius: 0.4em;
  transform: rotate(-1.4deg);
  z-index: -1;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--line) solid var(--ink);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:not(.btn):hover {
  border-bottom-color: var(--amber);
}

@media (max-width: 640px) {
  .site-nav .nav-link {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-secondary {
  background: var(--amber);
}

.btn-secondary:hover {
  background: var(--amber-deep);
}

.btn-mini {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn small {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.72rem;
  opacity: 0.75;
  display: block;
  margin-top: 2px;
  line-height: 1;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-art {
    order: -1;
  }
  .dl-row {
    justify-content: center;
  }
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  margin-bottom: 1.1rem;
  transform: rotate(-1.5deg);
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

@media (max-width: 860px) {
  .lede {
    margin-inline: auto;
  }
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 0.9rem;
}

.dl-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.dl-note strong {
  color: var(--ink);
}

/* Gnome drifting down a dashed flight path. */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.flight-path {
  position: absolute;
  top: -10%;
  bottom: 42%;
  left: 50%;
  width: 0;
  border-left: 3px dashed rgba(20, 17, 15, 0.28);
  transform: translateX(-50%) rotate(6deg);
}

.gnome {
  position: relative;
  width: min(78%, 300px);
  filter: drop-shadow(8px 10px 0 rgba(20, 17, 15, 0.13));
  animation: drift 7s ease-in-out infinite;
  transform-origin: 50% 8%;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-16px) rotate(3.5deg);
  }
}

/* ---------- app window frames ---------- */

.window {
  margin: 0;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-bottom: var(--line) solid var(--ink);
  background: var(--cream);
}

.window-bar span {
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.window-bar span:nth-child(1) {
  background: #ff6b5e;
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--teal);
}

.window-bar em {
  margin-left: auto;
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.window img {
  width: 100%;
}

.showcase {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.showcase .window {
  transform: rotate(-0.5deg);
}

.showcase figcaption {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---------- section furniture ---------- */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: var(--line) dashed rgba(20, 17, 15, 0.25);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.6rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- features ---------- */

/* Screenshots run the full column width: at half width the app's own text is
   too small to read, which defeats the point of showing it. */
.feature {
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.feature:last-child {
  margin-bottom: 0;
}

.feature-text {
  max-width: 46rem;
  margin-bottom: 1.8rem;
}

.feature-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.feature-text p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.feature .window {
  transform: rotate(0.5deg);
}

.feature:nth-child(even) .window {
  transform: rotate(-0.6deg);
}

.feature figcaption {
  margin-top: 1rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---------- chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 0.98rem;
}

.chip span {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.chip:nth-child(6n + 1) {
  background: #d9f2ee;
}
.chip:nth-child(6n + 2) {
  background: #fdeccd;
}
.chip:nth-child(6n + 3) {
  background: #e4ecfb;
}
.chip:nth-child(6n + 4) {
  background: #fae0e4;
}
.chip:nth-child(6n + 5) {
  background: #e6f3d9;
}
.chip:nth-child(6n) {
  background: #f0e6fa;
}

.chip:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.chip:nth-child(even) {
  transform: rotate(1deg);
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.format {
  font-family: var(--display);
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.95rem;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.step {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
}

.step:nth-child(1) {
  transform: rotate(-0.9deg);
}

.step:nth-child(3) {
  transform: rotate(0.9deg);
}

.step h3 {
  margin-top: 0.6rem;
}

.step p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
}

/* ---------- honest note ---------- */

.note {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.6rem;
  align-items: start;
}

@media (max-width: 640px) {
  .note {
    grid-template-columns: 1fr;
  }
}

.note img {
  width: 84px;
}

.note h2 {
  margin-top: -0.25rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* ---------- install details ---------- */

details {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '＋';
  font-size: 1.1rem;
  color: var(--teal-deep);
}

details[open] summary::before {
  content: '－';
}

details > *:not(summary) {
  margin-top: 0.9rem;
}

details p:last-child,
details ol:last-child,
details ul:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: #f2ede3;
  border: 1px solid rgba(20, 17, 15, 0.18);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

/* ---------- final call to action ---------- */

.cta {
  text-align: center;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin-inline: auto;
}

.cta .dl-row {
  justify-content: center;
}

.cta .dl-note {
  color: rgba(255, 255, 255, 0.85);
}

.cta .dl-note strong {
  color: #fff;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: var(--line) solid var(--ink);
  background: var(--paper);
  padding: 2rem 0;
  font-size: 0.92rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-foot img {
  width: 30px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
}

.site-foot nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.lost img {
  width: 190px;
  margin: 0 auto 1.5rem;
  animation: drift 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
