/*
 * Knockin design tokens: the single source of colour, type and layout values
 * for every knockin.info page except the /lp/ keyword tests, which keep their
 * own palette on purpose.
 *
 * Values follow the 2026-11 site redesign (Figma "新版Knockin UI规范"):
 * near-black ink #050E0B, white / #F7F7F7 bands and one green #009F78 for
 * emphasis. The site is light
 * only. Page stylesheets reference these variables instead of repeating hex
 * values; component-local variables (for example product UI mock-ups) may
 * derive from them.
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/landing/dm-sans-latin-400-700.woff2") format("woff2");
}

/* Text face for browsers without SF Pro (Windows, Android). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/landing/inter-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/landing/geist-mono-latin-400-700.woff2") format("woff2");
}

:root {
  /* surfaces: white and light-grey bands alternate down every page */
  --k-bg: #ffffff;
  --k-bg-2: #f7f7f7;
  --k-bg-3: #f1f1f1;
  --k-surface: #ffffff;
  --k-glass: rgb(255 255 255 / 55%);

  /* ink */
  --k-ink: #050e0b;
  --k-ink-2: #3f3f3f;
  --k-ink-body: #6a6a6a;
  --k-ink-3: #929292;
  --k-line: #ebebeb;
  --k-num: #dddddd;

  /* brand colours: one green carries every emphasis */
  --k-accent: #009f78;
  --k-on-accent: #ffffff;
  --k-green: #009f78;
  --k-green-text: #00865f;
  --k-green-soft: #e6f0ed;
  --k-green-ink: #347363;
  --k-green-deep: #00684f;
  --k-orange: #ea764b;
  --k-danger: #b4432a;
  --k-button: #1b201f;
  --k-chip: #eaeaea;

  /* inverted block (footer) */
  --k-inv-bg: #1c1c1c;
  --k-inv-ink: #ffffff;
  --k-inv-ink-2: #bcbcbc;

  --k-shadow-soft: 0 4px 20px rgb(0 0 0 / 6%);
  --k-shadow-lift: 0 12px 36px rgb(0 0 0 / 10%), 0 2px 6px rgb(0 0 0 / 4%);
  --k-scrim: rgb(0 0 0 / 16%);

  /* type: DM Sans for display, SF Pro (system) for text */
  --k-font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --k-font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --k-font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* layout */
  --k-header-h: 78px;
  --k-pad: clamp(16px, 5vw, 160px);
  --k-content: 1120px;
  --k-max: 1440px;
  --k-radius: 24px;
  --k-radius-sm: 16px;

  /* motion (see public/v3.css): strong ease-out for UI, budgets under 300ms */
  --k-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --k-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --k-dur-press: 160ms;
  --k-dur-ui: 220ms;
  --k-dur-reveal: 640ms;

  /* the v03 K pattern is retired; kept empty so old rules stay valid */
  --k-kline: none;
  --k-kline-size: auto;

  color-scheme: light;
}
