/* pxl.chat — marketing site. Light, clean, Inter + JetBrains Mono, Linear/Radix
   flavored (the principles behind intervu.me), but its own identity: a palette
   derived from the logo's cyan → indigo → violet rim gradient. */

@font-face {
  font-family: "Good Timing";
  src: url("/assets/brand/good-timing-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #5b4ef0;          /* electric indigo — the single solid accent */
  --brand-700: #4835d4;
  --brand-300: #9a93f5;
  --brand-soft: #efecfe;
  --cyan: #15c9e8;
  --violet: #b32ff0;
  --grad: linear-gradient(120deg, #16c9e8 0%, #5b63ef 46%, #b32ff0 100%);
  --grad-soft: linear-gradient(120deg, rgba(21,201,232,.12), rgba(91,99,239,.12) 46%, rgba(179,47,240,.12));

  --fg: #16131f;
  --muted: #5c576b;
  --faint: #8e89a0;
  --bg: #ffffff;
  --surface: #f7f6fc;
  --surface-2: #eeecf9;
  --line: #e7e4f3;
  --good: #1f9d55;
  --warn: #d98324;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(30, 20, 60, .06), 0 1px 3px rgba(30, 20, 60, .08);
  --shadow: 0 10px 30px -12px rgba(40, 25, 90, .22);
  --shadow-lg: 0 30px 70px -24px rgba(40, 25, 90, .30);
  --glow: 0 16px 50px -16px rgba(91, 78, 240, .45);
  --maxw: 1140px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --brandfont: "Good Timing", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 10px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.mark-txt { font-family: var(--brandfont); font-weight: 700; font-size: 29px; letter-spacing: -1.5px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 12px rgba(91, 78, 240, .28)); }
.brand-word { font-family: var(--brandfont); font-weight: 700; font-size: 21px; letter-spacing: .01em; color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--glow); }
.btn-ghost { background: #fff; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); background: var(--surface); }
.btn-lg { font-size: 16px; padding: 14px 24px; border-radius: 13px; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.chip-pro {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 2px 8px; border-radius: 999px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; margin: 4px 0; transition: .2s; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 10px 24px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.nav-mobile a { padding: 10px 2px; color: var(--muted); font-weight: 500; }
.nav-mobile .btn { margin-top: 8px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(880px 440px at 86% -12%, rgba(179, 47, 240, .12), transparent 60%),
    radial-gradient(760px 420px at 2% -6%, rgba(21, 201, 232, .12), transparent 55%);
}
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; margin: 0 0 20px; }
.lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-sub { margin-top: 16px; font-size: 14px; color: var(--faint); font-family: var(--font-num); letter-spacing: .01em; }

/* showcase window */
.showcase { margin-top: 54px; perspective: 1600px; }
.win { max-width: 940px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.win-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #d7d3e7; }
.win-bar .dot:nth-child(1) { background: #f1a5a0; } .win-bar .dot:nth-child(2) { background: #f3cf8e; } .win-bar .dot:nth-child(3) { background: #a7d8ac; }
.win-url { margin-left: 10px; font-size: 12.5px; color: var(--faint); font-family: var(--font-num); }
.win-body { display: grid; grid-template-columns: 1fr 360px; min-height: 340px; }

.store { padding: 22px; background: linear-gradient(180deg, #fff, var(--surface)); border-right: 1px solid var(--line); }
.store-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.store-logo { width: 84px; height: 16px; border-radius: 6px; background: var(--surface-2); }
.store-nav { width: 52px; height: 9px; border-radius: 5px; background: var(--surface-2); }
.store-cart { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); margin-left: auto; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.store-grid span { aspect-ratio: 3/4; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }

.chat { display: flex; flex-direction: column; background: var(--surface); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; font-size: 14.5px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-ava { display: inline-flex; }
.chat-log { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; color: var(--faint); font-size: 14px; }
.chat-input .send { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); flex: none; }

.b { font-size: 14px; line-height: 1.5; border-radius: 14px; padding: 11px 13px; max-width: 92%; }
.b.sm { font-size: 13.5px; }
.b-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.b-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }

.rec { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 7px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.rec-img { width: 30px; height: 30px; border-radius: 7px; background: var(--grad-soft); border: 1px solid var(--line); flex: none; }
.rec-t { font-weight: 600; } .rec-p { margin-left: auto; font-family: var(--font-num); font-weight: 600; color: var(--brand); }
.rec.lg { padding: 11px 13px; font-size: 14px; }
.rec.lg .rec-img { width: 42px; height: 42px; }
.rec-main { display: flex; flex-direction: column; gap: 2px; } .rec-sub { color: var(--faint); font-size: 12.5px; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.save { color: var(--good); font-weight: 600; } .addcart { color: var(--brand); font-weight: 600; }

/* ---------- reframe ---------- */
.stakes-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.stakes h2 { font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -.025em; font-weight: 800; margin-bottom: 16px; text-wrap: balance; }
.stakes p { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.stakes .turn { color: var(--fg); font-weight: 500; }

/* ---------- value strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 24px; }
.strip-row div { display: flex; flex-direction: column; gap: 3px; }
.strip-row strong { font-size: 15px; }
.strip-row span { font-size: 13.5px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 86px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; margin: 0 0 14px; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- split capability ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-rev .split-copy { order: 2; }
.split-copy h2 { font-size: clamp(25px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.split-copy p { color: var(--muted); font-size: 17px; margin: 0; }
.split-copy .eyebrow { margin-bottom: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }

/* grounded panel */
.ground { display: flex; flex-direction: column; gap: 10px; }
.cite { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-family: var(--font-num); }
.cite-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* train panel */
.train { display: grid; gap: 8px; }
.train-row { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 12px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-size: 14.5px; }
.train-ico { color: var(--brand); } .train-n { font-family: var(--font-num); color: var(--faint); }
.train-ok { font-size: 12px; font-weight: 600; color: var(--good); background: #e7f5ec; padding: 3px 9px; border-radius: 999px; }
.train-btn { margin-top: 6px; border: 0; border-radius: 11px; padding: 12px; font: inherit; font-weight: 600; color: #fff; background: var(--brand); cursor: default; }

/* outcomes panel */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.kpi-n { display: block; font-family: var(--font-num); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.kpi-l { font-size: 12.5px; color: var(--muted); }
.outcome { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.out-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(31, 157, 85, .14); }

/* ---------- how it works ---------- */
.pipe { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pipe-col { flex: 1; min-width: 150px; max-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; text-align: center; }
.pipe-col.accent { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.pipe-k { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pipe-v { font-size: 13px; color: var(--muted); font-family: var(--font-num); }
.pipe-arrow { align-self: center; color: var(--brand-300); font-size: 20px; }
.pipe-note { text-align: center; color: var(--faint); font-size: 14.5px; margin-top: 26px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.plan-pro { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -12px; right: 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 12px; border-radius: 999px; }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.plan-top h3 { font-size: 20px; font-weight: 800; }
.plan-price { font-family: var(--font-num); font-weight: 700; font-size: 32px; letter-spacing: -.02em; }
.plan-price small { font-size: 14px; color: var(--faint); font-weight: 500; }
.plan-sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.plan-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.plan-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--fg); }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.plan-pro .plan-list li::before { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.pricing-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 22px; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 18px; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }

/* ---------- download ---------- */
#dlRoot { max-width: 560px; margin: 0 auto; }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; text-align: center; }
.dl-mark { width: 56px; height: 56px; margin: 0 auto 14px; }
.dl-title { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.dl-ver { font-family: var(--font-num); font-size: 13px; color: var(--faint); margin: 4px 0 18px; }
.dl-card .btn { font-size: 16px; padding: 14px 24px; }
.dl-foot-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }
.install { max-width: 560px; margin: 26px auto 0; padding-left: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.install li { margin: 6px 0; } .install b { color: var(--fg); font-weight: 600; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 52px 0 26px; }
.foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }
.foot-cols { display: flex; gap: 56px; }
.foot-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 12px; }
.foot-cols a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.foot-cols a:hover { color: var(--fg); }
.foot-base { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot-mono { font-family: var(--font-num); }

/* ---------- consent ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 680px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.consent p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; min-width: 240px; }
.consent p a { color: var(--brand); font-weight: 600; }
.consent-actions { display: flex; gap: 10px; margin-left: auto; }

/* ---------- real-image brand marks + works-with strip ---------- */
.brand-img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.foot .brand-img { width: 28px; height: 28px; }
.chat-ava { width: 26px; height: 26px; border-radius: 50%; display: block; }
.dl-mark { border-radius: 50%; }
.works { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 22px; flex-wrap: wrap; }
.works-label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.works svg { height: 21px; width: auto; display: block; }
.works .wp { color: #21759b; }
.works .woo { color: #7f54b3; height: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .win-body { grid-template-columns: 1fr; }
  .store { display: none; }
  .chat { min-height: 360px; }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-rev .split-copy { order: 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-mobile { display: flex; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .strip-row { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .plans { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); }
  .pipe-col { max-width: none; }
  .foot-inner { flex-direction: column; gap: 28px; }
}
