/* Space Grotesk 300 — timer numerals (latin-ext) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 300 — timer numerals (latin) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/space-grotesk-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;
}
/* Newsreader italic 400 — the human voice (latin-ext) */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader italic 400 — the human voice (latin) */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-italic-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;
}
/* latin-ext */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-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;
}
/* latin-ext */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-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;
}
/* latin-ext */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-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;
}

html, body { margin:0; padding:0; background:oklch(16% 0.012 260); }
    * { box-sizing:border-box; }
    ::selection { background: rgba(255,255,255,0.18); }
    input { outline:none; }
    input::placeholder { color: rgba(235,232,225,0.32); font-style:italic; }
    @keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(9vmax, 6vmax) scale(1.12); } }
    @keyframes drift2 { 0% { transform: translate(0,0) scale(1.08); } 100% { transform: translate(-8vmax, -5vmax) scale(0.95); } }
    @keyframes breathe { 0%, 100% { transform: scale(0.94); opacity: 0.55; } 50% { transform: scale(1.06); opacity: 0.95; } }
    @keyframes bloom { 0%, 100% { opacity: 0.18; transform: scale(0.98); } 50% { opacity: 0.5; transform: scale(1.03); } }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(-108vh); opacity: 0; } }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* mode-switch slide (two identical names so alternating them restarts the animation) */
    @keyframes swInA { from { opacity: 0; transform: translateX(var(--sw-from, 0)); } to { opacity: 1; transform: none; } }
    @keyframes swInB { from { opacity: 0; transform: translateX(var(--sw-from, 0)); } to { opacity: 1; transform: none; } }

    /* animated hover tooltips */
    .kt-tip { position: relative; display: inline-flex; }
    .kt-tip__bub {
      position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px) scale(0.96);
      transform-origin: bottom center; opacity: 0; pointer-events: none; z-index: 30;
      width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 12px;
      background: oklch(19% 0.014 260 / 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px var(--kairos-accent, transparent) inset;
      color: rgba(235,232,225,0.86); font-family: 'Newsreader', serif; font-style: italic; font-size: 15px;
      line-height: 1.35; letter-spacing: 0.2px; text-align: center; text-transform: none;
      transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1);
    }
    .kt-tip__bub::after {
      content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
      border: 5px solid transparent; border-top-color: oklch(19% 0.014 260 / 0.92);
    }
    /* open below the trigger (for triggers near the top edge) */
    .kt-tip--below > .kt-tip__bub { bottom: auto; top: calc(100% + 10px); transform-origin: top center; transform: translate(-50%, -6px) scale(0.96); }
    .kt-tip--below > .kt-tip__bub::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: oklch(19% 0.014 260 / 0.92); }
    /* Desktop-hover affordance only: reveal on hover or keyboard focus. Gated to
       hover-capable devices so touch never latches a bubble open (mobile relies on
       the guided tour instead). */
    @media (hover: hover) {
      .kt-tip:hover > .kt-tip__bub, .kt-tip:has(:focus-visible) > .kt-tip__bub { opacity: 1; transform: translate(-50%, 0) scale(1); }
    }

    /* first-run coachmark tour */
    .kt-tour-spot {
      position: fixed; z-index: 40; border-radius: 16px; pointer-events: none;
      box-shadow: 0 0 0 9999px rgba(6,8,14,0.72), 0 0 0 1.5px var(--kairos-accent, rgba(255,255,255,0.6)), 0 0 26px var(--kairos-accent, transparent);
      transition: top 0.35s cubic-bezier(0.2,0.7,0.3,1), left 0.35s cubic-bezier(0.2,0.7,0.3,1), width 0.35s cubic-bezier(0.2,0.7,0.3,1), height 0.35s cubic-bezier(0.2,0.7,0.3,1);
      animation: ktPulse 2.6s ease-in-out infinite;
    }
    .kt-tour-card {
      position: fixed; z-index: 41; width: 300px; max-width: calc(100vw - 32px); padding: 20px 20px 16px; border-radius: 18px;
      max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
      background: oklch(18% 0.014 260 / 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255,255,255,0.13); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
      animation: ktCardIn 0.34s cubic-bezier(0.2,0.7,0.3,1), ktFloat 4.5s ease-in-out 0.5s infinite;
      transition: top 0.32s cubic-bezier(0.2,0.7,0.3,1), left 0.32s cubic-bezier(0.2,0.7,0.3,1);
    }
    @keyframes ktCardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes ktFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
    @keyframes ktPulse { 0%, 100% { box-shadow: 0 0 0 9999px rgba(6,8,14,0.72), 0 0 0 1.5px var(--kairos-accent, rgba(255,255,255,0.6)), 0 0 18px var(--kairos-accent, transparent); } 50% { box-shadow: 0 0 0 9999px rgba(6,8,14,0.72), 0 0 0 1.5px var(--kairos-accent, rgba(255,255,255,0.6)), 0 0 34px var(--kairos-accent, transparent); } }

    @media (prefers-reduced-motion: reduce) {
      @keyframes swInA { from { opacity: 0; transform: none; } to { opacity: 1; transform: none; } }
      @keyframes swInB { from { opacity: 0; transform: none; } to { opacity: 1; transform: none; } }
      .kt-tour-spot { animation: none; }
      .kt-tour-card { animation: none; }
      .kt-tip__bub { transition: opacity 0.18s ease; }
    }
