:root {
  --ink: #08090d;
  --ink-2: #111318;
  --ink-3: #1a1d24;
  --paper: #f7f9fb;
  --paper-2: #eef2f6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(8, 9, 13, 0.12);
  --text: #f8fafc;
  --muted: #a5adba;
  --dark-text: #111318;
  --dark-muted: #536070;
  --blue: #315cff;
  --green: #00a676;
  --coral: #f05d3e;
  --gold: #f4b640;
  --violet: #7c4dff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 9, 13, 0.08), rgba(8, 9, 13, 0.95) 680px),
    var(--ink);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.nav a {
  border-radius: 8px;
  color: #c6cfdb;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav .download-link {
  background: var(--blue);
  color: #fff;
  margin-left: 4px;
  order: 30;
}

.nav a[href="webapp.html"] {
  align-items: center;
  background: linear-gradient(135deg, rgba(41, 132, 255, 0.22), rgba(126, 87, 255, 0.2));
  border: 1px solid rgba(127, 184, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(72, 150, 255, 0.38),
    0 8px 24px rgba(117, 91, 255, 0.24);
  color: #fff;
  display: inline-flex;
  gap: 7px;
  margin-left: 8px;
  order: 29;
}

.nav a[href="webapp.html"]::before {
  background: #67d6ff;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(103, 214, 255, 0.95);
  content: "";
  height: 7px;
  width: 7px;
}

.nav a[href="webapp.html"]:hover,
.nav a[href="webapp.html"].active {
  background: linear-gradient(135deg, rgba(41, 132, 255, 0.3), rgba(126, 87, 255, 0.27));
  border-color: rgba(153, 205, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(72, 150, 255, 0.52),
    0 10px 28px rgba(117, 91, 255, 0.28);
  color: #fff;
}

.phone-app-rail {
  display: none;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(8, 9, 13, 0.96) 0%, rgba(8, 9, 13, 0.82) 34%, rgba(8, 9, 13, 0.3) 68%, rgba(8, 9, 13, 0.1) 100%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.04) 0%, rgba(8, 9, 13, 0.76) 100%),
    url("klysto-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 92svh;
  margin: 0 auto;
  padding: 118px 0 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce4ee;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 770px;
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(4rem, 12vw, 9.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.86;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #d9e1ec;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 32px rgba(49, 92, 255, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.button.light {
  border-color: var(--line-light);
  background: #fff;
  color: var(--dark-text);
}

.hero-proof {
  position: absolute;
  inset: auto 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 13, 0.74);
  backdrop-filter: blur(18px);
}

.proof-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  min-height: 96px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 18px;
}

.proof-item:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-value {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 950;
}

.proof-label {
  margin-top: 4px;
  color: #aeb8c5;
  font-size: 0.86rem;
  line-height: 1.45;
}

.band {
  position: relative;
  padding: 92px 0;
}

.band.dark {
  background: var(--ink);
  color: var(--text);
}

.band.surface {
  background: var(--ink-2);
  color: var(--text);
}

.band.light {
  background: var(--paper);
  color: var(--dark-text);
}

.band.paper-2 {
  background: var(--paper-2);
  color: var(--dark-text);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.section-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .section-kicker,
.surface .section-kicker {
  color: #77e0bd;
}

.section-head h2,
.stack-title {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--dark-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.dark .section-head p,
.surface .section-head p,
.dark .lead,
.surface .lead {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.feature-focus {
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.feature-rail {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.feature-rail strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
}

.feature-rail span {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-point {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.feature-point h3 {
  margin: 0 0 8px;
}

.feature-point p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.6;
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-cloud span {
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: #fff;
  color: var(--dark-text);
  font-weight: 850;
  padding: 10px 14px;
}

.process-panel {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 92, 255, 0.2), transparent 46%),
    rgba(255, 255, 255, 0.045);
  padding: 28px;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process-step {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.38);
  padding: 24px;
}

.process-step-number {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 950;
  margin-bottom: 70px;
}

.process-step h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.45rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process-note {
  margin-top: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce4ee;
  padding: 18px;
  line-height: 1.65;
}

.feature-card,
.quote-card,
.price-card,
.faq-item,
.stat-card,
.step-card,
.use-card {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  color: var(--dark-text);
  padding: 24px;
}

.dark .feature-card,
.surface .feature-card,
.dark .quote-card,
.surface .quote-card,
.dark .price-card,
.surface .price-card,
.dark .faq-item,
.surface .faq-item,
.dark .stat-card,
.surface .stat-card,
.dark .step-card,
.surface .step-card,
.dark .use-card,
.surface .use-card {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.icon-box.blue {
  background: var(--blue);
}

.icon-box.green {
  background: var(--green);
}

.icon-box.coral {
  background: var(--coral);
}

.icon-box.gold {
  background: var(--gold);
  color: var(--dark-text);
}

.feature-card h3,
.quote-card h3,
.price-card h3,
.faq-item h3,
.step-card h3,
.use-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feature-card h3 a,
.quote-card h3 a,
.use-card h3 a {
  color: inherit;
  text-decoration-color: rgba(73, 118, 255, 0.35);
  text-underline-offset: 4px;
}

.feature-card h3 a:hover,
.quote-card h3 a:hover,
.use-card h3 a:hover {
  text-decoration-color: currentColor;
}

.feature-card p,
.quote-card p,
.price-card p,
.faq-item p,
.step-card p,
.use-card p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.65;
}

.dark .feature-card p,
.surface .feature-card p,
.dark .quote-card p,
.surface .quote-card p,
.dark .price-card p,
.surface .price-card p,
.dark .faq-item p,
.surface .faq-item p,
.dark .step-card p,
.surface .step-card p,
.dark .use-card p,
.surface .use-card p {
  color: var(--muted);
}

.product-stage {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 22px;
  align-items: stretch;
}

.app-showcase {
  min-height: 620px;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(135deg, rgba(49, 92, 255, 0.11), transparent 44%),
    linear-gradient(315deg, rgba(0, 166, 118, 0.12), transparent 50%),
    #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 16px;
  align-items: center;
}

.app-shot {
  overflow: hidden;
  border: 10px solid #0a0b0f;
  border-radius: 34px;
  background: #0a0b0f;
  box-shadow: var(--shadow);
}

.app-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shot.main {
  aspect-ratio: 9 / 19.5;
}

.app-shot.small {
  aspect-ratio: 9 / 19.5;
  border-width: 7px;
  border-radius: 26px;
}

.app-shot-stack {
  display: grid;
  gap: 14px;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.image-strip .app-shot {
  aspect-ratio: 9 / 16;
  border-width: 7px;
  border-radius: 24px;
}

.phone-wall {
  min-height: 620px;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(135deg, rgba(49, 92, 255, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(0, 166, 118, 0.14), transparent 45%),
    #fff;
  padding: 28px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(330px, 100%);
  min-height: 570px;
  border: 10px solid #0a0b0f;
  border-radius: 36px;
  background: #111318;
  box-shadow: var(--shadow);
  padding: 20px 16px;
  position: relative;
}

.phone:before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 92px;
  height: 24px;
  border-radius: 0 0 14px 14px;
  background: #06070a;
  transform: translateX(-50%);
}

.phone-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 18px;
}

.phone-title {
  font-size: 1.35rem;
  font-weight: 950;
}

.phone-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green);
}

.screen-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.screen-tabs span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #c6cfdb;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 9px;
}

.screen-tabs span:first-child {
  background: var(--green);
  color: #08100d;
}

.listing-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  padding: 10px;
}

.listing-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7f9fb, #b5c3d4);
}

.listing-img.green {
  background: linear-gradient(135deg, #dff8ef, #00a676);
}

.listing-img.coral {
  background: linear-gradient(135deg, #ffe5de, #f05d3e);
}

.listing-img.gold {
  background: linear-gradient(135deg, #fff2cd, #f4b640);
}

.listing-name {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 850;
}

.listing-meta {
  margin-top: 3px;
  color: #96a1af;
  font-size: 0.73rem;
}

.listing-price {
  color: #fff;
  font-weight: 950;
}

.publish-bar {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  min-height: 52px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.signal-list {
  display: grid;
  gap: 12px;
}

.signal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line-light);
  padding: 18px 0;
}

.signal:last-child {
  border-bottom: 0;
}

.signal-number {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 950;
}

.signal h3 {
  margin: 0 0 6px;
}

.signal p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.65;
}

.workflow {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.workflow-row {
  counter-increment: step;
  display: grid;
  grid-template-columns: 96px 1fr 260px;
  gap: 22px;
  align-items: center;
  min-height: 132px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 20px;
}

.workflow-row:before {
  content: counter(step, decimal-leading-zero);
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}

.workflow-row h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.workflow-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.workflow-badge {
  justify-self: end;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: #dce4ee;
  font-size: 0.84rem;
  font-weight: 850;
  padding: 10px 12px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--dark-text);
}

.compare th,
.compare td {
  border-bottom: 1px solid var(--line-light);
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

.compare th {
  background: #111318;
  color: #fff;
  font-size: 0.9rem;
}

.compare td {
  color: var(--dark-muted);
  line-height: 1.5;
}

.compare strong {
  color: var(--dark-text);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.big-number {
  color: var(--blue);
  font-size: clamp(4rem, 12vw, 8.5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.88;
}

.note-box {
  border-left: 4px solid var(--coral);
  background: rgba(240, 93, 62, 0.08);
  padding: 18px 20px;
  color: inherit;
}

.note-box p {
  margin: 0;
  line-height: 1.65;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.price-card.highlight {
  border-color: rgba(49, 92, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(49, 92, 255, 0.22);
}

.price {
  margin: 20px 0;
  font-size: 3rem;
  font-weight: 950;
  letter-spacing: 0;
}

.price span {
  color: var(--dark-muted);
  font-size: 1rem;
  font-weight: 750;
}

.dark .price span,
.surface .price span {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--dark-muted);
  line-height: 1.45;
}

.dark .check-list li,
.surface .check-list li {
  color: var(--muted);
}

.check-list li:before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--green);
}

.price-card .button {
  margin-top: auto;
}

.page-hero {
  padding: 136px 0 74px;
  background:
    linear-gradient(180deg, rgba(49, 92, 255, 0.16), transparent 58%),
    var(--ink);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.52fr);
  gap: 48px;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.inner-page .page-hero {
  padding: 126px 0 58px;
}

.inner-page .page-hero .container {
  display: block;
}

.inner-page .page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.45rem);
  font-weight: 900;
  line-height: 1.02;
}

.inner-page .page-hero .container > p {
  display: none;
}

.inner-page .section-head {
  display: block;
  max-width: 820px;
}

.inner-page .section-head h2,
.inner-page .stack-title {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
}

.inner-page .section-head p {
  max-width: 680px;
  margin-top: 14px;
}

.compact-head {
  margin-bottom: 28px;
}

.inner-page .feature-card,
.inner-page .quote-card,
.inner-page .price-card,
.inner-page .faq-item,
.inner-page .stat-card,
.inner-page .step-card,
.inner-page .use-card,
.inner-page .feature-point {
  padding: 22px;
}

.mini-metrics {
  display: grid;
  gap: 10px;
}

.inner-page .page-hero .mini-metrics {
  margin-top: clamp(24px, 4vw, 36px);
  max-width: 620px;
}

.mini-metric {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.mini-metric strong {
  display: block;
  font-size: clamp(1.12rem, 3vw, 1.65rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.mini-metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.leaderboard-hero {
  background:
    linear-gradient(135deg, rgba(49, 92, 255, 0.2), transparent 44%),
    linear-gradient(315deg, rgba(0, 166, 118, 0.12), transparent 48%),
    var(--ink);
}

.leaderboard-band {
  padding-top: 72px;
}

.leaderboard-reveal-button {
  width: 100%;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 92, 255, 0.08), transparent 58%),
    #fff;
  color: var(--dark-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  text-align: left;
}

.leaderboard-reveal-button strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
}

.leaderboard-reveal-button small {
  display: block;
  margin-top: 3px;
  color: var(--dark-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.leaderboard-reveal-button b {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  font-size: 1.3rem;
}

.leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.leaderboard-board,
.leaderboard-join {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  color: var(--dark-text);
  padding: 22px;
}

.leaderboard-board-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.leaderboard-board h2,
.leaderboard-join h2 {
  margin: 8px 0 0;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.board-badge {
  border: 1px solid rgba(0, 166, 118, 0.28);
  border-radius: 999px;
  background: rgba(0, 166, 118, 0.1);
  color: #007e5b;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 10px;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-coming-soon {
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, #f8faf6, #ffffff);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: 2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.leaderboard-coming-icon {
  min-width: 54px;
  min-height: 54px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 0.9rem;
  background: #ecf7ef;
  color: #176b5d;
  border: 1px solid #d8e8da;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-coming-soon h3 {
  margin: 0;
  color: #17211c;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
}

.leaderboard-coming-soon p {
  max-width: 44rem;
  color: #5f6f66;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

.leaderboard-coming-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.leaderboard-coming-grid span {
  border-radius: 999px;
  border: 1px solid #dfe7dd;
  background: #fff;
  color: #17211c;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.62rem 0.82rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(8, 9, 13, 0.08);
  border-radius: 8px;
  background: #f7f9fb;
  padding: 10px 12px;
}

.leaderboard-row.is-you {
  border-color: rgba(49, 92, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(49, 92, 255, 0.1), transparent 58%),
    #fff;
}

.leaderboard-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 950;
}

.leaderboard-row:nth-child(1) .leaderboard-rank,
.leaderboard-row:nth-child(2) .leaderboard-rank,
.leaderboard-row:nth-child(3) .leaderboard-rank {
  background: var(--gold);
  color: var(--dark-text);
}

.leaderboard-name {
  min-width: 0;
}

.leaderboard-name strong {
  display: block;
  overflow: hidden;
  color: var(--dark-text);
  font-size: 0.98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-name span {
  display: block;
  margin-top: 2px;
  color: var(--dark-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.leaderboard-amount {
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 950;
}

.leaderboard-join {
  position: sticky;
  top: 92px;
}

.leaderboard-join p {
  margin: 12px 0 18px;
  color: var(--dark-muted);
  line-height: 1.6;
}

.leaderboard-join label {
  display: block;
  margin: 14px 0 7px;
  color: var(--dark-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-join input {
  width: 100%;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #f7f9fb;
  color: var(--dark-text);
  font: inherit;
  font-weight: 800;
  padding: 13px 14px;
}

.leaderboard-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.footer {
  background: #050609;
  color: #aeb8c5;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: start;
}

.footer p {
  max-width: 420px;
  margin: 12px 0 0;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #c6cfdb;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 {
  margin-top: 36px;
}

.legal-copy p,
.legal-copy li {
  color: var(--dark-muted);
  line-height: 1.75;
}

.dark .legal-copy p,
.dark .legal-copy li {
  color: var(--muted);
}

html.is-phone-user body {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

html.is-phone-user .topbar {
  background: rgba(8, 9, 13, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.is-phone-user .topbar-inner {
  width: calc(100% - 24px);
  min-height: 62px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

html.is-phone-user .brand {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.06em;
}

html.is-phone-user .brand img {
  width: 32px;
  height: 32px;
}

html.is-phone-user .nav {
  width: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 3px;
  overflow: visible;
  padding: 0;
}

html.is-phone-user .nav a {
  display: none;
}

html.is-phone-user .nav a[href="index.html"],
html.is-phone-user .nav a[href="features.html"],
html.is-phone-user .nav a[href="faq.html"] {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  font-size: 0.78rem;
}

html.is-phone-user .nav a[href="pricing.html"],
html.is-phone-user .nav a[href="leaderboard.html"],
html.is-phone-user .nav a[href="webapp.html"] {
  display: none;
}

html.is-phone-user .nav .download-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 11px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

html.is-phone-user .hero {
  min-height: auto;
  background-image:
    linear-gradient(180deg, rgba(8, 9, 13, 0.62) 0%, rgba(8, 9, 13, 0.82) 48%, rgba(8, 9, 13, 0.98) 100%),
    url("klysto-hero.png");
  background-position: center top, 66% 66px;
  background-repeat: no-repeat;
  background-size: cover, min(540px, 136vw) auto;
}

html.is-phone-user .hero-inner {
  width: calc(100% - 24px);
  min-height: auto;
  padding: 108px 0 34px;
  justify-content: flex-start;
}

html.is-phone-user .eyebrow {
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

html.is-phone-user .hero h1,
html.is-phone-user .page-hero h1 {
  max-width: 100%;
  margin-top: 14px;
  font-size: clamp(2.42rem, 11.5vw, 3.18rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

html.is-phone-user .hero-copy,
html.is-phone-user .page-hero p {
  max-width: 21.5rem;
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.5;
}

html.is-phone-user .hero-actions,
html.is-phone-user .actions {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 360px);
  gap: 9px;
  margin-top: 20px;
}

html.is-phone-user .hero-actions .secondary {
  display: none;
}

html.is-phone-user .button {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
}

html.is-phone-user .button.primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

html.is-phone-user .hero-proof {
  position: relative;
  border-top: 0;
  background: var(--ink);
  padding-bottom: 4px;
}

html.is-phone-user .proof-grid {
  width: 100%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

html.is-phone-user .proof-grid::-webkit-scrollbar {
  display: none;
}

html.is-phone-user .proof-item {
  flex: 0 0 min(44%, 168px);
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  padding: 16px 14px;
  scroll-snap-align: start;
}

html.is-phone-user .proof-value {
  font-size: 1.1rem;
}

html.is-phone-user .proof-label {
  font-size: 0.78rem;
}

html.is-phone-user .band {
  padding: 42px 0;
}

html.is-phone-user .container,
html.is-phone-user .page-hero .container {
  width: calc(100% - 24px);
}

html.is-phone-user .section-head {
  gap: 14px;
}

html.is-phone-user .section-head h2,
html.is-phone-user .inner-page .stack-title {
  font-size: clamp(1.58rem, 8.2vw, 2.2rem);
  line-height: 1.06;
}

html.is-phone-user .section-head p,
html.is-phone-user .feature-card p,
html.is-phone-user .quote-card p,
html.is-phone-user .signal p {
  font-size: 0.98rem;
  line-height: 1.55;
}

html.is-phone-user .product-stage,
html.is-phone-user .card-grid,
html.is-phone-user .card-grid.two,
html.is-phone-user .feature-focus,
html.is-phone-user .feature-points,
html.is-phone-user .process-line,
html.is-phone-user .split,
html.is-phone-user .leaderboard-layout,
html.is-phone-user .price-grid,
html.is-phone-user .footer-grid {
  grid-template-columns: 1fr;
}

html.is-phone-user .app-showcase,
html.is-phone-user .image-strip {
  grid-template-columns: 1fr;
  gap: 10px;
}

html.is-phone-user .app-showcase {
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 14px;
  column-gap: 12px;
}

html.is-phone-user .app-shot-stack {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 8px;
}

html.is-phone-user .app-shot.main {
  width: min(42vw, 166px);
  justify-self: center;
}

html.is-phone-user .app-shot.small {
  width: min(29vw, 112px);
  justify-self: center;
}

html.is-phone-user .app-shot,
html.is-phone-user .feature-card,
html.is-phone-user .quote-card,
html.is-phone-user .workflow-row,
html.is-phone-user .leaderboard-board,
html.is-phone-user .leaderboard-join,
html.is-phone-user .price-card,
html.is-phone-user .signal {
  border-radius: 18px;
}

html.is-phone-user .feature-card,
html.is-phone-user .quote-card,
html.is-phone-user .leaderboard-board,
html.is-phone-user .leaderboard-join,
html.is-phone-user .price-card {
  padding: 18px;
}

html.is-phone-user .signal {
  padding: 14px;
}

html.is-phone-user .signal h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

html.is-phone-user .compare {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html.is-phone-user .footer {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

html.is-phone-user .phone-app-rail {
  position: fixed;
  z-index: 80;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  min-height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  text-decoration: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(8, 9, 13, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

html.is-phone-user .phone-app-rail span {
  color: var(--dark-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

html.is-phone-user .phone-app-rail strong {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

@media (max-width: 380px) {
  html.is-phone-user .brand span {
    display: none;
  }

  html.is-phone-user .nav a[href="index.html"],
  html.is-phone-user .nav a[href="features.html"],
  html.is-phone-user .nav a[href="faq.html"] {
    padding-inline: 7px;
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .hero-inner {
    min-height: 860px;
  }

  .hero-inner {
    padding-top: 148px;
    justify-content: flex-start;
  }

  .proof-grid,
  .card-grid,
  .card-grid.two,
  .feature-focus,
  .feature-points,
  .process-line,
  .product-stage,
  .split,
  .leaderboard-layout,
  .price-grid,
  .page-hero .container,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-join {
    position: static;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(odd) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .workflow-row {
    grid-template-columns: 64px 1fr;
  }

  .workflow-badge {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .container,
  .hero-inner,
  .proof-grid {
    width: min(100% - 24px, var(--max));
  }

  .nav a {
    font-size: 0.82rem;
    padding: 8px 9px;
  }

  .hero {
    background-position: 60% center;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3.2rem, 20vw, 5.2rem);
  }

  .inner-page .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.85rem);
  }

  .inner-page .section-head h2,
  .inner-page .stack-title {
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }

  .hero-proof {
    position: relative;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .band {
    padding: 66px 0;
  }

  .phone-wall {
    min-height: auto;
    padding: 16px;
  }

  .app-showcase,
  .image-strip {
    grid-template-columns: 1fr;
  }

  .phone {
    min-height: 540px;
  }

  .workflow-row {
    grid-template-columns: 1fr;
  }

  .workflow-badge {
    grid-column: auto;
  }

  .leaderboard-board,
  .leaderboard-join {
    padding: 16px;
  }

  .leaderboard-board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .leaderboard-amount {
    grid-column: 2;
    justify-self: start;
  }

  .compare {
    display: block;
    overflow-x: auto;
  }
}
