/* ===================================================================
 * llucky.ai/kz — craft pass over kz.css.
 * Same structure, copy and illustrations as the live page. Nothing new
 * is added to the page; only execution changes:
 *   type     Onest for text, Exo 2 ExtraBold for titles, proof numbers and prices
 *   rhythm   tight groups (number + caption, title + line), wide gaps between
 *   glass    the existing windows: cleaner rim, softer two-step shadow
 *   motion   one calm entrance per screen (longer, expo ease)
 * ================================================================= */

:root {
  --cr-text: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cr-display: "Exo 2", "Onest", ui-sans-serif, system-ui, sans-serif;
  --cr-num: var(--cr-display);
  --cr-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lq-dur-page: 700ms;
  --lq-ease-page: var(--cr-ease);

  /* Glass: one bright top edge, a faint inner line, a near + far shadow. */
  --lq-rim:
    inset 0 1px 0 oklch(var(--lq-white) / 0.95),
    inset 0 0 0 1px oklch(var(--lq-white) / 0.35);
  --lq-pop-shadow-lg: var(--lq-rim),
    0 1px 2px oklch(var(--lq-glass-tint) / 0.08),
    0 12px 24px -12px oklch(var(--lq-glass-tint) / 0.16),
    0 40px 80px -36px oklch(var(--lq-glass-tint) / 0.32);
  --lq-panel-shadow: var(--lq-rim),
    0 1px 2px oklch(var(--lq-glass-tint) / 0.06),
    0 24px 48px -28px oklch(var(--lq-glass-tint) / 0.28);
}

body {
  font-family: var(--cr-text);
  font-size: 15px;
  letter-spacing: -0.003em;
}

/* ---------- Type ---------- */
h3 { font-family: var(--cr-text); }
.hero-title,
.scr-title,
.plan-head h3 { font-family: var(--cr-display); font-weight: 800; }

.hero-title {
  font-size: clamp(38px, min(1rem + 4.6vw, 8.8svh), 92px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero-sub {
  max-width: 46ch;
  margin-top: clamp(20px, 3.4svh, 32px);
  font-size: clamp(17px, 0.95rem + 0.3vw, 20px);
  line-height: 1.5;
}
.hero-actions { margin-top: clamp(28px, 4.6svh, 44px); }

.scr-title {
  font-size: clamp(30px, min(1rem + 2.2vw, 6svh), 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.scr-lede {
  max-width: 42ch;
  font-size: clamp(16px, 0.9rem + 0.25vw, 18px);
  line-height: 1.5;
}

/* Proof: the number and what it counts are one unit. */
.scr-copy .scr-proof { margin-top: clamp(36px, 5.4svh, 56px); }
.scr-proof { gap: 4px; }
.scr-proof-num {
  font-family: var(--cr-num);
  font-size: clamp(44px, 1.4rem + 3vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: hsl(var(--primary));
}
.scr-proof-num small {
  margin-right: 0.18em;
  font-family: var(--cr-text);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
  color: hsl(var(--muted-foreground));
  vertical-align: 0.85em;
}
.scr-proof p {
  max-width: 30ch;
  color: hsl(var(--foreground));
  font-size: 15px;
  line-height: 1.4;
}

.plan-price b {
  font-family: var(--cr-num);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.plan-head h3 { font-size: 19px; letter-spacing: -0.015em; }
.track-card h3 { letter-spacing: -0.015em; }

/* ---------- Buttons ---------- */
.button { font-family: var(--cr-text); }
.button-lg {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
}
.button-primary,
.mobile-sticky-cta-link {
  box-shadow:
    inset 0 1px 0 oklch(var(--lq-white) / 0.28),
    0 1px 2px oklch(0.25 0.06 258 / 0.25),
    0 10px 24px -12px oklch(0.35 0.1 258 / 0.6);
  transition: background-color 150ms ease, box-shadow 300ms var(--cr-ease), transform 120ms var(--cr-ease);
}
.button-primary:hover {
  box-shadow:
    inset 0 1px 0 oklch(var(--lq-white) / 0.32),
    0 1px 2px oklch(0.25 0.06 258 / 0.25),
    0 16px 32px -14px oklch(0.35 0.1 258 / 0.7);
}

/* ---------- Glass windows: same objects, finer edge ---------- */
.chat, .ads, .queue, .owner, .cfg { border-radius: 20px; }
.panel { border-radius: 18px; }
.chat, .ads, .cfg, .queue, .owner {
  border-color: oklch(var(--lq-white) / 0.75);
}
.chat-head, .ads-head, .cfg-head, .queue-head { letter-spacing: -0.01em; }

/* ---------- Motion: one calm entrance ---------- */
.kz-motion .reveal {
  transform: translate3d(0, 24px, 0);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.hero-title { animation-duration: 900ms; }
.hero-sub { animation-duration: 900ms; animation-delay: 120ms; }
.hero-actions { animation-duration: 900ms; animation-delay: 220ms; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.02em; }
  .hero-sub { font-size: 16px; }
  .scr-title { font-size: 29px; }
  .scr-lede { font-size: 15px; }
  .scr-copy .scr-proof { margin-top: var(--lq-space-5); }
  .scr-proof-num { font-size: 38px; }
  .scr-proof p { font-size: 14px; }
}

/* Subtraction: the light rings behind each illustration carried no meaning. */
.scr-art::before { display: none; }

/* Rhythm: a screen is as tall as its content needs, capped, so the gap
   between two screens reads as a pause, not as an empty band. */
@media (min-width: 761px) {
  .scr { min-height: min(calc(100svh - var(--mk-header-h)), 760px); }
  .hero { min-height: min(calc(100svh - var(--mk-header-h)), 820px); }
}

/* Phones: more air. Inside a group 12-16px, between groups 32-48px,
   between screens 64px+. The proof stacks (number over caption). */
@media (max-width: 760px) {
  .scr { padding-block: 56px 72px; }
  .scr-inner { gap: 40px; }
  .scr-copy { padding: 0; }
  .scr-title { line-height: 1.1; }
  .scr-copy .scr-lede { margin-top: 16px; line-height: 1.55; }
  .scr-copy .scr-proof { margin-top: 32px; }
  .scr-proof { grid-template-columns: 1fr; gap: 6px; }
  .scr-proof-num { font-size: 48px; }
  .scr-proof p { max-width: 30ch; }
  .scr-col { gap: 32px; }
  .hero-sub { margin-top: 24px; }
  .hero-actions { margin-top: 36px; }
}
@media (max-width: 760px) {
  .track { gap: 12px; }
  .track-card { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .track-card .pill { grid-column: 1; grid-row: 1; justify-self: start; }
  .track-card h3 { grid-row: 2; }
  .track-card p { grid-row: 3; }
}
/* Phones: a screen is as tall as its content; ~96px between two screens. */
@media (max-width: 760px) {
  .scr { min-height: 0; padding-block: 48px; }
}
/* Phones: 20px side margins (was 12px), text no longer hugs the edges. */
@media (max-width: 760px) {
  :root { --mk-gutter: 20px; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-block: 64px 48px; }
}
