/* Kuchu Puchu website: the brand on top of the layout system (assets/system.css).
   The colours are Kuchu Puchu's own: cream, plum ink, muted purple, lavender, peach, sage, red and gold. */
@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/Gabarito-var.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(fonts/Figtree-normal-400.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url(fonts/Figtree-normal-500.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(fonts/Figtree-normal-600.woff2) format("woff2"); }

:root {
  --p-bg: #faf7f1; --p-surface: #f2ecf1; --p-ink: #463c48; --p-muted: #6f6672;
  --p-accent: #79618a; --p-accent-ink: #ffffff; --p-action: #79618a; --p-action-ink: #ffffff;
  --p-inv-bg: #2b2233; --p-inv-surface: #3a2f44; --p-inv-ink: #faf7f1; --p-inv-muted: #cfc4d3;
  --p-inv-accent: #f1cbb8; --p-inv-accent-ink: #2b2233; --p-inv-action: #f1cbb8; --p-inv-action-ink: #2b2233;
  --font-display: "Gabarito", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ly-scale: 0.98;
  --lavender: #e8dded; --peach: #f1cbb8; --sage: #dbe1d0; --sage-ink: #566342;
  --red: #d1364b; --red-soft: #f8e4e7; --gold: #a9783a; --gold-soft: #f5ead8;
  --plum: #2b2233;
}
::selection { background: var(--lavender); color: var(--p-ink); }
.ground-inverse ::selection { background: var(--peach); color: var(--plum); }
html { scrollbar-color: #c9bccd transparent; }
body { caret-color: var(--p-accent); }
a { text-underline-offset: .2em; }
img { max-width: 100%; }

/* The logo: the app's own icon */
.nav__logo .kp-logo, .footer .kp-logo { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.nav__logo { gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }

/* Skip link: hidden until focused */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 8px 12px; background: #fff; border-radius: 8px; z-index: 20; top: 12px; }

/* Banners for invite links (?ref= and ?add=), shown above the hero headline */
.kp-banner { display: inline-block; max-width: 640px; background: var(--red-soft); border: 1px solid #efc3ca; color: #7a2a37; border-radius: 14px; padding: 10px 16px; font-size: 14px; line-height: 1.5; }
.kp-banner code { font: 600 14px var(--font-mono); background: #fff; color: var(--red); border-radius: 6px; padding: 1px 6px; letter-spacing: .04em; }
.kp-banner a { color: inherit; text-decoration: underline; }

/* ---------- The app window in the home hero ---------- */
.kp-desk { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: radial-gradient(120% 90% at 85% 100%, #dbe1d0 0, transparent 55%), radial-gradient(90% 80% at 10% 0%, #efe4f1 0, transparent 60%), linear-gradient(160deg, #f4ecf3, #f5ece4); }
.kp-win { position: absolute; z-index: 1; left: 5%; top: 32px; width: min(660px, 58%);
  display: grid; grid-template-columns: 230px 1fr; background: #fffdfa; border: 1px solid #e4dce1; border-radius: 16px;
  box-shadow: 0 24px 48px -16px #5b426033, 0 2px 6px #5b42600f; overflow: hidden; text-align: left; font-size: 14px; }
.kp-win__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid #efe8ec; color: var(--p-muted); font-size: 13px; }
.kp-win__dots { display: flex; gap: 6px; } .kp-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3b2a6; } .kp-win__dots i:nth-child(2) { background: #e6d29e; } .kp-win__dots i:nth-child(3) { background: #b8c7a6; }
.kp-win__bar b { color: var(--p-ink); font-weight: 600; }
.kp-friends { border-right: 1px solid #efe8ec; padding: 10px; display: grid; gap: 4px; align-content: start; background: #fbf8f4; }
.kp-friend { display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; align-items: center; padding: 8px; border-radius: 12px; }
.kp-friend.is-on { background: var(--lavender); }
.kp-friend img { grid-row: span 2; width: 36px; height: 40px; object-fit: contain; }
.kp-friend b { font-weight: 600; font-size: 14px; color: var(--p-ink); }
.kp-friend span { font-size: 12px; color: var(--p-muted); }
.kp-friend span i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8fae7a; margin-right: 6px; }
.kp-chat { display: grid; grid-template-rows: 1fr auto; min-height: 300px; }
.kp-chat__body { padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.kp-msg { max-width: 78%; padding: 9px 14px; border-radius: 16px; line-height: 1.45; font-size: 14px; }
.kp-msg--them { background: #f2ecf1; border-bottom-left-radius: 4px; }
.kp-msg--me { justify-self: end; background: var(--p-accent); color: #fff; border-bottom-right-radius: 4px; }
.kp-msg small { display: block; font-size: 11px; opacity: .75; margin-top: 2px; }
.kp-sent { justify-self: end; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--red-soft); color: #7a2a37; font-size: 13px; font-weight: 500; }
.kp-sent img { width: 34px; height: 38px; object-fit: contain; }
.kp-gestures { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid #efe8ec; }
.kp-gestures span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid #e0d5e3; font-size: 13px; color: var(--p-ink); background: #fff; }
.kp-gestures span.is-on { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.kp-pet { position: absolute; z-index: 2; right: 9%; top: 28px; width: 210px; }
.kp-pet::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2px; height: 14px; border-radius: 50%; background: #5b426022; filter: blur(4px); z-index: -1; }
.kp-pet img { width: 100%; height: auto; display: block; }
.kp-bubble { position: absolute; right: calc(9% + 180px); top: 56px; z-index: 3; background: #fffdfa; border: 1px solid #eadfe6; border-radius: 16px 16px 4px 16px; padding: 10px 16px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 20px -10px #5b426040; white-space: nowrap; }
@media (max-width: 1023px) {
  .kp-win { grid-template-columns: 1fr; top: 16px; width: 62%; left: 16px; }
  .kp-friends { display: none; }
  .kp-pet { width: 150px; right: 4%; top: 40px; }
  .kp-bubble { right: calc(4% + 30px); top: 12px; }
}
@media (max-width: 639px) {
  .kp-win { width: calc(100% - 24px); left: 12px; }
  .kp-chat { min-height: 230px; }
  .kp-msg { max-width: 92%; font-size: 13px; }
  .kp-gestures span:nth-child(n+3) { display: none; }
  .kp-pet, .kp-bubble { display: none; }
}

/* ---------- Demo video ---------- */
.kp-film { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--plum); box-shadow: 0 30px 60px -30px #2b223366; }
.kp-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-film__play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--plum); }
.kp-film__play span { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 18px; border-radius: 99px; background: #fffdfa; font: 600 16px var(--font-text); box-shadow: 0 12px 30px -10px #2b223380; transition: transform .2s var(--ease); }
.kp-film__play:hover span { transform: translateY(-2px); }
.kp-film__play:active span { transform: translateY(0) scale(.98); }
.kp-film__play svg { width: 22px; height: 22px; }
.kp-film.is-playing .kp-film__play { display: none; }
.kp-points { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: 0; }
.kp-points li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.kp-points li:last-child { border-bottom: 1px solid var(--line); }
.kp-points time { font: 500 14px var(--font-mono); color: var(--p-muted); }

/* ---------- Greetings ---------- */
.kp-stage { position: relative; height: var(--p-h, 560px); border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 100%, #dbe1d0 0, transparent 70%), linear-gradient(170deg, #f2ecf1, #f6eee6); }
.kp-stage__pet { position: absolute; left: 50%; bottom: 0; width: min(360px, 70%); transform: translateX(-50%); transform-origin: 50% 100%; }
.kp-stage__pet img { display: block; width: 100%; height: auto; }
.kp-stage__bubble { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); background: #fffdfa; border-radius: 18px 18px 18px 4px; padding: 14px 22px; font: 500 20px var(--font-display); white-space: nowrap; box-shadow: 0 10px 24px -14px #5b426055; }
.kp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); }
.kp-chip { height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid #d9cddd; background: transparent; font: 500 15px var(--font-text); color: var(--p-ink); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.kp-chip:hover { background: var(--lavender); transform: translateY(-2px); }
.kp-chip:active { transform: translateY(0) scale(.98); }
.kp-chip[aria-pressed="true"] { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.kp-stage__pet.is-wave { animation: kp-wave .9s var(--ease); }
.kp-stage__pet.is-hug { animation: kp-hug .9s var(--ease); }
.kp-stage__pet.is-coffee { animation: kp-wave 1s var(--ease); }
.kp-stage__pet.is-night { animation: kp-night 1.2s var(--ease); }
@keyframes kp-wave { 0%, 100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(-50%) rotate(-6deg) translateY(-8px); } 65% { transform: translateX(-50%) rotate(5deg); } }
@keyframes kp-hug { 50% { transform: translateX(-50%) scale(1.07) translateY(-8px); } }
@keyframes kp-night { 50% { transform: translateX(-50%) rotate(-6deg) translateY(10px); opacity: .75; } }

/* ---------- Characters ---------- */
.kp-cast { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5); }
.kp-cast figure { margin: 0; display: grid; gap: 10px; }
.kp-cast .kp-cast__art { aspect-ratio: 400 / 430; border-radius: 120px 120px var(--r-md) var(--r-md); background: #f2ecf1; display: grid; place-items: end center; overflow: hidden; transition: transform .25s var(--ease); }
.kp-cast figure:nth-child(3n+2) .kp-cast__art { background: #e9ede1; }
.kp-cast figure:nth-child(3n) .kp-cast__art { background: #f6e9e1; }
.kp-cast .kp-cast__art img { width: 92%; height: auto; transition: transform .35s var(--ease); }
.kp-cast figure:hover .kp-cast__art img { transform: scale(1.03); }
.kp-cast b { font: 500 16px var(--font-text); }
@media (max-width: 1023px) { .kp-cast { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
@media (max-width: 639px) { .kp-cast { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; } .kp-cast b { font-size: 14px; } }

/* ---------- Sparks ---------- */
.kp-sparks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.kp-spark { margin: 0; display: grid; gap: 12px; }
.kp-spark__frame { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--plum); }
.kp-spark__frame video, .kp-spark__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.kp-spark:hover .kp-spark__frame video { transform: scale(1.03); }
.kp-spark b { font: 500 16px var(--font-text); }
.kp-spark .tag { font-size: 13px; color: var(--red); font-weight: 600; margin-left: 6px; }
@media (max-width: 1023px) { .kp-sparks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kp-spark__frame { aspect-ratio: 16 / 10; } }
@media (max-width: 639px) { .kp-sparks { gap: 12px; } .kp-spark__frame { aspect-ratio: 1; } .kp-spark b { font-size: 14px; } }

/* ---------- Puchu window ---------- */
.kp-puchu { max-width: 460px; width: 100%; margin-inline: auto; border-radius: 22px; background: #242428; color: #fff; box-shadow: 0 30px 60px -24px #2b223355; overflow: hidden; font-size: 15px; }
.kp-puchu__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #ffffff1f; }
.kp-puchu__paw { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ffffff1a; }
.kp-puchu__paw svg { width: 20px; height: 20px; }
.kp-puchu__head b { display: block; font: 600 17px var(--font-display); }
.kp-puchu__head small { color: #ffffffa6; font-size: 13px; }
.kp-puchu__body { padding: 18px; display: grid; gap: 10px; }
.kp-puchu .b { margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.5; max-width: 86%; color: #fff; font-size: 15px; }
.kp-puchu .b--me { justify-self: end; background: #ffffff33; border-bottom-right-radius: 4px; }
.kp-puchu .b--them { background: #ffffff17; border-bottom-left-radius: 4px; }
.kp-puchu .b--sent { justify-self: end; background: #79618a; font-size: 14px; }
.kp-puchu .b--sent small { display: block; opacity: .8; font-size: 12px; }
.kp-puchu__input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px 14px; padding: 10px 14px; border-radius: 14px; background: #ffffff12; color: #ffffffa6; font-size: 14px; }
.kp-puchu__input kbd { font: 500 13px var(--font-mono); color: #f1cbb8; }

/* ---------- Couch (cinema) ---------- */
.kp-cinema { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(#211a28, #17121c); padding: 22px 22px 0; box-shadow: 0 30px 60px -24px #0007; }
.kp-cinema__lights { display: flex; justify-content: space-around; margin-bottom: 14px; }
.kp-cinema__lights i { width: 7px; height: 7px; border-radius: 50%; background: #ffdf94; box-shadow: 0 0 10px #ffdf94; animation: kp-twinkle 2.6s infinite ease-in-out; }
.kp-cinema__lights i:nth-child(2n) { animation-delay: .7s; } .kp-cinema__lights i:nth-child(3n) { animation-delay: 1.4s; }
@keyframes kp-twinkle { 50% { opacity: .35; } }
.kp-screen { position: relative; aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; background: radial-gradient(80% 90% at 30% 30%, #4a3a5c, #1c1622); display: flex; align-items: flex-end; padding: 16px; }
.kp-screen__title { color: #fff; font: 500 18px var(--font-display); }
.kp-screen__title small { display: block; font: 500 13px var(--font-text); color: #cfc4d3; margin-top: 2px; }
.kp-screen__sync { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; background: #0007; color: #fff; font-size: 13px; }
.kp-screen__sync i { width: 7px; height: 7px; border-radius: 50%; background: #8fd19e; }
.kp-cams { position: absolute; top: 14px; right: 14px; display: grid; grid-template-columns: repeat(2, 76px); gap: 8px; }
.kp-cam { aspect-ratio: 1; border-radius: 14px; background: #f2ecf1; overflow: hidden; display: grid; place-items: end center; border: 2px solid #ffffff2e; position: relative; }
.kp-cam img { width: 88%; height: auto; }
.kp-cam span { position: absolute; left: 6px; bottom: 5px; font-size: 11px; font-weight: 600; color: var(--p-ink); background: #fffdfacc; border-radius: 6px; padding: 0 5px; }
.kp-seats { display: flex; justify-content: center; gap: 18px; padding: 18px 0 0; position: relative; }
.kp-seat { width: 96px; height: 72px; border-radius: 22px 22px 0 0; background: #7a3a4b; display: grid; place-items: end center; position: relative; }
.kp-seat img { width: 86px; height: auto; position: absolute; bottom: 18px; }
.kp-react { position: absolute; bottom: 64px; font-size: 24px; animation: kp-float 3.2s infinite ease-out; opacity: 0; }
.kp-react:nth-of-type(2) { animation-delay: 1.1s; left: 52%; } .kp-react:nth-of-type(3) { animation-delay: 2.1s; left: 40%; }
@keyframes kp-float { 0% { opacity: 0; transform: translateY(0) scale(.8); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }
@media (max-width: 639px) { .kp-cams { grid-template-columns: 56px; } .kp-cam:nth-child(n+2) { display: none; } .kp-seat { width: 72px; height: 56px; } .kp-seat img { width: 64px; bottom: 14px; } .kp-screen { aspect-ratio: 16 / 10; } }

/* ---------- Plans ---------- */
.kp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.kp-plan { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: #fffdfa; border: 1px solid var(--line); }
.kp-plan h3 { font: 500 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.kp-plan__price { font: 500 40px/1 var(--font-display); letter-spacing: -.03em; color: var(--p-ink); }
.kp-plan__price small { font: 400 15px var(--font-text); color: var(--p-muted); letter-spacing: 0; }
.kp-plan__sub { font-size: 14px; color: var(--p-muted); min-height: 42px; }
.kp-plan ul { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; flex: 1; }
.kp-plan li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.kp-plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--p-accent); }
.kp-plan--pro { background: var(--gold-soft); border-color: #e3cfae; } .kp-plan--pro li::before { color: var(--gold); }
.kp-plan--cupid { background: var(--red-soft); border-color: #efc3ca; } .kp-plan--cupid li::before { color: var(--red); }
.kp-plan--plus { background: #f2ecf1; border-color: #ddd0e2; }
.kp-plan .btn { margin-top: 8px; }
@media (max-width: 1023px) { .kp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .kp-plans { grid-template-columns: 1fr; gap: 12px; } .kp-plan__sub { min-height: 0; } }
.kp-period { display: inline-flex; gap: 4px; background: #f2ecf1; border-radius: 99px; padding: 4px; }
.kp-period button { height: 36px; padding: 0 16px; border-radius: 99px; border: 0; background: transparent; font: 500 14px var(--font-text); color: var(--p-ink); cursor: pointer; }
.kp-period button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px #5b42601a; }

/* ---------- Download (in the close) ---------- */
.kp-downloads { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kp-downloads .btn svg.os { width: 18px; height: 18px; margin-right: 8px; }
.kp-meta { font-size: 14px; color: var(--muted); margin-top: var(--s-4); max-width: 70ch; }
.kp-meta a { color: inherit; text-decoration: underline; }

/* ---------- Long reads: legal pages ---------- */
.kp-read { padding: calc(var(--nav) + 64px) 0 96px; }
.kp-read .wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 80px; align-items: start; }
.kp-read__toc { position: sticky; top: calc(var(--nav) + 32px); display: grid; gap: 4px; font-size: 15px; }
.kp-read__toc a { padding: 8px 12px; border-radius: 10px; color: var(--p-ink); text-decoration: none; }
.kp-read__toc a:hover { background: #f2ecf1; }
.kp-read__toc a[aria-current="page"] { background: var(--lavender); font-weight: 600; }
.kp-read__toc p { font-size: 13px; color: var(--p-muted); padding: 0 12px; margin: 12px 0 4px; }
.kp-read article h1 { font: var(--display-weight) clamp(40px, 4vw, 56px)/1.05 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 12px; }
.kp-read article .kp-date { color: var(--p-muted); font-size: 15px; margin: 0 0 32px; }
.kp-read article .kp-summary { font-size: 19px; line-height: 1.6; margin: 0 0 40px; padding: 20px 24px; background: #f2ecf1; border-radius: var(--r-md); }
.kp-read article h2 { font: 500 26px/1.25 var(--font-display); letter-spacing: -.015em; margin: 48px 0 12px; scroll-margin-top: calc(var(--nav) + 24px); }
.kp-read article h3 { font: 600 18px/1.4 var(--font-text); margin: 28px 0 8px; }
.kp-read article p, .kp-read article li { font-size: 17px; line-height: 1.7; margin: 0 0 14px; max-width: 68ch; }
.kp-read article ul { padding-left: 22px; margin: 0 0 14px; }
.kp-read article a { color: var(--p-accent); text-decoration: underline; }
.kp-read article table { border-collapse: collapse; width: 100%; margin: 8px 0 20px; font-size: 16px; }
.kp-read article th, .kp-read article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kp-read article th { font-weight: 600; }
.kp-read article .kp-choice { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 20px; }
@media (max-width: 1023px) { .kp-read .wrap { grid-template-columns: 1fr; gap: 24px; } .kp-read__toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .kp-read__toc p { display: none; } }
@media (max-width: 639px) { .kp-read { padding-top: calc(var(--nav) + 32px); } .kp-read article p, .kp-read article li { font-size: 16px; } }

/* ---------- Checkout page ---------- */
.kp-pay { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav) + 32px) 16px 48px; }
.kp-pay__card { max-width: 480px; width: 100%; background: #fffdfa; border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; }
.kp-pay__card h1 { font: 500 40px/1.1 var(--font-display); letter-spacing: -.03em; margin: 0 0 16px; }
.pay-summary { font: 500 19px var(--font-display); margin: 6px 0 14px; }
.pay-test { background: #ffe9b8; color: #7a5000; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.pay-status { font-size: 15px; margin: 10px 0 16px; min-height: 22px; }
.pay-status.good { color: #4f6a3a; font-weight: 600; } .pay-status.bad { color: var(--red); }
.gift-code { font: 700 26px/1.2 var(--font-mono); letter-spacing: .08em; text-align: center; padding: 14px; margin: 12px 0; border: 2px dashed #bba69a; border-radius: 16px; background: #fff; user-select: all; }
.gift-status { margin-top: 8px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .kp-cinema__lights i, .kp-react { animation: none; }
  .kp-react { opacity: 1; }
  .kp-stage__pet { animation: none !important; }
}

/* The lit ground (hero frame, the close) in the brand's lavender instead of the kit's sand */
:root[data-ground], :root { --ground-bg: #e8dded; --ground-surface: #f2ecf1; --ground-ink: #3f3542; --ground-muted: #5f5664; --ground-accent: #79618a; }
.footer--statement { --action: var(--p-action); --action-ink: var(--p-action-ink); }

/* Spacing inside text columns */
.grid > [class*="span-"] > h2 + p { margin-top: var(--s-5); }
.grid > [class*="span-"] > p + p { margin-top: var(--s-4); }
.section-head > h2 + p { margin-top: var(--s-4); }

.kp-downloads .btn--xl { width: auto; flex: 0 1 auto; padding-inline: 32px; }
@media (max-width: 639px) { .kp-downloads .btn--xl { width: 100%; } }
.footer__col button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__col button.link::after { content: none; }
.kp-spark figcaption { display: flex; align-items: baseline; gap: 8px; }
.kp-spark .tag { margin: 0; }
.kp-screen__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.kp-screen > :not(.kp-screen__art) { position: relative; z-index: 1; }
.kp-screen > .kp-cams, .kp-screen > .kp-screen__sync { position: absolute; }

/* Comparison table (plans.html) */
.kp-compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.kp-compare th, .kp-compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.kp-compare thead th { font: 500 18px var(--font-display); color: var(--ink); border-bottom-color: var(--line-strong); }
.kp-compare tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.kp-compare td { color: var(--ink); font-variant-numeric: tabular-nums; }
.kp-compare td:nth-child(3) { background: #f2ecf180; }
@media (max-width: 639px) { .kp-compare { font-size: 14px; } .kp-compare th, .kp-compare td { padding: 10px 6px; } .kp-compare tbody th { width: auto; } }
.kp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.kp-tile { padding: 28px; border-radius: var(--r-lg); background: #fffdfa; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.kp-tile h3 { font: 500 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.kp-tile p { font-size: 16px; line-height: 1.6; }
.kp-tile .kp-tile__art { height: 160px; border-radius: var(--r-md); display: grid; place-items: end center; overflow: hidden; background: #f2ecf1; margin-bottom: 8px; }
.kp-tile .kp-tile__art img { height: 150px; width: auto; }
.kp-tile .btn { margin-top: auto; align-self: flex-start; }
.kp-tile .packs { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-tile .packs span { background: #f2ecf1; border-radius: 99px; padding: 6px 14px; font-size: 15px; }
@media (max-width: 1023px) { .kp-tiles { grid-template-columns: 1fr; } .kp-tile .kp-tile__art { display: none; } }
.kp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.kp-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); counter-increment: s; }
.kp-steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lavender); font: 600 16px var(--font-display); color: var(--p-ink); }
.ground-inverse .kp-steps li::before { background: #ffffff1f; color: var(--p-inv-ink); }
.kp-steps li b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.kp-steps li span { color: var(--muted); font-size: 16px; line-height: 1.55; }
.kp-hero-plans .hero__c { max-width: 900px; }
.kp-hero-plans .kp-plans { margin-top: var(--s-7); text-align: left; }
.kp-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-5); }
.kp-icons span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: #ffffff14; border: 1px solid #ffffff26; font-size: 15px; }
.section:not(.ground-inverse) .kp-icons span { background: #fffdfa; border-color: var(--line); }
.kp-icons img { width: 20px; height: 20px; border-radius: 4px; }

/* Plans in the plans page's first screen: no frame or fade, just the cards */
.kp-hero-plans .hero__window.kp-plans-window { background: none; -webkit-mask-image: none; mask-image: none; min-height: 0; overflow: visible; }
.kp-hero-plans .hero__window.kp-plans-window::before, .kp-hero-plans .hero__window.kp-plans-window::after { content: none; }
.kp-plans-window .kp-plans { margin-top: var(--s-6); }
.kp-plan ul { font-size: 15px; }
@media (max-width: 1023px) {
  .kp-plans-window .kp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kp-plans-window .kp-plan ul, .kp-plans-window .kp-plan__sub { display: none; }
  .kp-plans-window .kp-plan { padding: 18px; gap: 6px; }
  .kp-plans-window .kp-plan__price { font-size: 30px; }
}
@media (max-width: 639px) { .kp-plans-window .kp-plan .btn { display: none; } .kp-plans-window .kp-plan h3 { font-size: 19px; } .kp-plans-window .kp-plan__price small { display: block; margin-top: 4px; } }

/* Contrast fixes */
.btn--primary:hover { background: #67507a; }
.footer--statement { --muted: #5a5160; }
.kp-msg small, .kp-puchu .b--sent small { opacity: 1; color: #f6f1f8; }
.kp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Reading text at 7:1; muted only for small notes */
.hero .hero__lead, .hero--centred .hero__lead { color: var(--ink); }
.t-lead.muted { color: var(--ink); }
.ground-inverse .t-lead.muted { color: var(--p-inv-ink); }
.t-small.muted { color: #5a5160; }
.ground-inverse .t-small.muted { color: var(--p-inv-muted); }
/* Lights and reactions play a few times, then rest */
.kp-cinema__lights i { animation-iteration-count: 3; }
.kp-react { animation-iteration-count: 2; animation-fill-mode: forwards; }
.kp-cinema:hover .kp-react { animation-name: kp-float2; }
@keyframes kp-float2 { 0% { opacity: 0; transform: translateY(0) scale(.8); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }
.kp-stage__bubble { top: 6%; }
@media (max-width: 1023px) and (min-width: 820px) { .kp-cast { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }

.kp-banner button { font: inherit; font-weight: 600; color: var(--red); background: #fff; border: 1px solid #efc3ca; border-radius: 8px; padding: 2px 10px; cursor: pointer; }
.kp-banner button:hover { background: #fff5f6; }

/* web chat: a phone showing kuchupuchu.me/chat */
.kp-phone { width: 100%; max-width: 340px; margin-inline: auto; border-radius: 40px; background: #fffdfa; border: 10px solid #2b2233; box-shadow: 0 30px 60px -24px #2b223366; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; min-height: 560px; }
.kp-phone__url { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 14px 4px; padding: 7px 12px; border-radius: 99px; background: #f2ecf1; font-size: 13px; color: var(--p-ink); }
.kp-phone__url svg { width: 12px; height: 12px; color: #6f6672; }
.kp-phone__head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #efe8ec; }
.kp-phone__head img { width: 48px; height: 56px; object-fit: contain; animation: kp-hop 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.kp-phone__head b { display: block; font: 600 17px var(--font-display); color: var(--p-ink); }
.kp-phone__head small { color: #6f6672; font-size: 12.5px; }
.kp-phone__body { padding: 16px; display: grid; gap: 10px; align-content: start; }
.kp-phone .kp-gestures { flex-wrap: nowrap; }
.kp-points--plain { margin-top: var(--s-5); }
.kp-points--plain li { grid-template-columns: 1fr; padding: 12px 0; }
@keyframes kp-hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-6px) rotate(-4deg); } 80% { transform: translateY(0) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .kp-phone__head img { animation: none; } }
@media (max-width: 639px) { .kp-phone { min-height: 500px; } .kp-phone .kp-gestures span:nth-child(n+3) { display: inline-flex; } }
