/* Karib — the public site: landing, privacy, terms, data deletion.

   ONE stylesheet for four pages, and it makes exactly zero third-party
   requests: the typeface is vendored next to this file, there is no CDN, no
   analytics, no tracking pixel. That is not only a performance decision — a
   privacy policy served off a page that phones three strangers is not a
   privacy policy, and a Meta reviewer opening this on a bad connection should
   see it finish loading.

   The palette is the product's own, copied value-for-value from
   frontend/src/styles/tokens.css so the marketing page, the login and the
   inbox read as one thing. Discipline, not decoration: warm paper, ONE accent
   used sparingly, type doing the talking, whitespace doing the layout. */

/* --- the typeface -------------------------------------------------------
   Plus Jakarta Sans (SIL OFL 1.1, licence beside the files) — drawn in and
   for Jakarta, which is the whole brand story in one download. The variable
   font, 200-800 on one axis, so the display weight and the body weight come
   out of the SAME file: two subsets, ~48 KB total, and no request leaves the
   origin. The unicode-ranges are Google's own, kept verbatim, so a browser
   fetches latin-ext only when a page actually needs it. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-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;
}

/* --- tokens ------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  --k-accent: #c2410c;
  --k-accent-strong: #9a3412;
  --k-accent-soft: #fde5d3;
  --k-accent-faint: #fff3ea;
  --k-on-accent: #ffffff;

  --k-bg: #fffbf7;
  --k-surface: #ffffff;
  --k-surface-sunk: #fdf4ed;
  --k-text: #22201e;
  --k-muted: #6b625c;
  --k-faint: #9c918a;
  --k-border: #ecdfd5;
  --k-border-strong: #d9c6b8;
  --k-read: #2563eb;

  --k-radius-sm: 6px;
  --k-radius: 10px;
  --k-radius-lg: 14px;
  --k-radius-pill: 999px;

  /* Warm shadows only. Pure black over cream reads as dirt, not as depth —
     every shadow here is the ink colour at low alpha. */
  --k-shadow-1: 0 1px 2px rgba(34, 32, 30, 0.05);
  --k-shadow-2: 0 2px 6px rgba(34, 32, 30, 0.05),
    0 12px 32px rgba(34, 32, 30, 0.07);
  --k-shadow-3: 0 4px 12px rgba(34, 32, 30, 0.06),
    0 32px 64px rgba(60, 34, 20, 0.13);

  /* The content column, and the narrower one prose gets. */
  --k-shell: 72rem;
  --k-prose: 65ch;

  --k-ease: cubic-bezier(0.2, 0, 0.2, 1);
  --k-fast: 160ms;
  --k-slow: 240ms;
  --k-reveal: 450ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --k-accent: #fb923c;
    --k-accent-strong: #fdba74;
    --k-accent-soft: #3a2416;
    --k-accent-faint: #251a12;
    --k-on-accent: #1a120c;

    --k-bg: #17130f;
    --k-surface: #201a16;
    --k-surface-sunk: #1c1712;
    --k-text: #f2ece7;
    --k-muted: #a99e96;
    --k-faint: #7d736c;
    --k-border: #362c25;
    --k-border-strong: #4a3d33;
    --k-read: #60a5fa;

    --k-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --k-shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
    --k-shadow-3: 0 4px 12px rgba(0, 0, 0, 0.4), 0 32px 64px rgba(0, 0, 0, 0.55);
  }
}

/* --- base --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The sticky nav is 4rem tall; an anchor landing under it is the oldest bug
     on the web. */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--k-bg);
  color: var(--k-text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Nothing here is wide enough to scroll sideways. If something ever is,
     that is a bug — and this keeps it from being the reader's problem. */
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--k-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

::selection {
  background: var(--k-accent-soft);
  color: var(--k-text);
}

:focus-visible {
  outline: 2px solid var(--k-accent);
  outline-offset: 3px;
  border-radius: var(--k-radius-sm);
}

/* --- layout primitives -------------------------------------------------- */

.k-shell {
  width: 100%;
  max-width: var(--k-shell);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* The rhythm of the whole page is this one number: ~4rem on a phone, ~8.5rem
   on a desktop, and nothing is ever crowded. */
.k-section {
  padding-block: clamp(4rem, 9vw, 8.5rem);
}

.k-section--sunk {
  background: var(--k-surface-sunk);
  border-block: 1px solid var(--k-border);
}

.k-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.k-eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  color: var(--k-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

h1,
h2,
h3 {
  margin: 0;
  /* Negative tracking on DISPLAY sizes only — body copy set tight is just
     hard to read. */
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* The one highlighted word. Used ONCE in the hero headline, and nowhere else
   at display size. */
.k-accent {
  color: var(--k-accent);
}

.k-lead {
  margin: 1.25rem 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--k-muted);
  text-wrap: pretty;
}

.k-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--k-faint);
}

/* --- motion ------------------------------------------------------------- */
/* Applied only when JS is running (html.js, set by an inline one-liner before
   first paint), so a browser with scripting off shows every section instead
   of a page of invisible ones. */

.js .k-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--k-reveal) var(--k-ease),
    transform var(--k-reveal) var(--k-ease);
  transition-delay: calc(var(--k-i, 0) * 60ms);
}

.js .k-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .k-reveal,
  .js .k-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Paper has no scroll position. A page printed (or saved to PDF) before its
   observers fired must not come out with holes in it. */
@media print {
  .js .k-reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- nav ---------------------------------------------------------------- */

.k-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--k-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--k-slow) var(--k-ease),
    background-color var(--k-slow) var(--k-ease);
}

/* Set by the scroll sentinel: the hairline appears once the page has moved,
   so the nav is part of the hero at rest and a bar in use. */
.k-nav.is-stuck {
  border-bottom-color: var(--k-border);
  background: color-mix(in srgb, var(--k-bg) 92%, transparent);
}

.k-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}

.k-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--k-text);
  text-decoration: none;
  flex: none;
}

/* The only mark there is: the word, and a terracotta full stop. */
.k-wordmark::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--k-accent);
}

.k-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.k-nav__links a {
  color: var(--k-muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--k-fast) var(--k-ease);
}

.k-nav__links a:hover {
  color: var(--k-text);
}

.k-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 1.75rem;
}

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

.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--k-radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--k-fast) var(--k-ease),
    box-shadow var(--k-fast) var(--k-ease),
    background-color var(--k-fast) var(--k-ease),
    border-color var(--k-fast) var(--k-ease);
}

.k-btn--primary {
  background: var(--k-accent);
  color: var(--k-on-accent);
  box-shadow: 0 1px 2px rgba(34, 32, 30, 0.08),
    0 6px 18px rgba(194, 65, 12, 0.22);
}

.k-btn--primary:hover {
  background: var(--k-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(34, 32, 30, 0.1),
    0 10px 26px rgba(194, 65, 12, 0.28);
}

.k-btn--ghost {
  background: var(--k-surface);
  border-color: var(--k-border-strong);
  color: var(--k-text);
  box-shadow: var(--k-shadow-1);
}

.k-btn--ghost:hover {
  border-color: var(--k-faint);
  transform: translateY(-1px);
}

.k-btn--quiet {
  padding-inline: 0.7rem;
  background: transparent;
  color: var(--k-text);
}

.k-btn--quiet:hover {
  background: var(--k-accent-faint);
}

.k-btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

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

.k-hero {
  position: relative;
  /* Less at the bottom than the top: the section below brings its own 8.5rem,
     and two generous paddings stacked read as a gap, not as rhythm. */
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 4vw, 4rem);
  overflow: hidden;
}

/* The one wash on the page: cream on cream, plus the faintest terracotta
   bloom behind the headline. Barely there on purpose — if you can point at
   where it starts, it is too strong. */
.k-hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  background: radial-gradient(
      52% 42% at 50% 22%,
      var(--k-accent-faint) 0%,
      transparent 68%
    ),
    radial-gradient(70% 50% at 78% 8%, var(--k-surface) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.k-hero > * {
  position: relative;
  z-index: 1;
}

.k-hero__copy {
  max-width: 46rem;
}

.k-hero .k-lead {
  max-width: 38rem;
}

.k-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.k-hero__aside {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--k-faint);
}

.k-hero__aside a {
  color: var(--k-muted);
  text-decoration-color: var(--k-border-strong);
}

.k-hero__aside a:hover {
  color: var(--k-accent);
}

/* --- the browser frame around the real product shot --------------------- */

.k-frame {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--k-border-strong);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
  box-shadow: var(--k-shadow-3);
  overflow: hidden;
}

.k-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: var(--k-surface-sunk);
  border-bottom: 1px solid var(--k-border);
}

.k-frame__dots {
  display: flex;
  gap: 0.4rem;
  flex: none;
}

.k-frame__dots i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--k-border-strong);
}

.k-frame__url {
  flex: 1;
  max-width: 22rem;
  margin-inline: auto;
  padding: 0.2rem 0.75rem;
  border-radius: var(--k-radius-pill);
  background: var(--k-bg);
  border: 1px solid var(--k-border);
  color: var(--k-faint);
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.k-frame__shot {
  display: block;
  width: 100%;
  height: auto;
  /* The capture is 1760x1100 — exactly 16:10, so it lands whole, uncropped
     and unsquashed. It is the real inbox against a throwaway seeded database,
     not a drawing of one. */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--k-surface-sunk);
}

/* --- trust strip -------------------------------------------------------- */

.k-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--k-muted);
}

.k-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.k-trust svg {
  flex: none;
  color: var(--k-accent);
}

/* --- chat demo ---------------------------------------------------------- */

.k-demo {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 60rem) {
  /* Near-even, not a narrow rail beside a wide panel: the left column has to
     hold a lead paragraph without setting it 28 characters wide, and the right
     one holds 27rem bubbles that look lost in 40rem of surface. */
  .k-demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 5vw, 5rem);
  }

  .k-demo__copy {
    position: sticky;
    top: 6rem;
    max-width: 30rem;
  }
}

.k-demo__copy h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
}

.k-demo__steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.k-demo__steps li {
  position: relative;
  padding-left: 2.35rem;
  margin-bottom: 1.1rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--k-muted);
  counter-increment: step;
}

.k-demo__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid var(--k-border-strong);
  background: var(--k-surface);
  color: var(--k-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.k-chat {
  padding: 1.35rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface-sunk);
  box-shadow: var(--k-shadow-2);
}

.k-chat__day {
  margin: 0 auto 1.1rem;
  width: fit-content;
  padding: 0.2rem 0.7rem;
  border-radius: var(--k-radius-pill);
  background: var(--k-bg);
  border: 1px solid var(--k-border);
  color: var(--k-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Same shape as the operator's own bubbles (frontend/src/styles/app.css) —
   the page shows the product's aesthetic, not a second one invented for
   marketing. */
.k-bubble {
  max-width: min(84%, 27rem);
  margin: 0 0 0.55rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
  box-shadow: var(--k-shadow-1);
  font-size: 0.94rem;
  line-height: 1.5;
}

.k-bubble--out {
  margin-left: auto;
  background: var(--k-accent-soft);
  border-color: var(--k-accent);
}

.k-bubble__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--k-muted);
}

.k-bubble--out .k-bubble__meta {
  justify-content: flex-end;
}

.k-tick {
  letter-spacing: -0.15em;
  color: var(--k-read);
}

.k-bubble__tag {
  font-variant: all-small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* The tappable list Meta renders under an interactive message. */
.k-picker {
  margin-top: 0.55rem;
  border-top: 1px dashed var(--k-border-strong);
  padding-top: 0.5rem;
}

.k-picker span {
  display: block;
  padding: 0.32rem 0;
  font-size: 0.88rem;
  color: var(--k-text);
}

.k-picker span + span {
  border-top: 1px solid var(--k-border);
}

.k-picker b {
  display: block;
  margin-top: 0.45rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--k-border-strong);
  color: var(--k-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* --- cards -------------------------------------------------------------- */

.k-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44rem) {
  .k-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .k-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .k-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.k-card {
  padding: 1.6rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
  box-shadow: var(--k-shadow-1);
  transition: transform var(--k-slow) var(--k-ease),
    box-shadow var(--k-slow) var(--k-ease),
    border-color var(--k-slow) var(--k-ease);
}

.k-card:hover {
  transform: translateY(-2px);
  border-color: var(--k-border-strong);
  box-shadow: var(--k-shadow-2);
}

/* Hand-drawn, 1.5px stroke, no icon library and no second style. */
.k-card__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.1rem;
  border-radius: var(--k-radius);
  background: var(--k-accent-faint);
  border: 1px solid var(--k-accent-soft);
  color: var(--k-accent);
}

.k-card h3 {
  margin-bottom: 0.5rem;
}

.k-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--k-muted);
}

/* --- mode --------------------------------------------------------------- */

.k-mode__word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--k-radius-pill);
  background: var(--k-accent-faint);
  border: 1px solid var(--k-accent-soft);
  font-size: 0.8rem;
  color: var(--k-muted);
}

.k-mode__word b {
  color: var(--k-accent);
  font-weight: 700;
}

.k-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.k-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--k-muted);
}

.k-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--k-border-strong);
}

.k-list li b {
  color: var(--k-text);
  font-weight: 600;
}

/* --- pricing ------------------------------------------------------------ */

/* Stretched, not `start`: the three cards carry different numbers of lines,
   and a row of buttons at three different heights is the tell that nobody
   looked at the page. `.k-list { flex: 1 }` inside each card pushes every CTA
   to the same baseline. */
.k-tiers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .k-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.k-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.6rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
  box-shadow: var(--k-shadow-1);
}

/* The one badged tier — Neosoft's proven anchor pattern. Also the only place
   on the page besides the CTA where terracotta owns a whole edge. */
.k-tier--push {
  border-color: var(--k-accent);
  box-shadow: var(--k-shadow-2);
}

@media (min-width: 62rem) {
  .k-tier--push {
    margin-block: -0.9rem;
    padding-block: 2.75rem 1.85rem;
  }
}

.k-tier__badge {
  position: absolute;
  top: -0.75rem;
  left: 1.6rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--k-radius-pill);
  background: var(--k-accent);
  color: var(--k-on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.28);
}

.k-tier__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.k-tier__who {
  margin: 0.3rem 0 1.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--k-faint);
  min-height: 2.6em;
}

.k-tier__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--k-border);
  margin-bottom: 1.35rem;
}

.k-tier__price b {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.k-tier__price small {
  font-size: 0.85rem;
  color: var(--k-faint);
}

.k-tier__price em {
  width: 100%;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--k-faint);
}

.k-tier .k-list {
  margin: 0 0 1.75rem;
  flex: 1;
}

.k-tier .k-btn {
  width: 100%;
}

/* The differentiator, given its own full-width row rather than a footnote:
   the one real metered cost under the price, disclosed instead of buried. */
.k-meta-cost {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--k-border-strong);
  border-radius: var(--k-radius-lg);
  background: var(--k-bg);
}

.k-meta-cost h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.k-meta-cost > p {
  margin: 0 0 1.35rem;
  max-width: 46rem;
  font-size: 0.96rem;
  color: var(--k-muted);
}

.k-facts {
  display: grid;
  gap: 0.85rem 2.5rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--k-border);
  list-style: none;
}

@media (min-width: 48rem) {
  .k-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.k-facts li {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--k-muted);
}

.k-facts li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.6rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--k-accent);
}

.k-facts li b {
  color: var(--k-text);
  font-weight: 600;
}

/* --- FAQ ---------------------------------------------------------------- */

.k-faq {
  max-width: 48rem;
  margin-inline: auto;
  border-top: 1px solid var(--k-border);
}

.k-faq details {
  border-bottom: 1px solid var(--k-border);
}

.k-faq summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--k-text);
  transition: color var(--k-fast) var(--k-ease);
}

.k-faq summary::-webkit-details-marker {
  display: none;
}

.k-faq summary:hover {
  color: var(--k-accent);
}

/* A plus that turns into a minus. No JS accordion — <details> already is
   one. */
.k-faq summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  color: var(--k-faint);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--k-slow) var(--k-ease),
    color var(--k-fast) var(--k-ease);
}

.k-faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--k-accent);
}

.k-faq p {
  margin: 0 0 1.5rem;
  max-width: 44rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--k-muted);
}

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

.k-footer {
  border-top: 1px solid var(--k-border);
  padding-block: clamp(3rem, 6vw, 4.5rem) 3rem;
}

.k-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.k-footer__tag {
  margin: 0.85rem 0 0;
  max-width: 20rem;
  font-size: 0.92rem;
  color: var(--k-muted);
}

.k-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
}

.k-footer nav a {
  color: var(--k-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color var(--k-fast) var(--k-ease);
}

.k-footer nav a:hover {
  color: var(--k-accent);
}

.k-footer__fine {
  margin: 0;
  max-width: 44rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--k-faint);
}

.k-footer__fine + .k-footer__fine {
  margin-top: 0.75rem;
}

/* --- prose pages (privacy / terms / data deletion) ---------------------- */

.k-doc {
  max-width: var(--k-prose);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.k-doc h1 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  margin-bottom: 0.65rem;
}

.k-doc h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.85rem;
}

.k-doc h3 {
  margin: 2rem 0 0.5rem;
}

.k-doc p,
.k-doc li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--k-text);
  text-wrap: pretty;
}

.k-doc__intro {
  font-size: 1.08rem;
  color: var(--k-muted);
}

.k-doc ul {
  padding-left: 1.15rem;
}

.k-doc li {
  margin: 0.45rem 0;
}

.k-doc li::marker {
  color: var(--k-border-strong);
}

.k-doc dl {
  margin: 1rem 0 0;
}

.k-doc dt {
  font-weight: 700;
  margin-top: 1.25rem;
}

.k-doc dd {
  margin: 0.2rem 0 0;
  color: var(--k-muted);
}

.k-doc__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 2.5rem;
  font-size: 0.88rem;
  color: var(--k-faint);
}

/* The legal entity is not decided yet, and the page says so where a reader
   will see it — not only in a comment nobody outside the repo can read. */
.k-draft {
  margin: 0 0 2.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--k-border-strong);
  border-radius: var(--k-radius);
  background: var(--k-surface-sunk);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--k-muted);
}

.k-placeholder {
  font-weight: 700;
  color: var(--k-accent);
  white-space: nowrap;
}

.k-callout {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--k-accent);
  border-radius: 0 var(--k-radius) var(--k-radius) 0;
  background: var(--k-accent-faint);
}

.k-callout p {
  margin: 0;
}

.k-en {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--k-border);
}

.k-en h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.k-en p {
  font-size: 0.94rem;
  color: var(--k-muted);
}

/* --- small screens ------------------------------------------------------ */
/* No hamburger: the section links step aside and the two buttons stay, which
   is the whole nav a phone needs and none of the JS a drawer would cost. */

@media (max-width: 52rem) {
  .k-nav__links {
    display: none;
  }

  .k-nav__cta {
    margin-left: auto;
  }
}

@media (max-width: 30rem) {
  .k-btn {
    padding-inline: 0.9rem;
  }

  .k-hero__cta .k-btn {
    flex: 1 1 100%;
  }

  .k-frame__url {
    display: none;
  }

  .k-tier__who {
    min-height: 0;
  }
}

/* --- the demo plays itself ----------------------------------------------
   The hero conversation replays like a screen recording: typing dots, each
   message arriving in turn, ticks going blue once "read", the reminder
   landing a day later, then a fade and the loop starts over. All of it is
   additive: without JavaScript, or under prefers-reduced-motion, none of
   these classes appear and the conversation is simply there, complete —
   the same rule the reveals follow.

   The typing bubble is absolutely positioned over the spot where the next
   message will appear, so its coming and going never moves the layout —
   the card's height is reserved by the script before the first frame. */

.js .k-chat--live {
  position: relative;
  transition: opacity 480ms var(--k-ease);
}

.js .k-chat--live > * {
  opacity: 0;
  transform: translateY(9px) scale(0.985);
}

.js .k-chat--live > .is-on {
  opacity: 1;
  transform: none;
  transition: opacity 240ms var(--k-ease), transform 240ms var(--k-ease);
}

.js .k-chat--fade {
  opacity: 0;
}

/* Sent first, read a moment later — the pair of ticks starts in the meta's
   own grey and takes the read blue only after a beat, like the real thing. */
.js .k-chat--live .k-tick {
  color: var(--k-muted);
  transition: color 320ms var(--k-ease);
}

.js .k-chat--live .is-read .k-tick {
  color: var(--k-read);
}

.k-typing {
  position: absolute;
  left: 1.35rem;
  width: fit-content;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
  box-shadow: var(--k-shadow-1);
  display: flex;
  gap: 0.28rem;
  align-items: center;
}

.k-typing--out {
  left: auto;
  right: 1.35rem;
  background: var(--k-accent-soft);
  border-color: var(--k-accent);
}

.k-typing i {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--k-muted);
  animation: k-think 1.1s ease-in-out infinite;
}

.k-typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.k-typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes k-think {
  0%, 60%, 100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* --- the product shot drifts --------------------------------------------
   A slow documentary pan across the inbox screenshot — far cheaper than a
   video and crisp at every width. The frame already clips overflow. */

.js .k-frame__shot {
  transform-origin: 22% 12%;
  animation: k-pan 26s var(--k-ease) infinite alternate;
}

@keyframes k-pan {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.055) translate(-1.8%, -2.2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .k-frame__shot,
  .k-typing i {
    animation: none;
  }
}

/* ===================== /mobile — the app download page ==================== */
/* Copy on the left, a brand mark in a phone outline on the right. The phone
   is deliberately NOT a screenshot: the app exists in the repository but has
   never been captured on a device, and this site does not draw interfaces it
   cannot show for real. */

.k-mobile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .k-mobile {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.k-dl {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.k-dl__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  box-shadow: var(--k-shadow-1);
}

.k-dl__name {
  display: block;
  font-weight: 600;
}

.k-dl__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--k-muted);
}

.k-pill {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--k-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.k-pill--soon {
  background: var(--k-accent-faint);
  color: var(--k-accent-strong);
  border: 1px solid var(--k-accent-soft);
}

.k-phone {
  justify-self: center;
  width: min(16rem, 70vw);
  aspect-ratio: 9 / 18.5;
  padding: 0.65rem;
  background: var(--k-text);
  border-radius: 2.4rem;
  box-shadow: var(--k-shadow-3);
}

.k-phone__screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background:
    radial-gradient(80% 55% at 50% 30%, var(--k-accent-faint) 0%, transparent 75%),
    var(--k-bg);
  border-radius: 1.85rem;
}

.k-phone__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  box-shadow: var(--k-shadow-2);
}

.k-phone__word {
  font-family: var(--k-font-display, inherit);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.k-phone__platforms {
  font-size: 0.85rem;
  color: var(--k-muted);
  margin-bottom: 0.35rem;
}

/* ================= /mobile v2 — the download page, rebuilt ================
   APPEND-ONLY section. Everything above is shared by five pages; nothing
   here changes a rule above it. New classes, plus a few overrides SCOPED
   under a new parent (`.k-phone__vig .k-bubble`) so the landing page's own
   bubbles are untouched.

   The page it builds: a hero that carries the phone, a three-step install
   strip that de-fangs Android's from-outside-the-store warning, the feature
   grid, three download rows, and a short FAQ. The version string appears in
   exactly ONE place in the markup (`.k-vchip`) so replacing the hosted
   binary is one edit. */

/* --- a shallower section, for a strip that is not a chapter ------------- */

.k-band {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.k-band .k-head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Replaces the inline `style="margin-top:…"` the first version of this page
   carried, so spacing is a rule rather than a per-element decision. */
.k-mgap {
  margin-top: 1.5rem;
  max-width: 46rem;
}

.k-mcta {
  margin-top: 1.25rem;
}

/* --- the release chip ---------------------------------------------------
   Inline-block, not a flex item: it sits at the head of a sentence that
   wraps normally underneath itself on a phone. */

.k-mrelease {
  max-width: 36rem;
}

.k-vchip {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--k-radius-pill);
  background: var(--k-accent-faint);
  border: 1px solid var(--k-accent-soft);
  color: var(--k-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- install in three steps --------------------------------------------
   An <ol>: the order is the meaning, so it is markup rather than three
   painted numerals. The counter rides the icon's corner. */

.k-steps {
  counter-reset: k-step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 52rem) {
  .k-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.k-step {
  counter-increment: k-step;
  padding: 1.4rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
  box-shadow: var(--k-shadow-1);
}

.k-step h3 {
  margin: 0 0 0.4rem;
}

.k-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--k-muted);
}

.k-step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.05rem;
  border-radius: var(--k-radius);
  background: var(--k-accent-faint);
  border: 1px solid var(--k-accent-soft);
  color: var(--k-accent);
}

.k-step__icon::after {
  content: counter(k-step);
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--k-accent);
  color: var(--k-on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.28);
}

/* --- download rows ------------------------------------------------------
   Three channels, one open. The live row is the only one wearing the accent
   edge — the two waiting rows keep their grey icon so the difference is
   visible before the pills are read. */

.k-dl-wrap {
  max-width: 52rem;
}

.k-dl__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--k-radius);
  background: var(--k-surface-sunk);
  border: 1px solid var(--k-border);
  color: var(--k-faint);
}

.k-dl__body {
  flex: 1;
  min-width: 0;
}

.k-dl__row--live {
  border-color: var(--k-accent);
  box-shadow: var(--k-shadow-2);
}

.k-dl__row--live .k-dl__icon {
  background: var(--k-accent-faint);
  border-color: var(--k-accent-soft);
  color: var(--k-accent);
}

/* Under ~34rem the row stops being a row: icon and text keep the first line,
   the button takes the full width beneath instead of being squeezed into a
   two-word column. */
@media (max-width: 34rem) {
  .k-dl__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.8rem 0.85rem;
  }

  .k-dl__row > .k-btn,
  .k-dl__row > .k-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* --- the phone ----------------------------------------------------------
   A BRAND composition, never a screenshot: the app has not been captured on
   a device, so the screen holds the mark, a labelled example WhatsApp
   conversation (the landing page's k-chat idiom, borrowed for its bubbles)
   and nothing that imitates the app's own chrome — no tab bar, no header,
   no composer. The caption under it says the same thing in the page. */

.k-phone-wrap {
  justify-self: center;
}

.k-phone--hero {
  width: min(15rem, 62vw);
}

.k-phone__cap {
  margin: 0.9rem auto 0;
  max-width: 17rem;
  text-align: center;
  font-size: 0.8rem;
}

.k-phone__screen--v2 {
  position: relative;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 1.6rem 0.85rem 1.2rem;
  overflow: hidden;
}

/* The wash inside the glass, over the flat gradient the screen already has. */
.k-phone__screen--v2::before {
  content: "";
  position: absolute;
  inset: -25% -40% auto;
  height: 85%;
  background: radial-gradient(
    50% 50% at 50% 45%,
    var(--k-accent-soft) 0%,
    transparent 72%
  );
  opacity: 0.7;
  pointer-events: none;
}

.k-phone__top,
.k-phone__vig {
  position: relative;
  z-index: 1;
}

/* The screen is a phone-shaped column and the vignette is shorter than it is.
   Take the remainder and centre in it, rather than leaving the composition
   hanging from the top of a tall empty rectangle. */
.k-phone__vig {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.k-phone__top {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.05rem;
  border-bottom: 1px solid var(--k-border);
}

.k-phone__top .k-phone__logo {
  width: 3.1rem;
  height: 3.1rem;
}

.k-phone__top .k-phone__word {
  font-size: 1.05rem;
}

/* The in-image label. An illustration that says what it is inside its own
   frame does not depend on the caption surviving a crop or a screenshot. */
.k-phone__vig .k-phone__platforms {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-faint);
}

/* Scoped down to phone scale — the shared bubble rules are untouched. */
.k-phone__vig .k-chat__day {
  margin: 0 auto 0.6rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.58rem;
}

.k-phone__vig .k-bubble {
  max-width: 92%;
  margin-bottom: 0.45rem;
  padding: 0.42rem 0.55rem;
  border-radius: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.4;
}

.k-phone__vig .k-bubble__meta {
  margin-top: 0.15rem;
  gap: 0.25rem;
  font-size: 0.56rem;
}

/* --- the wash drifts ----------------------------------------------------
   The same idiom as the landing page's slow pan across the product shot:
   additive, JS-gated so a scriptless browser gets the still composition,
   and switched OFF rather than merely shortened under reduced motion (the
   global 0.01ms rule would turn an infinite animation into a flicker). */

.js .k-phone__screen--v2::before {
  animation: k-mdrift 24s var(--k-ease) infinite alternate;
}

@keyframes k-mdrift {
  from {
    transform: none;
  }
  to {
    transform: translate3d(8%, 10%, 0) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .k-phone__screen--v2::before {
    animation: none;
  }
}
