/* Kalipr website. "Dusk" look from the app (src/constants/theme.ts, dusk.dark). */
:root {
  --ground: #0E0D14;
  --card: #17161F;
  --raised: #23212E;
  --line: #2A2836;
  --ink: #F2F0F7;
  --muted: #A29FB2;
  --body: #A99BFF;
  --food: #FF9E80;
  --act: #6FD9B4;
  --sun: #FFC857;
  --radius: 22px;
  --max: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 300 17px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header: the get-the-app button never leaves the screen. */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 13, 20, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; border-radius: 7px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--ground);
  font-weight: 500; font-size: 15px; text-decoration: none;
  padding: 10px 18px; border-radius: 999px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.big { font-size: 17px; padding: 15px 26px; }
.btn svg { width: 16px; height: 16px; }
.cta-note { color: var(--muted); font-size: 13px; margin-top: 12px; letter-spacing: 0.01em; }

.caps { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 500; color: var(--muted); }
h1, h2, h3, .lede { text-wrap: balance; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(48px, 9vw, 104px); line-height: 0.98; }
h2 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; }
h3 { font-size: 22px; letter-spacing: -0.015em; font-weight: 400; }
.lede { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 30em; margin: 18px 0 0; }
.more { color: var(--ink); text-decoration: none; font-weight: 400; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.more:hover { border-color: var(--ink); }

section { padding: 96px 0; }
section + section { border-top: 1px solid rgba(255, 255, 255, 0.04); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .actions { margin-top: 32px; }

/* Flow: many sources -> Kalipr -> report */
.flow {
  position: relative; margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr 120px 1.15fr; align-items: center; gap: 0 28px;
}
.flow .lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sources { display: grid; gap: 12px; position: relative; }
.src {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; text-align: left;
}
.src .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--raised); }
.src .ico svg { width: 18px; height: 18px; }
.src b { display: block; font-weight: 400; font-size: 15px; }
.src span { display: block; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hub { position: relative; display: grid; place-items: center; }
.hub svg { width: 104px; height: 104px; filter: drop-shadow(0 0 36px rgba(169, 155, 255, 0.35)); }

.report {
  position: relative;
  background: linear-gradient(180deg, #1B1A25, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: left;
}
.report .row { display: flex; justify-content: space-between; align-items: baseline; }
.report .big { font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.report .unit { color: var(--muted); font-size: 14px; }
.report .sub { color: var(--act); font-size: 13px; }
.report .chart { margin-top: 14px; }
.report .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.report .tile { background: var(--raised); border-radius: 14px; padding: 12px; }
.report .tile .k { font-size: 11px; }
.report .tile .v { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.area { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; }
.area svg.ring { width: 88px; height: 88px; margin-bottom: 26px; }
.area p { color: var(--muted); margin: 6px 0 0; font-size: 15.5px; }

/* Two-column feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature .art { display: grid; place-items: center; }
.feature p.lede { margin-top: 16px; }
.feature .links { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; }

/* Phone drawing */
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 19; border-radius: 42px;
  background: #000; border: 1px solid #34313f; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.phone .screen { height: 100%; border-radius: 31px; background: var(--card); overflow: hidden; padding: 38px 16px 16px; position: relative; }
.phone .notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 12px; background: #000; }
.phone .bar { height: 8px; border-radius: 4px; background: var(--raised); margin: 10px 0; }
.phone .set { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.phone .set b { color: var(--ink); font-weight: 400; }
.phone .title { font-size: 17px; margin-bottom: 4px; }
.taps { position: absolute; left: 50%; top: 58%; }
.taps span { position: absolute; border: 1.5px solid var(--act); border-radius: 50%; transform: translate(-50%, -50%); animation: tap 2.4s ease-out infinite; opacity: 0; }
.taps span:nth-child(1) { width: 26px; height: 26px; }
.taps span:nth-child(2) { width: 26px; height: 26px; animation-delay: .35s; }
.taps .dot { width: 10px; height: 10px; background: var(--act); border: 0; animation: dot 2.4s ease-out infinite; }
@keyframes tap { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.4); } 60% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } 100% { opacity: 0; } }
@keyframes dot { 0%, 30% { opacity: 1; } 60%, 100% { opacity: 0; } }
.chips { position: absolute; left: 274px; top: 26%; display: grid; gap: 10px; }
.chip {
  white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.tapwrap { position: relative; padding-right: 170px; }

/* Custom report builder */
.ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--raised); border-radius: 14px; padding: 12px 12px 12px 16px; font-size: 15px; }
.ask .caret::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; background: var(--body); margin-left: 3px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.ask .send { width: 28px; height: 28px; border-radius: 50%; background: var(--body); color: var(--ground); display: grid; place-items: center; font-size: 14px; font-weight: 500; flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pills span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }

/* Privacy band */
.privacy { text-align: center; }
.privacy svg { width: 40px; height: 40px; margin: 0 auto 22px; }
.privacy .lede { margin-left: auto; margin-right: auto; }

/* Final CTA */
.final { text-align: center; padding: 120px 0; }
.final .orbit { width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 20px; }
.final .actions { margin-top: 30px; }

footer { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Guide pages */
.guide { padding: 64px 0 24px; }
.guide .wrap { max-width: 760px; }
.guide .lede { margin-top: 14px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.step .pic { width: 112px; height: 112px; border-radius: 16px; background: var(--raised); display: grid; place-items: center; }
.step .pic svg { width: 72px; height: 72px; }
.step h3 { font-size: 20px; }
.step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--muted); }
.step p { color: var(--muted); margin: 6px 0 0; font-size: 15.5px; }
.step .btn { margin-top: 14px; }
.path { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.path span { background: var(--raised); border-radius: 8px; padding: 4px 10px; font-size: 14px; color: var(--ink); }
.path span + span::before { content: "›"; color: var(--muted); margin-right: 8px; margin-left: -2px; }
.note { color: var(--muted); font-size: 14.5px; margin-top: 22px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.way { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.way svg { width: 36px; height: 36px; margin-bottom: 18px; }
.way p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.subhead { margin-top: 72px; }

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .flow { grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
  .flow .lines { display: none; }
  .sources { grid-template-columns: 1fr 1fr; }
  .src:nth-child(5) { grid-column: 1 / -1; }
  .hub { padding: 26px 0; }
  .hub::before, .hub::after { content: ""; position: absolute; left: 50%; width: 1px; height: 22px; background: linear-gradient(var(--line), var(--body)); }
  .hub::before { top: 2px; } .hub::after { bottom: 2px; background: linear-gradient(var(--body), var(--line)); }
  .hub svg { width: 84px; height: 84px; }
  .areas { grid-template-columns: 1fr; }
  .area { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; padding: 20px; }
  .area svg.ring { width: 72px; height: 72px; margin: 0; }
  .feature { grid-template-columns: 1fr; gap: 44px; }
  .feature .art { order: 2; }
  .ways { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .btn.top-cta { padding: 8px 14px; font-size: 14px; }
  .src { padding: 10px 12px; gap: 10px; }
  .src .ico { width: 30px; height: 30px; }
  .src b { font-size: 14px; }
  .phone { width: 200px; border-radius: 36px; }
  .tapwrap { padding-right: 0; padding-bottom: 150px; }
  .chips { left: 50%; transform: translateX(-50%); top: auto; bottom: 0; }
  .tapwrap { padding-right: 0; }
  .step { grid-template-columns: 1fr; }
  .step .pic { width: 100%; height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .taps span { animation: none; opacity: .6; } }
.btn.soon { cursor: default; background: var(--raised); color: var(--ink); }
.btn.soon:hover { transform: none; }
