/* Kareeb — 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;
  /* beranda-4: was #9c918a, 2.8:1 to 3.1:1 on the cream grounds, and every
     use of it here is small text. Now 4.6:1 on --k-surface-sunk and
     --k-accent-faint (the darkest grounds it sits on), still a step lighter
     than --k-muted. */
  --k-faint: #786e67;
  --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: 320ms;
}

@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;
    /* beranda-4: was #7d736c (3.7:1 to 4.0:1); now 5.0:1 or more. */
    --k-faint: #958a82;
    --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);
}

/* beranda-4: the first thing a keyboard reaches. Off screen until focused,
   then a solid chip over the nav. */
.k-skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.7rem 1rem;
  border-radius: var(--k-radius);
  background: var(--k-text);
  color: var(--k-bg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.k-skip:focus,
.k-skip:focus-visible {
  transform: none;
}

/* The skip link's target takes focus only so the next Tab starts inside it;
   it is not a control, so no ring around the whole page. */
main[tabindex="-1"]:focus {
  outline: none;
}

/* --- 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.

   beranda-4: the live page showed blank cards to a reader scrolling at an
   ordinary pace. Now kareeb.js reveals an element a quarter screen before it
   arrives and reveals the rest a second after `load`, and the k-tampil
   animation below un-hides anything still waiting 2.2 s after first paint
   even if kareeb.js never ran. Short, and the stagger stops at four. */

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

.js .k-reveal:not(.is-in) {
  animation: k-tampil 0s linear 2.2s forwards;
}

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

@keyframes k-tampil {
  to {
    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;
    animation: 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,
  html.js .k-chat[data-putar] > .k-bubble ~ :not(.k-typing) {
    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;
}

/* logo-kareeb (round 384): the designer's lockup, mark and "kareeb.", one file
   per ground (the <picture> picks the cream wordmark in dark mode). It carries
   its own full stop, so the terracotta dot this rule used to draw is gone. The
   link is named by its aria-label; the image is decorative. */
.k-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.k-wordmark img {
  display: block;
  width: auto;
  height: 1.75rem;
}

.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;
}

/* beranda-4: a finger needs 44px. Pointer-based, so a desktop keeps its
   tighter buttons. */
@media (pointer: coarse) {
  .k-btn,
  .k-tab,
  .k-more summary,
  .k-faq summary {
    min-height: 2.75rem;
  }
}

/* --- 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);
}

/* Two columns above the fold (beranda-2): the headline and the chat where
   Agen AI answers from the catalogue and hands a custom order to a person.
   The chat reuses .k-chat/.k-bubble so the hero shows the product's own
   bubbles, not a second drawing. */
.k-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 60rem) {
  .k-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.k-hero__chat {
  width: 100%;
  max-width: 30rem;
}

@media (min-width: 60rem) {
  .k-hero__chat {
    justify-self: end;
  }
}

.k-hero__chat .k-bubble {
  max-width: min(92%, 26rem);
}

/* --- Bandingkan paket (beranda-2) ----------------------------------------- */

.k-compare {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
}

.k-compare h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.k-compare__wrap {
  overflow-x: auto;
}

.k-compare table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.k-compare th,
.k-compare td {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--k-border);
  text-align: left;
  vertical-align: top;
  color: var(--k-muted);
}

.k-compare thead th {
  border-top: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.k-compare td:first-child {
  color: var(--k-text);
}

.k-compare td + td,
.k-compare th + th {
  text-align: center;
  white-space: nowrap;
}

.k-compare td.ok {
  color: var(--k-accent);
  font-weight: 700;
}

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

.k-frame {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  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;
}

/* beranda-4: the whole picture at every width. The live page cut both sides
   because a slow zoom-and-pan (scale 1.055, inside a frame that clips) ran on
   it; that is gone, and so are the fixed 16:10 box and object-fit, since the
   cropped files are not 16:10. The img's width and height attributes give
   the box its ratio before the file arrives. */
.k-frame picture {
  display: block;
}

.k-frame__shot {
  display: block;
  width: 100%;
  height: auto;
  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);
}

/* Who operates Kareeb — name, NIB, registered address — under each legal
   page's intro, where a reader (and a Meta reviewer) looks for it. */
.k-entity {
  margin: 1.25rem 0 2.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  background: var(--k-surface-sunk);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--k-muted);
}

.k-entity strong {
  color: var(--k-text);
}

.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 ------------------------------------------------------ */
/* The section links step aside and the two buttons stay. beranda-4: on the
   homepage a native <details> ("Menu") lists the same links, so a phone can
   still reach each section; no drawer script, it opens with no JS at all. */

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

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

.k-menu {
  display: none;
}

.k-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border: 1px solid var(--k-border-strong);
  border-radius: var(--k-radius);
  background: var(--k-surface);
  color: var(--k-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

/* A chevron drawn with two borders: down when shut, up when open. */
.k-menu > summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform var(--k-fast) var(--k-ease);
}

.k-menu[open] > summary {
  border-color: var(--k-accent);
  color: var(--k-accent);
}

.k-menu[open] > summary::after {
  transform: translateY(0.12rem) rotate(-135deg);
}

/* Hangs from the bottom edge of the sticky nav, full width. */
.k-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  padding: 0.6rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  border-bottom: 1px solid var(--k-border);
  background: var(--k-bg);
  box-shadow: var(--k-shadow-2);
}

.k-menu__panel a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border-radius: var(--k-radius-sm);
  color: var(--k-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.k-menu__panel a:hover {
  background: var(--k-accent-faint);
  color: var(--k-accent-strong);
}

.k-menu__panel a:focus-visible {
  outline-offset: 0;
}

/* The bar keeps its own Masuk until the phone is too narrow for three
   controls beside the wordmark; then Masuk moves into the menu. */
.k-menu__panel .k-menu__masuk {
  display: none;
}

@media (max-width: 52rem) {
  .k-menu {
    display: block;
    margin-left: auto;
  }

  .k-nav--menu .k-nav__cta {
    margin-left: 0.6rem;
  }
}

@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;
  }

  .k-nav--menu .k-nav__cta .k-btn--quiet {
    display: none;
  }

  .k-menu__panel .k-menu__masuk {
    display: flex;
  }

  /* beranda-4: on a 360px phone the headline, the lead and both buttons fit
     in about the first screen. The headline drops from 41.6px to 34.6px (it
     then sets in three lines, not four) and the gaps around it tighten. */
  .k-hero {
    padding-block: 1.75rem 2.5rem;
  }

  .k-hero .k-eyebrow {
    margin-bottom: 0.7rem;
    letter-spacing: 0.1em;
  }

  .k-hero h1 {
    font-size: clamp(2rem, 9.6vw, 2.6rem);
    line-height: 1.08;
  }

  .k-hero .k-lead {
    margin-top: 0.9rem;
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .k-hero__cta {
    margin-top: 1.4rem;
    gap: 0.6rem;
  }

  .k-hero__aside {
    margin-top: 0.75rem;
  }
}

/* --- the hero chat plays once (beranda-4) --------------------------------
   The old loop emptied the card every cycle and left it blank until its
   observer fired. Now the chat marked `data-putar` keeps its first message
   and its day chip on screen from first paint; the later messages are
   transparent but keep their layout, so the card has its final height from
   the start and nothing below it moves. kareeb.js either plays them in once
   (adding .is-putar) or removes the attribute. Without the script the
   k-tampil animation shows them 1.6 s after first paint; under reduced motion
   they are never hidden. The typing bubble is absolutely positioned over the
   spot the next message already holds. */

.k-hero__chat {
  position: relative;
}

.js .k-chat[data-putar] > .k-bubble ~ :not(.k-typing) {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms var(--k-ease), transform 260ms var(--k-ease);
}

.js .k-chat[data-putar]:not(.is-putar) > .k-bubble ~ :not(.k-typing) {
  animation: k-tampil 0s linear 1.6s forwards;
}

.js .k-chat[data-putar] > .k-bubble ~ .is-on {
  opacity: 1;
  transform: none;
}

/* Sent first, read a moment later: the ticks start in the meta's own grey
   and take the read blue a beat after the message lands. */
.js .k-chat.is-putar .k-bubble--out:not(.is-read) .k-tick {
  color: var(--k-muted);
}

.js .k-chat.is-putar .k-tick {
  transition: color 320ms var(--k-ease);
}

@media (prefers-reduced-motion: reduce) {
  .js .k-chat[data-putar] > .k-bubble ~ :not(.k-typing) {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

.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);
  }
}

/* beranda-4: the product shot no longer drifts. Its zoom-and-pan cut the
   picture's edges inside the clipping frame; the shot now stands still and
   whole. */

@media (prefers-reduced-motion: reduce) {
  .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;
  }
}

/* pembaruan
   pembaruan-3 (2026-10-19): the owner called the first server-rendered page
   "still so plain", and it was a column of text. Now: a wider page, the month
   in its own sticky column on a wide screen, each entry a card with its
   category's colour on the left edge, a segmented filter with counts.
   pembaruan-4 replaced "the newest card drawn larger" with highlights
   (`.k-rilis--sorotan`). Colours are the existing tokens; the two soft
   tints are color-mix of them, so dark mode follows without a second set. */
.k-doc.k-rilis-halaman { max-width: 60rem; }
.k-rilis-kepala { max-width: var(--k-prose); }
.k-rilis-kepala__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-accent);
}
.k-doc .k-rilis-kepala__eyebrow { font-size: 0.8rem; color: var(--k-accent); }

.k-rilis-alat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.75rem 0 0.5rem;
}
.k-rilis-alat__rss {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--k-muted);
  text-decoration: none;
}
.k-rilis-alat__rss:hover { color: var(--k-accent-strong); }
.k-rilis-alat__ikuti {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.k-rilis-alat__wa {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--k-accent-soft);
  border-radius: var(--k-radius-pill);
  background: var(--k-accent-faint);
  color: var(--k-accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.k-rilis-alat__wa:hover { border-color: var(--k-accent); }

/* The filter: one segmented control, the pressed segment lifted. Hidden
   without a script, where its buttons could do nothing. */
.k-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-pill);
  background: var(--k-surface-sunk);
}
html:not(.js) .k-filter { display: none; }
.k-filter button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: var(--k-radius-pill);
  background: transparent;
  color: var(--k-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--k-fast) var(--k-ease), color var(--k-fast) var(--k-ease);
}
.k-filter button:hover { color: var(--k-text); }
.k-filter button[aria-pressed="true"] {
  background: var(--k-surface);
  color: var(--k-text);
  box-shadow: var(--k-shadow-1);
}
.k-filter button:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 2px; }
.k-filter__n {
  min-width: 1.5rem;
  padding: 0 0.4rem;
  border-radius: var(--k-radius-pill);
  background: var(--k-border);
  color: var(--k-muted);
  font-size: 0.75rem;
  text-align: center;
}
.k-filter button[aria-pressed="true"] .k-filter__n {
  background: var(--k-accent-soft);
  color: var(--k-accent-strong);
}
.k-doc .k-filter__kosong { margin-top: 2rem; color: var(--k-muted); }

/* A month: its heading beside the cards on a wide screen, above them on a
   phone. */
.k-bulan { margin-top: 2.5rem; }
.k-bulan__kepala { margin-bottom: 1rem; }
.k-doc .k-bulan__kepala h2 { margin: 0; font-size: 1.15rem; }
.k-doc .k-bulan__jumlah { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--k-faint); }
/* The month's highlights as links under its count, on a phone too. */
.k-bulan__sorotan { margin-top: 0.75rem; font-size: 0.85rem; }
.k-doc .k-bulan__sorotan p {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--k-faint);
}
.k-doc .k-bulan__sorotan ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.k-doc .k-bulan__sorotan li { margin: 0; font-size: 0.85rem; line-height: 1.4; }
.k-bulan__sorotan a { color: var(--k-text); text-decoration: none; }
.k-bulan__sorotan a:hover { color: var(--k-accent-strong); text-decoration: underline; }
.k-bulan__daftar { display: grid; gap: 0.9rem; min-width: 0; }
@media (min-width: 52rem) {
  .k-bulan {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 2rem;
  }
  .k-bulan__kepala {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    margin: 0.9rem 0 0;
  }
}

/* A card. The category colour runs down its left edge. */
.k-rilis {
  --k-rilis-warna: var(--k-border-strong);
  position: relative;
  padding: 1.15rem 1.35rem 1.2rem 1.5rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  background: var(--k-surface);
  box-shadow: var(--k-shadow-1);
  overflow-wrap: break-word;
  scroll-margin-top: 1.5rem;
  transition: box-shadow var(--k-slow) var(--k-ease), transform var(--k-slow) var(--k-ease);
}
.k-rilis::before {
  content: "";
  position: absolute;
  inset: 0.9rem auto 0.9rem 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--k-rilis-warna);
}
.k-rilis:hover { box-shadow: var(--k-shadow-2); transform: translateY(-1px); }
.k-rilis:target { border-color: var(--k-accent-soft); box-shadow: var(--k-shadow-2); }
.k-rilis[data-kategori="baru"] { --k-rilis-warna: var(--k-accent); }
.k-rilis[data-kategori="disempurnakan"] { --k-rilis-warna: var(--k-read); }
.k-rilis[data-kategori="diperbaiki"] { --k-rilis-warna: var(--k-muted); }

.k-rilis__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--k-faint);
}
.k-doc .k-rilis h3 { margin: 0.55rem 0 0.35rem; font-size: 1.08rem; line-height: 1.35; }
.k-doc .k-rilis h3 a { color: inherit; text-decoration: none; }
.k-doc .k-rilis h3 a:hover { color: var(--k-accent-strong); }
.k-doc .k-rilis p { margin: 0; color: var(--k-muted); }

/* A highlight (pembaruan-4, `sorotan` in pembaruan.json): the releases a
   business should know about, drawn larger, with a WhatsApp conversation
   beside the text when the entry gives one. The conversation is drawn, never
   a screenshot: a screenshot of the product shows somebody's customers. */
.k-rilis--sorotan {
  padding: 1.5rem 1.6rem 1.55rem 1.8rem;
  border-color: var(--k-accent-soft);
  background:
    linear-gradient(135deg, var(--k-accent-faint), var(--k-surface) 60%);
  box-shadow: var(--k-shadow-2);
}
.k-doc .k-rilis--sorotan h3 { font-size: 1.3rem; }
.k-doc .k-rilis--sorotan p { color: var(--k-text); }
.k-rilis__teks { min-width: 0; }
/* On a phone the chat sits under the text. */
.k-rilis__visual { min-width: 0; margin-top: 1.1rem; }
/* Two columns only when there is a chat: a highlight without one keeps the
   full width for its text. A browser without :has() stacks them, which is the
   phone layout and still reads. */
@media (min-width: 52rem) {
  .k-rilis--sorotan:has(> .k-rilis__visual) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .k-rilis--sorotan .k-rilis__visual { margin-top: 0; }
}

/* The homepage's chat, compact, and still: no k-reveal or k-chat--live, a
   changelog card is read, not watched. The `.k-doc .k-rilis p` rule above
   would otherwise restyle the day pills, hence the longer selectors. */
.k-chat--rilis { padding: 1rem; }
.k-chat--rilis .k-bubble {
  max-width: 92%;
  font-size: 0.86rem;
}
.k-doc .k-chat--rilis .k-chat__day {
  margin: 0 auto 0.9rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--k-faint);
}
.k-doc .k-chat--rilis .k-chat__sistem {
  margin: 0.6rem auto;
  font-size: 0.68rem;
}

/* The how-to, rendered only for a signed-in operator. */
.k-rilis__rinci {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--k-radius);
  background: var(--k-surface-sunk);
}
.k-doc .k-rilis__rinci p { font-size: 0.93rem; }
.k-doc .k-rilis__rinci .k-rilis__rinci-judul {
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--k-faint);
}

/* Category chips. */
.k-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.6rem;
  border-radius: var(--k-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.k-label::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
.k-label--baru {
  background: var(--k-accent-soft);
  color: var(--k-accent-strong);
}
.k-label--disempurnakan {
  background: color-mix(in srgb, var(--k-read) 14%, transparent);
  color: var(--k-read);
}
.k-label--diperbaiki {
  background: color-mix(in srgb, var(--k-muted) 16%, transparent);
  color: var(--k-text);
}
.k-label--sorotan {
  background: var(--k-accent);
  color: var(--k-on-accent);
}
.k-badge {
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--k-accent-soft);
  border-radius: var(--k-radius-pill);
  background: var(--k-accent-faint);
  color: var(--k-accent-strong);
  font-size: 0.75rem;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .k-rilis, .k-filter button { transition: none; }
  .k-rilis:hover { transform: none; }
}
/* Seven links fit from ~60rem; below it the newest one steps aside first. */
@media (max-width: 60rem) {
  .k-nav__links a[href="/pembaruan"] { display: none; }
}

/* --- beranda-3 (2026-10-20): problem cards, Toko/Klinik tabs, the folded
   Meta rules and the closing band. Tokens only, so dark mode follows. ---- */

/* A problem the visitor already has, quoted, then the answer. The quote is
   set apart (italic, muted, a rule under it) so the eye reads "this is you"
   before "this is us". */
.k-pain {
  display: flex;
  flex-direction: column;
  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);
}

.k-pain__before {
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--k-border-strong);
  font-size: 1.12rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: var(--k-muted);
}

.k-pain h3 {
  margin: 0 0 0.45rem;
  color: var(--k-accent-strong);
}

.k-pain p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--k-muted);
}

/* Tabs exist only when kareeb.js runs; without it both panels are shown. */
.k-tabs {
  display: none;
}

.js .k-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 0.25rem;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-pill);
  background: var(--k-surface-sunk);
}

.k-tab {
  padding: 0.5rem 1.35rem;
  border: 0;
  border-radius: var(--k-radius-pill);
  background: transparent;
  color: var(--k-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--k-slow), color var(--k-slow);
}

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

.k-tab[aria-selected="true"] {
  background: var(--k-surface);
  color: var(--k-accent);
  box-shadow: var(--k-shadow-1);
}

.k-panel + .k-panel {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.js .k-panel + .k-panel {
  margin-top: 0;
}

.k-panel__title {
  margin: 0;
  font-size: 1.2rem;
}

.k-modes {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.k-modes .k-card p {
  margin-top: 0.5rem;
}

/* Meta's fee rules, folded under a summary so the price list stays short. */
.k-more {
  border-top: 1px solid var(--k-border);
}

.k-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0 0.2rem;
  color: var(--k-accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.k-more summary::after {
  content: "+";
  font-weight: 700;
}

.k-more[open] summary::after {
  content: "\2212";
}

.k-more .k-facts {
  margin-top: 1rem;
}

/* The last thing on the page: one ask, in the accent's soft wash. */
.k-cta-band {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.k-cta-band__box {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid var(--k-accent-soft);
  border-radius: var(--k-radius-lg);
  background: var(--k-accent-faint);
  text-align: center;
}

.k-cta-band__box h2 {
  margin: 0 0 0.6rem;
}

.k-cta-band__box p {
  margin: 0 auto 1.6rem;
  max-width: 32rem;
  color: var(--k-muted);
}

.k-cta-band__box .k-hero__cta {
  justify-content: center;
}

/* --- beranda-4 polish ----------------------------------------------------
   Lines that ended on one orphaned word at common widths; balance where the
   browser supports it, ignored elsewhere. */
.k-pain__before,
.k-cta-band__box p {
  text-wrap: balance;
}

.k-menu > summary:focus-visible {
  outline-offset: 2px;
}

/* A reduplicated word ("itu-itu") is one word: never break at its hyphen. */
.k-utuh {
  white-space: nowrap;
}

.k-footer__tag {
  text-wrap: balance;
}

/* The narrowest phones (320px and up): the wordmark, Menu and Minta demo
   still fit on one line without the chevron and with tighter padding. */
@media (max-width: 24rem) {
  .k-nav--menu .k-nav__inner {
    gap: 0.5rem;
  }

  .k-menu > summary {
    padding: 0 0.65rem;
  }

  .k-menu > summary::after {
    display: none;
  }

  .k-nav--menu .k-nav__cta {
    margin-left: 0.4rem;
  }

  .k-nav--menu .k-nav__cta .k-btn {
    padding-inline: 0.75rem;
    font-size: 0.9rem;
  }
}
